[02:59:16]OFD Sender: No OFD packet to send [02:59:21]OFD Sender: No OFD packet to send [02:59:26]OFD Sender: No OFD packet to send [02:59:31]OFD Sender: No OFD packet to send [02:59:35]int [02:59:35]Write to MH i2c: 01 00 00 1A 42 5C [02:59:35]*** FLAG_PRN_KEY set [02:59:35]Write i2c OK [02:59:35]MH_I2C_Read... [02:59:35]Read from MH i2c: 01 [02:59:35]MH_I2C_Read... [02:59:35]Read from MH i2c: 01 07 00 [02:59:35]MH_I2C_Read... [02:59:35]Read from MH i2c: 01 07 00 1A 42 00 08 00 00 00 FF 0F 79 [02:59:35]state=0 [02:59:35]Key pressed [02:59:35]Feed [02:59:35]Write to MH i2c: D8 00 00 1B 42 34 [02:59:35]Write i2c OK [02:59:35]MH_I2C_Read... [02:59:35]Read from MH i2c: D8 [02:59:35]MH_I2C_Read... [02:59:35]Read from MH i2c: D8 01 00 [02:59:35]MH_I2C_Read... [02:59:35]Read from MH i2c: D8 01 00 1B 42 00 35 [02:59:35]int [02:59:35]Write to MH i2c: 01 00 00 1C 42 5E [02:59:35]Write i2c OK [02:59:35]MH_I2C_Read... [02:59:35]Read from MH i2c: 01 [02:59:35]MH_I2C_Read... [02:59:35]Read from MH i2c: 01 07 00 [02:59:35]MH_I2C_Read... [02:59:35]Read from MH i2c: 01 07 00 1C 42 00 48 00 00 00 3C 00 E9 [02:59:35]state=2 [02:59:35]Key pressed [02:59:36]int [02:59:36]Write to MH i2c: 01 00 00 1D 42 5F [02:59:36]*** FLAG_PRN_KEY reset [02:59:36]Write i2c OK [02:59:36]MH_I2C_Read... [02:59:36]Read from MH i2c: 01 [02:59:36]MH_I2C_Read... [02:59:36]Read from MH i2c: 01 07 00 [02:59:36]MH_I2C_Read... [02:59:36]Read from MH i2c: 01 07 00 1D 42 00 00 00 00 00 F6 0F 6B [02:59:36]state=2 [02:59:36]Stop feed [02:59:36]int [02:59:36]Write to MH i2c: 01 00 00 1E 42 60 [02:59:36]*** FLAG_PRN_KEY set [02:59:36]Write i2c OK [02:59:36]MH_I2C_Read... [02:59:36]Read from MH i2c: 01 [02:59:36]MH_I2C_Read... [02:59:36]Read from MH i2c: 01 07 00 [02:59:36]MH_I2C_Read... [02:59:36]Read from MH i2c: 01 07 00 1E 42 00 08 00 00 00 FF 0F 7D [02:59:36]state=0 [02:59:36]Key pressed [02:59:36]Feed [02:59:36]Write to MH i2c: D8 00 00 1F 42 38 [02:59:36]Write i2c OK [02:59:36]MH_I2C_Read... [02:59:36]Read from MH i2c: D8 [02:59:36]MH_I2C_Read... [02:59:36]Read from MH i2c: D8 01 00 [02:59:36]MH_I2C_Read... [02:59:36]Read from MH i2c: D8 01 00 1F 42 00 39 [02:59:36]int [02:59:36]Write to MH i2c: 01 00 00 20 42 62 [02:59:36]Write i2c OK [02:59:36]MH_I2C_Read... [02:59:36]Read from MH i2c: 01 [02:59:36]MH_I2C_Read... [02:59:36]Read from MH i2c: 01 07 00 [02:59:36]MH_I2C_Read... [02:59:36]Read from MH i2c: 01 07 00 20 42 00 48 00 00 00 3C 00 ED [02:59:36]state=2 [02:59:36]Key pressed [02:59:36]OFD Sender: No OFD packet to send [02:59:37]int [02:59:37]Write to MH i2c: 01 00 00 21 42 63 [02:59:37]*** FLAG_PRN_KEY reset [02:59:37]Write i2c OK [02:59:37]MH_I2C_Read... [02:59:37]Read from MH i2c: 01 [02:59:37]MH_I2C_Read... [02:59:37]Read from MH i2c: 01 07 00 [02:59:37]MH_I2C_Read... [02:59:37]Read from MH i2c: 01 07 00 21 42 00 00 00 00 00 F6 0F 6F [02:59:37]state=2 [02:59:37]Stop feed [02:59:41]OFD Sender: No OFD packet to send [02:59:46]OFD Sender: No OFD packet to send [02:59:51]OFD Sender: No OFD packet to send [02:59:56]OFD Sender: No OFD packet to send [03:00:01]OFD Sender: No OFD packet to send [03:00:06]OFD Sender: No OFD packet to send [03:00:11]OFD Sender: No OFD packet to send [03:00:16]OFD Sender: No OFD packet to send [03:00:21]OFD Sender: No OFD packet to send [03:00:26]OFD Sender: No OFD packet to send [03:00:31]OFD Sender: No OFD packet to send [03:00:36]OFD Sender: No OFD packet to send [03:00:41]OFD Sender: No OFD packet to send [03:00:46]OFD Sender: No OFD packet to send [03:00:51]OFD Sender: No OFD packet to send [03:00:56]OFD Sender: No OFD packet to send [03:01:01]OFD Sender: No OFD packet to send [03:01:06]OFD Sender: No OFD packet to send [03:01:11]OFD Sender: No OFD packet to send [03:01:16]OFD Sender: No OFD packet to send [03:01:21]OFD Sender: No OFD packet to send [03:01:26]OFD Sender: No OFD packet to send [03:01:31]OFD Sender: No OFD packet to send [03:01:36]OFD Sender: No OFD packet to send [03:01:41]OFD Sender: No OFD packet to send [03:01:46]OFD Sender: No OFD packet to send [03:01:51]OFD Sender: No OFD packet to send [03:01:56]OFD Sender: No OFD packet to send [03:02:01]OFD Sender: No OFD packet to send [03:02:06]OFD Sender: No OFD packet to send [03:02:11]OFD Sender: No OFD packet to send [03:02:16]OFD Sender: No OFD packet to send [03:02:21]OFD Sender: No OFD packet to send [03:02:26]OFD Sender: No OFD packet to send [03:02:31]OFD Sender: No OFD packet to send [03:02:36]OFD Sender: No OFD packet to send [03:02:41]OFD Sender: No OFD packet to send [03:02:46]OFD Sender: No OFD packet to send [03:02:51]OFD Sender: No OFD packet to send [03:02:56]OFD Sender: No OFD packet to send [03:03:01]OFD Sender: No OFD packet to send [03:03:06]OFD Sender: No OFD packet to send [03:03:11]OFD Sender: No OFD packet to send [03:03:16]OFD Sender: No OFD packet to send [03:03:21]OFD Sender: No OFD packet to send [03:03:26]OFD Sender: No OFD packet to send [03:03:31]OFD Sender: No OFD packet to send [03:03:36]OFD Sender: No OFD packet to send [03:03:41]OFD Sender: No OFD packet to send [03:03:46]OFD Sender: No OFD packet to send [03:03:51]OFD Sender: No OFD packet to send [03:03:56]OFD Sender: No OFD packet to send [03:04:01]OFD Sender: No OFD packet to send [03:04:06]OFD Sender: No OFD packet to send [03:04:11]OFD Sender: No OFD packet to send [03:04:16]OFD Sender: No OFD packet to send [03:04:21]OFD Sender: No OFD packet to send [03:04:26]OFD Sender: No OFD packet to send [03:04:32]OFD Sender: No OFD packet to send [03:04:37]OFD Sender: No OFD packet to send [03:04:42]OFD Sender: No OFD packet to send [03:04:47]OFD Sender: No OFD packet to send [03:04:52]OFD Sender: No OFD packet to send [03:04:57]OFD Sender: No OFD packet to send [03:05:02]OFD Sender: No OFD packet to send [03:05:07]OFD Sender: No OFD packet to send [03:05:12]OFD Sender: No OFD packet to send [03:05:17]OFD Sender: No OFD packet to send [03:05:22]OFD Sender: No OFD packet to send [03:05:27]OFD Sender: No OFD packet to send [03:05:32]OFD Sender: No OFD packet to send [03:05:37]OFD Sender: No OFD packet to send [03:05:42]OFD Sender: No OFD packet to send [03:05:47]OFD Sender: No OFD packet to send [03:05:52]OFD Sender: No OFD packet to send [03:05:57]OFD Sender: No OFD packet to send [03:06:02]OFD Sender: No OFD packet to send [03:06:07]OFD Sender: No OFD packet to send [03:06:12]OFD Sender: No OFD packet to send [03:06:17]OFD Sender: No OFD packet to send [03:06:22]OFD Sender: No OFD packet to send [03:06:27]OFD Sender: No OFD packet to send [03:06:32]OFD Sender: No OFD packet to send [03:06:37]OFD Sender: No OFD packet to send [03:06:42]OFD Sender: No OFD packet to send [03:06:47]OFD Sender: No OFD packet to send [03:06:52]OFD Sender: No OFD packet to send [03:06:57]OFD Sender: No OFD packet to send [03:07:02]OFD Sender: No OFD packet to send [03:07:07]OFD Sender: No OFD packet to send [03:07:12]OFD Sender: No OFD packet to send [03:07:17]OFD Sender: No OFD packet to send [03:07:22]OFD Sender: No OFD packet to send [03:07:27]OFD Sender: No OFD packet to send [03:07:32]OFD Sender: No OFD packet to send [03:07:37]OFD Sender: No OFD packet to send [03:07:42]OFD Sender: No OFD packet to send [03:07:47]OFD Sender: No OFD packet to send [03:07:52]OFD Sender: No OFD packet to send [03:07:57]OFD Sender: No OFD packet to send [03:08:02]OFD Sender: No OFD packet to send [03:08:07]OFD Sender: No OFD packet to send [03:08:12]OFD Sender: No OFD packet to send [03:08:17]OFD Sender: No OFD packet to send [03:08:22]OFD Sender: No OFD packet to send [03:08:27]OFD Sender: No OFD packet to send [03:08:32]OFD Sender: No OFD packet to send [03:08:37]OFD Sender: No OFD packet to send [03:08:42]OFD Sender: No OFD packet to send [03:08:47]OFD Sender: No OFD packet to send [03:08:52]OFD Sender: No OFD packet to send [03:08:57]OFD Sender: No OFD packet to send [03:09:02]OFD Sender: No OFD packet to send [03:09:07]OFD Sender: No OFD packet to send [03:09:12]OFD Sender: No OFD packet to send [03:09:17]OFD Sender: No OFD packet to send [03:09:22]OFD Sender: No OFD packet to send [03:09:27]OFD Sender: No OFD packet to send [03:09:32]OFD Sender: No OFD packet to send [03:09:37]OFD Sender: No OFD packet to send [03:09:42]OFD Sender: No OFD packet to send [03:09:47]OFD Sender: No OFD packet to send [03:09:52]OFD Sender: No OFD packet to send [03:09:57]OFD Sender: No OFD packet to send [03:10:02]OFD Sender: No OFD packet to send [03:10:07]OFD Sender: No OFD packet to send [03:10:12]OFD Sender: No OFD packet to send [03:10:17]OFD Sender: No OFD packet to send [03:10:22]OFD Sender: No OFD packet to send [03:10:27]OFD Sender: No OFD packet to send [03:10:32]OFD Sender: No OFD packet to send [03:10:37]OFD Sender: No OFD packet to send [03:10:42]OFD Sender: No OFD packet to send [03:10:47]OFD Sender: No OFD packet to send [03:10:52]OFD Sender: No OFD packet to send [03:10:57]OFD Sender: No OFD packet to send [03:11:02]OFD Sender: No OFD packet to send [03:11:07]OFD Sender: No OFD packet to send [03:11:12]OFD Sender: No OFD packet to send [03:11:17]OFD Sender: No OFD packet to send [03:11:22]OFD Sender: No OFD packet to send [03:11:27]OFD Sender: No OFD packet to send [03:11:32]OFD Sender: No OFD packet to send [03:11:37]OFD Sender: No OFD packet to send [03:11:42]OFD Sender: No OFD packet to send [03:11:47]OFD Sender: No OFD packet to send [03:11:52]OFD Sender: No OFD packet to send [03:11:57]OFD Sender: No OFD packet to send [03:12:02]OFD Sender: No OFD packet to send [03:12:07]OFD Sender: No OFD packet to send [03:12:12]OFD Sender: No OFD packet to send [03:12:17]OFD Sender: No OFD packet to send [03:12:22]OFD Sender: No OFD packet to send [03:12:27]OFD Sender: No OFD packet to send [03:12:32]OFD Sender: No OFD packet to send [03:12:37]OFD Sender: No OFD packet to send [03:12:42]OFD Sender: No OFD packet to send [03:12:47]OFD Sender: No OFD packet to send [03:12:52]OFD Sender: No OFD packet to send [03:12:57]OFD Sender: No OFD packet to send [03:13:02]OFD Sender: No OFD packet to send [03:13:07]OFD Sender: No OFD packet to send [03:13:12]OFD Sender: No OFD packet to send [03:13:17]OFD Sender: No OFD packet to send [03:13:22]OFD Sender: No OFD packet to send [03:13:27]OFD Sender: No OFD packet to send [03:13:32]OFD Sender: No OFD packet to send [03:13:37]OFD Sender: No OFD packet to send [03:13:42]OFD Sender: No OFD packet to send [03:13:47]OFD Sender: No OFD packet to send [03:13:52]OFD Sender: No OFD packet to send [03:13:57]OFD Sender: No OFD packet to send [03:14:02]OFD Sender: No OFD packet to send [03:14:07]OFD Sender: No OFD packet to send [03:14:12]OFD Sender: No OFD packet to send [03:14:17]OFD Sender: No OFD packet to send [03:14:22]OFD Sender: No OFD packet to send [03:14:27]OFD Sender: No OFD packet to send [03:14:32]OFD Sender: No OFD packet to send [03:14:37]OFD Sender: No OFD packet to send [03:14:42]OFD Sender: No OFD packet to send [03:14:47]OFD Sender: No OFD packet to send [03:14:52]OFD Sender: No OFD packet to send [03:14:57]OFD Sender: No OFD packet to send [03:15:02]OFD Sender: No OFD packet to send [03:15:07]OFD Sender: No OFD packet to send [03:15:12]OFD Sender: No OFD packet to send [03:15:17]OFD Sender: No OFD packet to send [03:15:22]OFD Sender: No OFD packet to send [03:15:27]OFD Sender: No OFD packet to send [03:15:32]OFD Sender: No OFD packet to send [03:15:37]OFD Sender: No OFD packet to send [03:15:42]OFD Sender: No OFD packet to send [03:15:47]OFD Sender: No OFD packet to send [03:15:52]OFD Sender: No OFD packet to send [03:15:57]OFD Sender: No OFD packet to send [03:16:02]OFD Sender: No OFD packet to send [03:16:07]OFD Sender: No OFD packet to send [03:16:12]OFD Sender: No OFD packet to send [03:16:17]OFD Sender: No OFD packet to send [03:16:22]OFD Sender: No OFD packet to send [03:16:27]OFD Sender: No OFD packet to send [03:16:32]OFD Sender: No OFD packet to send [03:16:37]OFD Sender: No OFD packet to send [03:16:42]OFD Sender: No OFD packet to send [03:16:47]OFD Sender: No OFD packet to send [03:16:52]OFD Sender: No OFD packet to send [03:16:57]OFD Sender: No OFD packet to send [03:17:02]OFD Sender: No OFD packet to send [03:17:07]OFD Sender: No OFD packet to send [03:17:12]OFD Sender: No OFD packet to send [03:17:17]OFD Sender: No OFD packet to send [03:17:22]OFD Sender: No OFD packet to send [03:17:27]OFD Sender: No OFD packet to send [03:17:32]OFD Sender: No OFD packet to send [03:17:37]OFD Sender: No OFD packet to send [03:17:42]OFD Sender: No OFD packet to send [03:17:47]OFD Sender: No OFD packet to send [03:17:52]OFD Sender: No OFD packet to send [03:17:57]OFD Sender: No OFD packet to send [03:18:02]OFD Sender: No OFD packet to send [03:18:07]OFD Sender: No OFD packet to send [03:18:12]OFD Sender: No OFD packet to send [03:18:17]OFD Sender: No OFD packet to send [03:18:22]OFD Sender: No OFD packet to send [03:18:27]OFD Sender: No OFD packet to send [03:18:32]OFD Sender: No OFD packet to send [03:18:37]OFD Sender: No OFD packet to send [03:18:42]OFD Sender: No OFD packet to send [03:18:47]OFD Sender: No OFD packet to send [03:18:52]OFD Sender: No OFD packet to send [03:18:57]OFD Sender: No OFD packet to send [03:19:02]OFD Sender: No OFD packet to send [03:19:07]OFD Sender: No OFD packet to send [03:19:12]OFD Sender: No OFD packet to send [03:19:17]OFD Sender: No OFD packet to send [03:19:22]OFD Sender: No OFD packet to send [03:19:27]OFD Sender: No OFD packet to send [03:19:32]OFD Sender: No OFD packet to send [03:19:37]OFD Sender: No OFD packet to send [03:19:42]OFD Sender: No OFD packet to send [03:19:47]OFD Sender: No OFD packet to send [03:19:52]OFD Sender: No OFD packet to send [03:19:57]OFD Sender: No OFD packet to send [03:20:02]OFD Sender: No OFD packet to send [03:20:07]OFD Sender: No OFD packet to send [03:20:12]OFD Sender: No OFD packet to send [03:20:17]OFD Sender: No OFD packet to send [03:20:22]OFD Sender: No OFD packet to send [03:20:27]OFD Sender: No OFD packet to send [03:20:32]OFD Sender: No OFD packet to send [03:20:37]OFD Sender: No OFD packet to send [03:20:42]OFD Sender: No OFD packet to send [03:20:47]OFD Sender: No OFD packet to send [03:20:52]OFD Sender: No OFD packet to send [03:20:57]OFD Sender: No OFD packet to send [03:21:02]OFD Sender: No OFD packet to send [03:21:07]OFD Sender: No OFD packet to send [03:21:12]OFD Sender: No OFD packet to send [03:21:17]OFD Sender: No OFD packet to send [03:21:22]OFD Sender: No OFD packet to send [03:21:27]OFD Sender: No OFD packet to send [03:21:32]OFD Sender: No OFD packet to send [03:21:37]OFD Sender: No OFD packet to send [03:21:42]OFD Sender: No OFD packet to send [03:21:47]OFD Sender: No OFD packet to send [03:21:52]OFD Sender: No OFD packet to send [03:21:57]OFD Sender: No OFD packet to send [03:22:02]OFD Sender: No OFD packet to send [03:22:07]OFD Sender: No OFD packet to send [03:22:12]OFD Sender: No OFD packet to send [03:22:17]OFD Sender: No OFD packet to send [03:22:22]OFD Sender: No OFD packet to send [03:22:27]OFD Sender: No OFD packet to send [03:22:32]OFD Sender: No OFD packet to send [03:22:37]OFD Sender: No OFD packet to send [03:22:42]OFD Sender: No OFD packet to send [03:22:47]OFD Sender: No OFD packet to send [03:22:52]OFD Sender: No OFD packet to send [03:22:57]OFD Sender: No OFD packet to send [03:23:02]OFD Sender: No OFD packet to send [03:23:07]OFD Sender: No OFD packet to send [03:23:12]OFD Sender: No OFD packet to send [03:23:17]OFD Sender: No OFD packet to send [03:23:22]OFD Sender: No OFD packet to send [03:23:27]OFD Sender: No OFD packet to send [03:23:32]OFD Sender: No OFD packet to send [03:23:37]OFD Sender: No OFD packet to send [03:23:42]OFD Sender: No OFD packet to send [03:23:47]OFD Sender: No OFD packet to send [03:23:52]OFD Sender: No OFD packet to send [03:23:57]OFD Sender: No OFD packet to send [03:24:02]OFD Sender: No OFD packet to send [03:24:07]OFD Sender: No OFD packet to send [03:24:12]OFD Sender: No OFD packet to send [03:24:17]OFD Sender: No OFD packet to send [03:24:22]OFD Sender: No OFD packet to send [03:24:27]OFD Sender: No OFD packet to send [03:24:32]OFD Sender: No OFD packet to send [03:24:37]OFD Sender: No OFD packet to send [03:24:42]OFD Sender: No OFD packet to send [03:24:47]OFD Sender: No OFD packet to send [03:24:52]OFD Sender: No OFD packet to send [03:24:57]OFD Sender: No OFD packet to send [03:25:02]OFD Sender: No OFD packet to send [03:25:07]OFD Sender: No OFD packet to send [03:25:13]OFD Sender: No OFD packet to send [03:25:18]OFD Sender: No OFD packet to send [03:25:23]OFD Sender: No OFD packet to send [03:25:28]OFD Sender: No OFD packet to send [03:25:33]OFD Sender: No OFD packet to send [03:25:38]OFD Sender: No OFD packet to send [03:25:43]OFD Sender: No OFD packet to send [03:25:48]OFD Sender: No OFD packet to send [03:25:53]OFD Sender: No OFD packet to send [03:25:58]OFD Sender: No OFD packet to send [03:26:03]OFD Sender: No OFD packet to send [03:26:08]OFD Sender: No OFD packet to send [03:26:13]OFD Sender: No OFD packet to send [03:26:18]OFD Sender: No OFD packet to send [03:26:23]OFD Sender: No OFD packet to send [03:26:28]OFD Sender: No OFD packet to send [03:26:33]OFD Sender: No OFD packet to send [03:26:38]OFD Sender: No OFD packet to send [03:26:43]OFD Sender: No OFD packet to send [03:26:48]OFD Sender: No OFD packet to send [03:26:53]OFD Sender: No OFD packet to send [03:26:58]OFD Sender: No OFD packet to send [03:27:03]OFD Sender: No OFD packet to send [03:27:08]OFD Sender: No OFD packet to send [03:27:13]OFD Sender: No OFD packet to send [03:27:18]OFD Sender: No OFD packet to send [03:27:23]OFD Sender: No OFD packet to send [03:27:28]OFD Sender: No OFD packet to send [03:27:33]OFD Sender: No OFD packet to send [03:27:38]OFD Sender: No OFD packet to send [03:27:43]OFD Sender: No OFD packet to send [03:27:48]OFD Sender: No OFD packet to send [03:27:53]OFD Sender: No OFD packet to send [03:27:58]OFD Sender: No OFD packet to send [03:28:03]OFD Sender: No OFD packet to send [03:28:08]OFD Sender: No OFD packet to send [03:28:13]OFD Sender: No OFD packet to send [03:28:18]OFD Sender: No OFD packet to send [03:28:23]OFD Sender: No OFD packet to send [03:28:28]OFD Sender: No OFD packet to send [03:28:33]OFD Sender: No OFD packet to send [03:28:38]OFD Sender: No OFD packet to send [03:28:43]OFD Sender: No OFD packet to send [03:28:48]OFD Sender: No OFD packet to send [03:28:53]OFD Sender: No OFD packet to send [03:28:58]OFD Sender: No OFD packet to send [03:29:03]OFD Sender: No OFD packet to send [03:29:08]OFD Sender: No OFD packet to send [03:29:13]OFD Sender: No OFD packet to send [03:29:18]OFD Sender: No OFD packet to send [03:29:23]OFD Sender: No OFD packet to send [03:29:28]OFD Sender: No OFD packet to send [03:29:33]OFD Sender: No OFD packet to send [03:29:38]OFD Sender: No OFD packet to send [03:29:43]OFD Sender: No OFD packet to send [03:29:48]OFD Sender: No OFD packet to send [03:29:53]OFD Sender: No OFD packet to send [03:29:58]OFD Sender: No OFD packet to send [03:30:03]OFD Sender: No OFD packet to send [03:30:08]OFD Sender: No OFD packet to send [03:30:13]OFD Sender: No OFD packet to send [03:30:18]OFD Sender: No OFD packet to send [03:30:23]OFD Sender: No OFD packet to send [03:30:28]OFD Sender: No OFD packet to send [03:30:33]OFD Sender: No OFD packet to send [03:30:38]OFD Sender: No OFD packet to send [03:30:43]OFD Sender: No OFD packet to send [03:30:48]OFD Sender: No OFD packet to send [03:30:53]OFD Sender: No OFD packet to send [03:30:58]OFD Sender: No OFD packet to send [03:31:03]OFD Sender: No OFD packet to send [03:31:08]OFD Sender: No OFD packet to send [03:31:13]OFD Sender: No OFD packet to send [03:31:18]OFD Sender: No OFD packet to send [03:31:23]OFD Sender: No OFD packet to send [03:31:28]OFD Sender: No OFD packet to send [03:31:33]OFD Sender: No OFD packet to send [03:31:38]OFD Sender: No OFD packet to send [03:31:43]OFD Sender: No OFD packet to send [03:31:48]OFD Sender: No OFD packet to send [03:31:53]OFD Sender: No OFD packet to send [03:31:58]OFD Sender: No OFD packet to send [03:32:03]OFD Sender: No OFD packet to send [03:32:08]OFD Sender: No OFD packet to send [03:32:13]OFD Sender: No OFD packet to send [03:32:18]OFD Sender: No OFD packet to send [03:32:23]OFD Sender: No OFD packet to send [03:32:28]OFD Sender: No OFD packet to send [03:32:33]OFD Sender: No OFD packet to send [03:32:38]OFD Sender: No OFD packet to send [03:32:43]OFD Sender: No OFD packet to send [03:32:48]OFD Sender: No OFD packet to send [03:32:53]OFD Sender: No OFD packet to send [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: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: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: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: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:03]OFD Sender: No OFD packet to send [03:36:08]OFD Sender: No OFD packet to send [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: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: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:03]OFD Sender: No OFD packet to send [03:38:08]OFD Sender: No OFD packet to send [03:38:13]OFD Sender: No OFD packet to send [03:38:18]OFD Sender: No OFD packet to send [03:38:23]OFD Sender: No OFD packet to send [03:38:28]OFD Sender: No OFD packet to send [03:38:33]OFD Sender: No OFD packet to send [03:38:38]OFD Sender: No OFD packet to send [03:38:43]OFD Sender: No OFD packet to send [03:38:48]OFD Sender: No OFD packet to send [03:38:53]OFD Sender: No OFD packet to send [03:38:58]OFD Sender: No OFD packet to send [03:39:03]OFD Sender: No OFD packet to send [03:39:08]OFD Sender: No OFD packet to send [03:39:13]OFD Sender: No OFD packet to send [03:39:18]OFD Sender: No OFD packet to send [03:39:23]OFD Sender: No OFD packet to send [03:39:28]OFD Sender: No OFD packet to send [03:39:33]OFD Sender: No OFD packet to send [03:39:38]OFD Sender: No OFD packet to send [03:39:43]OFD Sender: No OFD packet to send [03:39:48]OFD Sender: No OFD packet to send [03:39:53]OFD Sender: No OFD packet to send [03:39:58]OFD Sender: No OFD packet to send [03:40:03]OFD Sender: No OFD packet to send [03:40:08]OFD Sender: No OFD packet to send [03:40:13]OFD Sender: No OFD packet to send [03:40:18]OFD Sender: No OFD packet to send [03:40:23]OFD Sender: No OFD packet to send [03:40:28]OFD Sender: No OFD packet to send [03:40:33]OFD Sender: No OFD packet to send [03:40:38]OFD Sender: No OFD packet to send [03:40:43]OFD Sender: No OFD packet to send [03:40:48]OFD Sender: No OFD packet to send [03:40:53]OFD Sender: No OFD packet to send [03:40:58]OFD Sender: No OFD packet to send [03:41:03]OFD Sender: No OFD packet to send [03:41:08]OFD Sender: No OFD packet to send [03:41:13]OFD Sender: No OFD packet to send [03:41:18]OFD Sender: No OFD packet to send [03:41:23]OFD Sender: No OFD packet to send [03:41:28]OFD Sender: No OFD packet to send [03:41:33]OFD Sender: No OFD packet to send [03:41:38]OFD Sender: No OFD packet to send [03:41:43]OFD Sender: No OFD packet to send [03:41:48]OFD Sender: No OFD packet to send [03:41:53]OFD Sender: No OFD packet to send [03:41:58]OFD Sender: No OFD packet to send [03:42:03]OFD Sender: No OFD packet to send [03:42:08]OFD Sender: No OFD packet to send [03:42:13]OFD Sender: No OFD packet to send [03:42:18]OFD Sender: No OFD packet to send [03:42:23]OFD Sender: No OFD packet to send [03:42:28]OFD Sender: No OFD packet to send [03:42:33]OFD Sender: No OFD packet to send [03:42:38]OFD Sender: No OFD packet to send [03:42:43]OFD Sender: No OFD packet to send [03:42:48]OFD Sender: No OFD packet to send [03:42:53]OFD Sender: No OFD packet to send [03:42:58]OFD Sender: No OFD packet to send [03:43:03]OFD Sender: No OFD packet to send [03:43:08]OFD Sender: No OFD packet to send [03:43:13]OFD Sender: No OFD packet to send [03:43:18]OFD Sender: No OFD packet to send [03:43:23]OFD Sender: No OFD packet to send [03:43:28]OFD Sender: No OFD packet to send [03:43:33]OFD Sender: No OFD packet to send [03:43:38]OFD Sender: No OFD packet to send [03:43:43]OFD Sender: No OFD packet to send [03:43:48]OFD Sender: No OFD packet to send [03:43:53]OFD Sender: No OFD packet to send [03:43:58]OFD Sender: No OFD packet to send [03:44:03]OFD Sender: No OFD packet to send [03:44:08]OFD Sender: No OFD packet to send [03:44:13]OFD Sender: No OFD packet to send [03:44:18]OFD Sender: No OFD packet to send [03:44:23]OFD Sender: No OFD packet to send [03:44:28]OFD Sender: No OFD packet to send [03:44:33]OFD Sender: No OFD packet to send [03:44:38]OFD Sender: No OFD packet to send [03:44:43]OFD Sender: No OFD packet to send [03:44:48]OFD Sender: No OFD packet to send [03:44:53]OFD Sender: No OFD packet to send [03:44:58]OFD Sender: No OFD packet to send [03:45:03]OFD Sender: No OFD packet to send [03:45:08]OFD Sender: No OFD packet to send [03:45:13]OFD Sender: No OFD packet to send [03:45:18]OFD Sender: No OFD packet to send [03:45:23]OFD Sender: No OFD packet to send [03:45:28]OFD Sender: No OFD packet to send [03:45:33]OFD Sender: No OFD packet to send [03:45:38]OFD Sender: No OFD packet to send [03:45:43]OFD Sender: No OFD packet to send [03:45:48]OFD Sender: No OFD packet to send [03:45:53]OFD Sender: No OFD packet to send [03:45:59]OFD Sender: No OFD packet to send [03:46:04]OFD Sender: No OFD packet to send [03:46:09]OFD Sender: No OFD packet to send [03:46:14]OFD Sender: No OFD packet to send [03:46:19]OFD Sender: No OFD packet to send [03:46:24]OFD Sender: No OFD packet to send [03:46:29]OFD Sender: No OFD packet to send [03:46:34]OFD Sender: No OFD packet to send [03:46:39]OFD Sender: No OFD packet to send [03:46:44]OFD Sender: No OFD packet to send [03:46:49]OFD Sender: No OFD packet to send [03:46:54]OFD Sender: No OFD packet to send [03:46:59]OFD Sender: No OFD packet to send [03:47:04]OFD Sender: No OFD packet to send [03:47:09]OFD Sender: No OFD packet to send [03:47:14]OFD Sender: No OFD packet to send [03:47:19]OFD Sender: No OFD packet to send [03:47:24]OFD Sender: No OFD packet to send [03:47:29]OFD Sender: No OFD packet to send [03:47:34]OFD Sender: No OFD packet to send [03:47:39]OFD Sender: No OFD packet to send [03:47:44]OFD Sender: No OFD packet to send [03:47:49]OFD Sender: No OFD packet to send [03:47:54]OFD Sender: No OFD packet to send [03:47:59]OFD Sender: No OFD packet to send [03:48:04]OFD Sender: No OFD packet to send [03:48:09]OFD Sender: No OFD packet to send [03:48:14]OFD Sender: No OFD packet to send [03:48:19]OFD Sender: No OFD packet to send [03:48:24]OFD Sender: No OFD packet to send [03:48:29]OFD Sender: No OFD packet to send [03:48:34]OFD Sender: No OFD packet to send [03:48:39]OFD Sender: No OFD packet to send [03:48:44]OFD Sender: No OFD packet to send [03:48:49]OFD Sender: No OFD packet to send [03:48:54]OFD Sender: No OFD packet to send [03:48:59]OFD Sender: No OFD packet to send [03:49:04]OFD Sender: No OFD packet to send [03:49:09]OFD Sender: No OFD packet to send [03:49:14]OFD Sender: No OFD packet to send [03:49:19]OFD Sender: No OFD packet to send [03:49:24]OFD Sender: No OFD packet to send [03:49:29]OFD Sender: No OFD packet to send [03:49:34]OFD Sender: No OFD packet to send [03:49:39]OFD Sender: No OFD packet to send [03:49:44]OFD Sender: No OFD packet to send [03:49:49]OFD Sender: No OFD packet to send [03:49:54]OFD Sender: No OFD packet to send [03:49:59]OFD Sender: No OFD packet to send [03:50:04]OFD Sender: No OFD packet to send [03:50:09]OFD Sender: No OFD packet to send [03:50:14]OFD Sender: No OFD packet to send [03:50:19]OFD Sender: No OFD packet to send [03:50:24]OFD Sender: No OFD packet to send [03:50:29]OFD Sender: No OFD packet to send [03:50:34]OFD Sender: No OFD packet to send [03:50:39]OFD Sender: No OFD packet to send [03:50:44]OFD Sender: No OFD packet to send [03:50:49]OFD Sender: No OFD packet to send [03:50:54]OFD Sender: No OFD packet to send [03:50:59]OFD Sender: No OFD packet to send [03:51:04]OFD Sender: No OFD packet to send [03:51:09]OFD Sender: No OFD packet to send [03:51:14]OFD Sender: No OFD packet to send [03:51:19]OFD Sender: No OFD packet to send [03:51:24]OFD Sender: No OFD packet to send [03:51:29]OFD Sender: No OFD packet to send [03:51:34]OFD Sender: No OFD packet to send [03:51:39]OFD Sender: No OFD packet to send [03:51:44]OFD Sender: No OFD packet to send [03:51:49]OFD Sender: No OFD packet to send [03:51:54]OFD Sender: No OFD packet to send [03:51:59]OFD Sender: No OFD packet to send [03:52:04]OFD Sender: No OFD packet to send [03:52:09]OFD Sender: No OFD packet to send [03:52:14]OFD Sender: No OFD packet to send [03:52:19]OFD Sender: No OFD packet to send [03:52:24]OFD Sender: No OFD packet to send [03:52:29]OFD Sender: No OFD packet to send [03:52:34]OFD Sender: No OFD packet to send [03:52:39]OFD Sender: No OFD packet to send [03:52:44]OFD Sender: No OFD packet to send [03:52:49]OFD Sender: No OFD packet to send [03:52:54]OFD Sender: No OFD packet to send [03:52:59]OFD Sender: No OFD packet to send [03:53:04]OFD Sender: No OFD packet to send [03:53:09]OFD Sender: No OFD packet to send [03:53:14]OFD Sender: No OFD packet to send [03:53:19]OFD Sender: No OFD packet to send [03:53:24]OFD Sender: No OFD packet to send [03:53:29]OFD Sender: No OFD packet to send [03:53:34]OFD Sender: No OFD packet to send [03:53:39]OFD Sender: No OFD packet to send [03:53:44]OFD Sender: No OFD packet to send [03:53:49]OFD Sender: No OFD packet to send [03:53:54]OFD Sender: No OFD packet to send [03:53:59]OFD Sender: No OFD packet to send [03:54:04]OFD Sender: No OFD packet to send [03:54:09]OFD Sender: No OFD packet to send [03:54:14]OFD Sender: No OFD packet to send [03:54:19]OFD Sender: No OFD packet to send [03:54:24]OFD Sender: No OFD packet to send [03:54:29]OFD Sender: No OFD packet to send [03:54:34]OFD Sender: No OFD packet to send [03:54:39]OFD Sender: No OFD packet to send [03:54:44]OFD Sender: No OFD packet to send [03:54:49]OFD Sender: No OFD packet to send [03:54:54]OFD Sender: No OFD packet to send [03:54:59]OFD Sender: No OFD packet to send [03:55:04]OFD Sender: No OFD packet to send [03:55:09]OFD Sender: No OFD packet to send [03:55:14]OFD Sender: No OFD packet to send [03:55:19]OFD Sender: No OFD packet to send [03:55:24]OFD Sender: No OFD packet to send [03:55:29]OFD Sender: No OFD packet to send [03:55:34]OFD Sender: No OFD packet to send [03:55:39]OFD Sender: No OFD packet to send [03:55:44]OFD Sender: No OFD packet to send [03:55:49]OFD Sender: No OFD packet to send [03:55:54]OFD Sender: No OFD packet to send [03:55:59]OFD Sender: No OFD packet to send [03:56:04]OFD Sender: No OFD packet to send [03:56:09]OFD Sender: No OFD packet to send [03:56:14]OFD Sender: No OFD packet to send [03:56:19]OFD Sender: No OFD packet to send [03:56:24]OFD Sender: No OFD packet to send [03:56:29]OFD Sender: No OFD packet to send [03:56:34]OFD Sender: No OFD packet to send [03:56:39]OFD Sender: No OFD packet to send [03:56:44]OFD Sender: No OFD packet to send [03:56:49]OFD Sender: No OFD packet to send [03:56:54]OFD Sender: No OFD packet to send [03:56:59]OFD Sender: No OFD packet to send [03:57:04]OFD Sender: No OFD packet to send [03:57:09]OFD Sender: No OFD packet to send [03:57:14]OFD Sender: No OFD packet to send [03:57:19]OFD Sender: No OFD packet to send [03:57:24]OFD Sender: No OFD packet to send [03:57:29]OFD Sender: No OFD packet to send [03:57:34]OFD Sender: No OFD packet to send [03:57:39]OFD Sender: No OFD packet to send [03:57:44]OFD Sender: No OFD packet to send [03:57:49]OFD Sender: No OFD packet to send [03:57:54]OFD Sender: No OFD packet to send [03:57:59]OFD Sender: No OFD packet to send [03:58:04]OFD Sender: No OFD packet to send [03:58:09]OFD Sender: No OFD packet to send [03:58:14]OFD Sender: No OFD packet to send [03:58:19]OFD Sender: No OFD packet to send [03:58:24]OFD Sender: No OFD packet to send [03:58:29]OFD Sender: No OFD packet to send [03:58:34]OFD Sender: No OFD packet to send [03:58:39]OFD Sender: No OFD packet to send [03:58:44]OFD Sender: No OFD packet to send [03:58:49]OFD Sender: No OFD packet to send [03:58:54]OFD Sender: No OFD packet to send [03:58:59]OFD Sender: No OFD packet to send [03:59:04]OFD Sender: No OFD packet to send [03:59:09]OFD Sender: No OFD packet to send [03:59:14]OFD Sender: No OFD packet to send [03:59:19]OFD Sender: No OFD packet to send [03:59:24]OFD Sender: No OFD packet to send [03:59:29]OFD Sender: No OFD packet to send [03:59:34]OFD Sender: No OFD packet to send [03:59:39]OFD Sender: No OFD packet to send [03:59:44]OFD Sender: No OFD packet to send [03:59:49]OFD Sender: No OFD packet to send [03:59:54]OFD Sender: No OFD packet to send [03:59:59]OFD Sender: No OFD packet to send [04:00:04]OFD Sender: No OFD packet to send [04:00:09]OFD Sender: No OFD packet to send [04:00:14]OFD Sender: No OFD packet to send [04:00:19]OFD Sender: No OFD packet to send [04:00:24]OFD Sender: No OFD packet to send [04:00:29]OFD Sender: No OFD packet to send [04:00:34]OFD Sender: No OFD packet to send [04:00:39]OFD Sender: No OFD packet to send [04:00:44]OFD Sender: No OFD packet to send [04:00:49]OFD Sender: No OFD packet to send [04:00:54]OFD Sender: No OFD packet to send [04:00:59]OFD Sender: No OFD packet to send [04:01:04]OFD Sender: No OFD packet to send [04:01:09]OFD Sender: No OFD packet to send [04:01:14]OFD Sender: No OFD packet to send [04:01:19]OFD Sender: No OFD packet to send [04:01:24]OFD Sender: No OFD packet to send [04:01:29]OFD Sender: No OFD packet to send [04:01:34]OFD Sender: No OFD packet to send [04:01:39]OFD Sender: No OFD packet to send [04:01:44]OFD Sender: No OFD packet to send [04:01:49]OFD Sender: No OFD packet to send [04:01:54]OFD Sender: No OFD packet to send [04:01:59]OFD Sender: No OFD packet to send [04:02:04]OFD Sender: No OFD packet to send [04:02:09]OFD Sender: No OFD packet to send [04:02:14]OFD Sender: No OFD packet to send [04:02:19]OFD Sender: No OFD packet to send [04:02:24]OFD Sender: No OFD packet to send [04:02:29]OFD Sender: No OFD packet to send [04:02:34]OFD Sender: No OFD packet to send [04:02:39]OFD Sender: No OFD packet to send [04:02:44]OFD Sender: No OFD packet to send [04:02:49]OFD Sender: No OFD packet to send [04:02:54]OFD Sender: No OFD packet to send [04:02:59]OFD Sender: No OFD packet to send [04:03:04]OFD Sender: No OFD packet to send [04:03:09]OFD Sender: No OFD packet to send [04:03:14]OFD Sender: No OFD packet to send [04:03:19]OFD Sender: No OFD packet to send [04:03:24]OFD Sender: No OFD packet to send [04:03:29]OFD Sender: No OFD packet to send [04:03:34]OFD Sender: No OFD packet to send [04:03:39]OFD Sender: No OFD packet to send [04:03:44]OFD Sender: No OFD packet to send [04:03:49]OFD Sender: No OFD packet to send [04:03:54]OFD Sender: No OFD packet to send [04:03:59]OFD Sender: No OFD packet to send [04:04:04]OFD Sender: No OFD packet to send [04:04:09]OFD Sender: No OFD packet to send [04:04:14]OFD Sender: No OFD packet to send [04:04:19]OFD Sender: No OFD packet to send [04:04:24]OFD Sender: No OFD packet to send [04:04:29]OFD Sender: No OFD packet to send [04:04:34]OFD Sender: No OFD packet to send [04:04:39]OFD Sender: No OFD packet to send [04:04:44]OFD Sender: No OFD packet to send [04:04:49]OFD Sender: No OFD packet to send [04:04:54]OFD Sender: No OFD packet to send [04:04:59]OFD Sender: No OFD packet to send [04:05:04]OFD Sender: No OFD packet to send [04:05:09]OFD Sender: No OFD packet to send [04:05:14]OFD Sender: No OFD packet to send [04:05:19]OFD Sender: No OFD packet to send [04:05:24]OFD Sender: No OFD packet to send [04:05:29]OFD Sender: No OFD packet to send [04:05:34]OFD Sender: No OFD packet to send [04:05:37]int [04:05:37]Write to MH i2c: 01 00 00 22 42 64 [04:05:37]*** FLAG_PRN_KEY set [04:05:37]Write i2c OK [04:05:37]MH_I2C_Read... [04:05:37]Read from MH i2c: 01 [04:05:37]MH_I2C_Read... [04:05:37]Read from MH i2c: 01 07 00 [04:05:37]MH_I2C_Read... [04:05:37]Read from MH i2c: 01 07 00 22 42 00 08 00 00 00 FF 0F 81 [04:05:37]state=0 [04:05:37]Key pressed [04:05:37]Feed [04:05:37]Write to MH i2c: D8 00 00 23 42 3C [04:05:37]Write i2c OK [04:05:37]MH_I2C_Read... [04:05:37]Read from MH i2c: D8 [04:05:37]MH_I2C_Read... [04:05:37]Read from MH i2c: D8 01 00 [04:05:37]MH_I2C_Read... [04:05:37]Read from MH i2c: D8 01 00 23 42 00 3D [04:05:37]int [04:05:37]Write to MH i2c: 01 00 00 24 42 66 [04:05:37]Write i2c OK [04:05:37]MH_I2C_Read... [04:05:37]Read from MH i2c: 01 [04:05:37]MH_I2C_Read... [04:05:37]Read from MH i2c: 01 07 00 [04:05:37]MH_I2C_Read... [04:05:37]Read from MH i2c: 01 07 00 24 42 00 48 00 00 00 3D 00 F2 [04:05:37]state=2 [04:05:37]Key pressed [04:05:37]int [04:05:37]Write to MH i2c: 01 00 00 25 42 67 [04:05:37]*** FLAG_PRN_KEY reset [04:05:37]Write i2c OK [04:05:37]MH_I2C_Read... [04:05:37]Read from MH i2c: 01 [04:05:37]MH_I2C_Read... [04:05:37]Read from MH i2c: 01 07 00 [04:05:37]MH_I2C_Read... [04:05:37]Read from MH i2c: 01 07 00 25 42 00 00 00 00 00 F6 0F 73 [04:05:37]state=2 [04:05:37]Stop feed [04:05:39]OFD Sender: No OFD packet to send [04:05:44]OFD Sender: No OFD packet to send [04:05:49]OFD Sender: No OFD packet to send [04:05:54]OFD Sender: No OFD packet to send [04:05:59]OFD Sender: No OFD packet to send [04:06:04]OFD Sender: No OFD packet to send [04:06:09]OFD Sender: No OFD packet to send [04:06:14]OFD Sender: No OFD packet to send [04:06:19]OFD Sender: No OFD packet to send [04:06:24]OFD Sender: No OFD packet to send [04:06:29]OFD Sender: No OFD packet to send [04:06:34]OFD Sender: No OFD packet to send [04:06:39]OFD Sender: No OFD packet to send [04:06:45]OFD Sender: No OFD packet to send [04:06:50]OFD Sender: No OFD packet to send [04:06:55]OFD Sender: No OFD packet to send [04:07:00]OFD Sender: No OFD packet to send [04:07:05]OFD Sender: No OFD packet to send [04:07:10]OFD Sender: No OFD packet to send [04:07:15]OFD Sender: No OFD packet to send [04:07:20]OFD Sender: No OFD packet to send [04:07:25]OFD Sender: No OFD packet to send [04:07:30]OFD Sender: No OFD packet to send [04:07:35]OFD Sender: No OFD packet to send [04:07:40]OFD Sender: No OFD packet to send [04:07:45]OFD Sender: No OFD packet to send [04:07:48]accept exits with 7 [04:07:48]New connection [04:07:48]New thread 3067014500 created [04:07:48]Thread 3067157860 joined [04:07:48]Waiting for new connection... [04:07:48] Sock 7.Parse request [04:07:48]Sock 7.Check first char [04:07:48]Sock 7.First char is OK [04:07:48]request: POST /json_proto HTTP/1.0 [04:07:48]Method: POST [04:07:48]URL: /json_proto [04:07:48]Method is POST - this is cgi request [04:07:48]url: /json_proto [04:07:48]query_string will be loaded in cgi processing [04:07:48]execute_cgi json_proto POST (null) [04:07:48]execute_cgi path=json_proto method=POST [04:07:48]POST find Content-Length [04:07:48]Host: 172.17.48.198:8080 [04:07:48]Content-Length: 1071 [04:07:48]Content-Type: application/json [04:07:48] [04:07:48]POST finish read [04:07:48]Found Content-Length = 1071 [04:07:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184140", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870002329951", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 1\u043B \u0437\u0435\u043B \u0447\u0430\u0439 Regular", "price" : 102.00, "quantity" : 1.000, "sum" : 102.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 237.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:07:48]execute_script... [04:07:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184140", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870002329951", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 1\u043B \u0437\u0435\u043B \u0447\u0430\u0439 Regular", "price" : 102.00, "quantity" : 1.000, "sum" : 102.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 237.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:07:48]POST & json_proto [04:07:48]process_json_proto [04:07:48]json parsed OK: [04:07:48]protocol is kg_v1.0 [04:07:48]action value=close_receipt [04:07:48]process_action close_receipt [04:07:48]cmd_close_receipt [04:07:48]MH_GetDate [04:07:48]Write to MH i2c: F0 00 00 26 42 57 [04:07:48]Write i2c OK [04:07:48]MH_I2C_Read... [04:07:48]Read from MH i2c: F0 [04:07:48]MH_I2C_Read... [04:07:48]Read from MH i2c: F0 09 00 [04:07:48]MH_I2C_Read... [04:07:48]Read from MH i2c: F0 09 00 26 42 00 9D F7 E3 65 CE C4 D4 65 07 [04:07:48]GetLastDocTimeStamp 1709432970 [04:07:48]current date 1709438877 [04:07:48]FM_GetShiftState [04:07:48]SAM_PROTO_GetShiftState [04:07:48]wFMCommunicate request_size=4 [04:07:48]MH_SAM_APDU [04:07:48]CAPDU: 80 13 01 00 [04:07:48]Write to MH i2c: E2 08 00 27 42 80 13 01 00 00 00 00 00 E6 [04:07:48]Write i2c OK [04:07:48]MH_I2C_Read... [04:07:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:07:48]Read from MH i2c: E2 [04:07:48]MH_I2C_Read... [04:07:48]Read from MH i2c: E2 0E 00 [04:07:48]MH_I2C_Read... [04:07:48]Read from MH i2c: E2 0E 00 27 42 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 1C [04:07:48]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [04:07:48]wFMCommunicate OK [04:07:48]SAM_PROTO_GetShiftState done [04:07:48]FM_GetShiftState done [04:07:48]opened in 1709425694 [04:07:48]opened+sec_in_day 1709512094 [04:07:48]quantity*price = 13500 [04:07:48]sum+1 = 13501 [04:07:48]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870002329951 Напиток Lipton IceTea 1л зел чай Regular 1.000 * 102.00 = 102.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 237.00 НСП 1% : 2.09 НДС 12% : 25.17 Наличными: 0.00 Безнал.: 237.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 13 03.03.2024 04:07 Смена: 331 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874796 ФД: 45176 ФПД: 130950905276275 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T040757&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45176&fm=130950905276275&tin=02508201610067®Number=0000000000090572&sum=23700 0 [04:07:49]StoreToDocumentArchive [04:07:49]shift 331 fd 45176 [04:07:49]save to /storage/0331/doc_00045176 [04:07:49]save last doc name /storage/0331/doc_00045176 to /storage/kkm_last_doc_name [04:07:49]save OK [04:07:49]Clear old archive folders... [04:07:49]ProcessDocumentItem done err = 0, tmpTLVsize=399 [04:07:49]tlvbuf is B6F8A800 [04:07:49]SAM_PROTO_ClearQueue [04:07:49]wFMCommunicate request_size=4 [04:07:49]MH_SAM_APDU [04:07:49]CAPDU: 80 09 00 00 [04:07:49]Write to MH i2c: E2 08 00 34 42 80 09 00 00 00 00 00 00 E8 [04:07:49]Write i2c OK [04:07:49]MH_I2C_Read... [04:07:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:07:49]Read from MH i2c: E2 [04:07:49]MH_I2C_Read... [04:07:49]Read from MH i2c: E2 03 00 [04:07:49]MH_I2C_Read... [04:07:49]Read from MH i2c: E2 03 00 34 42 00 90 00 EA [04:07:49]RAPDU: 90 00 [04:07:49]wFMCommunicate OK [04:07:49]SAM_PROTO_ClearQueue done [04:07:49]KKMCreateOFDPacket [04:07:49]OFDProtocolAddRootSTLVToBuf [04:07:49]FM_MakeSignedData [04:07:49]FM_MakeSignedData [04:07:49]SAM_PROTO_SignData [04:07:49]wFMCommunicate request_size=4 [04:07:49]MH_SAM_APDU [04:07:49]CAPDU: 80 0D 01 02 [04:07:49]Write to MH i2c: E2 08 00 35 42 80 0D 01 02 00 00 00 00 F0 [04:07:49]Write i2c OK [04:07:49]MH_I2C_Read... [04:07:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:07:49]Read from MH i2c: E2 [04:07:49]MH_I2C_Read... [04:07:49]Read from MH i2c: E2 03 00 [04:07:49]MH_I2C_Read... [04:07:49]Read from MH i2c: E2 03 00 35 42 00 90 00 EB [04:07:49]RAPDU: 90 00 [04:07:49]wFMCommunicate OK [04:07:49]wFMCommunicate request_size=255 [04:07:49]MH_SAM_APDU [04:07:49]CAPDU: 80 0D 02 02 FA 03 00 8F 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 35 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D8 27 00 00 00 00 13 04 06 00 D8 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 5C 00 00 00 00 EB 03 [04:07:49]Write to MH i2c: E2 02 01 36 42 80 0D 02 02 FA 00 03 00 8F 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 35 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D8 27 00 00 00 00 13 04 06 00 D8 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 5C 00 00 00 00 EB 03 00 00 9F [04:07:49]Write i2c OK [04:07:49]MH_I2C_Read... [04:07:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:07:49]Read from MH i2c: E2 [04:07:49]MH_I2C_Read... [04:07:49]Read from MH i2c: E2 03 00 [04:07:49]MH_I2C_Read... [04:07:49]Read from MH i2c: E2 03 00 36 42 00 90 00 EC [04:07:49]RAPDU: 90 00 [04:07:49]wFMCommunicate OK [04:07:49]wFMCommunicate request_size=158 [04:07:49]MH_SAM_APDU [04:07:49]CAPDU: 80 0D 02 02 99 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 94 5C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 9D F7 E3 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 78 B0 00 00 35 04 06 00 77 19 62 31 27 73 [04:07:49]Write to MH i2c: E2 A1 00 37 42 80 0D 02 02 99 00 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 94 5C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 9D F7 E3 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 78 B0 00 00 35 04 06 00 77 19 62 31 27 73 00 00 34 [04:07:49]Write i2c OK [04:07:49]MH_I2C_Read... [04:07:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:07:50]Read from MH i2c: E2 [04:07:50]MH_I2C_Read... [04:07:50]Read from MH i2c: E2 03 00 [04:07:50]MH_I2C_Read... [04:07:50]Read from MH i2c: E2 03 00 37 42 00 90 00 ED [04:07:50]RAPDU: 90 00 [04:07:50]wFMCommunicate OK [04:07:50]wFMCommunicate request_size=4 [04:07:50]MH_SAM_APDU [04:07:50]CAPDU: 80 0D 03 02 [04:07:50]Write to MH i2c: E2 08 00 38 42 80 0D 03 02 00 00 00 00 F5 [04:07:50]Write i2c OK [04:07:50]MH_I2C_Read... [04:07:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:07:50]OFD Sender: No OFD packet to send [04:07:50]Read from MH i2c: E2 [04:07:50]MH_I2C_Read... [04:07:50]Read from MH i2c: E2 0B 00 [04:07:50]MH_I2C_Read... [04:07:50]Read from MH i2c: E2 0B 00 38 42 00 D0 38 12 D3 50 DC BC A6 90 00 71 [04:07:50]RAPDU: D0 38 12 D3 50 DC BC A6 90 00 [04:07:50]wFMCommunicate OK [04:07:50]SAM_PROTO_SignData done [04:07:50]FM_MakeSignedData done [04:07:50]CreateOFDProtocolMessage [04:07:50]wFMCommunicate request_size=4 [04:07:50]MH_SAM_APDU [04:07:50]CAPDU: 80 11 00 00 [04:07:50]Write to MH i2c: E2 08 00 39 42 80 11 00 00 00 00 00 00 F5 [04:07:50]Write i2c OK [04:07:50]MH_I2C_Read... [04:07:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:07:50]Read from MH i2c: E2 [04:07:50]MH_I2C_Read... [04:07:50]Read from MH i2c: E2 17 00 [04:07:50]MH_I2C_Read... [04:07:50]Read from MH i2c: E2 17 00 39 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 51 [04:07:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [04:07:50]wFMCommunicate OK [04:07:50]CreateOFDProtocolMessage done [04:07:50]OFDSenderStorePacket 45176 [04:07:50]StoreOFDPacket docnum=45176 [04:07:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 A3 01 00 00 65 00 9B 01 4C 0C 5A 03 01 00 03 00 8F 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 35 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D8 27 00 00 00 00 13 04 06 00 D8 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 5C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 94 5C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 9D F7 E3 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 78 B0 00 00 35 04 06 00 77 19 62 31 27 73 D0 38 12 D3 50 DC BC A6 [04:07:50]CheckFolder [04:07:50]dirname=/storage/ofd_packets [04:07:50]CheckFolder done [04:07:50]ProducePacketName [04:07:50]name=ofd_packets/00045176 [04:07:50]NVStorageSaveData ofd_packets/00045176 [04:07:50]File name is /storage/ofd_packets/00045176 [04:07:50]Write 449 bytes [04:07:50]NVStorageSaveData done [04:07:50]OFDSenderStorePacket done [04:07:50]KKMCreateOFDPacket done [04:07:50]NVStorageSaveData kkm_last_timestamp [04:07:50]File name is /storage/kkm_last_timestamp [04:07:50]Write 4 bytes [04:07:50]NVStorageSaveData done [04:07:50]ExternCall_PrintAddStr [04:07:50]wPrintStart [04:07:50]Write to MH i2c: 01 00 00 3A 42 7C [04:07:50]OFD Sender: Processing packet 45176 [packets to send 17, broken 16] [04:07:50]ProducePacketName [04:07:50]name=ofd_packets/00045176 [04:07:50]OFD Sender: To server: pG, [04:07:50]CommunicateWithHost lk.salyk.kg:30040 [04:07:50]ConnectInit lk.salyk.kg [04:07:50]Write i2c OK [04:07:50]MH_I2C_Read... [04:07:50]Read from MH i2c: 01 [04:07:50]MH_I2C_Read... [04:07:50]Read from MH i2c: 01 07 00 [04:07:50]MH_I2C_Read... [04:07:50]Read from MH i2c: 01 07 00 3A 42 00 00 00 00 00 FF 0F 91 [04:07:50]RasterBufferAndPrint [04:07:50]line Счет N : (3)184140 [04:07:50]line ИНН: 02508201610067 [04:07:50]line Контрольно-Кассовый Чек [04:07:50]line ПРОДАЖА [04:07:50]line Товар: 48743570 [04:07:50]line Сигареты Winston XStyle Blue [04:07:50]line 1.000 * 135.00 [04:07:50]line = 135.00 [04:07:50]line НДС 12% НСП 1% [04:07:50]line > о реализуемом товаре [04:07:50]line Товар: 4870002329951 [04:07:50]line Напиток Lipton IceTea 1л зел чай Regular [04:07:50]line 1.000 * 102.00 [04:07:50]line = 102.00 [04:07:50]line НДС 12% НСП 1% [04:07:50]line > о реализуемом товаре [04:07:50]line ИТОГО: 237.00 [04:07:50]line НСП 1% : 2.09 [04:07:50]line НДС 12% : 25.17 [04:07:50]line Наличными: 0.00 [04:07:50]line Безнал.: 237.00 [04:07:50]line Место: АЗС № 25 "Партнер Нефть" [04:07:50]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [04:07:50]line СНО: Общий режим [04:07:50]line Чек 13 03.03.2024 04:07 [04:07:50]line Смена: 331 ФФД: 1.0 [04:07:50]line ЗНМ: 0300000013 [04:07:50]line РНМ: 0000000000090572 [04:07:50]line Версия ККМ: 001 [04:07:50]line Платежная система: О! деньги [04:07:50]line ФМ: 0000000000874796 [04:07:50]line ФД: 45176 [04:07:50]line ФПД: 130950905276275 [04:07:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T040757&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45176&fm=130950905276275&tin=02508201610067®Number=0000000000090572&sum=23700 [04:07:50]line 0 [04:07:50]written 0, free lines is 4095 [04:07:50]Connected sock=10 [04:07:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 A3 01 00 00 65 00 9B 01 4C 0C 5A 03 01 00 03 00 8F 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 35 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D8 27 00 00 00 00 13 04 06 00 D8 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 5C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 94 5C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 9D F7 E3 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 78 B0 00 00 35 04 06 00 77 19 62 31 27 73 D0 38 12 D3 50 DC BC A6 [04:07:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 4C BA 47 00 3B 91 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 78 B0 00 00 F4 03 04 00 64 A3 E3 65 B6 04 01 00 00 78 CB 8C 8A B3 8E 31 DB [04:07:50]CommunicateWithHost err = 0 [04:07:50]CheckOFDResponse [04:07:50]1017 (14) - 77093643461234 [04:07:50]1041 (16) - 0000000000874796 [04:07:50]1040 (4) - 45176 [04:07:50]1012 (4) - 02.03.2024 22:08 [04:07:50]1206 (1) - 0 [04:07:50]OFD Sender: Remove packet 45176 [04:07:50]ProducePacketName [04:07:50]name=ofd_packets/00045176 [04:07:50]NVStorageDeleteData [04:07:51]Write to MH i2c: 01 00 00 6B 42 AD [04:07:51]Write i2c OK [04:07:51]MH_I2C_Read... [04:07:51]Read from MH i2c: 01 [04:07:51]MH_I2C_Read... [04:07:51]Read from MH i2c: 01 07 00 [04:07:51]MH_I2C_Read... [04:07:51]Read from MH i2c: 01 07 00 6B 42 00 00 00 00 00 87 0C 47 [04:07:51]RasterBufferAndPrint [04:07:51]line [04:07:51]line [04:07:51]line [04:07:51]line [04:07:51]line [04:07:51]written 0, free lines is 3213 [04:07:51]MH_Cut [04:07:51]Write to MH i2c: D1 01 00 72 42 01 86 [04:07:51]Write i2c OK [04:07:51]MH_I2C_Read... [04:07:51]Read from MH i2c: D1 [04:07:51]MH_I2C_Read... [04:07:51]Read from MH i2c: D1 01 00 [04:07:51]MH_I2C_Read... [04:07:51]Read from MH i2c: D1 01 00 72 42 00 85 [04:07:51]Write to MH i2c: 01 00 00 73 42 B5 [04:07:51]Write i2c OK [04:07:51]MH_I2C_Read... [04:07:51]OFD Sender: No OFD packet to send [04:07:51]*** Cut start [04:07:51]*** Purtial cut [04:07:51]*** Stage 1: CUTSNS_PIN = 1 [04:07:53]Read from MH i2c: 01 [04:07:53]MH_I2C_Read... [04:07:53]*** Stop cut motor [04:07:53]*** Cut end [04:07:53]Read from MH i2c: 01 07 00 [04:07:53]MH_I2C_Read... [04:07:53]Read from MH i2c: 01 07 00 73 42 00 00 00 00 00 FF 0F CA [04:07:53]process_action close_receipt done [04:07:53]requested_data is exist [04:07:53]produce_requested_data [04:07:53]requested_item fm.sn is exist - process it [04:07:53]wFMCommunicate request_size=4 [04:07:53]MH_SAM_APDU [04:07:53]CAPDU: 80 11 00 00 [04:07:53]Write to MH i2c: E2 08 00 74 42 80 11 00 00 00 00 00 00 30 [04:07:53]Write i2c OK [04:07:53]MH_I2C_Read... [04:07:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:07:53]Read from MH i2c: E2 [04:07:53]MH_I2C_Read... [04:07:53]Read from MH i2c: E2 17 00 [04:07:53]MH_I2C_Read... [04:07:53]Read from MH i2c: E2 17 00 74 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 8C [04:07:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [04:07:53]wFMCommunicate OK [04:07:53]requested_item fd.num is exist - process it [04:07:53]SAM_PROTO_GetFieldsCounters [04:07:53]wFMCommunicate request_size=4 [04:07:53]MH_SAM_APDU [04:07:53]CAPDU: 80 13 00 00 [04:07:53]Write to MH i2c: E2 08 00 75 42 80 13 00 00 00 00 00 00 33 [04:07:53]Write i2c OK [04:07:53]MH_I2C_Read... [04:07:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:07:53]Read from MH i2c: E2 [04:07:53]MH_I2C_Read... [04:07:53]Read from MH i2c: E2 62 00 [04:07:53]MH_I2C_Read... [04:07:53]Read from MH i2c: E2 62 00 75 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 78 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 F6 [04:07:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 78 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:07:53]wFMCommunicate OK [04:07:53]SAM_PROTO_GetFieldsCounters done [04:07:53]requested_item shift.num is exist - process it [04:07:53]requested_item shift.opened is exist - process it [04:07:53]req_shift_opened [04:07:53]FM_GetShiftState [04:07:53]SAM_PROTO_GetShiftState [04:07:53]wFMCommunicate request_size=4 [04:07:53]MH_SAM_APDU [04:07:53]CAPDU: 80 13 01 00 [04:07:53]Write to MH i2c: E2 08 00 76 42 80 13 01 00 00 00 00 00 35 [04:07:53]Write i2c OK [04:07:53]MH_I2C_Read... [04:07:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:07:54]Read from MH i2c: E2 [04:07:54]MH_I2C_Read... [04:07:54]Read from MH i2c: E2 0E 00 [04:07:54]MH_I2C_Read... [04:07:54]Read from MH i2c: E2 0E 00 76 42 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 6B [04:07:54]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [04:07:54]wFMCommunicate OK [04:07:54]SAM_PROTO_GetShiftState done [04:07:54]FM_GetShiftState done [04:07:54]req_shift_opened done [04:07:54]requested_item shift.open_date is exist - process it [04:07:54]req_shift_open_date [04:07:54]req_shift_open_date done [04:07:54]produce_requested_data done [04:07:54]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45176,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [04:07:54]process_action_free close_receipt [04:07:54]json_value_free [04:07:54]json_value_free done [04:07:54]process_json_proto returns [04:07:54]Send response to host [04:07:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45176,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [04:07:54]free response buf [04:07:54]execute_script done [04:07:54]execute_script returns [04:07:54]free content buf [04:07:54]Sock 7.Close socket [04:07:54]Sock 7.Thread stoped [04:07:56]OFD Sender: No OFD packet to send [04:08:01]OFD Sender: No OFD packet to send [04:08:06]OFD Sender: No OFD packet to send [04:08:11]OFD Sender: No OFD packet to send [04:08:16]OFD Sender: No OFD packet to send [04:08:21]OFD Sender: No OFD packet to send [04:08:26]OFD Sender: No OFD packet to send [04:08:31]OFD Sender: No OFD packet to send [04:08:36]OFD Sender: No OFD packet to send [04:08:41]OFD Sender: No OFD packet to send [04:08:46]OFD Sender: No OFD packet to send [04:08:51]OFD Sender: No OFD packet to send [04:08:56]OFD Sender: No OFD packet to send [04:09:01]OFD Sender: No OFD packet to send [04:09:06]OFD Sender: No OFD packet to send [04:09:11]OFD Sender: No OFD packet to send [04:09:16]OFD Sender: No OFD packet to send [04:09:21]OFD Sender: No OFD packet to send [04:09:26]OFD Sender: No OFD packet to send [04:09:31]OFD Sender: No OFD packet to send [04:09:36]OFD Sender: No OFD packet to send [04:09:41]OFD Sender: No OFD packet to send [04:09:46]OFD Sender: No OFD packet to send [04:09:51]OFD Sender: No OFD packet to send [04:09:56]OFD Sender: No OFD packet to send [04:10:01]OFD Sender: No OFD packet to send [04:10:06]OFD Sender: No OFD packet to send [04:10:11]OFD Sender: No OFD packet to send [04:10:16]OFD Sender: No OFD packet to send [04:10:21]OFD Sender: No OFD packet to send [04:10:26]OFD Sender: No OFD packet to send [04:10:31]OFD Sender: No OFD packet to send [04:10:36]OFD Sender: No OFD packet to send [04:10:41]OFD Sender: No OFD packet to send [04:10:46]OFD Sender: No OFD packet to send [04:10:51]OFD Sender: No OFD packet to send [04:10:56]OFD Sender: No OFD packet to send [04:11:01]OFD Sender: No OFD packet to send [04:11:06]OFD Sender: No OFD packet to send [04:11:11]OFD Sender: No OFD packet to send [04:11:16]OFD Sender: No OFD packet to send [04:11:21]OFD Sender: No OFD packet to send [04:11:26]OFD Sender: No OFD packet to send [04:11:31]OFD Sender: No OFD packet to send [04:11:36]OFD Sender: No OFD packet to send [04:11:41]OFD Sender: No OFD packet to send [04:11:46]OFD Sender: No OFD packet to send [04:11:51]OFD Sender: No OFD packet to send [04:11:56]OFD Sender: No OFD packet to send [04:12:01]OFD Sender: No OFD packet to send [04:12:06]OFD Sender: No OFD packet to send [04:12:11]OFD Sender: No OFD packet to send [04:12:16]OFD Sender: No OFD packet to send [04:12:21]OFD Sender: No OFD packet to send [04:12:26]OFD Sender: No OFD packet to send [04:12:31]OFD Sender: No OFD packet to send [04:12:36]OFD Sender: No OFD packet to send [04:12:41]OFD Sender: No OFD packet to send [04:12:46]OFD Sender: No OFD packet to send [04:12:51]OFD Sender: No OFD packet to send [04:12:56]OFD Sender: No OFD packet to send [04:13:01]OFD Sender: No OFD packet to send [04:13:06]OFD Sender: No OFD packet to send [04:13:11]OFD Sender: No OFD packet to send [04:13:16]OFD Sender: No OFD packet to send [04:13:21]OFD Sender: No OFD packet to send [04:13:26]OFD Sender: No OFD packet to send [04:13:31]OFD Sender: No OFD packet to send [04:13:36]OFD Sender: No OFD packet to send [04:13:41]OFD Sender: No OFD packet to send [04:13:46]OFD Sender: No OFD packet to send [04:13:51]OFD Sender: No OFD packet to send [04:13:56]OFD Sender: No OFD packet to send [04:14:01]OFD Sender: No OFD packet to send [04:14:06]OFD Sender: No OFD packet to send [04:14:11]OFD Sender: No OFD packet to send [04:14:16]OFD Sender: No OFD packet to send [04:14:21]OFD Sender: No OFD packet to send [04:14:26]OFD Sender: No OFD packet to send [04:14:31]OFD Sender: No OFD packet to send [04:14:36]OFD Sender: No OFD packet to send [04:14:41]OFD Sender: No OFD packet to send [04:14:46]OFD Sender: No OFD packet to send [04:14:51]OFD Sender: No OFD packet to send [04:14:56]OFD Sender: No OFD packet to send [04:15:01]OFD Sender: No OFD packet to send [04:15:06]OFD Sender: No OFD packet to send [04:15:11]OFD Sender: No OFD packet to send [04:15:16]OFD Sender: No OFD packet to send [04:15:21]OFD Sender: No OFD packet to send [04:15:26]OFD Sender: No OFD packet to send [04:15:31]OFD Sender: No OFD packet to send [04:15:36]OFD Sender: No OFD packet to send [04:15:41]OFD Sender: No OFD packet to send [04:15:46]OFD Sender: No OFD packet to send [04:15:51]OFD Sender: No OFD packet to send [04:15:56]OFD Sender: No OFD packet to send [04:16:01]OFD Sender: No OFD packet to send [04:16:06]OFD Sender: No OFD packet to send [04:16:11]OFD Sender: No OFD packet to send [04:16:16]OFD Sender: No OFD packet to send [04:16:21]OFD Sender: No OFD packet to send [04:16:26]OFD Sender: No OFD packet to send [04:16:31]OFD Sender: No OFD packet to send [04:16:36]OFD Sender: No OFD packet to send [04:16:41]OFD Sender: No OFD packet to send [04:16:46]OFD Sender: No OFD packet to send [04:16:51]OFD Sender: No OFD packet to send [04:16:56]OFD Sender: No OFD packet to send [04:17:01]OFD Sender: No OFD packet to send [04:17:06]OFD Sender: No OFD packet to send [04:17:11]OFD Sender: No OFD packet to send [04:17:16]OFD Sender: No OFD packet to send [04:17:21]OFD Sender: No OFD packet to send [04:17:26]OFD Sender: No OFD packet to send [04:17:31]OFD Sender: No OFD packet to send [04:17:36]OFD Sender: No OFD packet to send [04:17:41]OFD Sender: No OFD packet to send [04:17:46]OFD Sender: No OFD packet to send [04:17:51]OFD Sender: No OFD packet to send [04:17:56]OFD Sender: No OFD packet to send [04:18:01]OFD Sender: No OFD packet to send [04:18:06]OFD Sender: No OFD packet to send [04:18:11]OFD Sender: No OFD packet to send [04:18:16]OFD Sender: No OFD packet to send [04:18:21]OFD Sender: No OFD packet to send [04:18:26]OFD Sender: No OFD packet to send [04:18:31]OFD Sender: No OFD packet to send [04:18:36]OFD Sender: No OFD packet to send [04:18:41]OFD Sender: No OFD packet to send [04:18:46]OFD Sender: No OFD packet to send [04:18:51]OFD Sender: No OFD packet to send [04:18:56]OFD Sender: No OFD packet to send [04:19:01]OFD Sender: No OFD packet to send [04:19:06]OFD Sender: No OFD packet to send [04:19:11]OFD Sender: No OFD packet to send [04:19:16]OFD Sender: No OFD packet to send [04:19:21]OFD Sender: No OFD packet to send [04:19:26]OFD Sender: No OFD packet to send [04:19:31]OFD Sender: No OFD packet to send [04:19:36]OFD Sender: No OFD packet to send [04:19:41]OFD Sender: No OFD packet to send [04:19:46]OFD Sender: No OFD packet to send [04:19:51]OFD Sender: No OFD packet to send [04:19:56]OFD Sender: No OFD packet to send [04:20:01]OFD Sender: No OFD packet to send [04:20:06]OFD Sender: No OFD packet to send [04:20:11]OFD Sender: No OFD packet to send [04:20:16]OFD Sender: No OFD packet to send [04:20:21]OFD Sender: No OFD packet to send [04:20:26]OFD Sender: No OFD packet to send [04:20:31]OFD Sender: No OFD packet to send [04:20:36]OFD Sender: No OFD packet to send [04:20:41]OFD Sender: No OFD packet to send [04:20:46]OFD Sender: No OFD packet to send [04:20:51]OFD Sender: No OFD packet to send [04:20:56]OFD Sender: No OFD packet to send [04:21:01]OFD Sender: No OFD packet to send [04:21:06]OFD Sender: No OFD packet to send [04:21:11]OFD Sender: No OFD packet to send [04:21:16]OFD Sender: No OFD packet to send [04:21:21]OFD Sender: No OFD packet to send [04:21:26]OFD Sender: No OFD packet to send [04:21:31]OFD Sender: No OFD packet to send [04:21:36]OFD Sender: No OFD packet to send [04:21:41]OFD Sender: No OFD packet to send [04:21:46]OFD Sender: No OFD packet to send [04:21:51]OFD Sender: No OFD packet to send [04:21:56]OFD Sender: No OFD packet to send [04:22:01]OFD Sender: No OFD packet to send [04:22:06]OFD Sender: No OFD packet to send [04:22:11]OFD Sender: No OFD packet to send [04:22:16]OFD Sender: No OFD packet to send [04:22:21]OFD Sender: No OFD packet to send [04:22:26]OFD Sender: No OFD packet to send [04:22:31]OFD Sender: No OFD packet to send [04:22:36]OFD Sender: No OFD packet to send [04:22:41]OFD Sender: No OFD packet to send [04:22:46]OFD Sender: No OFD packet to send [04:22:51]OFD Sender: No OFD packet to send [04:22:56]OFD Sender: No OFD packet to send [04:23:01]OFD Sender: No OFD packet to send [04:23:06]OFD Sender: No OFD packet to send [04:23:11]OFD Sender: No OFD packet to send [04:23:16]OFD Sender: No OFD packet to send [04:23:21]OFD Sender: No OFD packet to send [04:23:26]OFD Sender: No OFD packet to send [04:23:31]OFD Sender: No OFD packet to send [04:23:37]OFD Sender: No OFD packet to send [04:23:42]OFD Sender: No OFD packet to send [04:23:47]OFD Sender: No OFD packet to send [04:23:52]OFD Sender: No OFD packet to send [04:23:57]OFD Sender: No OFD packet to send [04:24:02]OFD Sender: No OFD packet to send [04:24:07]OFD Sender: No OFD packet to send [04:24:12]OFD Sender: No OFD packet to send [04:24:17]OFD Sender: No OFD packet to send [04:24:22]OFD Sender: No OFD packet to send [04:24:27]OFD Sender: No OFD packet to send [04:24:32]OFD Sender: No OFD packet to send [04:24:37]OFD Sender: No OFD packet to send [04:24:42]OFD Sender: No OFD packet to send [04:24:47]OFD Sender: No OFD packet to send [04:24:52]OFD Sender: No OFD packet to send [04:24:57]OFD Sender: No OFD packet to send [04:25:02]OFD Sender: No OFD packet to send [04:25:07]OFD Sender: No OFD packet to send [04:25:12]OFD Sender: No OFD packet to send [04:25:17]OFD Sender: No OFD packet to send [04:25:22]OFD Sender: No OFD packet to send [04:25:27]OFD Sender: No OFD packet to send [04:25:32]OFD Sender: No OFD packet to send [04:25:37]OFD Sender: No OFD packet to send [04:25:42]OFD Sender: No OFD packet to send [04:25:47]OFD Sender: No OFD packet to send [04:25:52]OFD Sender: No OFD packet to send [04:25:57]OFD Sender: No OFD packet to send [04:26:02]OFD Sender: No OFD packet to send [04:26:07]OFD Sender: No OFD packet to send [04:26:12]OFD Sender: No OFD packet to send [04:26:17]OFD Sender: No OFD packet to send [04:26:22]OFD Sender: No OFD packet to send [04:26:27]OFD Sender: No OFD packet to send [04:26:32]OFD Sender: No OFD packet to send [04:26:37]OFD Sender: No OFD packet to send [04:26:42]OFD Sender: No OFD packet to send [04:26:47]OFD Sender: No OFD packet to send [04:26:52]OFD Sender: No OFD packet to send [04:26:57]OFD Sender: No OFD packet to send [04:27:02]OFD Sender: No OFD packet to send [04:27:07]OFD Sender: No OFD packet to send [04:27:12]OFD Sender: No OFD packet to send [04:27:17]OFD Sender: No OFD packet to send [04:27:22]OFD Sender: No OFD packet to send [04:27:27]OFD Sender: No OFD packet to send [04:27:32]OFD Sender: No OFD packet to send [04:27:37]OFD Sender: No OFD packet to send [04:27:42]OFD Sender: No OFD packet to send [04:27:47]OFD Sender: No OFD packet to send [04:27:52]OFD Sender: No OFD packet to send [04:27:57]OFD Sender: No OFD packet to send [04:28:02]OFD Sender: No OFD packet to send [04:28:07]OFD Sender: No OFD packet to send [04:28:12]OFD Sender: No OFD packet to send [04:28:17]OFD Sender: No OFD packet to send [04:28:22]OFD Sender: No OFD packet to send [04:28:27]OFD Sender: No OFD packet to send [04:28:32]OFD Sender: No OFD packet to send [04:28:37]OFD Sender: No OFD packet to send [04:28:42]OFD Sender: No OFD packet to send [04:28:47]OFD Sender: No OFD packet to send [04:28:52]OFD Sender: No OFD packet to send [04:28:57]OFD Sender: No OFD packet to send [04:29:02]OFD Sender: No OFD packet to send [04:29:07]OFD Sender: No OFD packet to send [04:29:12]OFD Sender: No OFD packet to send [04:29:17]OFD Sender: No OFD packet to send [04:29:22]OFD Sender: No OFD packet to send [04:29:27]OFD Sender: No OFD packet to send [04:29:32]OFD Sender: No OFD packet to send [04:29:37]OFD Sender: No OFD packet to send [04:29:42]OFD Sender: No OFD packet to send [04:29:47]OFD Sender: No OFD packet to send [04:29:52]OFD Sender: No OFD packet to send [04:29:57]OFD Sender: No OFD packet to send [04:30:02]OFD Sender: No OFD packet to send [04:30:07]OFD Sender: No OFD packet to send [04:30:12]OFD Sender: No OFD packet to send [04:30:17]OFD Sender: No OFD packet to send [04:30:22]OFD Sender: No OFD packet to send [04:30:27]OFD Sender: No OFD packet to send [04:30:32]OFD Sender: No OFD packet to send [04:30:37]OFD Sender: No OFD packet to send [04:30:42]OFD Sender: No OFD packet to send [04:30:47]OFD Sender: No OFD packet to send [04:30:52]OFD Sender: No OFD packet to send [04:30:57]OFD Sender: No OFD packet to send [04:31:02]OFD Sender: No OFD packet to send [04:31:07]OFD Sender: No OFD packet to send [04:31:12]OFD Sender: No OFD packet to send [04:31:17]OFD Sender: No OFD packet to send [04:31:22]OFD Sender: No OFD packet to send [04:31:27]OFD Sender: No OFD packet to send [04:31:32]OFD Sender: No OFD packet to send [04:31:37]OFD Sender: No OFD packet to send [04:31:42]OFD Sender: No OFD packet to send [04:31:47]OFD Sender: No OFD packet to send [04:31:52]OFD Sender: No OFD packet to send [04:31:57]OFD Sender: No OFD packet to send [04:32:02]OFD Sender: No OFD packet to send [04:32:07]OFD Sender: No OFD packet to send [04:32:12]OFD Sender: No OFD packet to send [04:32:17]OFD Sender: No OFD packet to send [04:32:22]OFD Sender: No OFD packet to send [04:32:27]OFD Sender: No OFD packet to send [04:32:32]OFD Sender: No OFD packet to send [04:32:37]OFD Sender: No OFD packet to send [04:32:42]OFD Sender: No OFD packet to send [04:32:47]OFD Sender: No OFD packet to send [04:32:52]OFD Sender: No OFD packet to send [04:32:57]OFD Sender: No OFD packet to send [04:33:02]OFD Sender: No OFD packet to send [04:33:07]OFD Sender: No OFD packet to send [04:33:12]OFD Sender: No OFD packet to send [04:33:17]OFD Sender: No OFD packet to send [04:33:22]OFD Sender: No OFD packet to send [04:33:27]OFD Sender: No OFD packet to send [04:33:32]OFD Sender: No OFD packet to send [04:33:37]OFD Sender: No OFD packet to send [04:33:42]OFD Sender: No OFD packet to send [04:33:47]OFD Sender: No OFD packet to send [04:33:52]OFD Sender: No OFD packet to send [04:33:57]OFD Sender: No OFD packet to send [04:34:02]OFD Sender: No OFD packet to send [04:34:07]OFD Sender: No OFD packet to send [04:34:12]OFD Sender: No OFD packet to send [04:34:17]OFD Sender: No OFD packet to send [04:34:22]OFD Sender: No OFD packet to send [04:34:27]OFD Sender: No OFD packet to send [04:34:32]OFD Sender: No OFD packet to send [04:34:37]OFD Sender: No OFD packet to send [04:34:42]OFD Sender: No OFD packet to send [04:34:47]OFD Sender: No OFD packet to send [04:34:52]OFD Sender: No OFD packet to send [04:34:57]OFD Sender: No OFD packet to send [04:35:02]OFD Sender: No OFD packet to send [04:35:07]OFD Sender: No OFD packet to send [04:35:12]OFD Sender: No OFD packet to send [04:35:17]OFD Sender: No OFD packet to send [04:35:22]OFD Sender: No OFD packet to send [04:35:27]OFD Sender: No OFD packet to send [04:35:32]OFD Sender: No OFD packet to send [04:35:37]OFD Sender: No OFD packet to send [04:35:42]OFD Sender: No OFD packet to send [04:35:47]OFD Sender: No OFD packet to send [04:35:52]OFD Sender: No OFD packet to send [04:35:57]OFD Sender: No OFD packet to send [04:36:02]OFD Sender: No OFD packet to send [04:36:07]OFD Sender: No OFD packet to send [04:36:12]OFD Sender: No OFD packet to send [04:36:17]OFD Sender: No OFD packet to send [04:36:22]OFD Sender: No OFD packet to send [04:36:27]OFD Sender: No OFD packet to send [04:36:32]OFD Sender: No OFD packet to send [04:36:37]OFD Sender: No OFD packet to send [04:36:42]OFD Sender: No OFD packet to send [04:36:47]OFD Sender: No OFD packet to send [04:36:52]OFD Sender: No OFD packet to send [04:36:57]OFD Sender: No OFD packet to send [04:37:02]OFD Sender: No OFD packet to send [04:37:07]OFD Sender: No OFD packet to send [04:37:12]OFD Sender: No OFD packet to send [04:37:17]OFD Sender: No OFD packet to send [04:37:22]OFD Sender: No OFD packet to send [04:37:27]OFD Sender: No OFD packet to send [04:37:32]OFD Sender: No OFD packet to send [04:37:37]OFD Sender: No OFD packet to send [04:37:42]OFD Sender: No OFD packet to send [04:37:47]OFD Sender: No OFD packet to send [04:37:52]OFD Sender: No OFD packet to send [04:37:57]OFD Sender: No OFD packet to send [04:38:02]OFD Sender: No OFD packet to send [04:38:07]OFD Sender: No OFD packet to send [04:38:12]OFD Sender: No OFD packet to send [04:38:17]OFD Sender: No OFD packet to send [04:38:22]OFD Sender: No OFD packet to send [04:38:27]OFD Sender: No OFD packet to send [04:38:32]OFD Sender: No OFD packet to send [04:38:37]OFD Sender: No OFD packet to send [04:38:42]OFD Sender: No OFD packet to send [04:38:47]OFD Sender: No OFD packet to send [04:38:52]OFD Sender: No OFD packet to send [04:38:57]OFD Sender: No OFD packet to send [04:39:02]OFD Sender: No OFD packet to send [04:39:07]OFD Sender: No OFD packet to send [04:39:12]OFD Sender: No OFD packet to send [04:39:17]OFD Sender: No OFD packet to send [04:39:22]OFD Sender: No OFD packet to send [04:39:27]OFD Sender: No OFD packet to send [04:39:32]OFD Sender: No OFD packet to send [04:39:37]OFD Sender: No OFD packet to send [04:39:42]OFD Sender: No OFD packet to send [04:39:47]OFD Sender: No OFD packet to send [04:39:52]OFD Sender: No OFD packet to send [04:39:57]OFD Sender: No OFD packet to send [04:40:02]OFD Sender: No OFD packet to send [04:40:07]OFD Sender: No OFD packet to send [04:40:12]OFD Sender: No OFD packet to send [04:40:17]OFD Sender: No OFD packet to send [04:40:22]OFD Sender: No OFD packet to send [04:40:27]OFD Sender: No OFD packet to send [04:40:32]OFD Sender: No OFD packet to send [04:40:37]OFD Sender: No OFD packet to send [04:40:42]OFD Sender: No OFD packet to send [04:40:43]accept exits with 9 [04:40:43]New connection [04:40:43]New thread 3067157860 created [04:40:43]Thread 3067014500 joined [04:40:43]Waiting for new connection... [04:40:43] Sock 9.Parse request [04:40:43]Sock 9.Check first char [04:40:43]Sock 9.First char is OK [04:40:43]request: POST /json_proto HTTP/1.0 [04:40:43]Method: POST [04:40:43]URL: /json_proto [04:40:43]Method is POST - this is cgi request [04:40:43]url: /json_proto [04:40:43]query_string will be loaded in cgi processing [04:40:43]execute_cgi json_proto POST (null) [04:40:43]execute_cgi path=json_proto method=POST [04:40:43]POST find Content-Length [04:40:43]Host: 172.17.48.198:8080 [04:40:43]Content-Length: 695 [04:40:43]Content-Type: application/json [04:40:43] [04:40:43]POST finish read [04:40:43]Found Content-Length = 695 [04:40:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184141", "tax_sys" : 0, "items" : [ { "code": "4700000160013", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u0438\u043D\u0434\u0438\u0432\u0438\u0434\u0443\u0430\u043B\u044C\u043D\u044B\u0439", "price" : 15.00, "quantity" : 1.000, "sum" : 15.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 15.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:40:43]execute_script... [04:40:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184141", "tax_sys" : 0, "items" : [ { "code": "4700000160013", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u0438\u043D\u0434\u0438\u0432\u0438\u0434\u0443\u0430\u043B\u044C\u043D\u044B\u0439", "price" : 15.00, "quantity" : 1.000, "sum" : 15.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 15.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:40:43]POST & json_proto [04:40:43]process_json_proto [04:40:43]json parsed OK: [04:40:43]protocol is kg_v1.0 [04:40:43]action value=close_receipt [04:40:43]process_action close_receipt [04:40:43]cmd_close_receipt [04:40:43]MH_GetDate [04:40:43]Write to MH i2c: F0 00 00 77 42 A8 [04:40:43]Write i2c OK [04:40:43]MH_I2C_Read... [04:40:43]Read from MH i2c: F0 [04:40:43]MH_I2C_Read... [04:40:43]Read from MH i2c: F0 09 00 [04:40:43]MH_I2C_Read... [04:40:43]Read from MH i2c: F0 09 00 77 42 00 55 FF E3 65 CE C4 D4 65 18 [04:40:43]GetLastDocTimeStamp 1709438877 [04:40:43]current date 1709440853 [04:40:43]FM_GetShiftState [04:40:43]SAM_PROTO_GetShiftState [04:40:43]wFMCommunicate request_size=4 [04:40:43]MH_SAM_APDU [04:40:43]CAPDU: 80 13 01 00 [04:40:43]Write to MH i2c: E2 08 00 78 42 80 13 01 00 00 00 00 00 37 [04:40:43]Write i2c OK [04:40:43]MH_I2C_Read... [04:40:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:40:44]Read from MH i2c: E2 [04:40:44]MH_I2C_Read... [04:40:44]Read from MH i2c: E2 0E 00 [04:40:44]MH_I2C_Read... [04:40:44]Read from MH i2c: E2 0E 00 78 42 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 6D [04:40:44]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [04:40:44]wFMCommunicate OK [04:40:44]SAM_PROTO_GetShiftState done [04:40:44]FM_GetShiftState done [04:40:44]opened in 1709425694 [04:40:44]opened+sec_in_day 1709512094 [04:40:44]quantity*price = 1500 [04:40:44]sum+1 = 1501 [04:40:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 15.00 НСП 1% : 0.13 НДС 12% : 1.59 Наличными: 15.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 14 03.03.2024 04:40 Смена: 331 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 ФМ: 0000000000874796 ФД: 45177 ФПД: 95709798220214 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T044053&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45177&fm=95709798220214&tin=02508201610067®Number=0000000000090572&sum=1500 0 [04:40:45]StoreToDocumentArchive [04:40:45]shift 331 fd 45177 [04:40:45]save to /storage/0331/doc_00045177 [04:40:45]save last doc name /storage/0331/doc_00045177 to /storage/kkm_last_doc_name [04:40:45]save OK [04:40:45]Clear old archive folders... [04:40:45]ProcessDocumentItem done err = 0, tmpTLVsize=290 [04:40:45]tlvbuf is 01B15A10 [04:40:45]SAM_PROTO_ClearQueue [04:40:45]wFMCommunicate request_size=4 [04:40:45]MH_SAM_APDU [04:40:45]CAPDU: 80 09 00 00 [04:40:45]Write to MH i2c: E2 08 00 85 42 80 09 00 00 00 00 00 00 39 [04:40:45]Write i2c OK [04:40:45]MH_I2C_Read... [04:40:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:40:45]Read from MH i2c: E2 [04:40:45]MH_I2C_Read... [04:40:45]Read from MH i2c: E2 03 00 [04:40:45]MH_I2C_Read... [04:40:45]Read from MH i2c: E2 03 00 85 42 00 90 00 3B [04:40:45]RAPDU: 90 00 [04:40:45]wFMCommunicate OK [04:40:45]SAM_PROTO_ClearQueue done [04:40:45]KKMCreateOFDPacket [04:40:45]OFDProtocolAddRootSTLVToBuf [04:40:45]FM_MakeSignedData [04:40:45]FM_MakeSignedData [04:40:45]SAM_PROTO_SignData [04:40:45]wFMCommunicate request_size=4 [04:40:45]MH_SAM_APDU [04:40:45]CAPDU: 80 0D 01 02 [04:40:45]Write to MH i2c: E2 08 00 86 42 80 0D 01 02 00 00 00 00 41 [04:40:45]Write i2c OK [04:40:45]MH_I2C_Read... [04:40:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:40:45]Read from MH i2c: E2 [04:40:45]MH_I2C_Read... [04:40:45]Read from MH i2c: E2 03 00 [04:40:45]MH_I2C_Read... [04:40:45]Read from MH i2c: E2 03 00 86 42 00 90 00 3C [04:40:45]RAPDU: 90 00 [04:40:45]wFMCommunicate OK [04:40:45]wFMCommunicate request_size=255 [04:40:45]MH_SAM_APDU [04:40:45]CAPDU: 80 0D 02 02 FA 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 31 33 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 DC 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 05 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 00 00 00 00 00 07 04 06 00 DC 05 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 55 FF E3 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 [04:40:45]Write to MH i2c: E2 02 01 87 42 80 0D 02 02 FA 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 31 33 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 DC 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 05 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 00 00 00 00 00 07 04 06 00 DC 05 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 55 FF E3 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 F5 [04:40:45]Write i2c OK [04:40:45]MH_I2C_Read... [04:40:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:40:45]Read from MH i2c: E2 [04:40:45]MH_I2C_Read... [04:40:45]Read from MH i2c: E2 03 00 [04:40:45]MH_I2C_Read... [04:40:45]Read from MH i2c: E2 03 00 87 42 00 90 00 3D [04:40:45]RAPDU: 90 00 [04:40:45]wFMCommunicate OK [04:40:45]wFMCommunicate request_size=49 [04:40:45]MH_SAM_APDU [04:40:45]CAPDU: 80 0D 02 02 2C 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 79 B0 00 00 35 04 06 00 57 0C 2C 86 41 B6 [04:40:45]Write to MH i2c: E2 34 00 88 42 80 0D 02 02 2C 00 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 79 B0 00 00 35 04 06 00 57 0C 2C 86 41 B6 00 00 AD [04:40:45]Write i2c OK [04:40:45]MH_I2C_Read... [04:40:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:40:45]Read from MH i2c: E2 [04:40:45]MH_I2C_Read... [04:40:45]Read from MH i2c: E2 03 00 [04:40:45]MH_I2C_Read... [04:40:45]Read from MH i2c: E2 03 00 88 42 00 90 00 3E [04:40:45]RAPDU: 90 00 [04:40:45]wFMCommunicate OK [04:40:45]wFMCommunicate request_size=4 [04:40:45]MH_SAM_APDU [04:40:45]CAPDU: 80 0D 03 02 [04:40:45]Write to MH i2c: E2 08 00 89 42 80 0D 03 02 00 00 00 00 46 [04:40:45]Write i2c OK [04:40:45]MH_I2C_Read... [04:40:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:40:45]Read from MH i2c: E2 [04:40:45]MH_I2C_Read... [04:40:45]Read from MH i2c: E2 0B 00 [04:40:45]MH_I2C_Read... [04:40:45]Read from MH i2c: E2 0B 00 89 42 00 EC C8 78 6E FA 2B 6D 45 90 00 B8 [04:40:45]RAPDU: EC C8 78 6E FA 2B 6D 45 90 00 [04:40:45]wFMCommunicate OK [04:40:45]SAM_PROTO_SignData done [04:40:45]FM_MakeSignedData done [04:40:45]CreateOFDProtocolMessage [04:40:45]wFMCommunicate request_size=4 [04:40:45]MH_SAM_APDU [04:40:45]CAPDU: 80 11 00 00 [04:40:45]Write to MH i2c: E2 08 00 8A 42 80 11 00 00 00 00 00 00 46 [04:40:45]Write i2c OK [04:40:45]MH_I2C_Read... [04:40:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:40:45]Read from MH i2c: E2 [04:40:45]MH_I2C_Read... [04:40:45]Read from MH i2c: E2 17 00 [04:40:45]MH_I2C_Read... [04:40:45]Read from MH i2c: E2 17 00 8A 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 A2 [04:40:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [04:40:45]wFMCommunicate OK [04:40:45]CreateOFDProtocolMessage done [04:40:45]OFDSenderStorePacket 45177 [04:40:45]StoreOFDPacket docnum=45177 [04:40:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 36 01 00 00 FA 24 2E 01 5D 13 5A 03 01 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 31 33 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 DC 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 05 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 00 00 00 00 00 07 04 06 00 DC 05 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 55 FF E3 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 79 B0 00 00 35 04 06 00 57 0C 2C 86 41 B6 EC C8 78 6E FA 2B 6D 45 [04:40:45]CheckFolder [04:40:45]dirname=/storage/ofd_packets [04:40:45]CheckFolder done [04:40:45]ProducePacketName [04:40:45]name=ofd_packets/00045177 [04:40:45]NVStorageSaveData ofd_packets/00045177 [04:40:45]File name is /storage/ofd_packets/00045177 [04:40:45]Write 340 bytes [04:40:45]NVStorageSaveData done [04:40:45]OFDSenderStorePacket done [04:40:45]KKMCreateOFDPacket done [04:40:45]NVStorageSaveData kkm_last_timestamp [04:40:45]File name is /storage/kkm_last_timestamp [04:40:45]Write 4 bytes [04:40:45]NVStorageSaveData done [04:40:45]ExternCall_PrintAddStr [04:40:45]wPrintStart [04:40:45]Write to MH i2c: 01 00 00 8B 42 CD [04:40:45]Write i2c OK [04:40:45]MH_I2C_Read... [04:40:45]Read from MH i2c: 01 [04:40:45]MH_I2C_Read... [04:40:45]Read from MH i2c: 01 07 00 [04:40:45]MH_I2C_Read... [04:40:45]Read from MH i2c: 01 07 00 8B 42 00 00 00 00 00 FF 0F E2 [04:40:45]RasterBufferAndPrint [04:40:45]line Счет N : (3)184141 [04:40:45]line ИНН: 02508201610067 [04:40:45]line Контрольно-Кассовый Чек [04:40:45]line ПРОДАЖА [04:40:45]line Товар: 4700000160013 [04:40:45]line Снек Курут индивидуальный [04:40:45]line 1.000 * 15.00 [04:40:45]line = 15.00 [04:40:45]line НДС 12% НСП 1% [04:40:45]line > о реализуемом товаре [04:40:45]line ИТОГО: 15.00 [04:40:45]line НСП 1% : 0.13 [04:40:45]line НДС 12% : 1.59 [04:40:45]line Наличными: 15.00 [04:40:45]line Безнал.: 0.00 [04:40:45]line Место: АЗС № 25 "Партнер Нефть" [04:40:45]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [04:40:45]line СНО: Общий режим [04:40:45]line Чек 14 03.03.2024 04:40 [04:40:45]line Смена: 331 ФФД: 1.0 [04:40:45]line ЗНМ: 0300000013 [04:40:45]line РНМ: 0000000000090572 [04:40:45]line Версия ККМ: 001 [04:40:45]line ФМ: 0000000000874796 [04:40:45]line ФД: 45177 [04:40:45]line ФПД: 95709798220214 [04:40:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T044053&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45177&fm=95709798220214&tin=02508201610067®Number=0000000000090572&sum=1500 [04:40:46]line 0 [04:40:46]OFD Sender: Processing packet 45177 [packets to send 17, broken 16] [04:40:46]ProducePacketName [04:40:46]name=ofd_packets/00045177 [04:40:46]OFD Sender: To server: pG, [04:40:46]CommunicateWithHost lk.salyk.kg:30040 [04:40:46]ConnectInit lk.salyk.kg [04:40:46]written 0, free lines is 4095 [04:40:46]Connected sock=10 [04:40:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 36 01 00 00 FA 24 2E 01 5D 13 5A 03 01 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 31 33 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 DC 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 05 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 00 00 00 00 00 07 04 06 00 DC 05 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 55 FF E3 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 79 B0 00 00 35 04 06 00 57 0C 2C 86 41 B6 EC C8 78 6E FA 2B 6D 45 [04:40:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 E2 39 47 00 7F 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 79 B0 00 00 F4 03 04 00 1B AB E3 65 B6 04 01 00 00 34 6A F3 72 64 56 82 31 [04:40:46]CommunicateWithHost err = 0 [04:40:46]CheckOFDResponse [04:40:46]1017 (14) - 77093643461234 [04:40:46]1041 (16) - 0000000000874796 [04:40:46]1040 (4) - 45177 [04:40:46]1012 (4) - 02.03.2024 22:41 [04:40:46]1206 (1) - 0 [04:40:46]OFD Sender: Remove packet 45177 [04:40:46]ProducePacketName [04:40:46]name=ofd_packets/00045177 [04:40:46]NVStorageDeleteData [04:40:46]Write to MH i2c: 01 00 00 B3 42 F5 [04:40:46]Write i2c OK [04:40:46]MH_I2C_Read... [04:40:46]Read from MH i2c: 01 [04:40:46]MH_I2C_Read... [04:40:46]Read from MH i2c: 01 07 00 [04:40:46]MH_I2C_Read... [04:40:46]Read from MH i2c: 01 07 00 B3 42 00 00 00 00 00 FD 0C 05 [04:40:46]RasterBufferAndPrint [04:40:46]line [04:40:46]line [04:40:46]line [04:40:46]line [04:40:46]line [04:40:46]written 0, free lines is 3332 [04:40:46]MH_Cut [04:40:46]Write to MH i2c: D1 01 00 BA 42 01 CE [04:40:46]Write i2c OK [04:40:46]MH_I2C_Read... [04:40:46]Read from MH i2c: D1 [04:40:46]MH_I2C_Read... [04:40:46]Read from MH i2c: D1 01 00 [04:40:46]MH_I2C_Read... [04:40:46]Read from MH i2c: D1 01 00 BA 42 00 CD [04:40:46]Write to MH i2c: 01 00 00 BB 42 FD [04:40:46]Write i2c OK [04:40:46]MH_I2C_Read... [04:40:46]OFD Sender: No OFD packet to send [04:40:47]*** Cut start [04:40:47]*** Purtial cut [04:40:47]*** Stage 1: CUTSNS_PIN = 1 [04:40:49]Read from MH i2c: 01 [04:40:49]MH_I2C_Read... [04:40:49]*** Stop cut motor [04:40:49]*** Cut end [04:40:49]Read from MH i2c: 01 07 00 [04:40:49]MH_I2C_Read... [04:40:49]Read from MH i2c: 01 07 00 BB 42 00 00 00 00 00 FF 0F 12 [04:40:49]process_action close_receipt done [04:40:49]requested_data is exist [04:40:49]produce_requested_data [04:40:49]requested_item fm.sn is exist - process it [04:40:49]wFMCommunicate request_size=4 [04:40:49]MH_SAM_APDU [04:40:49]CAPDU: 80 11 00 00 [04:40:49]Write to MH i2c: E2 08 00 BC 42 80 11 00 00 00 00 00 00 78 [04:40:49]Write i2c OK [04:40:49]MH_I2C_Read... [04:40:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:40:49]Read from MH i2c: E2 [04:40:49]MH_I2C_Read... [04:40:49]Read from MH i2c: E2 17 00 [04:40:49]MH_I2C_Read... [04:40:49]Read from MH i2c: E2 17 00 BC 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 D4 [04:40:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [04:40:49]wFMCommunicate OK [04:40:49]requested_item fd.num is exist - process it [04:40:49]SAM_PROTO_GetFieldsCounters [04:40:49]wFMCommunicate request_size=4 [04:40:49]MH_SAM_APDU [04:40:49]CAPDU: 80 13 00 00 [04:40:49]Write to MH i2c: E2 08 00 BD 42 80 13 00 00 00 00 00 00 7B [04:40:49]Write i2c OK [04:40:49]MH_I2C_Read... [04:40:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:40:49]Read from MH i2c: E2 [04:40:49]MH_I2C_Read... [04:40:49]Read from MH i2c: E2 62 00 [04:40:49]MH_I2C_Read... [04:40:49]Read from MH i2c: E2 62 00 BD 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 79 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 42 [04:40:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 79 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:40:49]wFMCommunicate OK [04:40:49]SAM_PROTO_GetFieldsCounters done [04:40:49]requested_item shift.num is exist - process it [04:40:49]requested_item shift.opened is exist - process it [04:40:49]req_shift_opened [04:40:49]FM_GetShiftState [04:40:49]SAM_PROTO_GetShiftState [04:40:49]wFMCommunicate request_size=4 [04:40:49]MH_SAM_APDU [04:40:49]CAPDU: 80 13 01 00 [04:40:49]Write to MH i2c: E2 08 00 BE 42 80 13 01 00 00 00 00 00 7D [04:40:49]Write i2c OK [04:40:49]MH_I2C_Read... [04:40:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:40:49]Read from MH i2c: E2 [04:40:49]MH_I2C_Read... [04:40:49]Read from MH i2c: E2 0E 00 [04:40:49]MH_I2C_Read... [04:40:49]Read from MH i2c: E2 0E 00 BE 42 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 B3 [04:40:49]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [04:40:49]wFMCommunicate OK [04:40:49]SAM_PROTO_GetShiftState done [04:40:49]FM_GetShiftState done [04:40:49]req_shift_opened done [04:40:49]requested_item shift.open_date is exist - process it [04:40:49]req_shift_open_date [04:40:49]req_shift_open_date done [04:40:49]produce_requested_data done [04:40:49]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45177,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [04:40:49]process_action_free close_receipt [04:40:49]json_value_free [04:40:49]json_value_free done [04:40:49]process_json_proto returns [04:40:49]Send response to host [04:40:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45177,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [04:40:49]free response buf [04:40:49]execute_script done [04:40:49]execute_script returns [04:40:49]free content buf [04:40:49]Sock 9.Close socket [04:40:49]Sock 9.Thread stoped [04:40:51]OFD Sender: No OFD packet to send [04:40:56]OFD Sender: No OFD packet to send [04:41:01]OFD Sender: No OFD packet to send [04:41:06]OFD Sender: No OFD packet to send [04:41:11]OFD Sender: No OFD packet to send [04:41:16]OFD Sender: No OFD packet to send [04:41:21]OFD Sender: No OFD packet to send [04:41:26]OFD Sender: No OFD packet to send [04:41:31]OFD Sender: No OFD packet to send [04:41:36]OFD Sender: No OFD packet to send [04:41:41]OFD Sender: No OFD packet to send [04:41:46]OFD Sender: No OFD packet to send [04:41:51]OFD Sender: No OFD packet to send [04:41:56]OFD Sender: No OFD packet to send [04:42:01]OFD Sender: No OFD packet to send [04:42:06]OFD Sender: No OFD packet to send [04:42:11]OFD Sender: No OFD packet to send [04:42:16]OFD Sender: No OFD packet to send [04:42:21]OFD Sender: No OFD packet to send [04:42:26]OFD Sender: No OFD packet to send [04:42:31]OFD Sender: No OFD packet to send [04:42:36]OFD Sender: No OFD packet to send [04:42:41]OFD Sender: No OFD packet to send [04:42:46]OFD Sender: No OFD packet to send [04:42:51]OFD Sender: No OFD packet to send [04:42:56]OFD Sender: No OFD packet to send [04:43:01]OFD Sender: No OFD packet to send [04:43:06]OFD Sender: No OFD packet to send [04:43:11]OFD Sender: No OFD packet to send [04:43:16]OFD Sender: No OFD packet to send [04:43:21]OFD Sender: No OFD packet to send [04:43:26]OFD Sender: No OFD packet to send [04:43:31]OFD Sender: No OFD packet to send [04:43:36]OFD Sender: No OFD packet to send [04:43:41]OFD Sender: No OFD packet to send [04:43:46]OFD Sender: No OFD packet to send [04:43:51]OFD Sender: No OFD packet to send [04:43:56]OFD Sender: No OFD packet to send [04:44:01]OFD Sender: No OFD packet to send [04:44:06]OFD Sender: No OFD packet to send [04:44:11]OFD Sender: No OFD packet to send [04:44:17]OFD Sender: No OFD packet to send [04:44:22]OFD Sender: No OFD packet to send [04:44:27]OFD Sender: No OFD packet to send [04:44:32]OFD Sender: No OFD packet to send [04:44:37]OFD Sender: No OFD packet to send [04:44:42]OFD Sender: No OFD packet to send [04:44:47]OFD Sender: No OFD packet to send [04:44:52]OFD Sender: No OFD packet to send [04:44:57]OFD Sender: No OFD packet to send [04:45:02]OFD Sender: No OFD packet to send [04:45:07]OFD Sender: No OFD packet to send [04:45:12]OFD Sender: No OFD packet to send [04:45:17]OFD Sender: No OFD packet to send [04:45:22]OFD Sender: No OFD packet to send [04:45:27]OFD Sender: No OFD packet to send [04:45:32]OFD Sender: No OFD packet to send [04:45:37]OFD Sender: No OFD packet to send [04:45:42]OFD Sender: No OFD packet to send [04:45:47]OFD Sender: No OFD packet to send [04:45:52]OFD Sender: No OFD packet to send [04:45:57]OFD Sender: No OFD packet to send [04:46:02]OFD Sender: No OFD packet to send [04:46:07]OFD Sender: No OFD packet to send [04:46:12]OFD Sender: No OFD packet to send [04:46:17]OFD Sender: No OFD packet to send [04:46:22]OFD Sender: No OFD packet to send [04:46:27]OFD Sender: No OFD packet to send [04:46:32]OFD Sender: No OFD packet to send [04:46:37]OFD Sender: No OFD packet to send [04:46:42]OFD Sender: No OFD packet to send [04:46:47]OFD Sender: No OFD packet to send [04:46:52]OFD Sender: No OFD packet to send [04:46:57]OFD Sender: No OFD packet to send [04:47:02]OFD Sender: No OFD packet to send [04:47:07]OFD Sender: No OFD packet to send [04:47:12]OFD Sender: No OFD packet to send [04:47:17]OFD Sender: No OFD packet to send [04:47:22]OFD Sender: No OFD packet to send [04:47:27]OFD Sender: No OFD packet to send [04:47:32]OFD Sender: No OFD packet to send [04:47:37]OFD Sender: No OFD packet to send [04:47:42]OFD Sender: No OFD packet to send [04:47:47]OFD Sender: No OFD packet to send [04:47:52]OFD Sender: No OFD packet to send [04:47:57]OFD Sender: No OFD packet to send [04:48:02]OFD Sender: No OFD packet to send [04:48:07]OFD Sender: No OFD packet to send [04:48:12]OFD Sender: No OFD packet to send [04:48:17]OFD Sender: No OFD packet to send [04:48:22]OFD Sender: No OFD packet to send [04:48:27]OFD Sender: No OFD packet to send [04:48:32]OFD Sender: No OFD packet to send [04:48:37]OFD Sender: No OFD packet to send [04:48:42]OFD Sender: No OFD packet to send [04:48:47]OFD Sender: No OFD packet to send [04:48:52]OFD Sender: No OFD packet to send [04:48:57]OFD Sender: No OFD packet to send [04:49:02]OFD Sender: No OFD packet to send [04:49:07]OFD Sender: No OFD packet to send [04:49:12]OFD Sender: No OFD packet to send [04:49:17]OFD Sender: No OFD packet to send [04:49:22]OFD Sender: No OFD packet to send [04:49:27]OFD Sender: No OFD packet to send [04:49:32]OFD Sender: No OFD packet to send [04:49:37]OFD Sender: No OFD packet to send [04:49:42]OFD Sender: No OFD packet to send [04:49:47]OFD Sender: No OFD packet to send [04:49:52]OFD Sender: No OFD packet to send [04:49:57]OFD Sender: No OFD packet to send [04:50:02]OFD Sender: No OFD packet to send [04:50:07]OFD Sender: No OFD packet to send [04:50:12]OFD Sender: No OFD packet to send [04:50:17]OFD Sender: No OFD packet to send [04:50:22]OFD Sender: No OFD packet to send [04:50:27]OFD Sender: No OFD packet to send [04:50:32]OFD Sender: No OFD packet to send [04:50:37]OFD Sender: No OFD packet to send [04:50:42]OFD Sender: No OFD packet to send [04:50:47]OFD Sender: No OFD packet to send [04:50:52]OFD Sender: No OFD packet to send [04:50:57]OFD Sender: No OFD packet to send [04:51:02]OFD Sender: No OFD packet to send [04:51:07]OFD Sender: No OFD packet to send [04:51:12]OFD Sender: No OFD packet to send [04:51:17]OFD Sender: No OFD packet to send [04:51:22]OFD Sender: No OFD packet to send [04:51:27]OFD Sender: No OFD packet to send [04:51:32]OFD Sender: No OFD packet to send [04:51:37]OFD Sender: No OFD packet to send [04:51:42]OFD Sender: No OFD packet to send [04:51:47]OFD Sender: No OFD packet to send [04:51:52]OFD Sender: No OFD packet to send [04:51:57]OFD Sender: No OFD packet to send [04:52:02]OFD Sender: No OFD packet to send [04:52:07]OFD Sender: No OFD packet to send [04:52:12]OFD Sender: No OFD packet to send [04:52:17]OFD Sender: No OFD packet to send [04:52:22]OFD Sender: No OFD packet to send [04:52:27]OFD Sender: No OFD packet to send [04:52:32]OFD Sender: No OFD packet to send [04:52:37]OFD Sender: No OFD packet to send [04:52:42]OFD Sender: No OFD packet to send [04:52:47]OFD Sender: No OFD packet to send [04:52:52]OFD Sender: No OFD packet to send [04:52:57]OFD Sender: No OFD packet to send [04:53:02]OFD Sender: No OFD packet to send [04:53:07]OFD Sender: No OFD packet to send [04:53:12]OFD Sender: No OFD packet to send [04:53:17]OFD Sender: No OFD packet to send [04:53:22]OFD Sender: No OFD packet to send [04:53:27]OFD Sender: No OFD packet to send [04:53:32]OFD Sender: No OFD packet to send [04:53:37]OFD Sender: No OFD packet to send [04:53:42]OFD Sender: No OFD packet to send [04:53:47]OFD Sender: No OFD packet to send [04:53:52]OFD Sender: No OFD packet to send [04:53:57]OFD Sender: No OFD packet to send [04:54:02]OFD Sender: No OFD packet to send [04:54:07]OFD Sender: No OFD packet to send [04:54:12]OFD Sender: No OFD packet to send [04:54:17]OFD Sender: No OFD packet to send [04:54:22]OFD Sender: No OFD packet to send [04:54:27]OFD Sender: No OFD packet to send [04:54:32]OFD Sender: No OFD packet to send [04:54:37]OFD Sender: No OFD packet to send [04:54:42]OFD Sender: No OFD packet to send [04:54:47]OFD Sender: No OFD packet to send [04:54:52]OFD Sender: No OFD packet to send [04:54:57]OFD Sender: No OFD packet to send [04:55:02]OFD Sender: No OFD packet to send [04:55:07]OFD Sender: No OFD packet to send [04:55:12]OFD Sender: No OFD packet to send [04:55:17]OFD Sender: No OFD packet to send [04:55:22]OFD Sender: No OFD packet to send [04:55:27]OFD Sender: No OFD packet to send [04:55:32]OFD Sender: No OFD packet to send [04:55:37]OFD Sender: No OFD packet to send [04:55:42]OFD Sender: No OFD packet to send [04:55:47]OFD Sender: No OFD packet to send [04:55:52]OFD Sender: No OFD packet to send [04:55:57]OFD Sender: No OFD packet to send [04:56:02]OFD Sender: No OFD packet to send [04:56:07]OFD Sender: No OFD packet to send [04:56:12]OFD Sender: No OFD packet to send [04:56:17]OFD Sender: No OFD packet to send [04:56:22]OFD Sender: No OFD packet to send [04:56:27]OFD Sender: No OFD packet to send [04:56:32]OFD Sender: No OFD packet to send [04:56:37]OFD Sender: No OFD packet to send [04:56:42]OFD Sender: No OFD packet to send [04:56:47]OFD Sender: No OFD packet to send [04:56:52]OFD Sender: No OFD packet to send [04:56:57]OFD Sender: No OFD packet to send [04:57:02]OFD Sender: No OFD packet to send [04:57:07]OFD Sender: No OFD packet to send [04:57:12]OFD Sender: No OFD packet to send [04:57:17]OFD Sender: No OFD packet to send [04:57:22]OFD Sender: No OFD packet to send [04:57:27]OFD Sender: No OFD packet to send [04:57:32]OFD Sender: No OFD packet to send [04:57:37]OFD Sender: No OFD packet to send [04:57:42]OFD Sender: No OFD packet to send [04:57:47]OFD Sender: No OFD packet to send [04:57:52]OFD Sender: No OFD packet to send [04:57:57]OFD Sender: No OFD packet to send [04:58:02]OFD Sender: No OFD packet to send [04:58:07]OFD Sender: No OFD packet to send [04:58:12]OFD Sender: No OFD packet to send [04:58:17]OFD Sender: No OFD packet to send [04:58:22]OFD Sender: No OFD packet to send [04:58:27]OFD Sender: No OFD packet to send [04:58:32]OFD Sender: No OFD packet to send [04:58:37]OFD Sender: No OFD packet to send [04:58:42]OFD Sender: No OFD packet to send [04:58:47]OFD Sender: No OFD packet to send [04:58:52]OFD Sender: No OFD packet to send [04:58:57]OFD Sender: No OFD packet to send [04:59:02]OFD Sender: No OFD packet to send [04:59:07]OFD Sender: No OFD packet to send [04:59:12]OFD Sender: No OFD packet to send [04:59:17]OFD Sender: No OFD packet to send [04:59:22]OFD Sender: No OFD packet to send [04:59:27]OFD Sender: No OFD packet to send [04:59:32]OFD Sender: No OFD packet to send [04:59:37]OFD Sender: No OFD packet to send [04:59:42]OFD Sender: No OFD packet to send [04:59:47]OFD Sender: No OFD packet to send [04:59:52]OFD Sender: No OFD packet to send [04:59:57]OFD Sender: No OFD packet to send [05:00:02]OFD Sender: No OFD packet to send [05:00:07]OFD Sender: No OFD packet to send [05:00:12]OFD Sender: No OFD packet to send [05:00:17]OFD Sender: No OFD packet to send [05:00:22]OFD Sender: No OFD packet to send [05:00:27]OFD Sender: No OFD packet to send [05:00:32]OFD Sender: No OFD packet to send [05:00:37]OFD Sender: No OFD packet to send [05:00:42]OFD Sender: No OFD packet to send [05:00:47]OFD Sender: No OFD packet to send [05:00:52]OFD Sender: No OFD packet to send [05:00:57]OFD Sender: No OFD packet to send [05:01:02]OFD Sender: No OFD packet to send [05:01:07]OFD Sender: No OFD packet to send [05:01:12]OFD Sender: No OFD packet to send [05:01:17]OFD Sender: No OFD packet to send [05:01:22]OFD Sender: No OFD packet to send [05:01:27]OFD Sender: No OFD packet to send [05:01:32]OFD Sender: No OFD packet to send [05:01:37]OFD Sender: No OFD packet to send [05:01:42]OFD Sender: No OFD packet to send [05:01:47]OFD Sender: No OFD packet to send [05:01:52]OFD Sender: No OFD packet to send [05:01:57]OFD Sender: No OFD packet to send [05:02:02]OFD Sender: No OFD packet to send [05:02:07]OFD Sender: No OFD packet to send [05:02:12]OFD Sender: No OFD packet to send [05:02:17]OFD Sender: No OFD packet to send [05:02:22]OFD Sender: No OFD packet to send [05:02:27]OFD Sender: No OFD packet to send [05:02:32]OFD Sender: No OFD packet to send [05:02:37]OFD Sender: No OFD packet to send [05:02:42]OFD Sender: No OFD packet to send [05:02:47]OFD Sender: No OFD packet to send [05:02:52]OFD Sender: No OFD packet to send [05:02:57]OFD Sender: No OFD packet to send [05:03:02]OFD Sender: No OFD packet to send [05:03:07]OFD Sender: No OFD packet to send [05:03:12]OFD Sender: No OFD packet to send [05:03:17]OFD Sender: No OFD packet to send [05:03:22]OFD Sender: No OFD packet to send [05:03:27]OFD Sender: No OFD packet to send [05:03:32]OFD Sender: No OFD packet to send [05:03:37]OFD Sender: No OFD packet to send [05:03:42]OFD Sender: No OFD packet to send [05:03:47]OFD Sender: No OFD packet to send [05:03:52]OFD Sender: No OFD packet to send [05:03:57]OFD Sender: No OFD packet to send [05:04:02]OFD Sender: No OFD packet to send [05:04:07]OFD Sender: No OFD packet to send [05:04:12]OFD Sender: No OFD packet to send [05:04:17]OFD Sender: No OFD packet to send [05:04:22]OFD Sender: No OFD packet to send [05:04:27]OFD Sender: No OFD packet to send [05:04:32]OFD Sender: No OFD packet to send [05:04:37]OFD Sender: No OFD packet to send [05:04:42]OFD Sender: No OFD packet to send [05:04:47]OFD Sender: No OFD packet to send [05:04:52]OFD Sender: No OFD packet to send [05:04:57]OFD Sender: No OFD packet to send [05:05:03]OFD Sender: No OFD packet to send [05:05:08]OFD Sender: No OFD packet to send [05:05:13]OFD Sender: No OFD packet to send [05:05:18]OFD Sender: No OFD packet to send [05:05:23]OFD Sender: No OFD packet to send [05:05:28]OFD Sender: No OFD packet to send [05:05:33]OFD Sender: No OFD packet to send [05:05:38]OFD Sender: No OFD packet to send [05:05:43]OFD Sender: No OFD packet to send [05:05:48]OFD Sender: No OFD packet to send [05:05:53]OFD Sender: No OFD packet to send [05:05:58]OFD Sender: No OFD packet to send [05:06:03]OFD Sender: No OFD packet to send [05:06:08]OFD Sender: No OFD packet to send [05:06:13]OFD Sender: No OFD packet to send [05:06:18]OFD Sender: No OFD packet to send [05:06:23]OFD Sender: No OFD packet to send [05:06:28]OFD Sender: No OFD packet to send [05:06:33]OFD Sender: No OFD packet to send [05:06:38]OFD Sender: No OFD packet to send [05:06:43]OFD Sender: No OFD packet to send [05:06:48]OFD Sender: No OFD packet to send [05:06:53]OFD Sender: No OFD packet to send [05:06:58]OFD Sender: No OFD packet to send [05:07:03]OFD Sender: No OFD packet to send [05:07:08]OFD Sender: No OFD packet to send [05:07:13]OFD Sender: No OFD packet to send [05:07:18]OFD Sender: No OFD packet to send [05:07:23]OFD Sender: No OFD packet to send [05:07:28]OFD Sender: No OFD packet to send [05:07:33]OFD Sender: No OFD packet to send [05:07:38]OFD Sender: No OFD packet to send [05:07:43]OFD Sender: No OFD packet to send [05:07:48]OFD Sender: No OFD packet to send [05:07:53]OFD Sender: No OFD packet to send [05:07:58]OFD Sender: No OFD packet to send [05:08:03]OFD Sender: No OFD packet to send [05:08:08]OFD Sender: No OFD packet to send [05:08:13]OFD Sender: No OFD packet to send [05:08:18]OFD Sender: No OFD packet to send [05:08:23]OFD Sender: No OFD packet to send [05:08:28]OFD Sender: No OFD packet to send [05:08:33]OFD Sender: No OFD packet to send [05:08:38]OFD Sender: No OFD packet to send [05:08:43]OFD Sender: No OFD packet to send [05:08:48]OFD Sender: No OFD packet to send [05:08:53]OFD Sender: No OFD packet to send [05:08:58]OFD Sender: No OFD packet to send [05:09:03]OFD Sender: No OFD packet to send [05:09:08]OFD Sender: No OFD packet to send [05:09:13]OFD Sender: No OFD packet to send [05:09:18]OFD Sender: No OFD packet to send [05:09:23]OFD Sender: No OFD packet to send [05:09:28]OFD Sender: No OFD packet to send [05:09:33]OFD Sender: No OFD packet to send [05:09:38]OFD Sender: No OFD packet to send [05:09:43]OFD Sender: No OFD packet to send [05:09:48]OFD Sender: No OFD packet to send [05:09:53]OFD Sender: No OFD packet to send [05:09:58]OFD Sender: No OFD packet to send [05:10:03]OFD Sender: No OFD packet to send [05:10:08]OFD Sender: No OFD packet to send [05:10:13]OFD Sender: No OFD packet to send [05:10:18]OFD Sender: No OFD packet to send [05:10:23]OFD Sender: No OFD packet to send [05:10:28]OFD Sender: No OFD packet to send [05:10:33]OFD Sender: No OFD packet to send [05:10:38]OFD Sender: No OFD packet to send [05:10:43]OFD Sender: No OFD packet to send [05:10:48]OFD Sender: No OFD packet to send [05:10:53]OFD Sender: No OFD packet to send [05:10:58]OFD Sender: No OFD packet to send [05:11:03]OFD Sender: No OFD packet to send [05:11:08]OFD Sender: No OFD packet to send [05:11:13]OFD Sender: No OFD packet to send [05:11:18]OFD Sender: No OFD packet to send [05:11:23]OFD Sender: No OFD packet to send [05:11:28]OFD Sender: No OFD packet to send [05:11:33]OFD Sender: No OFD packet to send [05:11:38]OFD Sender: No OFD packet to send [05:11:43]OFD Sender: No OFD packet to send [05:11:48]OFD Sender: No OFD packet to send [05:11:53]OFD Sender: No OFD packet to send [05:11:58]OFD Sender: No OFD packet to send [05:12:03]OFD Sender: No OFD packet to send [05:12:08]OFD Sender: No OFD packet to send [05:12:13]OFD Sender: No OFD packet to send [05:12:18]OFD Sender: No OFD packet to send [05:12:23]OFD Sender: No OFD packet to send [05:12:28]OFD Sender: No OFD packet to send [05:12:33]OFD Sender: No OFD packet to send [05:12:38]OFD Sender: No OFD packet to send [05:12:43]OFD Sender: No OFD packet to send [05:12:48]OFD Sender: No OFD packet to send [05:12:53]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:43]OFD Sender: No OFD packet to send [05:13:48]OFD Sender: No OFD packet to send [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: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: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: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: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: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]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: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: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: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: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]OFD Sender: No OFD packet to send [05:23:13]OFD Sender: No OFD packet to send [05:23:18]OFD Sender: No OFD packet to send [05:23:23]OFD Sender: No OFD packet to send [05:23:28]OFD Sender: No OFD packet to send [05:23:33]OFD Sender: No OFD packet to send [05:23:38]OFD Sender: No OFD packet to send [05:23:43]OFD Sender: No OFD packet to send [05:23:48]OFD Sender: No OFD packet to send [05:23:53]OFD Sender: No OFD packet to send [05:23:58]OFD Sender: No OFD packet to send [05:24:03]OFD Sender: No OFD packet to send [05:24:08]OFD Sender: No OFD packet to send [05:24:13]OFD Sender: No OFD packet to send [05:24:18]OFD Sender: No OFD packet to send [05:24:23]OFD Sender: No OFD packet to send [05:24:28]OFD Sender: No OFD packet to send [05:24:33]OFD Sender: No OFD packet to send [05:24:38]OFD Sender: No OFD packet to send [05:24:43]OFD Sender: No OFD packet to send [05:24:48]OFD Sender: No OFD packet to send [05:24:53]OFD Sender: No OFD packet to send [05:24:58]OFD Sender: No OFD packet to send [05:25:03]OFD Sender: No OFD packet to send [05:25:08]OFD Sender: No OFD packet to send [05:25:13]OFD Sender: No OFD packet to send [05:25:18]OFD Sender: No OFD packet to send [05:25:23]OFD Sender: No OFD packet to send [05:25:28]OFD Sender: No OFD packet to send [05:25:33]OFD Sender: No OFD packet to send [05:25:38]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: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: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: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: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: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]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: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: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:39]OFD Sender: No OFD packet to send [05:33:44]OFD Sender: No OFD packet to send [05:33:49]OFD Sender: No OFD packet to send [05:33:54]OFD Sender: No OFD packet to send [05:33:59]OFD Sender: No OFD packet to send [05:34:04]OFD Sender: No OFD packet to send [05:34:09]OFD Sender: No OFD packet to send [05:34:14]OFD Sender: No OFD packet to send [05:34:19]OFD Sender: No OFD packet to send [05:34:24]OFD Sender: No OFD packet to send [05:34:29]OFD Sender: No OFD packet to send [05:34:34]OFD Sender: No OFD packet to send [05:34:39]OFD Sender: No OFD packet to send [05:34:44]OFD Sender: No OFD packet to send [05:34:49]OFD Sender: No OFD packet to send [05:34:54]OFD Sender: No OFD packet to send [05:34:59]OFD Sender: No OFD packet to send [05:35:04]OFD Sender: No OFD packet to send [05:35:09]OFD Sender: No OFD packet to send [05:35:14]OFD Sender: No OFD packet to send [05:35:19]OFD Sender: No OFD packet to send [05:35:24]OFD Sender: No OFD packet to send [05:35:29]OFD Sender: No OFD packet to send [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:49]OFD Sender: No OFD packet to send [05:35:54]OFD Sender: No OFD packet to send [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: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]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:54]OFD Sender: No OFD packet to send [05:40:59]OFD Sender: No OFD packet to send [05:41:04]OFD Sender: No OFD packet to send [05:41:09]OFD Sender: No OFD packet to send [05:41:14]OFD Sender: No OFD packet to send [05:41:19]OFD Sender: No OFD packet to send [05:41:24]OFD Sender: No OFD packet to send [05:41:29]OFD Sender: No OFD packet to send [05:41:34]OFD Sender: No OFD packet to send [05:41:39]OFD Sender: No OFD packet to send [05:41:44]OFD Sender: No OFD packet to send [05:41:49]OFD Sender: No OFD packet to send [05:41:54]OFD Sender: No OFD packet to send [05:41:59]OFD Sender: No OFD packet to send [05:42:04]OFD Sender: No OFD packet to send [05:42:09]OFD Sender: No OFD packet to send [05:42:14]OFD Sender: No OFD packet to send [05:42:19]OFD Sender: No OFD packet to send [05:42:24]OFD Sender: No OFD packet to send [05:42:29]OFD Sender: No OFD packet to send [05:42:34]OFD Sender: No OFD packet to send [05:42:39]OFD Sender: No OFD packet to send [05:42:44]OFD Sender: No OFD packet to send [05:42:49]OFD Sender: No OFD packet to send [05:42:54]OFD Sender: No OFD packet to send [05:42:59]OFD Sender: No OFD packet to send [05:43:04]OFD Sender: No OFD packet to send [05:43:09]OFD Sender: No OFD packet to send [05:43:14]OFD Sender: No OFD packet to send [05:43:19]OFD Sender: No OFD packet to send [05:43:24]OFD Sender: No OFD packet to send [05:43:29]OFD Sender: No OFD packet to send [05:43:34]OFD Sender: No OFD packet to send [05:43:39]OFD Sender: No OFD packet to send [05:43:44]OFD Sender: No OFD packet to send [05:43:49]OFD Sender: No OFD packet to send [05:43:54]OFD Sender: No OFD packet to send [05:43:59]OFD Sender: No OFD packet to send [05:44:04]OFD Sender: No OFD packet to send [05:44:09]OFD Sender: No OFD packet to send [05:44:14]OFD Sender: No OFD packet to send [05:44:19]OFD Sender: No OFD packet to send [05:44:24]OFD Sender: No OFD packet to send [05:44:29]OFD Sender: No OFD packet to send [05:44:34]OFD Sender: No OFD packet to send [05:44:39]OFD Sender: No OFD packet to send [05:44:44]OFD Sender: No OFD packet to send [05:44:49]OFD Sender: No OFD packet to send [05:44:54]OFD Sender: No OFD packet to send [05:44:59]OFD Sender: No OFD packet to send [05:45:04]OFD Sender: No OFD packet to send [05:45:09]OFD Sender: No OFD packet to send [05:45:14]OFD Sender: No OFD packet to send [05:45:19]OFD Sender: No OFD packet to send [05:45:24]OFD Sender: No OFD packet to send [05:45:29]OFD Sender: No OFD packet to send [05:45:34]OFD Sender: No OFD packet to send [05:45:39]OFD Sender: No OFD packet to send [05:45:44]OFD Sender: No OFD packet to send [05:45:49]OFD Sender: No OFD packet to send [05:45:54]OFD Sender: No OFD packet to send [05:45:59]OFD Sender: No OFD packet to send [05:46:04]OFD Sender: No OFD packet to send [05:46:09]OFD Sender: No OFD packet to send [05:46:14]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: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:15]OFD Sender: No OFD packet to send [05:51:20]OFD Sender: No OFD packet to send [05:51:25]OFD Sender: No OFD packet to send [05:51:30]OFD Sender: No OFD packet to send [05:51:35]OFD Sender: No OFD packet to send [05:51:40]OFD Sender: No OFD packet to send [05:51:45]OFD Sender: No OFD packet to send [05:51:50]OFD Sender: No OFD packet to send [05:51:55]OFD Sender: No OFD packet to send [05:52:00]OFD Sender: No OFD packet to send [05:52:05]OFD Sender: No OFD packet to send [05:52:10]OFD Sender: No OFD packet to send [05:52:15]OFD Sender: No OFD packet to send [05:52:20]OFD Sender: No OFD packet to send [05:52:25]OFD Sender: No OFD packet to send [05:52:30]OFD Sender: No OFD packet to send [05:52:35]OFD Sender: No OFD packet to send [05:52:40]OFD Sender: No OFD packet to send [05:52:45]OFD Sender: No OFD packet to send [05:52:50]OFD Sender: No OFD packet to send [05:52:55]OFD Sender: No OFD packet to send [05:53:00]OFD Sender: No OFD packet to send [05:53:05]OFD Sender: No OFD packet to send [05:53:10]OFD Sender: No OFD packet to send [05:53:15]OFD Sender: No OFD packet to send [05:53:20]OFD Sender: No OFD packet to send [05:53:25]OFD Sender: No OFD packet to send [05:53:30]OFD Sender: No OFD packet to send [05:53:35]OFD Sender: No OFD packet to send [05:53:40]OFD Sender: No OFD packet to send [05:53:45]OFD Sender: No OFD packet to send [05:53:50]OFD Sender: No OFD packet to send [05:53:55]OFD Sender: No OFD packet to send [05:54:00]OFD Sender: No OFD packet to send [05:54:05]OFD Sender: No OFD packet to send [05:54:10]OFD Sender: No OFD packet to send [05:54:15]OFD Sender: No OFD packet to send [05:54:20]OFD Sender: No OFD packet to send [05:54:25]OFD Sender: No OFD packet to send [05:54:30]OFD Sender: No OFD packet to send [05:54:35]OFD Sender: No OFD packet to send [05:54:40]OFD Sender: No OFD packet to send [05:54:45]OFD Sender: No OFD packet to send [05:54:50]OFD Sender: No OFD packet to send [05:54:55]OFD Sender: No OFD packet to send [05:55:00]OFD Sender: No OFD packet to send [05:55:05]OFD Sender: No OFD packet to send [05:55:10]OFD Sender: No OFD packet to send [05:55:15]OFD Sender: No OFD packet to send [05:55:20]OFD Sender: No OFD packet to send [05:55:25]OFD Sender: No OFD packet to send [05:55:30]OFD Sender: No OFD packet to send [05:55:35]OFD Sender: No OFD packet to send [05:55:40]OFD Sender: No OFD packet to send [05:55:45]OFD Sender: No OFD packet to send [05:55:50]OFD Sender: No OFD packet to send [05:55:55]OFD Sender: No OFD packet to send [05:56:00]OFD Sender: No OFD packet to send [05:56:05]OFD Sender: No OFD packet to send [05:56:10]OFD Sender: No OFD packet to send [05:56:15]OFD Sender: No OFD packet to send [05:56:20]OFD Sender: No OFD packet to send [05:56:25]OFD Sender: No OFD packet to send [05:56:30]OFD Sender: No OFD packet to send [05:56:35]OFD Sender: No OFD packet to send [05:56:40]OFD Sender: No OFD packet to send [05:56:45]OFD Sender: No OFD packet to send [05:56:50]OFD Sender: No OFD packet to send [05:56:55]OFD Sender: No OFD packet to send [05:57:00]OFD Sender: No OFD packet to send [05:57:05]OFD Sender: No OFD packet to send [05:57:10]OFD Sender: No OFD packet to send [05:57:15]OFD Sender: No OFD packet to send [05:57:20]OFD Sender: No OFD packet to send [05:57:25]OFD Sender: No OFD packet to send [05:57:30]OFD Sender: No OFD packet to send [05:57:35]OFD Sender: No OFD packet to send [05:57:40]OFD Sender: No OFD packet to send [05:57:45]OFD Sender: No OFD packet to send [05:57:50]OFD Sender: No OFD packet to send [05:57:55]OFD Sender: No OFD packet to send [05:58:00]OFD Sender: No OFD packet to send [05:58:05]OFD Sender: No OFD packet to send [05:58:10]OFD Sender: No OFD packet to send [05:58:15]OFD Sender: No OFD packet to send [05:58:20]OFD Sender: No OFD packet to send [05:58:25]OFD Sender: No OFD packet to send [05:58:30]OFD Sender: No OFD packet to send [05:58:35]OFD Sender: No OFD packet to send [05:58:40]OFD Sender: No OFD packet to send [05:58:45]OFD Sender: No OFD packet to send [05:58:50]OFD Sender: No OFD packet to send [05:58:55]OFD Sender: No OFD packet to send [05:59:00]OFD Sender: No OFD packet to send [05:59:05]OFD Sender: No OFD packet to send [05:59:10]OFD Sender: No OFD packet to send [05:59:15]OFD Sender: No OFD packet to send [05:59:20]OFD Sender: No OFD packet to send [05:59:25]OFD Sender: No OFD packet to send [05:59:30]OFD Sender: No OFD packet to send [05:59:35]OFD Sender: No OFD packet to send [05:59:40]OFD Sender: No OFD packet to send [05:59:45]OFD Sender: No OFD packet to send [05:59:50]OFD Sender: No OFD packet to send [05:59:55]OFD Sender: No OFD packet to send [06:00:00]OFD Sender: No OFD packet to send [06:00:05]OFD Sender: No OFD packet to send [06:00:10]OFD Sender: No OFD packet to send [06:00:15]OFD Sender: No OFD packet to send [06:00:20]OFD Sender: No OFD packet to send [06:00:25]OFD Sender: No OFD packet to send [06:00:30]OFD Sender: No OFD packet to send [06:00:35]OFD Sender: No OFD packet to send [06:00:40]OFD Sender: No OFD packet to send [06:00:45]OFD Sender: No OFD packet to send [06:00:50]OFD Sender: No OFD packet to send [06:00:55]OFD Sender: No OFD packet to send [06:01:00]OFD Sender: No OFD packet to send [06:01:05]OFD Sender: No OFD packet to send [06:01:07]accept exits with 7 [06:01:07]New connection [06:01:07]New thread 3067014500 created [06:01:07]Thread 3067157860 joined [06:01:07]Waiting for new connection... [06:01:07] Sock 7.Parse request [06:01:07]Sock 7.Check first char [06:01:07]Sock 7.First char is OK [06:01:07]request: POST /json_proto HTTP/1.0 [06:01:07]Method: POST [06:01:07]URL: /json_proto [06:01:07]Method is POST - this is cgi request [06:01:07]url: /json_proto [06:01:07]query_string will be loaded in cgi processing [06:01:07]execute_cgi json_proto POST (null) [06:01:07]execute_cgi path=json_proto method=POST [06:01:07]POST find Content-Length [06:01:07]Host: 172.17.48.198:8080 [06:01:07]Content-Length: 788 [06:01:07]Content-Type: application/json [06:01:07] [06:01:07]POST finish read [06:01:07]Found Content-Length = 788 [06:01:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184142", "tax_sys" : 0, "items" : [ { "code": "46230614", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Red Edition", "price" : 145.00, "quantity" : 1.000, "sum" : 145.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 145.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:01:07]execute_script... [06:01:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184142", "tax_sys" : 0, "items" : [ { "code": "46230614", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Red Edition", "price" : 145.00, "quantity" : 1.000, "sum" : 145.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 145.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:01:07]POST & json_proto [06:01:07]process_json_proto [06:01:07]json parsed OK: [06:01:07]protocol is kg_v1.0 [06:01:07]action value=close_receipt [06:01:07]process_action close_receipt [06:01:07]cmd_close_receipt [06:01:07]MH_GetDate [06:01:07]Write to MH i2c: F0 00 00 BF 42 F0 [06:01:07]Write i2c OK [06:01:07]MH_I2C_Read... [06:01:07]Read from MH i2c: F0 [06:01:07]MH_I2C_Read... [06:01:07]Read from MH i2c: F0 09 00 [06:01:07]MH_I2C_Read... [06:01:07]Read from MH i2c: F0 09 00 BF 42 00 2D 12 E4 65 CE C4 D4 65 4C [06:01:07]GetLastDocTimeStamp 1709440853 [06:01:07]current date 1709445677 [06:01:07]FM_GetShiftState [06:01:07]SAM_PROTO_GetShiftState [06:01:07]wFMCommunicate request_size=4 [06:01:07]MH_SAM_APDU [06:01:07]CAPDU: 80 13 01 00 [06:01:07]Write to MH i2c: E2 08 00 C0 42 80 13 01 00 00 00 00 00 7F [06:01:07]Write i2c OK [06:01:07]MH_I2C_Read... [06:01:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:01:07]Read from MH i2c: E2 [06:01:07]MH_I2C_Read... [06:01:07]Read from MH i2c: E2 0E 00 [06:01:07]MH_I2C_Read... [06:01:07]Read from MH i2c: E2 0E 00 C0 42 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 B5 [06:01:07]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [06:01:07]wFMCommunicate OK [06:01:07]SAM_PROTO_GetShiftState done [06:01:07]FM_GetShiftState done [06:01:07]opened in 1709425694 [06:01:07]opened+sec_in_day 1709512094 [06:01:07]quantity*price = 14500 [06:01:07]sum+1 = 14501 [06:01:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 145.00 НСП 1% : 1.28 НДС 12% : 15.40 Наличными: 0.00 Безнал.: 145.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 15 03.03.2024 06:01 Смена: 331 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874796 ФД: 45178 ФПД: 165816754338048 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T060117&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45178&fm=165816754338048&tin=02508201610067®Number=0000000000090572&sum=14500 0 [06:01:08]StoreToDocumentArchive [06:01:08]shift 331 fd 45178 [06:01:08]save to /storage/0331/doc_00045178 [06:01:08]save last doc name /storage/0331/doc_00045178 to /storage/kkm_last_doc_name [06:01:08]save OK [06:01:08]Clear old archive folders... [06:01:08]ProcessDocumentItem done err = 0, tmpTLVsize=274 [06:01:08]tlvbuf is 01B47B30 [06:01:08]SAM_PROTO_ClearQueue [06:01:08]wFMCommunicate request_size=4 [06:01:08]MH_SAM_APDU [06:01:08]CAPDU: 80 09 00 00 [06:01:08]Write to MH i2c: E2 08 00 CD 42 80 09 00 00 00 00 00 00 81 [06:01:08]Write i2c OK [06:01:08]MH_I2C_Read... [06:01:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:01:08]Read from MH i2c: E2 [06:01:08]MH_I2C_Read... [06:01:08]Read from MH i2c: E2 03 00 [06:01:08]MH_I2C_Read... [06:01:08]Read from MH i2c: E2 03 00 CD 42 00 90 00 83 [06:01:08]RAPDU: 90 00 [06:01:08]wFMCommunicate OK [06:01:08]SAM_PROTO_ClearQueue done [06:01:08]KKMCreateOFDPacket [06:01:08]OFDProtocolAddRootSTLVToBuf [06:01:08]FM_MakeSignedData [06:01:08]FM_MakeSignedData [06:01:08]SAM_PROTO_SignData [06:01:08]wFMCommunicate request_size=4 [06:01:08]MH_SAM_APDU [06:01:08]CAPDU: 80 0D 01 02 [06:01:08]Write to MH i2c: E2 08 00 CE 42 80 0D 01 02 00 00 00 00 89 [06:01:08]Write i2c OK [06:01:08]MH_I2C_Read... [06:01:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:01:09]Read from MH i2c: E2 [06:01:09]MH_I2C_Read... [06:01:09]Read from MH i2c: E2 03 00 [06:01:09]MH_I2C_Read... [06:01:09]Read from MH i2c: E2 03 00 CE 42 00 90 00 84 [06:01:09]RAPDU: 90 00 [06:01:09]wFMCommunicate OK [06:01:09]wFMCommunicate request_size=255 [06:01:09]MH_SAM_APDU [06:01:09]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 80 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 2D 12 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 [06:01:09]Write to MH i2c: E2 02 01 CF 42 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 80 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 2D 12 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 00 00 70 [06:01:09]Write i2c OK [06:01:09]MH_I2C_Read... [06:01:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:01:09]Read from MH i2c: E2 [06:01:09]MH_I2C_Read... [06:01:09]Read from MH i2c: E2 03 00 [06:01:09]MH_I2C_Read... [06:01:09]Read from MH i2c: E2 03 00 CF 42 00 90 00 85 [06:01:09]RAPDU: 90 00 [06:01:09]wFMCommunicate OK [06:01:09]wFMCommunicate request_size=33 [06:01:09]MH_SAM_APDU [06:01:09]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 34 37 39 36 10 04 04 00 7A B0 00 00 35 04 06 00 96 CF 38 BD 79 00 [06:01:09]Write to MH i2c: E2 24 00 D0 42 80 0D 02 02 1C 00 30 30 30 30 38 37 34 37 39 36 10 04 04 00 7A B0 00 00 35 04 06 00 96 CF 38 BD 79 00 00 00 21 [06:01:09]Write i2c OK [06:01:09]MH_I2C_Read... [06:01:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:01:09]Read from MH i2c: E2 [06:01:09]MH_I2C_Read... [06:01:09]Read from MH i2c: E2 03 00 [06:01:09]MH_I2C_Read... [06:01:09]Read from MH i2c: E2 03 00 D0 42 00 90 00 86 [06:01:09]RAPDU: 90 00 [06:01:09]wFMCommunicate OK [06:01:09]wFMCommunicate request_size=4 [06:01:09]MH_SAM_APDU [06:01:09]CAPDU: 80 0D 03 02 [06:01:09]Write to MH i2c: E2 08 00 D1 42 80 0D 03 02 00 00 00 00 8E [06:01:09]Write i2c OK [06:01:09]MH_I2C_Read... [06:01:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:01:09]Read from MH i2c: E2 [06:01:09]MH_I2C_Read... [06:01:09]Read from MH i2c: E2 0B 00 [06:01:09]MH_I2C_Read... [06:01:09]Read from MH i2c: E2 0B 00 D1 42 00 94 94 12 C6 28 58 76 4D 90 00 D2 [06:01:09]RAPDU: 94 94 12 C6 28 58 76 4D 90 00 [06:01:09]wFMCommunicate OK [06:01:09]SAM_PROTO_SignData done [06:01:09]FM_MakeSignedData done [06:01:09]CreateOFDProtocolMessage [06:01:09]wFMCommunicate request_size=4 [06:01:09]MH_SAM_APDU [06:01:09]CAPDU: 80 11 00 00 [06:01:09]Write to MH i2c: E2 08 00 D2 42 80 11 00 00 00 00 00 00 8E [06:01:09]Write i2c OK [06:01:09]MH_I2C_Read... [06:01:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:01:09]Read from MH i2c: E2 [06:01:09]MH_I2C_Read... [06:01:09]Read from MH i2c: E2 17 00 [06:01:09]MH_I2C_Read... [06:01:09]Read from MH i2c: E2 17 00 D2 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 EA [06:01:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [06:01:09]wFMCommunicate OK [06:01:09]CreateOFDProtocolMessage done [06:01:09]OFDSenderStorePacket 45178 [06:01:09]StoreOFDPacket docnum=45178 [06:01:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 26 01 00 00 68 88 1E 01 E4 6E 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 80 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 2D 12 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 7A B0 00 00 35 04 06 00 96 CF 38 BD 79 00 94 94 12 C6 28 58 76 4D [06:01:09]CheckFolder [06:01:09]dirname=/storage/ofd_packets [06:01:09]CheckFolder done [06:01:09]ProducePacketName [06:01:09]name=ofd_packets/00045178 [06:01:09]NVStorageSaveData ofd_packets/00045178 [06:01:09]File name is /storage/ofd_packets/00045178 [06:01:09]Write 324 bytes [06:01:09]NVStorageSaveData done [06:01:09]OFDSenderStorePacket done [06:01:09]KKMCreateOFDPacket done [06:01:09]NVStorageSaveData kkm_last_timestamp [06:01:09]File name is /storage/kkm_last_timestamp [06:01:09]Write 4 bytes [06:01:09]NVStorageSaveData done [06:01:09]ExternCall_PrintAddStr [06:01:09]wPrintStart [06:01:09]Write to MH i2c: 01 00 00 D3 42 15 [06:01:09]Write i2c OK [06:01:09]MH_I2C_Read... [06:01:09]Read from MH i2c: 01 [06:01:09]MH_I2C_Read... [06:01:09]Read from MH i2c: 01 07 00 [06:01:09]MH_I2C_Read... [06:01:09]Read from MH i2c: 01 07 00 D3 42 00 00 00 00 00 FF 0F 2A [06:01:09]RasterBufferAndPrint [06:01:09]line Счет N : (3)184142 [06:01:09]line ИНН: 02508201610067 [06:01:09]line Контрольно-Кассовый Чек [06:01:09]line ПРОДАЖА [06:01:09]line Товар: 46230614 [06:01:09]line Сигареты Richmond Red Edition [06:01:09]line 1.000 * 145.00 [06:01:09]line = 145.00 [06:01:09]line НДС 12% НСП 1% [06:01:09]line > о реализуемом товаре [06:01:09]line ИТОГО: 145.00 [06:01:09]line НСП 1% : 1.28 [06:01:09]line НДС 12% : 15.40 [06:01:09]line Наличными: 0.00 [06:01:09]line Безнал.: 145.00 [06:01:09]line Место: АЗС № 25 "Партнер Нефть" [06:01:09]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [06:01:09]line СНО: Общий режим [06:01:09]line Чек 15 03.03.2024 06:01 [06:01:09]line Смена: 331 ФФД: 1.0 [06:01:09]line ЗНМ: 0300000013 [06:01:09]line РНМ: 0000000000090572 [06:01:09]line Версия ККМ: 001 [06:01:09]line Платежная система: О! деньги [06:01:09]line ФМ: 0000000000874796 [06:01:09]line ФД: 45178 [06:01:09]line ФПД: 165816754338048 [06:01:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T060117&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45178&fm=165816754338048&tin=02508201610067®Number=0000000000090572&sum=14500 [06:01:09]line 0 [06:01:09]OFD Sender: Processing packet 45178 [packets to send 17, broken 16] [06:01:09]ProducePacketName [06:01:09]name=ofd_packets/00045178 [06:01:09]OFD Sender: To server: pG, [06:01:09]CommunicateWithHost lk.salyk.kg:30040 [06:01:09]ConnectInit lk.salyk.kg [06:01:09]written 0, free lines is 4095 [06:01:09]Connected sock=10 [06:01:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 26 01 00 00 68 88 1E 01 E4 6E 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 80 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 2D 12 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 7A B0 00 00 35 04 06 00 96 CF 38 BD 79 00 94 94 12 C6 28 58 76 4D [06:01:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 16 70 47 00 04 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 7A B0 00 00 F4 03 04 00 F3 BD E3 65 B6 04 01 00 00 AF A7 BE 19 3F 51 DB 95 [06:01:10]CommunicateWithHost err = 0 [06:01:10]CheckOFDResponse [06:01:10]1017 (14) - 77093643461234 [06:01:10]1041 (16) - 0000000000874796 [06:01:10]1040 (4) - 45178 [06:01:10]1012 (4) - 03.03.2024 00:01 [06:01:10]1206 (1) - 0 [06:01:10]OFD Sender: Remove packet 45178 [06:01:10]ProducePacketName [06:01:10]name=ofd_packets/00045178 [06:01:10]NVStorageDeleteData [06:01:10]Write to MH i2c: 01 00 00 FE 42 40 [06:01:10]Write i2c OK [06:01:10]MH_I2C_Read... [06:01:10]Read from MH i2c: 01 [06:01:10]MH_I2C_Read... [06:01:10]Read from MH i2c: 01 07 00 [06:01:10]MH_I2C_Read... [06:01:10]Read from MH i2c: 01 07 00 FE 42 00 00 00 00 00 C7 0C 1A [06:01:10]RasterBufferAndPrint [06:01:10]line [06:01:10]line [06:01:10]line [06:01:10]line [06:01:10]line [06:01:10]written 0, free lines is 3279 [06:01:10]MH_Cut [06:01:10]Write to MH i2c: D1 01 00 05 43 01 1A [06:01:10]Write i2c OK [06:01:10]MH_I2C_Read... [06:01:10]Read from MH i2c: D1 [06:01:10]MH_I2C_Read... [06:01:10]Read from MH i2c: D1 01 00 [06:01:10]MH_I2C_Read... [06:01:10]Read from MH i2c: D1 01 00 05 43 00 19 [06:01:10]Write to MH i2c: 01 00 00 06 43 49 [06:01:10]Write i2c OK [06:01:10]MH_I2C_Read... [06:01:10]OFD Sender: No OFD packet to send [06:01:10]*** Cut start [06:01:10]*** Purtial cut [06:01:10]*** Stage 1: CUTSNS_PIN = 1 [06:01:13]Read from MH i2c: 01 [06:01:13]MH_I2C_Read... [06:01:13]*** Stop cut motor [06:01:13]*** Cut end [06:01:13]Read from MH i2c: 01 07 00 [06:01:13]MH_I2C_Read... [06:01:13]Read from MH i2c: 01 07 00 06 43 00 00 00 00 00 FF 0F 5E [06:01:13]process_action close_receipt done [06:01:13]requested_data is exist [06:01:13]produce_requested_data [06:01:13]requested_item fm.sn is exist - process it [06:01:13]wFMCommunicate request_size=4 [06:01:13]MH_SAM_APDU [06:01:13]CAPDU: 80 11 00 00 [06:01:13]Write to MH i2c: E2 08 00 07 43 80 11 00 00 00 00 00 00 C4 [06:01:13]Write i2c OK [06:01:13]MH_I2C_Read... [06:01:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:01:13]Read from MH i2c: E2 [06:01:13]MH_I2C_Read... [06:01:13]Read from MH i2c: E2 17 00 [06:01:13]MH_I2C_Read... [06:01:13]Read from MH i2c: E2 17 00 07 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 20 [06:01:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [06:01:13]wFMCommunicate OK [06:01:13]requested_item fd.num is exist - process it [06:01:13]SAM_PROTO_GetFieldsCounters [06:01:13]wFMCommunicate request_size=4 [06:01:13]MH_SAM_APDU [06:01:13]CAPDU: 80 13 00 00 [06:01:13]Write to MH i2c: E2 08 00 08 43 80 13 00 00 00 00 00 00 C7 [06:01:13]Write i2c OK [06:01:13]MH_I2C_Read... [06:01:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:01:13]Read from MH i2c: E2 [06:01:13]MH_I2C_Read... [06:01:13]Read from MH i2c: E2 62 00 [06:01:13]MH_I2C_Read... [06:01:13]Read from MH i2c: E2 62 00 08 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 7A B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 92 [06:01:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 7A B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:01:13]wFMCommunicate OK [06:01:13]SAM_PROTO_GetFieldsCounters done [06:01:13]requested_item shift.num is exist - process it [06:01:13]requested_item shift.opened is exist - process it [06:01:13]req_shift_opened [06:01:13]FM_GetShiftState [06:01:13]SAM_PROTO_GetShiftState [06:01:13]wFMCommunicate request_size=4 [06:01:13]MH_SAM_APDU [06:01:13]CAPDU: 80 13 01 00 [06:01:13]Write to MH i2c: E2 08 00 09 43 80 13 01 00 00 00 00 00 C9 [06:01:13]Write i2c OK [06:01:13]MH_I2C_Read... [06:01:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:01:13]Read from MH i2c: E2 [06:01:13]MH_I2C_Read... [06:01:13]Read from MH i2c: E2 0E 00 [06:01:13]MH_I2C_Read... [06:01:13]Read from MH i2c: E2 0E 00 09 43 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 FF [06:01:13]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [06:01:13]wFMCommunicate OK [06:01:13]SAM_PROTO_GetShiftState done [06:01:13]FM_GetShiftState done [06:01:13]req_shift_opened done [06:01:13]requested_item shift.open_date is exist - process it [06:01:13]req_shift_open_date [06:01:13]req_shift_open_date done [06:01:13]produce_requested_data done [06:01:13]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45178,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [06:01:13]process_action_free close_receipt [06:01:13]json_value_free [06:01:13]json_value_free done [06:01:13]process_json_proto returns [06:01:13]Send response to host [06:01:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45178,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [06:01:13]free response buf [06:01:13]execute_script done [06:01:13]execute_script returns [06:01:13]free content buf [06:01:13]Sock 7.Close socket [06:01:13]Sock 7.Thread stoped [06:01:15]OFD Sender: No OFD packet to send [06:01:20]OFD Sender: No OFD packet to send [06:01:25]OFD Sender: No OFD packet to send [06:01:30]OFD Sender: No OFD packet to send [06:01:35]OFD Sender: No OFD packet to send [06:01:40]OFD Sender: No OFD packet to send [06:01:45]OFD Sender: No OFD packet to send [06:01:50]OFD Sender: No OFD packet to send [06:01:55]OFD Sender: No OFD packet to send [06:02:00]OFD Sender: No OFD packet to send [06:02:05]OFD Sender: No OFD packet to send [06:02:10]OFD Sender: No OFD packet to send [06:02:15]OFD Sender: No OFD packet to send [06:02:20]OFD Sender: No OFD packet to send [06:02:25]OFD Sender: No OFD packet to send [06:02:30]OFD Sender: No OFD packet to send [06:02:35]OFD Sender: No OFD packet to send [06:02:40]OFD Sender: No OFD packet to send [06:02:45]OFD Sender: No OFD packet to send [06:02:50]OFD Sender: No OFD packet to send [06:02:55]OFD Sender: No OFD packet to send [06:03:00]OFD Sender: No OFD packet to send [06:03:05]OFD Sender: No OFD packet to send [06:03:10]OFD Sender: No OFD packet to send [06:03:15]OFD Sender: No OFD packet to send [06:03:20]OFD Sender: No OFD packet to send [06:03:25]OFD Sender: No OFD packet to send [06:03:30]OFD Sender: No OFD packet to send [06:03:35]OFD Sender: No OFD packet to send [06:03:40]OFD Sender: No OFD packet to send [06:03:45]OFD Sender: No OFD packet to send [06:03:50]OFD Sender: No OFD packet to send [06:03:55]OFD Sender: No OFD packet to send [06:04:00]OFD Sender: No OFD packet to send [06:04:05]OFD Sender: No OFD packet to send [06:04:10]OFD Sender: No OFD packet to send [06:04:15]OFD Sender: No OFD packet to send [06:04:20]OFD Sender: No OFD packet to send [06:04:25]OFD Sender: No OFD packet to send [06:04:30]OFD Sender: No OFD packet to send [06:04:35]OFD Sender: No OFD packet to send [06:04:40]OFD Sender: No OFD packet to send [06:04:45]OFD Sender: No OFD packet to send [06:04:50]OFD Sender: No OFD packet to send [06:04:55]OFD Sender: No OFD packet to send [06:05:00]OFD Sender: No OFD packet to send [06:05:05]OFD Sender: No OFD packet to send [06:05:10]OFD Sender: No OFD packet to send [06:05:15]OFD Sender: No OFD packet to send [06:05:20]OFD Sender: No OFD packet to send [06:05:25]OFD Sender: No OFD packet to send [06:05:30]OFD Sender: No OFD packet to send [06:05:35]OFD Sender: No OFD packet to send [06:05:40]OFD Sender: No OFD packet to send [06:05:45]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: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: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:01]OFD Sender: No OFD packet to send [06:09:06]OFD Sender: No OFD packet to send [06:09:11]OFD Sender: No OFD packet to send [06:09:16]OFD Sender: No OFD packet to send [06:09:21]OFD Sender: No OFD packet to send [06:09:26]OFD Sender: No OFD packet to send [06:09:31]OFD Sender: No OFD packet to send [06:09:36]OFD Sender: No OFD packet to send [06:09:41]OFD Sender: No OFD packet to send [06:09:46]OFD Sender: No OFD packet to send [06:09:51]OFD Sender: No OFD packet to send [06:09:56]OFD Sender: No OFD packet to send [06:10:01]OFD Sender: No OFD packet to send [06:10:06]OFD Sender: No OFD packet to send [06:10:11]OFD Sender: No OFD packet to send [06:10:16]OFD Sender: No OFD packet to send [06:10:21]OFD Sender: No OFD packet to send [06:10:26]OFD Sender: No OFD packet to send [06:10:31]OFD Sender: No OFD packet to send [06:10:36]OFD Sender: No OFD packet to send [06:10:41]OFD Sender: No OFD packet to send [06:10:46]OFD Sender: No OFD packet to send [06:10:51]OFD Sender: No OFD packet to send [06:10:56]OFD Sender: No OFD packet to send [06:11:01]OFD Sender: No OFD packet to send [06:11:06]OFD Sender: No OFD packet to send [06:11:11]OFD Sender: No OFD packet to send [06:11:16]OFD Sender: No OFD packet to send [06:11:21]OFD Sender: No OFD packet to send [06:11:26]OFD Sender: No OFD packet to send [06:11:31]OFD Sender: No OFD packet to send [06:11:36]OFD Sender: No OFD packet to send [06:11:41]OFD Sender: No OFD packet to send [06:11:46]OFD Sender: No OFD packet to send [06:11:51]OFD Sender: No OFD packet to send [06:11:56]OFD Sender: No OFD packet to send [06:12:01]OFD Sender: No OFD packet to send [06:12:06]OFD Sender: No OFD packet to send [06:12:11]OFD Sender: No OFD packet to send [06:12:16]OFD Sender: No OFD packet to send [06:12:21]OFD Sender: No OFD packet to send [06:12:26]OFD Sender: No OFD packet to send [06:12:31]OFD Sender: No OFD packet to send [06:12:36]OFD Sender: No OFD packet to send [06:12:41]OFD Sender: No OFD packet to send [06:12:46]OFD Sender: No OFD packet to send [06:12:51]OFD Sender: No OFD packet to send [06:12:56]OFD Sender: No OFD packet to send [06:13:01]OFD Sender: No OFD packet to send [06:13:06]OFD Sender: No OFD packet to send [06:13:11]OFD Sender: No OFD packet to send [06:13:16]OFD Sender: No OFD packet to send [06:13:21]OFD Sender: No OFD packet to send [06:13:26]OFD Sender: No OFD packet to send [06:13:31]OFD Sender: No OFD packet to send [06:13:36]OFD Sender: No OFD packet to send [06:13:41]OFD Sender: No OFD packet to send [06:13:46]OFD Sender: No OFD packet to send [06:13:51]OFD Sender: No OFD packet to send [06:13:56]OFD Sender: No OFD packet to send [06:14:01]OFD Sender: No OFD packet to send [06:14:06]OFD Sender: No OFD packet to send [06:14:11]OFD Sender: No OFD packet to send [06:14:16]OFD Sender: No OFD packet to send [06:14:21]OFD Sender: No OFD packet to send [06:14:26]OFD Sender: No OFD packet to send [06:14:31]OFD Sender: No OFD packet to send [06:14:36]OFD Sender: No OFD packet to send [06:14:41]OFD Sender: No OFD packet to send [06:14:46]OFD Sender: No OFD packet to send [06:14:51]OFD Sender: No OFD packet to send [06:14:56]OFD Sender: No OFD packet to send [06:15:01]OFD Sender: No OFD packet to send [06:15:06]OFD Sender: No OFD packet to send [06:15:11]OFD Sender: No OFD packet to send [06:15:16]OFD Sender: No OFD packet to send [06:15:21]OFD Sender: No OFD packet to send [06:15:26]OFD Sender: No OFD packet to send [06:15:31]OFD Sender: No OFD packet to send [06:15:36]OFD Sender: No OFD packet to send [06:15:41]OFD Sender: No OFD packet to send [06:15:46]OFD Sender: No OFD packet to send [06:15:51]OFD Sender: No OFD packet to send [06:15:56]OFD Sender: No OFD packet to send [06:16:01]OFD Sender: No OFD packet to send [06:16:06]OFD Sender: No OFD packet to send [06:16:11]OFD Sender: No OFD packet to send [06:16:16]OFD Sender: No OFD packet to send [06:16:21]OFD Sender: No OFD packet to send [06:16:26]OFD Sender: No OFD packet to send [06:16:31]OFD Sender: No OFD packet to send [06:16:36]OFD Sender: No OFD packet to send [06:16:41]OFD Sender: No OFD packet to send [06:16:46]OFD Sender: No OFD packet to send [06:16:51]OFD Sender: No OFD packet to send [06:16:56]OFD Sender: No OFD packet to send [06:17:01]OFD Sender: No OFD packet to send [06:17:06]OFD Sender: No OFD packet to send [06:17:11]OFD Sender: No OFD packet to send [06:17:16]OFD Sender: No OFD packet to send [06:17:21]OFD Sender: No OFD packet to send [06:17:26]OFD Sender: No OFD packet to send [06:17:31]OFD Sender: No OFD packet to send [06:17:36]OFD Sender: No OFD packet to send [06:17:41]OFD Sender: No OFD packet to send [06:17:46]OFD Sender: No OFD packet to send [06:17:51]OFD Sender: No OFD packet to send [06:17:56]OFD Sender: No OFD packet to send [06:18:01]OFD Sender: No OFD packet to send [06:18:06]OFD Sender: No OFD packet to send [06:18:11]OFD Sender: No OFD packet to send [06:18:16]OFD Sender: No OFD packet to send [06:18:21]OFD Sender: No OFD packet to send [06:18:26]OFD Sender: No OFD packet to send [06:18:31]OFD Sender: No OFD packet to send [06:18:36]OFD Sender: No OFD packet to send [06:18:41]OFD Sender: No OFD packet to send [06:18:46]OFD Sender: No OFD packet to send [06:18:51]OFD Sender: No OFD packet to send [06:18:56]OFD Sender: No OFD packet to send [06:19:01]OFD Sender: No OFD packet to send [06:19:06]OFD Sender: No OFD packet to send [06:19:11]OFD Sender: No OFD packet to send [06:19:16]OFD Sender: No OFD packet to send [06:19:21]OFD Sender: No OFD packet to send [06:19:26]OFD Sender: No OFD packet to send [06:19:31]OFD Sender: No OFD packet to send [06:19:36]OFD Sender: No OFD packet to send [06:19:41]OFD Sender: No OFD packet to send [06:19:46]OFD Sender: No OFD packet to send [06:19:51]OFD Sender: No OFD packet to send [06:19:56]OFD Sender: No OFD packet to send [06:20:01]OFD Sender: No OFD packet to send [06:20:06]OFD Sender: No OFD packet to send [06:20:11]OFD Sender: No OFD packet to send [06:20:16]OFD Sender: No OFD packet to send [06:20:21]OFD Sender: No OFD packet to send [06:20:26]OFD Sender: No OFD packet to send [06:20:31]OFD Sender: No OFD packet to send [06:20:36]OFD Sender: No OFD packet to send [06:20:41]OFD Sender: No OFD packet to send [06:20:46]OFD Sender: No OFD packet to send [06:20:51]OFD Sender: No OFD packet to send [06:20:56]OFD Sender: No OFD packet to send [06:21:01]OFD Sender: No OFD packet to send [06:21:06]OFD Sender: No OFD packet to send [06:21:11]OFD Sender: No OFD packet to send [06:21: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: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:30]accept exits with 9 [06:22:30]New connection [06:22:30]New thread 3067157860 created [06:22:30]Thread 3067014500 joined [06:22:30]Waiting for new connection... [06:22:30] Sock 9.Parse request [06:22:30]Sock 9.Check first char [06:22:30]Sock 9.First char is OK [06:22:30]request: POST /json_proto HTTP/1.0 [06:22:30]Method: POST [06:22:30]URL: /json_proto [06:22:30]Method is POST - this is cgi request [06:22:30]url: /json_proto [06:22:30]query_string will be loaded in cgi processing [06:22:30]execute_cgi json_proto POST (null) [06:22:30]execute_cgi path=json_proto method=POST [06:22:30]POST find Content-Length [06:22:30]Host: 172.17.48.198:8080 [06:22:30]Content-Length: 655 [06:22:30]Content-Type: application/json [06:22:30] [06:22:30]POST finish read [06:22:30]Found Content-Length = 655 [06:22:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184143", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:22:30]execute_script... [06:22:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184143", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:22:30]POST & json_proto [06:22:30]process_json_proto [06:22:30]json parsed OK: [06:22:30]protocol is kg_v1.0 [06:22:30]action value=close_receipt [06:22:30]process_action close_receipt [06:22:30]cmd_close_receipt [06:22:30]MH_GetDate [06:22:30]Write to MH i2c: F0 00 00 0A 43 3C [06:22:30]Write i2c OK [06:22:30]MH_I2C_Read... [06:22:30]Read from MH i2c: F0 [06:22:30]MH_I2C_Read... [06:22:30]Read from MH i2c: F0 09 00 [06:22:30]MH_I2C_Read... [06:22:30]Read from MH i2c: F0 09 00 0A 43 00 30 17 E4 65 CE C4 D4 65 A0 [06:22:30]GetLastDocTimeStamp 1709445677 [06:22:30]current date 1709446960 [06:22:30]FM_GetShiftState [06:22:30]SAM_PROTO_GetShiftState [06:22:30]wFMCommunicate request_size=4 [06:22:30]MH_SAM_APDU [06:22:30]CAPDU: 80 13 01 00 [06:22:30]Write to MH i2c: E2 08 00 0B 43 80 13 01 00 00 00 00 00 CB [06:22:30]Write i2c OK [06:22:30]MH_I2C_Read... [06:22:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:22:30]Read from MH i2c: E2 [06:22:30]MH_I2C_Read... [06:22:30]Read from MH i2c: E2 0E 00 [06:22:30]MH_I2C_Read... [06:22:30]Read from MH i2c: E2 0E 00 0B 43 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 01 [06:22:30]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [06:22:30]wFMCommunicate OK [06:22:30]SAM_PROTO_GetShiftState done [06:22:30]FM_GetShiftState done [06:22:30]opened in 1709425694 [06:22:30]opened+sec_in_day 1709512094 [06:22:30]quantity*price = 8500 [06:22:30]sum+1 = 8501 [06:22:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 85.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 16 03.03.2024 06:22 Смена: 331 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 ФМ: 0000000000874796 ФД: 45179 ФПД: 246436378201980 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T062240&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45179&fm=246436378201980&tin=02508201610067®Number=0000000000090572&sum=8500 0 [06:22:31]StoreToDocumentArchive [06:22:31]shift 331 fd 45179 [06:22:31]save to /storage/0331/doc_00045179 [06:22:31]save last doc name /storage/0331/doc_00045179 to /storage/kkm_last_doc_name [06:22:31]save OK [06:22:31]Clear old archive folders... [06:22:31]ProcessDocumentItem done err = 0, tmpTLVsize=294 [06:22:31]tlvbuf is 01C72900 [06:22:31]SAM_PROTO_ClearQueue [06:22:31]wFMCommunicate request_size=4 [06:22:31]MH_SAM_APDU [06:22:31]CAPDU: 80 09 00 00 [06:22:31]Write to MH i2c: E2 08 00 18 43 80 09 00 00 00 00 00 00 CD [06:22:31]Write i2c OK [06:22:31]MH_I2C_Read... [06:22:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:22:31]Read from MH i2c: E2 [06:22:31]MH_I2C_Read... [06:22:31]Read from MH i2c: E2 03 00 [06:22:31]MH_I2C_Read... [06:22:31]Read from MH i2c: E2 03 00 18 43 00 90 00 CF [06:22:31]RAPDU: 90 00 [06:22:31]wFMCommunicate OK [06:22:31]SAM_PROTO_ClearQueue done [06:22:31]KKMCreateOFDPacket [06:22:31]OFDProtocolAddRootSTLVToBuf [06:22:31]FM_MakeSignedData [06:22:31]FM_MakeSignedData [06:22:31]SAM_PROTO_SignData [06:22:31]wFMCommunicate request_size=4 [06:22:31]MH_SAM_APDU [06:22:31]CAPDU: 80 0D 01 02 [06:22:31]Write to MH i2c: E2 08 00 19 43 80 0D 01 02 00 00 00 00 D5 [06:22:31]Write i2c OK [06:22:31]MH_I2C_Read... [06:22:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:22:32]Read from MH i2c: E2 [06:22:32]MH_I2C_Read... [06:22:32]Read from MH i2c: E2 03 00 [06:22:32]MH_I2C_Read... [06:22:32]Read from MH i2c: E2 03 00 19 43 00 90 00 D0 [06:22:32]RAPDU: 90 00 [06:22:32]wFMCommunicate OK [06:22:32]wFMCommunicate request_size=255 [06:22:32]MH_SAM_APDU [06:22:32]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 30 17 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [06:22:32]Write to MH i2c: E2 02 01 1A 43 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 30 17 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 A5 [06:22:32]Write i2c OK [06:22:32]MH_I2C_Read... [06:22:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:22:32]Read from MH i2c: E2 [06:22:32]MH_I2C_Read... [06:22:32]Read from MH i2c: E2 03 00 [06:22:32]MH_I2C_Read... [06:22:32]Read from MH i2c: E2 03 00 1A 43 00 90 00 D1 [06:22:32]RAPDU: 90 00 [06:22:32]wFMCommunicate OK [06:22:32]wFMCommunicate request_size=53 [06:22:32]MH_SAM_APDU [06:22:32]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 7B B0 00 00 35 04 06 00 E0 21 F0 C8 4F 7C [06:22:32]Write to MH i2c: E2 38 00 1B 43 80 0D 02 02 30 00 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 7B B0 00 00 35 04 06 00 E0 21 F0 C8 4F 7C 00 00 83 [06:22:32]Write i2c OK [06:22:32]MH_I2C_Read... [06:22:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:22:32]Read from MH i2c: E2 [06:22:32]MH_I2C_Read... [06:22:32]Read from MH i2c: E2 03 00 [06:22:32]MH_I2C_Read... [06:22:32]Read from MH i2c: E2 03 00 1B 43 00 90 00 D2 [06:22:32]RAPDU: 90 00 [06:22:32]wFMCommunicate OK [06:22:32]wFMCommunicate request_size=4 [06:22:32]MH_SAM_APDU [06:22:32]CAPDU: 80 0D 03 02 [06:22:32]Write to MH i2c: E2 08 00 1C 43 80 0D 03 02 00 00 00 00 DA [06:22:32]Write i2c OK [06:22:32]MH_I2C_Read... [06:22:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:22:32]Read from MH i2c: E2 [06:22:32]MH_I2C_Read... [06:22:32]Read from MH i2c: E2 0B 00 [06:22:32]MH_I2C_Read... [06:22:32]Read from MH i2c: E2 0B 00 1C 43 00 08 4E 24 38 9F F1 D9 EC 90 00 E2 [06:22:32]RAPDU: 08 4E 24 38 9F F1 D9 EC 90 00 [06:22:32]wFMCommunicate OK [06:22:32]SAM_PROTO_SignData done [06:22:32]FM_MakeSignedData done [06:22:32]CreateOFDProtocolMessage [06:22:32]wFMCommunicate request_size=4 [06:22:32]MH_SAM_APDU [06:22:32]CAPDU: 80 11 00 00 [06:22:32]Write to MH i2c: E2 08 00 1D 43 80 11 00 00 00 00 00 00 DA [06:22:32]Write i2c OK [06:22:32]MH_I2C_Read... [06:22:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:22:32]Read from MH i2c: E2 [06:22:32]MH_I2C_Read... [06:22:32]Read from MH i2c: E2 17 00 [06:22:32]MH_I2C_Read... [06:22:32]Read from MH i2c: E2 17 00 1D 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 36 [06:22:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [06:22:32]wFMCommunicate OK [06:22:32]CreateOFDProtocolMessage done [06:22:32]OFDSenderStorePacket 45179 [06:22:32]StoreOFDPacket docnum=45179 [06:22:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 3A 01 00 00 30 DE 32 01 6F 37 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 30 17 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 7B B0 00 00 35 04 06 00 E0 21 F0 C8 4F 7C 08 4E 24 38 9F F1 D9 EC [06:22:32]CheckFolder [06:22:32]dirname=/storage/ofd_packets [06:22:32]CheckFolder done [06:22:32]ProducePacketName [06:22:32]name=ofd_packets/00045179 [06:22:32]NVStorageSaveData ofd_packets/00045179 [06:22:32]File name is /storage/ofd_packets/00045179 [06:22:32]Write 344 bytes [06:22:32]NVStorageSaveData done [06:22:32]OFDSenderStorePacket done [06:22:32]KKMCreateOFDPacket done [06:22:32]NVStorageSaveData kkm_last_timestamp [06:22:32]File name is /storage/kkm_last_timestamp [06:22:32]Write 4 bytes [06:22:32]NVStorageSaveData done [06:22:32]ExternCall_PrintAddStr [06:22:32]wPrintStart [06:22:32]Write to MH i2c: 01 00 00 1E 43 61 [06:22:32]Write i2c OK [06:22:32]MH_I2C_Read... [06:22:32]Read from MH i2c: 01 [06:22:32]MH_I2C_Read... [06:22:32]Read from MH i2c: 01 07 00 [06:22:32]MH_I2C_Read... [06:22:32]Read from MH i2c: 01 07 00 1E 43 00 00 00 00 00 FF 0F 76 [06:22:32]RasterBufferAndPrint [06:22:32]line Счет N : (3)184143 [06:22:32]line ИНН: 02508201610067 [06:22:32]line Контрольно-Кассовый Чек [06:22:32]line ПРОДАЖА [06:22:32]line Товар: 4600682557456 [06:22:32]line Напиток FLash up energy эн ж/б 0,5/0,45л [06:22:32]line 1.000 * 85.00 [06:22:32]line = 85.00 [06:22:32]line НДС 12% НСП 1% [06:22:32]line > о реализуемом товаре [06:22:32]line ИТОГО: 85.00 [06:22:32]line НСП 1% : 0.75 [06:22:32]line НДС 12% : 9.03 [06:22:32]line Наличными: 85.00 [06:22:32]line Безнал.: 0.00 [06:22:32]line Место: АЗС № 25 "Партнер Нефть" [06:22:32]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [06:22:32]line СНО: Общий режим [06:22:32]line Чек 16 03.03.2024 06:22 [06:22:32]line Смена: 331 ФФД: 1.0 [06:22:32]line ЗНМ: 0300000013 [06:22:32]line РНМ: 0000000000090572 [06:22:32]line Версия ККМ: 001 [06:22:32]line ФМ: 0000000000874796 [06:22:32]line ФД: 45179 [06:22:32]line ФПД: 246436378201980 [06:22:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T062240&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45179&fm=246436378201980&tin=02508201610067®Number=0000000000090572&sum=8500 [06:22:32]line 0 [06:22:32]OFD Sender: Processing packet 45179 [packets to send 17, broken 16] [06:22:32]ProducePacketName [06:22:32]name=ofd_packets/00045179 [06:22:32]OFD Sender: To server: pG, [06:22:32]CommunicateWithHost lk.salyk.kg:30040 [06:22:32]ConnectInit lk.salyk.kg [06:22:32]written 0, free lines is 4095 [06:22:32]Connected sock=7 [06:22:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 3A 01 00 00 30 DE 32 01 6F 37 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 30 17 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 7B B0 00 00 35 04 06 00 E0 21 F0 C8 4F 7C 08 4E 24 38 9F F1 D9 EC [06:22:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 40 94 47 00 7D 44 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 7B B0 00 00 F4 03 04 00 F6 C2 E3 65 B6 04 01 00 00 46 34 D6 EE F7 F5 A0 07 [06:22:33]CommunicateWithHost err = 0 [06:22:33]CheckOFDResponse [06:22:33]1017 (14) - 77093643461234 [06:22:33]1041 (16) - 0000000000874796 [06:22:33]1040 (4) - 45179 [06:22:33]1012 (4) - 03.03.2024 00:23 [06:22:33]1206 (1) - 0 [06:22:33]OFD Sender: Remove packet 45179 [06:22:33]ProducePacketName [06:22:33]name=ofd_packets/00045179 [06:22:33]NVStorageDeleteData [06:22:33]Write to MH i2c: 01 00 00 47 43 8A [06:22:33]Write i2c OK [06:22:33]MH_I2C_Read... [06:22:33]Read from MH i2c: 01 [06:22:33]MH_I2C_Read... [06:22:33]Read from MH i2c: 01 07 00 [06:22:33]MH_I2C_Read... [06:22:33]Read from MH i2c: 01 07 00 47 43 00 00 00 00 00 05 0D A3 [06:22:33]RasterBufferAndPrint [06:22:33]line [06:22:33]line [06:22:33]line [06:22:33]line [06:22:33]line [06:22:33]written 0, free lines is 3339 [06:22:33]MH_Cut [06:22:33]Write to MH i2c: D1 01 00 4E 43 01 63 [06:22:33]Write i2c OK [06:22:33]MH_I2C_Read... [06:22:33]Read from MH i2c: D1 [06:22:33]MH_I2C_Read... [06:22:33]Read from MH i2c: D1 01 00 [06:22:33]MH_I2C_Read... [06:22:33]Read from MH i2c: D1 01 00 4E 43 00 62 [06:22:33]Write to MH i2c: 01 00 00 4F 43 92 [06:22:33]Write i2c OK [06:22:33]MH_I2C_Read... [06:22:33]OFD Sender: No OFD packet to send [06:22:33]*** Cut start [06:22:33]*** Purtial cut [06:22:33]*** Stage 1: CUTSNS_PIN = 1 [06:22:35]Read from MH i2c: 01 [06:22:35]MH_I2C_Read... [06:22:35]*** Stop cut motor [06:22:35]*** Cut end [06:22:35]Read from MH i2c: 01 07 00 [06:22:35]MH_I2C_Read... [06:22:35]Read from MH i2c: 01 07 00 4F 43 00 00 00 00 00 FF 0F A7 [06:22:35]process_action close_receipt done [06:22:35]requested_data is exist [06:22:35]produce_requested_data [06:22:35]requested_item fm.sn is exist - process it [06:22:35]wFMCommunicate request_size=4 [06:22:35]MH_SAM_APDU [06:22:35]CAPDU: 80 11 00 00 [06:22:35]Write to MH i2c: E2 08 00 50 43 80 11 00 00 00 00 00 00 0D [06:22:35]Write i2c OK [06:22:35]MH_I2C_Read... [06:22:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:22:36]Read from MH i2c: E2 [06:22:36]MH_I2C_Read... [06:22:36]Read from MH i2c: E2 17 00 [06:22:36]MH_I2C_Read... [06:22:36]Read from MH i2c: E2 17 00 50 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 69 [06:22:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [06:22:36]wFMCommunicate OK [06:22:36]requested_item fd.num is exist - process it [06:22:36]SAM_PROTO_GetFieldsCounters [06:22:36]wFMCommunicate request_size=4 [06:22:36]MH_SAM_APDU [06:22:36]CAPDU: 80 13 00 00 [06:22:36]Write to MH i2c: E2 08 00 51 43 80 13 00 00 00 00 00 00 10 [06:22:36]Write i2c OK [06:22:36]MH_I2C_Read... [06:22:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:22:36]Read from MH i2c: E2 [06:22:36]MH_I2C_Read... [06:22:36]Read from MH i2c: E2 62 00 [06:22:36]MH_I2C_Read... [06:22:36]Read from MH i2c: E2 62 00 51 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 7B B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 DF [06:22:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 7B B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:22:36]wFMCommunicate OK [06:22:36]SAM_PROTO_GetFieldsCounters done [06:22:36]requested_item shift.num is exist - process it [06:22:36]requested_item shift.opened is exist - process it [06:22:36]req_shift_opened [06:22:36]FM_GetShiftState [06:22:36]SAM_PROTO_GetShiftState [06:22:36]wFMCommunicate request_size=4 [06:22:36]MH_SAM_APDU [06:22:36]CAPDU: 80 13 01 00 [06:22:36]Write to MH i2c: E2 08 00 52 43 80 13 01 00 00 00 00 00 12 [06:22:36]Write i2c OK [06:22:36]MH_I2C_Read... [06:22:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:22:36]Read from MH i2c: E2 [06:22:36]MH_I2C_Read... [06:22:36]Read from MH i2c: E2 0E 00 [06:22:36]MH_I2C_Read... [06:22:36]Read from MH i2c: E2 0E 00 52 43 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 48 [06:22:36]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [06:22:36]wFMCommunicate OK [06:22:36]SAM_PROTO_GetShiftState done [06:22:36]FM_GetShiftState done [06:22:36]req_shift_opened done [06:22:36]requested_item shift.open_date is exist - process it [06:22:36]req_shift_open_date [06:22:36]req_shift_open_date done [06:22:36]produce_requested_data done [06:22:36]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45179,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [06:22:36]process_action_free close_receipt [06:22:36]json_value_free [06:22:36]json_value_free done [06:22:36]process_json_proto returns [06:22:36]Send response to host [06:22:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45179,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [06:22:36]free response buf [06:22:36]execute_script done [06:22:36]execute_script returns [06:22:36]free content buf [06:22:36]Sock 9.Close socket [06:22:36]Sock 9.Thread stoped [06:22:38]OFD Sender: No OFD packet to send [06:22:43]OFD Sender: No OFD packet to send [06:22:48]OFD Sender: No OFD packet to send [06:22:53]OFD Sender: No OFD packet to send [06:22:58]OFD Sender: No OFD packet to send [06:23:03]OFD Sender: No OFD packet to send [06:23:08]OFD Sender: No OFD packet to send [06:23:13]OFD Sender: No OFD packet to send [06:23:18]OFD Sender: No OFD packet to send [06:23:23]OFD Sender: No OFD packet to send [06:23:28]OFD Sender: No OFD packet to send [06:23:33]OFD Sender: No OFD packet to send [06:23:38]OFD Sender: No OFD packet to send [06:23:43]OFD Sender: No OFD packet to send [06:23:48]OFD Sender: No OFD packet to send [06:23:53]OFD Sender: No OFD packet to send [06:23:58]OFD Sender: No OFD packet to send [06:24:03]OFD Sender: No OFD packet to send [06:24:08]OFD Sender: No OFD packet to send [06:24:13]OFD Sender: No OFD packet to send [06:24:18]OFD Sender: No OFD packet to send [06:24:23]OFD Sender: No OFD packet to send [06:24:28]OFD Sender: No OFD packet to send [06:24:33]OFD Sender: No OFD packet to send [06:24:38]OFD Sender: No OFD packet to send [06:24:43]OFD Sender: No OFD packet to send [06:24:48]OFD Sender: No OFD packet to send [06:24:53]OFD Sender: No OFD packet to send [06:24:58]OFD Sender: No OFD packet to send [06:25:03]OFD Sender: No OFD packet to send [06:25:08]OFD Sender: No OFD packet to send [06:25:13]OFD Sender: No OFD packet to send [06:25:18]OFD Sender: No OFD packet to send [06:25:23]OFD Sender: No OFD packet to send [06:25:28]OFD Sender: No OFD packet to send [06:25:33]OFD Sender: No OFD packet to send [06:25:38]OFD Sender: No OFD packet to send [06:25:43]OFD Sender: No OFD packet to send [06:25:48]OFD Sender: No OFD packet to send [06:25:53]OFD Sender: No OFD packet to send [06:25:58]OFD Sender: No OFD packet to send [06:26:03]OFD Sender: No OFD packet to send [06:26:08]OFD Sender: No OFD packet to send [06:26:13]OFD Sender: No OFD packet to send [06:26:18]OFD Sender: No OFD packet to send [06:26:23]OFD Sender: No OFD packet to send [06:26:28]OFD Sender: No OFD packet to send [06:26:33]OFD Sender: No OFD packet to send [06:26:38]OFD Sender: No OFD packet to send [06:26:43]OFD Sender: No OFD packet to send [06:26:48]OFD Sender: No OFD packet to send [06:26:53]OFD Sender: No OFD packet to send [06:26:58]OFD Sender: No OFD packet to send [06:27:03]OFD Sender: No OFD packet to send [06:27:08]OFD Sender: No OFD packet to send [06:27:13]OFD Sender: No OFD packet to send [06:27:18]OFD Sender: No OFD packet to send [06:27:23]OFD Sender: No OFD packet to send [06:27:28]OFD Sender: No OFD packet to send [06:27:33]OFD Sender: No OFD packet to send [06:27:38]OFD Sender: No OFD packet to send [06:27:43]OFD Sender: No OFD packet to send [06:27:48]OFD Sender: No OFD packet to send [06:27:53]OFD Sender: No OFD packet to send [06:27:58]OFD Sender: No OFD packet to send [06:28:03]OFD Sender: No OFD packet to send [06:28:08]OFD Sender: No OFD packet to send [06:28:13]OFD Sender: No OFD packet to send [06:28:18]OFD Sender: No OFD packet to send [06:28:23]OFD Sender: No OFD packet to send [06:28:28]OFD Sender: No OFD packet to send [06:28:33]OFD Sender: No OFD packet to send [06:28:38]OFD Sender: No OFD packet to send [06:28:43]OFD Sender: No OFD packet to send [06:28:48]OFD Sender: No OFD packet to send [06:28:53]OFD Sender: No OFD packet to send [06:28:58]OFD Sender: No OFD packet to send [06:29:03]OFD Sender: No OFD packet to send [06:29:08]OFD Sender: No OFD packet to send [06:29:13]OFD Sender: No OFD packet to send [06:29:18]OFD Sender: No OFD packet to send [06:29:23]OFD Sender: No OFD packet to send [06:29:28]OFD Sender: No OFD packet to send [06:29:33]OFD Sender: No OFD packet to send [06:29:39]OFD Sender: No OFD packet to send [06:29:44]OFD Sender: No OFD packet to send [06:29:49]OFD Sender: No OFD packet to send [06:29:54]OFD Sender: No OFD packet to send [06:29:59]OFD Sender: No OFD packet to send [06:30:04]OFD Sender: No OFD packet to send [06:30:09]OFD Sender: No OFD packet to send [06:30:14]OFD Sender: No OFD packet to send [06:30:19]OFD Sender: No OFD packet to send [06:30:24]OFD Sender: No OFD packet to send [06:30:29]OFD Sender: No OFD packet to send [06:30:34]OFD Sender: No OFD packet to send [06:30:39]OFD Sender: No OFD packet to send [06:30:44]OFD Sender: No OFD packet to send [06:30:49]OFD Sender: No OFD packet to send [06:30:54]OFD Sender: No OFD packet to send [06:30:59]OFD Sender: No OFD packet to send [06:31:04]OFD Sender: No OFD packet to send [06:31:09]OFD Sender: No OFD packet to send [06:31:14]OFD Sender: No OFD packet to send [06:31:19]OFD Sender: No OFD packet to send [06:31:24]OFD Sender: No OFD packet to send [06:31:29]OFD Sender: No OFD packet to send [06:31:34]OFD Sender: No OFD packet to send [06:31:39]OFD Sender: No OFD packet to send [06:31:44]OFD Sender: No OFD packet to send [06:31:49]OFD Sender: No OFD packet to send [06:31:54]OFD Sender: No OFD packet to send [06:31:59]OFD Sender: No OFD packet to send [06:32:04]OFD Sender: No OFD packet to send [06:32:09]OFD Sender: No OFD packet to send [06:32:14]OFD Sender: No OFD packet to send [06:32:19]OFD Sender: No OFD packet to send [06:32:24]OFD Sender: No OFD packet to send [06:32:29]OFD Sender: No OFD packet to send [06:32:34]OFD Sender: No OFD packet to send [06:32:39]OFD Sender: No OFD packet to send [06:32:44]OFD Sender: No OFD packet to send [06:32:49]OFD Sender: No OFD packet to send [06:32:54]OFD Sender: No OFD packet to send [06:32:59]OFD Sender: No OFD packet to send [06:33:04]OFD Sender: No OFD packet to send [06:33:09]OFD Sender: No OFD packet to send [06:33:14]OFD Sender: No OFD packet to send [06:33:19]OFD Sender: No OFD packet to send [06:33:24]OFD Sender: No OFD packet to send [06:33:29]OFD Sender: No OFD packet to send [06:33:34]OFD Sender: No OFD packet to send [06:33:39]OFD Sender: No OFD packet to send [06:33:44]OFD Sender: No OFD packet to send [06:33:49]OFD Sender: No OFD packet to send [06:33:54]OFD Sender: No OFD packet to send [06:33:59]OFD Sender: No OFD packet to send [06:34:04]OFD Sender: No OFD packet to send [06:34:09]OFD Sender: No OFD packet to send [06:34:14]OFD Sender: No OFD packet to send [06:34:19]OFD Sender: No OFD packet to send [06:34:24]OFD Sender: No OFD packet to send [06:34:29]OFD Sender: No OFD packet to send [06:34:34]OFD Sender: No OFD packet to send [06:34:39]OFD Sender: No OFD packet to send [06:34:44]OFD Sender: No OFD packet to send [06:34:49]OFD Sender: No OFD packet to send [06:34:54]OFD Sender: No OFD packet to send [06:34:59]OFD Sender: No OFD packet to send [06:35:04]OFD Sender: No OFD packet to send [06:35:09]OFD Sender: No OFD packet to send [06:35:14]OFD Sender: No OFD packet to send [06:35:19]OFD Sender: No OFD packet to send [06:35:24]OFD Sender: No OFD packet to send [06:35:29]OFD Sender: No OFD packet to send [06:35:34]OFD Sender: No OFD packet to send [06:35:39]OFD Sender: No OFD packet to send [06:35:44]OFD Sender: No OFD packet to send [06:35:49]OFD Sender: No OFD packet to send [06:35:54]OFD Sender: No OFD packet to send [06:35:59]OFD Sender: No OFD packet to send [06:36:04]OFD Sender: No OFD packet to send [06:36:09]OFD Sender: No OFD packet to send [06:36:14]OFD Sender: No OFD packet to send [06:36:19]OFD Sender: No OFD packet to send [06:36:24]OFD Sender: No OFD packet to send [06:36:29]OFD Sender: No OFD packet to send [06:36:34]OFD Sender: No OFD packet to send [06:36:39]OFD Sender: No OFD packet to send [06:36:44]OFD Sender: No OFD packet to send [06:36:49]OFD Sender: No OFD packet to send [06:36:54]OFD Sender: No OFD packet to send [06:36:59]OFD Sender: No OFD packet to send [06:37:04]OFD Sender: No OFD packet to send [06:37:09]OFD Sender: No OFD packet to send [06:37:14]OFD Sender: No OFD packet to send [06:37:19]OFD Sender: No OFD packet to send [06:37:24]OFD Sender: No OFD packet to send [06:37:29]OFD Sender: No OFD packet to send [06:37:34]OFD Sender: No OFD packet to send [06:37:39]OFD Sender: No OFD packet to send [06:37:44]OFD Sender: No OFD packet to send [06:37:49]OFD Sender: No OFD packet to send [06:37:54]OFD Sender: No OFD packet to send [06:37:59]OFD Sender: No OFD packet to send [06:38:04]OFD Sender: No OFD packet to send [06:38:09]OFD Sender: No OFD packet to send [06:38:14]OFD Sender: No OFD packet to send [06:38:19]OFD Sender: No OFD packet to send [06:38:24]OFD Sender: No OFD packet to send [06:38:29]OFD Sender: No OFD packet to send [06:38:34]OFD Sender: No OFD packet to send [06:38:39]OFD Sender: No OFD packet to send [06:38:44]OFD Sender: No OFD packet to send [06:38:49]OFD Sender: No OFD packet to send [06:38:54]OFD Sender: No OFD packet to send [06:38:59]OFD Sender: No OFD packet to send [06:39:04]OFD Sender: No OFD packet to send [06:39:09]OFD Sender: No OFD packet to send [06:39:14]OFD Sender: No OFD packet to send [06:39:19]OFD Sender: No OFD packet to send [06:39:24]OFD Sender: No OFD packet to send [06:39:29]OFD Sender: No OFD packet to send [06:39:34]OFD Sender: No OFD packet to send [06:39:39]OFD Sender: No OFD packet to send [06:39:44]OFD Sender: No OFD packet to send [06:39:49]OFD Sender: No OFD packet to send [06:39:54]OFD Sender: No OFD packet to send [06:39:59]OFD Sender: No OFD packet to send [06:40:04]OFD Sender: No OFD packet to send [06:40:09]OFD Sender: No OFD packet to send [06:40:14]OFD Sender: No OFD packet to send [06:40:19]OFD Sender: No OFD packet to send [06:40:24]OFD Sender: No OFD packet to send [06:40:29]OFD Sender: No OFD packet to send [06:40:34]OFD Sender: No OFD packet to send [06:40:39]OFD Sender: No OFD packet to send [06:40:44]OFD Sender: No OFD packet to send [06:40:49]OFD Sender: No OFD packet to send [06:40:54]OFD Sender: No OFD packet to send [06:40:59]OFD Sender: No OFD packet to send [06:41:04]OFD Sender: No OFD packet to send [06:41:09]OFD Sender: No OFD packet to send [06:41:14]OFD Sender: No OFD packet to send [06:41:19]OFD Sender: No OFD packet to send [06:41:24]OFD Sender: No OFD packet to send [06:41:29]OFD Sender: No OFD packet to send [06:41:34]OFD Sender: No OFD packet to send [06:41:39]OFD Sender: No OFD packet to send [06:41:44]OFD Sender: No OFD packet to send [06:41:49]OFD Sender: No OFD packet to send [06:41:54]OFD Sender: No OFD packet to send [06:41:59]OFD Sender: No OFD packet to send [06:42:04]OFD Sender: No OFD packet to send [06:42:09]OFD Sender: No OFD packet to send [06:42:14]OFD Sender: No OFD packet to send [06:42:19]OFD Sender: No OFD packet to send [06:42:24]OFD Sender: No OFD packet to send [06:42:29]OFD Sender: No OFD packet to send [06:42:34]OFD Sender: No OFD packet to send [06:42:39]OFD Sender: No OFD packet to send [06:42:44]OFD Sender: No OFD packet to send [06:42:49]OFD Sender: No OFD packet to send [06:42:54]OFD Sender: No OFD packet to send [06:42:59]OFD Sender: No OFD packet to send [06:43:04]OFD Sender: No OFD packet to send [06:43:09]OFD Sender: No OFD packet to send [06:43:14]OFD Sender: No OFD packet to send [06:43:19]OFD Sender: No OFD packet to send [06:43:24]OFD Sender: No OFD packet to send [06:43:29]OFD Sender: No OFD packet to send [06:43:34]OFD Sender: No OFD packet to send [06:43:39]OFD Sender: No OFD packet to send [06:43:44]OFD Sender: No OFD packet to send [06:43:49]OFD Sender: No OFD packet to send [06:43:54]OFD Sender: No OFD packet to send [06:43:59]OFD Sender: No OFD packet to send [06:44:04]OFD Sender: No OFD packet to send [06:44:09]OFD Sender: No OFD packet to send [06:44:14]OFD Sender: No OFD packet to send [06:44:19]OFD Sender: No OFD packet to send [06:44:24]OFD Sender: No OFD packet to send [06:44:29]OFD Sender: No OFD packet to send [06:44:34]OFD Sender: No OFD packet to send [06:44:39]OFD Sender: No OFD packet to send [06:44:44]OFD Sender: No OFD packet to send [06:44:49]OFD Sender: No OFD packet to send [06:44:54]OFD Sender: No OFD packet to send [06:44:59]OFD Sender: No OFD packet to send [06:45:04]OFD Sender: No OFD packet to send [06:45:09]OFD Sender: No OFD packet to send [06:45:14]OFD Sender: No OFD packet to send [06:45:19]OFD Sender: No OFD packet to send [06:45:24]OFD Sender: No OFD packet to send [06:45:29]OFD Sender: No OFD packet to send [06:45:34]OFD Sender: No OFD packet to send [06:45:39]OFD Sender: No OFD packet to send [06:45:44]OFD Sender: No OFD packet to send [06:45:49]OFD Sender: No OFD packet to send [06:45:54]OFD Sender: No OFD packet to send [06:45:59]OFD Sender: No OFD packet to send [06:46:04]OFD Sender: No OFD packet to send [06:46:09]OFD Sender: No OFD packet to send [06:46:14]OFD Sender: No OFD packet to send [06:46:19]OFD Sender: No OFD packet to send [06:46:24]OFD Sender: No OFD packet to send [06:46:29]OFD Sender: No OFD packet to send [06:46:34]OFD Sender: No OFD packet to send [06:46:39]OFD Sender: No OFD packet to send [06:46:44]OFD Sender: No OFD packet to send [06:46:49]OFD Sender: No OFD packet to send [06:46:54]OFD Sender: No OFD packet to send [06:46:59]OFD Sender: No OFD packet to send [06:47:04]OFD Sender: No OFD packet to send [06:47:09]OFD Sender: No OFD packet to send [06:47:14]OFD Sender: No OFD packet to send [06:47:19]OFD Sender: No OFD packet to send [06:47:24]OFD Sender: No OFD packet to send [06:47:29]OFD Sender: No OFD packet to send [06:47:34]OFD Sender: No OFD packet to send [06:47:39]OFD Sender: No OFD packet to send [06:47:44]OFD Sender: No OFD packet to send [06:47:49]OFD Sender: No OFD packet to send [06:47:54]OFD Sender: No OFD packet to send [06:47:59]OFD Sender: No OFD packet to send [06:48:04]OFD Sender: No OFD packet to send [06:48:09]OFD Sender: No OFD packet to send [06:48:14]OFD Sender: No OFD packet to send [06:48:19]OFD Sender: No OFD packet to send [06:48:24]OFD Sender: No OFD packet to send [06:48:29]OFD Sender: No OFD packet to send [06:48:34]OFD Sender: No OFD packet to send [06:48:39]OFD Sender: No OFD packet to send [06:48:44]OFD Sender: No OFD packet to send [06:48:49]OFD Sender: No OFD packet to send [06:48:54]OFD Sender: No OFD packet to send [06:48:59]OFD Sender: No OFD packet to send [06:49:04]OFD Sender: No OFD packet to send [06:49:09]OFD Sender: No OFD packet to send [06:49:14]OFD Sender: No OFD packet to send [06:49:19]OFD Sender: No OFD packet to send [06:49:24]OFD Sender: No OFD packet to send [06:49:29]OFD Sender: No OFD packet to send [06:49:34]OFD Sender: No OFD packet to send [06:49:39]OFD Sender: No OFD packet to send [06:49:44]OFD Sender: No OFD packet to send [06:49:49]OFD Sender: No OFD packet to send [06:49:54]OFD Sender: No OFD packet to send [06:49:59]OFD Sender: No OFD packet to send [06:50:04]OFD Sender: No OFD packet to send [06:50:09]OFD Sender: No OFD packet to send [06:50:14]OFD Sender: No OFD packet to send [06:50:19]OFD Sender: No OFD packet to send [06:50:25]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:18]accept exits with 10 [06:52:18]New connection [06:52:18]New thread 3067014500 created [06:52:18]Thread 3067157860 joined [06:52:18]Waiting for new connection... [06:52:18] Sock 10.Parse request [06:52:18]Sock 10.Check first char [06:52:18]Sock 10.First char is OK [06:52:18]request: POST /json_proto HTTP/1.0 [06:52:18]Method: POST [06:52:18]URL: /json_proto [06:52:18]Method is POST - this is cgi request [06:52:18]url: /json_proto [06:52:18]query_string will be loaded in cgi processing [06:52:18]execute_cgi json_proto POST (null) [06:52:18]execute_cgi path=json_proto method=POST [06:52:18]POST find Content-Length [06:52:18]Host: 172.17.48.198:8080 [06:52:18]Content-Length: 616 [06:52:18]Content-Type: application/json [06:52:18] [06:52:18]POST finish read [06:52:18]Found Content-Length = 616 [06:52:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184144", "tax_sys" : 0, "items" : [ { "code": "4640030091584", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Esse Gold", "price" : 143.00, "quantity" : 1.000, "sum" : 143.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 143.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:52:18]execute_script... [06:52:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184144", "tax_sys" : 0, "items" : [ { "code": "4640030091584", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Esse Gold", "price" : 143.00, "quantity" : 1.000, "sum" : 143.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 143.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:52:18]POST & json_proto [06:52:18]process_json_proto [06:52:18]json parsed OK: [06:52:18]protocol is kg_v1.0 [06:52:18]action value=close_receipt [06:52:18]process_action close_receipt [06:52:18]cmd_close_receipt [06:52:18]MH_GetDate [06:52:18]Write to MH i2c: F0 00 00 53 43 85 [06:52:18]Write i2c OK [06:52:18]MH_I2C_Read... [06:52:18]Read from MH i2c: F0 [06:52:18]MH_I2C_Read... [06:52:18]Read from MH i2c: F0 09 00 [06:52:18]MH_I2C_Read... [06:52:18]Read from MH i2c: F0 09 00 53 43 00 2C 1E E4 65 CE C4 D4 65 EC [06:52:18]GetLastDocTimeStamp 1709446960 [06:52:18]current date 1709448748 [06:52:18]FM_GetShiftState [06:52:18]SAM_PROTO_GetShiftState [06:52:18]wFMCommunicate request_size=4 [06:52:18]MH_SAM_APDU [06:52:18]CAPDU: 80 13 01 00 [06:52:18]Write to MH i2c: E2 08 00 54 43 80 13 01 00 00 00 00 00 14 [06:52:18]Write i2c OK [06:52:18]MH_I2C_Read... [06:52:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:52:18]Read from MH i2c: E2 [06:52:18]MH_I2C_Read... [06:52:18]Read from MH i2c: E2 0E 00 [06:52:18]MH_I2C_Read... [06:52:18]Read from MH i2c: E2 0E 00 54 43 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 4A [06:52:18]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [06:52:18]wFMCommunicate OK [06:52:18]SAM_PROTO_GetShiftState done [06:52:18]FM_GetShiftState done [06:52:18]opened in 1709425694 [06:52:18]opened+sec_in_day 1709512094 [06:52:18]quantity*price = 14300 [06:52:18]sum+1 = 14301 [06:52:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 143.00 НСП 1% : 1.26 НДС 12% : 15.19 Наличными: 143.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 17 03.03.2024 06:52 Смена: 331 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 ФМ: 0000000000874796 ФД: 45180 ФПД: 118104040173820 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T065228&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45180&fm=118104040173820&tin=02508201610067®Number=0000000000090572&sum=14300 0 [06:52:19]StoreToDocumentArchive [06:52:19]shift 331 fd 45180 [06:52:19]save to /storage/0331/doc_00045180 [06:52:19]save last doc name /storage/0331/doc_00045180 to /storage/kkm_last_doc_name [06:52:19]save OK [06:52:19]Clear old archive folders... [06:52:19]ProcessDocumentItem done err = 0, tmpTLVsize=268 [06:52:19]tlvbuf is 01AFA340 [06:52:19]SAM_PROTO_ClearQueue [06:52:19]wFMCommunicate request_size=4 [06:52:19]MH_SAM_APDU [06:52:19]CAPDU: 80 09 00 00 [06:52:19]Write to MH i2c: E2 08 00 61 43 80 09 00 00 00 00 00 00 16 [06:52:19]Write i2c OK [06:52:19]MH_I2C_Read... [06:52:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:52:19]Read from MH i2c: E2 [06:52:19]MH_I2C_Read... [06:52:19]Read from MH i2c: E2 03 00 [06:52:19]MH_I2C_Read... [06:52:19]Read from MH i2c: E2 03 00 61 43 00 90 00 18 [06:52:19]RAPDU: 90 00 [06:52:19]wFMCommunicate OK [06:52:19]SAM_PROTO_ClearQueue done [06:52:19]KKMCreateOFDPacket [06:52:19]OFDProtocolAddRootSTLVToBuf [06:52:19]FM_MakeSignedData [06:52:19]FM_MakeSignedData [06:52:19]SAM_PROTO_SignData [06:52:19]wFMCommunicate request_size=4 [06:52:19]MH_SAM_APDU [06:52:19]CAPDU: 80 0D 01 02 [06:52:19]Write to MH i2c: E2 08 00 62 43 80 0D 01 02 00 00 00 00 1E [06:52:19]Write i2c OK [06:52:19]MH_I2C_Read... [06:52:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:52:19]Read from MH i2c: E2 [06:52:19]MH_I2C_Read... [06:52:19]Read from MH i2c: E2 03 00 [06:52:19]MH_I2C_Read... [06:52:19]Read from MH i2c: E2 03 00 62 43 00 90 00 19 [06:52:19]RAPDU: 90 00 [06:52:19]wFMCommunicate OK [06:52:19]wFMCommunicate request_size=255 [06:52:19]MH_SAM_APDU [06:52:19]CAPDU: 80 0D 02 02 FA 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 35 38 34 06 04 1A 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 47 6F 6C 64 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 05 00 00 00 00 07 04 06 00 DC 37 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 2C 1E E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 [06:52:19]Write to MH i2c: E2 02 01 63 43 80 0D 02 02 FA 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 35 38 34 06 04 1A 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 47 6F 6C 64 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 05 00 00 00 00 07 04 06 00 DC 37 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 2C 1E E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 00 00 D0 [06:52:19]Write i2c OK [06:52:19]MH_I2C_Read... [06:52:20]OFD Sender: No OFD packet to send [06:52:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:52:20]Read from MH i2c: E2 [06:52:20]MH_I2C_Read... [06:52:20]Read from MH i2c: E2 03 00 [06:52:20]MH_I2C_Read... [06:52:20]Read from MH i2c: E2 03 00 63 43 00 90 00 1A [06:52:20]RAPDU: 90 00 [06:52:20]wFMCommunicate OK [06:52:20]wFMCommunicate request_size=27 [06:52:20]MH_SAM_APDU [06:52:20]CAPDU: 80 0D 02 02 16 34 37 39 36 10 04 04 00 7C B0 00 00 35 04 06 00 6B 6A 3D 5C 70 FC [06:52:20]Write to MH i2c: E2 1E 00 64 43 80 0D 02 02 16 00 34 37 39 36 10 04 04 00 7C B0 00 00 35 04 06 00 6B 6A 3D 5C 70 FC 00 00 84 [06:52:20]Write i2c OK [06:52:20]MH_I2C_Read... [06:52:20]Read from MH i2c: E2 [06:52:20]MH_I2C_Read... [06:52:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:52:20]Read from MH i2c: E2 03 00 [06:52:20]MH_I2C_Read... [06:52:20]Read from MH i2c: E2 03 00 64 43 00 90 00 1B [06:52:20]RAPDU: 90 00 [06:52:20]wFMCommunicate OK [06:52:20]wFMCommunicate request_size=4 [06:52:20]MH_SAM_APDU [06:52:20]CAPDU: 80 0D 03 02 [06:52:20]Write to MH i2c: E2 08 00 65 43 80 0D 03 02 00 00 00 00 23 [06:52:20]Write i2c OK [06:52:20]MH_I2C_Read... [06:52:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:52:20]Read from MH i2c: E2 [06:52:20]MH_I2C_Read... [06:52:20]Read from MH i2c: E2 0B 00 [06:52:20]MH_I2C_Read... [06:52:20]Read from MH i2c: E2 0B 00 65 43 00 DB 15 7B EE 73 20 11 56 90 00 77 [06:52:20]RAPDU: DB 15 7B EE 73 20 11 56 90 00 [06:52:20]wFMCommunicate OK [06:52:20]SAM_PROTO_SignData done [06:52:20]FM_MakeSignedData done [06:52:20]CreateOFDProtocolMessage [06:52:20]wFMCommunicate request_size=4 [06:52:20]MH_SAM_APDU [06:52:20]CAPDU: 80 11 00 00 [06:52:20]Write to MH i2c: E2 08 00 66 43 80 11 00 00 00 00 00 00 23 [06:52:20]Write i2c OK [06:52:20]MH_I2C_Read... [06:52:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:52:20]Read from MH i2c: E2 [06:52:20]MH_I2C_Read... [06:52:20]Read from MH i2c: E2 17 00 [06:52:20]MH_I2C_Read... [06:52:20]Read from MH i2c: E2 17 00 66 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 7F [06:52:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [06:52:20]wFMCommunicate OK [06:52:20]CreateOFDProtocolMessage done [06:52:20]OFDSenderStorePacket 45180 [06:52:20]StoreOFDPacket docnum=45180 [06:52:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 20 01 00 00 AB 84 18 01 F4 99 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 35 38 34 06 04 1A 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 47 6F 6C 64 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 05 00 00 00 00 07 04 06 00 DC 37 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 2C 1E E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 7C B0 00 00 35 04 06 00 6B 6A 3D 5C 70 FC DB 15 7B EE 73 20 11 56 [06:52:20]CheckFolder [06:52:20]dirname=/storage/ofd_packets [06:52:20]CheckFolder done [06:52:20]ProducePacketName [06:52:20]name=ofd_packets/00045180 [06:52:20]NVStorageSaveData ofd_packets/00045180 [06:52:20]File name is /storage/ofd_packets/00045180 [06:52:20]Write 318 bytes [06:52:20]NVStorageSaveData done [06:52:20]OFDSenderStorePacket done [06:52:20]KKMCreateOFDPacket done [06:52:20]NVStorageSaveData kkm_last_timestamp [06:52:20]File name is /storage/kkm_last_timestamp [06:52:20]Write 4 bytes [06:52:20]NVStorageSaveData done [06:52:20]ExternCall_PrintAddStr [06:52:20]wPrintStart [06:52:20]Write to MH i2c: 01 00 00 67 43 AA [06:52:20]Write i2c OK [06:52:20]MH_I2C_Read... [06:52:20]Read from MH i2c: 01 [06:52:20]MH_I2C_Read... [06:52:20]Read from MH i2c: 01 07 00 [06:52:20]MH_I2C_Read... [06:52:20]Read from MH i2c: 01 07 00 67 43 00 00 00 00 00 FF 0F BF [06:52:20]RasterBufferAndPrint [06:52:20]line Счет N : (3)184144 [06:52:20]line ИНН: 02508201610067 [06:52:20]line Контрольно-Кассовый Чек [06:52:20]line ПРОДАЖА [06:52:20]line Товар: 4640030091584 [06:52:20]line Сигареты Esse Gold [06:52:20]line 1.000 * 143.00 [06:52:20]line = 143.00 [06:52:20]line НДС 12% НСП 1% [06:52:20]line > о реализуемом товаре [06:52:20]line ИТОГО: 143.00 [06:52:20]line НСП 1% : 1.26 [06:52:20]line НДС 12% : 15.19 [06:52:20]line Наличными: 143.00 [06:52:20]line Безнал.: 0.00 [06:52:20]line Место: АЗС № 25 "Партнер Нефть" [06:52:20]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [06:52:20]line СНО: Общий режим [06:52:20]line Чек 17 03.03.2024 06:52 [06:52:20]line Смена: 331 ФФД: 1.0 [06:52:20]line ЗНМ: 0300000013 [06:52:20]line РНМ: 0000000000090572 [06:52:20]line Версия ККМ: 001 [06:52:20]line ФМ: 0000000000874796 [06:52:20]line ФД: 45180 [06:52:20]line ФПД: 118104040173820 [06:52:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T065228&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45180&fm=118104040173820&tin=02508201610067®Number=0000000000090572&sum=14300 [06:52:20]line 0 [06:52:20]OFD Sender: Processing packet 45180 [packets to send 17, broken 16] [06:52:20]ProducePacketName [06:52:20]name=ofd_packets/00045180 [06:52:20]OFD Sender: To server: pG, [06:52:20]CommunicateWithHost lk.salyk.kg:30040 [06:52:20]ConnectInit lk.salyk.kg [06:52:20]written 0, free lines is 4095 [06:52:20]Connected sock=9 [06: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 34 37 39 36 20 01 00 00 AB 84 18 01 F4 99 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 35 38 34 06 04 1A 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 47 6F 6C 64 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 05 00 00 00 00 07 04 06 00 DC 37 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 2C 1E E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 7C B0 00 00 35 04 06 00 6B 6A 3D 5C 70 FC DB 15 7B EE 73 20 11 56 [06:52:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 FE 0E 47 00 88 25 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 7C B0 00 00 F4 03 04 00 F2 C9 E3 65 B6 04 01 00 00 41 A2 BE 35 95 E5 3D C5 [06:52:20]CommunicateWithHost err = 0 [06:52:20]CheckOFDResponse [06:52:20]1017 (14) - 77093643461234 [06:52:20]1041 (16) - 0000000000874796 [06:52:20]1040 (4) - 45180 [06:52:20]1012 (4) - 03.03.2024 00:53 [06:52:20]1206 (1) - 0 [06:52:20]OFD Sender: Remove packet 45180 [06:52:20]ProducePacketName [06:52:20]name=ofd_packets/00045180 [06:52:20]NVStorageDeleteData [06:52:21]Write to MH i2c: 01 00 00 8F 43 D2 [06:52:21]Write i2c OK [06:52:21]MH_I2C_Read... [06:52:21]Read from MH i2c: 01 [06:52:21]MH_I2C_Read... [06:52:21]Read from MH i2c: 01 07 00 [06:52:21]MH_I2C_Read... [06:52:21]Read from MH i2c: 01 07 00 8F 43 00 00 00 00 00 09 0D EF [06:52:21]RasterBufferAndPrint [06:52:21]line [06:52:21]line [06:52:21]line [06:52:21]line [06:52:21]line [06:52:21]written 0, free lines is 3343 [06:52:21]MH_Cut [06:52:21]Write to MH i2c: D1 01 00 96 43 01 AB [06:52:21]Write i2c OK [06:52:21]MH_I2C_Read... [06:52:21]Read from MH i2c: D1 [06:52:21]MH_I2C_Read... [06:52:21]Read from MH i2c: D1 01 00 [06:52:21]MH_I2C_Read... [06:52:21]Read from MH i2c: D1 01 00 96 43 00 AA [06:52:21]Write to MH i2c: 01 00 00 97 43 DA [06:52:21]Write i2c OK [06:52:21]MH_I2C_Read... [06:52:21]OFD Sender: No OFD packet to send [06:52:21]*** Cut start [06:52:21]*** Purtial cut [06:52:21]*** Stage 1: CUTSNS_PIN = 1 [06:52:23]Read from MH i2c: 01 [06:52:23]MH_I2C_Read... [06:52:23]*** Stop cut motor [06:52:23]*** Cut end [06:52:23]Read from MH i2c: 01 07 00 [06:52:23]MH_I2C_Read... [06:52:23]Read from MH i2c: 01 07 00 97 43 00 00 00 00 00 FF 0F EF [06:52:23]process_action close_receipt done [06:52:23]requested_data is exist [06:52:23]produce_requested_data [06:52:23]requested_item fm.sn is exist - process it [06:52:23]wFMCommunicate request_size=4 [06:52:23]MH_SAM_APDU [06:52:23]CAPDU: 80 11 00 00 [06:52:23]Write to MH i2c: E2 08 00 98 43 80 11 00 00 00 00 00 00 55 [06:52:23]Write i2c OK [06:52:23]MH_I2C_Read... [06:52:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:52:23]Read from MH i2c: E2 [06:52:23]MH_I2C_Read... [06:52:23]Read from MH i2c: E2 17 00 [06:52:23]MH_I2C_Read... [06:52:23]Read from MH i2c: E2 17 00 98 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 B1 [06:52:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [06:52:23]wFMCommunicate OK [06:52:23]requested_item fd.num is exist - process it [06:52:23]SAM_PROTO_GetFieldsCounters [06:52:23]wFMCommunicate request_size=4 [06:52:23]MH_SAM_APDU [06:52:23]CAPDU: 80 13 00 00 [06:52:23]Write to MH i2c: E2 08 00 99 43 80 13 00 00 00 00 00 00 58 [06:52:23]Write i2c OK [06:52:23]MH_I2C_Read... [06:52:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:52:24]Read from MH i2c: E2 [06:52:24]MH_I2C_Read... [06:52:24]Read from MH i2c: E2 62 00 [06:52:24]MH_I2C_Read... [06:52:24]Read from MH i2c: E2 62 00 99 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 7C B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 2B [06: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 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 7C B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:52:24]wFMCommunicate OK [06:52:24]SAM_PROTO_GetFieldsCounters done [06:52:24]requested_item shift.num is exist - process it [06:52:24]requested_item shift.opened is exist - process it [06:52:24]req_shift_opened [06:52:24]FM_GetShiftState [06:52:24]SAM_PROTO_GetShiftState [06:52:24]wFMCommunicate request_size=4 [06:52:24]MH_SAM_APDU [06:52:24]CAPDU: 80 13 01 00 [06:52:24]Write to MH i2c: E2 08 00 9A 43 80 13 01 00 00 00 00 00 5A [06:52:24]Write i2c OK [06:52:24]MH_I2C_Read... [06:52:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:52:24]Read from MH i2c: E2 [06:52:24]MH_I2C_Read... [06:52:24]Read from MH i2c: E2 0E 00 [06:52:24]MH_I2C_Read... [06:52:24]Read from MH i2c: E2 0E 00 9A 43 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 90 [06:52:24]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [06:52:24]wFMCommunicate OK [06:52:24]SAM_PROTO_GetShiftState done [06:52:24]FM_GetShiftState done [06:52:24]req_shift_opened done [06:52:24]requested_item shift.open_date is exist - process it [06:52:24]req_shift_open_date [06:52:24]req_shift_open_date done [06:52:24]produce_requested_data done [06:52:24]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45180,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [06:52:24]process_action_free close_receipt [06:52:24]json_value_free [06:52:24]json_value_free done [06:52:24]process_json_proto returns [06:52:24]Send response to host [06:52:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45180,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [06:52:24]free response buf [06:52:24]execute_script done [06:52:24]execute_script returns [06:52:24]free content buf [06:52:24]Sock 10.Close socket [06:52:24]Sock 10.Thread stoped [06:52:26]OFD Sender: No OFD packet to send [06:52:31]OFD Sender: No OFD packet to send [06:52:36]OFD Sender: No OFD packet to send [06:52:41]OFD Sender: No OFD packet to send [06:52:46]OFD Sender: No OFD packet to send [06:52:51]OFD Sender: No OFD packet to send [06:52:56]OFD Sender: No OFD packet to send [06:53:01]OFD Sender: No OFD packet to send [06:53:06]OFD Sender: No OFD packet to send [06:53:11]OFD Sender: No OFD packet to send [06:53:16]OFD Sender: No OFD packet to send [06:53:21]OFD Sender: No OFD packet to send [06:53:26]OFD Sender: No OFD packet to send [06:53:31]OFD Sender: No OFD packet to send [06:53:36]OFD Sender: No OFD packet to send [06:53:41]OFD Sender: No OFD packet to send [06:53:46]OFD Sender: No OFD packet to send [06:53:51]OFD Sender: No OFD packet to send [06:53:56]OFD Sender: No OFD packet to send [06:54:01]OFD Sender: No OFD packet to send [06:54:06]OFD Sender: No OFD packet to send [06:54:11]OFD Sender: No OFD packet to send [06:54:16]OFD Sender: No OFD packet to send [06:54:21]OFD Sender: No OFD packet to send [06:54:26]OFD Sender: No OFD packet to send [06:54:31]OFD Sender: No OFD packet to send [06:54:36]OFD Sender: No OFD packet to send [06:54:41]OFD Sender: No OFD packet to send [06:54:46]OFD Sender: No OFD packet to send [06:54:51]OFD Sender: No OFD packet to send [06:54:56]OFD Sender: No OFD packet to send [06:55:01]OFD Sender: No OFD packet to send [06:55:06]OFD Sender: No OFD packet to send [06:55:11]OFD Sender: No OFD packet to send [06:55:16]OFD Sender: No OFD packet to send [06:55:21]OFD Sender: No OFD packet to send [06:55:26]OFD Sender: No OFD packet to send [06:55:31]OFD Sender: No OFD packet to send [06:55:36]OFD Sender: No OFD packet to send [06:55:41]OFD Sender: No OFD packet to send [06:55:46]OFD Sender: No OFD packet to send [06:55:51]OFD Sender: No OFD packet to send [06:55:56]OFD Sender: No OFD packet to send [06:56:01]OFD Sender: No OFD packet to send [06:56:06]OFD Sender: No OFD packet to send [06:56:11]OFD Sender: No OFD packet to send [06:56:16]OFD Sender: No OFD packet to send [06:56:21]OFD Sender: No OFD packet to send [06:56:26]OFD Sender: No OFD packet to send [06:56:31]OFD Sender: No OFD packet to send [06:56:36]OFD Sender: No OFD packet to send [06:56:41]OFD Sender: No OFD packet to send [06:56:46]OFD Sender: No OFD packet to send [06:56:51]OFD Sender: No OFD packet to send [06:56:56]OFD Sender: No OFD packet to send [06:57:01]OFD Sender: No OFD packet to send [06:57:06]OFD Sender: No OFD packet to send [06:57:11]OFD Sender: No OFD packet to send [06:57:16]OFD Sender: No OFD packet to send [06:57:21]OFD Sender: No OFD packet to send [06:57:26]OFD Sender: No OFD packet to send [06:57:31]OFD Sender: No OFD packet to send [06:57:36]OFD Sender: No OFD packet to send [06:57:41]OFD Sender: No OFD packet to send [06:57:46]OFD Sender: No OFD packet to send [06:57:51]OFD Sender: No OFD packet to send [06:57:56]OFD Sender: No OFD packet to send [06:58:01]OFD Sender: No OFD packet to send [06:58:06]OFD Sender: No OFD packet to send [06:58:11]OFD Sender: No OFD packet to send [06:58:16]OFD Sender: No OFD packet to send [06:58:21]OFD Sender: No OFD packet to send [06:58:26]OFD Sender: No OFD packet to send [06:58:31]OFD Sender: No OFD packet to send [06:58:36]OFD Sender: No OFD packet to send [06:58:41]OFD Sender: No OFD packet to send [06:58:46]OFD Sender: No OFD packet to send [06:58:51]OFD Sender: No OFD packet to send [06:58:56]OFD Sender: No OFD packet to send [06:59:01]OFD Sender: No OFD packet to send [06:59:06]OFD Sender: No OFD packet to send [06:59:11]OFD Sender: No OFD packet to send [06:59:16]OFD Sender: No OFD packet to send [06:59:21]OFD Sender: No OFD packet to send [06:59:26]OFD Sender: No OFD packet to send [06:59:31]OFD Sender: No OFD packet to send [06:59:36]OFD Sender: No OFD packet to send [06:59:41]OFD Sender: No OFD packet to send [06:59:46]OFD Sender: No OFD packet to send [06:59:51]OFD Sender: No OFD packet to send [06:59:56]OFD Sender: No OFD packet to send [07:00:01]OFD Sender: No OFD packet to send [07:00:06]OFD Sender: No OFD packet to send [07:00:11]OFD Sender: No OFD packet to send [07:00:16]OFD Sender: No OFD packet to send [07:00:21]OFD Sender: No OFD packet to send [07:00:26]OFD Sender: No OFD packet to send [07:00:31]OFD Sender: No OFD packet to send [07:00:36]OFD Sender: No OFD packet to send [07:00:41]OFD Sender: No OFD packet to send [07:00:46]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:22]OFD Sender: No OFD packet to send [07:03:27]OFD Sender: No OFD packet to send [07:03:32]OFD Sender: No OFD packet to send [07:03:37]OFD Sender: No OFD packet to send [07:03:42]OFD Sender: No OFD packet to send [07:03:47]OFD Sender: No OFD packet to send [07:03:52]OFD Sender: No OFD packet to send [07:03:57]OFD Sender: No OFD packet to send [07:04:02]OFD Sender: No OFD packet to send [07:04:07]OFD Sender: No OFD packet to send [07:04:12]OFD Sender: No OFD packet to send [07:04:17]OFD Sender: No OFD packet to send [07:04:22]OFD Sender: No OFD packet to send [07:04:27]OFD Sender: No OFD packet to send [07:04:32]OFD Sender: No OFD packet to send [07:04:37]OFD Sender: No OFD packet to send [07:04:42]OFD Sender: No OFD packet to send [07:04:47]OFD Sender: No OFD packet to send [07:04:52]OFD Sender: No OFD packet to send [07:04:57]OFD Sender: No OFD packet to send [07:05:02]OFD Sender: No OFD packet to send [07:05:07]OFD Sender: No OFD packet to send [07:05:12]OFD Sender: No OFD packet to send [07:05:17]OFD Sender: No OFD packet to send [07:05:22]OFD Sender: No OFD packet to send [07:05:27]OFD Sender: No OFD packet to send [07:05:32]OFD Sender: No OFD packet to send [07:05:37]OFD Sender: No OFD packet to send [07:05:42]OFD Sender: No OFD packet to send [07:05:47]OFD Sender: No OFD packet to send [07:05:52]OFD Sender: No OFD packet to send [07:05:57]OFD Sender: No OFD packet to send [07:06:02]OFD Sender: No OFD packet to send [07:06:07]OFD Sender: No OFD packet to send [07:06:12]OFD Sender: No OFD packet to send [07:06:17]OFD Sender: No OFD packet to send [07:06:22]OFD Sender: No OFD packet to send [07:06:27]OFD Sender: No OFD packet to send [07:06:32]OFD Sender: No OFD packet to send [07:06:37]OFD Sender: No OFD packet to send [07:06:42]OFD Sender: No OFD packet to send [07:06:47]OFD Sender: No OFD packet to send [07:06:52]OFD Sender: No OFD packet to send [07:06:57]OFD Sender: No OFD packet to send [07:07:02]OFD Sender: No OFD packet to send [07:07:07]OFD Sender: No OFD packet to send [07:07:12]OFD Sender: No OFD packet to send [07:07:17]OFD Sender: No OFD packet to send [07:07:22]OFD Sender: No OFD packet to send [07:07:27]OFD Sender: No OFD packet to send [07:07:32]OFD Sender: No OFD packet to send [07:07:37]OFD Sender: No OFD packet to send [07:07:42]OFD Sender: No OFD packet to send [07:07:47]OFD Sender: No OFD packet to send [07:07:52]OFD Sender: No OFD packet to send [07:07:57]OFD Sender: No OFD packet to send [07:08:02]OFD Sender: No OFD packet to send [07:08:07]OFD Sender: No OFD packet to send [07:08:12]OFD Sender: No OFD packet to send [07:08:17]OFD Sender: No OFD packet to send [07:08:22]OFD Sender: No OFD packet to send [07:08:27]OFD Sender: No OFD packet to send [07:08:32]OFD Sender: No OFD packet to send [07:08:37]OFD Sender: No OFD packet to send [07:08:42]OFD Sender: No OFD packet to send [07:08:47]OFD Sender: No OFD packet to send [07:08:52]OFD Sender: No OFD packet to send [07:08:57]OFD Sender: No OFD packet to send [07:09:02]OFD Sender: No OFD packet to send [07:09:07]OFD Sender: No OFD packet to send [07:09:12]OFD Sender: No OFD packet to send [07:09:17]OFD Sender: No OFD packet to send [07:09:22]OFD Sender: No OFD packet to send [07:09:27]OFD Sender: No OFD packet to send [07:09:32]OFD Sender: No OFD packet to send [07:09:37]OFD Sender: No OFD packet to send [07:09:42]OFD Sender: No OFD packet to send [07:09:47]OFD Sender: No OFD packet to send [07:09:52]OFD Sender: No OFD packet to send [07:09:57]OFD Sender: No OFD packet to send [07:10:02]OFD Sender: No OFD packet to send [07:10:07]OFD Sender: No OFD packet to send [07:10:12]OFD Sender: No OFD packet to send [07:10:17]OFD Sender: No OFD packet to send [07:10:22]OFD Sender: No OFD packet to send [07:10:27]OFD Sender: No OFD packet to send [07:10:32]OFD Sender: No OFD packet to send [07:10:37]OFD Sender: No OFD packet to send [07:10:42]OFD Sender: No OFD packet to send [07:10:47]OFD Sender: No OFD packet to send [07:10:52]OFD Sender: No OFD packet to send [07:10:57]OFD Sender: No OFD packet to send [07:11:02]OFD Sender: No OFD packet to send [07:11:07]OFD Sender: No OFD packet to send [07:11:12]OFD Sender: No OFD packet to send [07:11:17]OFD Sender: No OFD packet to send [07:11:22]OFD Sender: No OFD packet to send [07:11:27]OFD Sender: No OFD packet to send [07:11:32]OFD Sender: No OFD packet to send [07:11:37]OFD Sender: No OFD packet to send [07:11:42]OFD Sender: No OFD packet to send [07:11:47]OFD Sender: No OFD packet to send [07:11:52]OFD Sender: No OFD packet to send [07:11:57]OFD Sender: No OFD packet to send [07:12:02]OFD Sender: No OFD packet to send [07:12:07]OFD Sender: No OFD packet to send [07:12:12]OFD Sender: No OFD packet to send [07:12:17]OFD Sender: No OFD packet to send [07:12:22]OFD Sender: No OFD packet to send [07:12:27]OFD Sender: No OFD packet to send [07:12:32]OFD Sender: No OFD packet to send [07:12:37]OFD Sender: No OFD packet to send [07:12:42]OFD Sender: No OFD packet to send [07:12:47]OFD Sender: No OFD packet to send [07:12:52]OFD Sender: No OFD packet to send [07:12:57]OFD Sender: No OFD packet to send [07:13:02]OFD Sender: No OFD packet to send [07:13:07]OFD Sender: No OFD packet to send [07:13:12]OFD Sender: No OFD packet to send [07:13:17]OFD Sender: No OFD packet to send [07:13:22]OFD Sender: No OFD packet to send [07:13:27]OFD Sender: No OFD packet to send [07:13:32]OFD Sender: No OFD packet to send [07:13:37]OFD Sender: No OFD packet to send [07:13:42]OFD Sender: No OFD packet to send [07:13:47]OFD Sender: No OFD packet to send [07:13:52]OFD Sender: No OFD packet to send [07:13:57]OFD Sender: No OFD packet to send [07:14:02]OFD Sender: No OFD packet to send [07:14:07]OFD Sender: No OFD packet to send [07:14:12]OFD Sender: No OFD packet to send [07:14:17]OFD Sender: No OFD packet to send [07:14:22]OFD Sender: No OFD packet to send [07:14:27]OFD Sender: No OFD packet to send [07:14:32]OFD Sender: No OFD packet to send [07:14:37]OFD Sender: No OFD packet to send [07:14:42]OFD Sender: No OFD packet to send [07:14:47]OFD Sender: No OFD packet to send [07:14:52]OFD Sender: No OFD packet to send [07:14:57]OFD Sender: No OFD packet to send [07:15:02]OFD Sender: No OFD packet to send [07:15:07]OFD Sender: No OFD packet to send [07:15:12]OFD Sender: No OFD packet to send [07:15:17]OFD Sender: No OFD packet to send [07:15:22]OFD Sender: No OFD packet to send [07:15:27]OFD Sender: No OFD packet to send [07:15:32]OFD Sender: No OFD packet to send [07:15:37]OFD Sender: No OFD packet to send [07:15:42]OFD Sender: No OFD packet to send [07:15:47]OFD Sender: No OFD packet to send [07:15:52]OFD Sender: No OFD packet to send [07:15:57]OFD Sender: No OFD packet to send [07:16:02]OFD Sender: No OFD packet to send [07:16:07]OFD Sender: No OFD packet to send [07:16:12]OFD Sender: No OFD packet to send [07:16:17]OFD Sender: No OFD packet to send [07:16:22]OFD Sender: No OFD packet to send [07:16:27]OFD Sender: No OFD packet to send [07:16:32]OFD Sender: No OFD packet to send [07:16:37]OFD Sender: No OFD packet to send [07:16:42]OFD Sender: No OFD packet to send [07:16:47]OFD Sender: No OFD packet to send [07:16:52]OFD Sender: No OFD packet to send [07:16:57]OFD Sender: No OFD packet to send [07:17:02]OFD Sender: No OFD packet to send [07:17:07]OFD Sender: No OFD packet to send [07:17:12]OFD Sender: No OFD packet to send [07:17:17]OFD Sender: No OFD packet to send [07:17:22]OFD Sender: No OFD packet to send [07:17:27]OFD Sender: No OFD packet to send [07:17:32]OFD Sender: No OFD packet to send [07:17:37]OFD Sender: No OFD packet to send [07:17:42]OFD Sender: No OFD packet to send [07:17:47]OFD Sender: No OFD packet to send [07:17:52]OFD Sender: No OFD packet to send [07:17:57]OFD Sender: No OFD packet to send [07:18:02]OFD Sender: No OFD packet to send [07:18:07]OFD Sender: No OFD packet to send [07:18:12]OFD Sender: No OFD packet to send [07:18:17]OFD Sender: No OFD packet to send [07:18:22]OFD Sender: No OFD packet to send [07:18:27]OFD Sender: No OFD packet to send [07:18:32]OFD Sender: No OFD packet to send [07:18:37]OFD Sender: No OFD packet to send [07:18:42]OFD Sender: No OFD packet to send [07:18:47]OFD Sender: No OFD packet to send [07:18:52]OFD Sender: No OFD packet to send [07:18:57]OFD Sender: No OFD packet to send [07:19:02]OFD Sender: No OFD packet to send [07:19:07]OFD Sender: No OFD packet to send [07:19:12]OFD Sender: No OFD packet to send [07:19:17]OFD Sender: No OFD packet to send [07:19:22]OFD Sender: No OFD packet to send [07:19:27]OFD Sender: No OFD packet to send [07:19:32]OFD Sender: No OFD packet to send [07:19:37]OFD Sender: No OFD packet to send [07:19:42]OFD Sender: No OFD packet to send [07:19:47]OFD Sender: No OFD packet to send [07:19:52]OFD Sender: No OFD packet to send [07:19:57]OFD Sender: No OFD packet to send [07:20:02]OFD Sender: No OFD packet to send [07:20:07]OFD Sender: No OFD packet to send [07:20:12]OFD Sender: No OFD packet to send [07:20:17]OFD Sender: No OFD packet to send [07:20:22]OFD Sender: No OFD packet to send [07:20:27]OFD Sender: No OFD packet to send [07:20:32]OFD Sender: No OFD packet to send [07:20:37]OFD Sender: No OFD packet to send [07:20:42]OFD Sender: No OFD packet to send [07:20:47]OFD Sender: No OFD packet to send [07:20:52]OFD Sender: No OFD packet to send [07:20:57]OFD Sender: No OFD packet to send [07:21:02]OFD Sender: No OFD packet to send [07:21:07]OFD Sender: No OFD packet to send [07:21:12]OFD Sender: No OFD packet to send [07:21:17]OFD Sender: No OFD packet to send [07:21:22]OFD Sender: No OFD packet to send [07:21:27]OFD Sender: No OFD packet to send [07:21:32]OFD Sender: No OFD packet to send [07:21:37]OFD Sender: No OFD packet to send [07:21:42]OFD Sender: No OFD packet to send [07:21:47]OFD Sender: No OFD packet to send [07:21:52]OFD Sender: No OFD packet to send [07:21:57]OFD Sender: No OFD packet to send [07:22:02]OFD Sender: No OFD packet to send [07:22:07]OFD Sender: No OFD packet to send [07:22:12]OFD Sender: No OFD packet to send [07:22:17]OFD Sender: No OFD packet to send [07:22:22]OFD Sender: No OFD packet to send [07:22:27]OFD Sender: No OFD packet to send [07:22:32]OFD Sender: No OFD packet to send [07:22:37]OFD Sender: No OFD packet to send [07:22:42]OFD Sender: No OFD packet to send [07:22:47]OFD Sender: No OFD packet to send [07:22:52]OFD Sender: No OFD packet to send [07:22:57]OFD Sender: No OFD packet to send [07:23:02]OFD Sender: No OFD packet to send [07:23:07]OFD Sender: No OFD packet to send [07:23:12]OFD Sender: No OFD packet to send [07:23:17]OFD Sender: No OFD packet to send [07:23:22]OFD Sender: No OFD packet to send [07:23:27]OFD Sender: No OFD packet to send [07:23:32]OFD Sender: No OFD packet to send [07:23:37]OFD Sender: No OFD packet to send [07:23:42]OFD Sender: No OFD packet to send [07:23:47]OFD Sender: No OFD packet to send [07:23:52]OFD Sender: No OFD packet to send [07:23:57]OFD Sender: No OFD packet to send [07:24:02]OFD Sender: No OFD packet to send [07:24:07]OFD Sender: No OFD packet to send [07:24:12]OFD Sender: No OFD packet to send [07:24:18]OFD Sender: No OFD packet to send [07:24:23]OFD Sender: No OFD packet to send [07:24:28]OFD Sender: No OFD packet to send [07:24:33]OFD Sender: No OFD packet to send [07:24:38]OFD Sender: No OFD packet to send [07:24:43]OFD Sender: No OFD packet to send [07:24:48]OFD Sender: No OFD packet to send [07:24:53]OFD Sender: No OFD packet to send [07:24:58]OFD Sender: No OFD packet to send [07:25:03]OFD Sender: No OFD packet to send [07:25:08]OFD Sender: No OFD packet to send [07:25:13]OFD Sender: No OFD packet to send [07:25:18]OFD Sender: No OFD packet to send [07:25:23]OFD Sender: No OFD packet to send [07:25:28]OFD Sender: No OFD packet to send [07:25:33]OFD Sender: No OFD packet to send [07:25:38]OFD Sender: No OFD packet to send [07:25:43]OFD Sender: No OFD packet to send [07:25:48]OFD Sender: No OFD packet to send [07:25:53]OFD Sender: No OFD packet to send [07:25:58]OFD Sender: No OFD packet to send [07:26:03]OFD Sender: No OFD packet to send [07:26:08]OFD Sender: No OFD packet to send [07:26:13]OFD Sender: No OFD packet to send [07:26:18]OFD Sender: No OFD packet to send [07:26:23]OFD Sender: No OFD packet to send [07:26:28]OFD Sender: No OFD packet to send [07:26:33]OFD Sender: No OFD packet to send [07:26:38]OFD Sender: No OFD packet to send [07:26:43]OFD Sender: No OFD packet to send [07:26:48]OFD Sender: No OFD packet to send [07:26:53]OFD Sender: No OFD packet to send [07:26:58]OFD Sender: No OFD packet to send [07:27:03]OFD Sender: No OFD packet to send [07:27:08]OFD Sender: No OFD packet to send [07:27:13]OFD Sender: No OFD packet to send [07:27:18]OFD Sender: No OFD packet to send [07:27:23]OFD Sender: No OFD packet to send [07:27:28]OFD Sender: No OFD packet to send [07:27:33]OFD Sender: No OFD packet to send [07:27:38]OFD Sender: No OFD packet to send [07:27:43]OFD Sender: No OFD packet to send [07:27:48]OFD Sender: No OFD packet to send [07:27:53]OFD Sender: No OFD packet to send [07:27:58]OFD Sender: No OFD packet to send [07:28:03]OFD Sender: No OFD packet to send [07:28:08]OFD Sender: No OFD packet to send [07:28:13]OFD Sender: No OFD packet to send [07:28:18]OFD Sender: No OFD packet to send [07:28:23]OFD Sender: No OFD packet to send [07:28:28]OFD Sender: No OFD packet to send [07:28:33]OFD Sender: No OFD packet to send [07:28:38]OFD Sender: No OFD packet to send [07:28:43]OFD Sender: No OFD packet to send [07:28:48]OFD Sender: No OFD packet to send [07:28:53]OFD Sender: No OFD packet to send [07:28:58]OFD Sender: No OFD packet to send [07:29:03]OFD Sender: No OFD packet to send [07:29:08]OFD Sender: No OFD packet to send [07:29:13]OFD Sender: No OFD packet to send [07:29:18]OFD Sender: No OFD packet to send [07:29:23]OFD Sender: No OFD packet to send [07:29:28]OFD Sender: No OFD packet to send [07:29:33]OFD Sender: No OFD packet to send [07:29:38]OFD Sender: No OFD packet to send [07:29:43]OFD Sender: No OFD packet to send [07:29:48]OFD Sender: No OFD packet to send [07:29:53]OFD Sender: No OFD packet to send [07:29:58]OFD Sender: No OFD packet to send [07:30:03]OFD Sender: No OFD packet to send [07:30:08]OFD Sender: No OFD packet to send [07:30:13]OFD Sender: No OFD packet to send [07:30:18]OFD Sender: No OFD packet to send [07:30:23]OFD Sender: No OFD packet to send [07:30:28]OFD Sender: No OFD packet to send [07:30:33]OFD Sender: No OFD packet to send [07:30:38]OFD Sender: No OFD packet to send [07:30:43]OFD Sender: No OFD packet to send [07:30:48]OFD Sender: No OFD packet to send [07:30:53]OFD Sender: No OFD packet to send [07:30:58]OFD Sender: No OFD packet to send [07:31:03]OFD Sender: No OFD packet to send [07:31:08]OFD Sender: No OFD packet to send [07:31:13]OFD Sender: No OFD packet to send [07:31:18]OFD Sender: No OFD packet to send [07:31:23]OFD Sender: No OFD packet to send [07:31:28]OFD Sender: No OFD packet to send [07:31:33]OFD Sender: No OFD packet to send [07:31:38]OFD Sender: No OFD packet to send [07:31:43]OFD Sender: No OFD packet to send [07:31:48]OFD Sender: No OFD packet to send [07:31:53]OFD Sender: No OFD packet to send [07:31:58]OFD Sender: No OFD packet to send [07:32:03]OFD Sender: No OFD packet to send [07:32:08]OFD Sender: No OFD packet to send [07:32:13]OFD Sender: No OFD packet to send [07:32:18]OFD Sender: No OFD packet to send [07:32:23]OFD Sender: No OFD packet to send [07:32:28]OFD Sender: No OFD packet to send [07:32:33]OFD Sender: No OFD packet to send [07:32:38]OFD Sender: No OFD packet to send [07:32:43]OFD Sender: No OFD packet to send [07:32:48]OFD Sender: No OFD packet to send [07:32:53]OFD Sender: No OFD packet to send [07:32:58]OFD Sender: No OFD packet to send [07:33:03]OFD Sender: No OFD packet to send [07:33:08]OFD Sender: No OFD packet to send [07:33:13]OFD Sender: No OFD packet to send [07:33:18]OFD Sender: No OFD packet to send [07:33:23]OFD Sender: No OFD packet to send [07:33:28]OFD Sender: No OFD packet to send [07:33:33]OFD Sender: No OFD packet to send [07:33:38]OFD Sender: No OFD packet to send [07:33:43]OFD Sender: No OFD packet to send [07:33:48]OFD Sender: No OFD packet to send [07:33:53]OFD Sender: No OFD packet to send [07:33:58]OFD Sender: No OFD packet to send [07:34:03]OFD Sender: No OFD packet to send [07:34:08]OFD Sender: No OFD packet to send [07:34:13]OFD Sender: No OFD packet to send [07:34:18]OFD Sender: No OFD packet to send [07:34:23]OFD Sender: No OFD packet to send [07:34:28]OFD Sender: No OFD packet to send [07:34:33]OFD Sender: No OFD packet to send [07:34:38]OFD Sender: No OFD packet to send [07:34:43]OFD Sender: No OFD packet to send [07:34:48]OFD Sender: No OFD packet to send [07:34:53]OFD Sender: No OFD packet to send [07:34:58]OFD Sender: No OFD packet to send [07:35:03]OFD Sender: No OFD packet to send [07:35:08]OFD Sender: No OFD packet to send [07:35:13]OFD Sender: No OFD packet to send [07:35:18]OFD Sender: No OFD packet to send [07:35:23]OFD Sender: No OFD packet to send [07:35:28]OFD Sender: No OFD packet to send [07:35:33]OFD Sender: No OFD packet to send [07:35:38]OFD Sender: No OFD packet to send [07:35:43]OFD Sender: No OFD packet to send [07:35:48]OFD Sender: No OFD packet to send [07:35:53]OFD Sender: No OFD packet to send [07:35:58]OFD Sender: No OFD packet to send [07:36:03]OFD Sender: No OFD packet to send [07:36:08]OFD Sender: No OFD packet to send [07:36:13]OFD Sender: No OFD packet to send [07:36:18]OFD Sender: No OFD packet to send [07:36:23]OFD Sender: No OFD packet to send [07:36:28]OFD Sender: No OFD packet to send [07:36:33]OFD Sender: No OFD packet to send [07:36:38]OFD Sender: No OFD packet to send [07:36:43]OFD Sender: No OFD packet to send [07:36:48]OFD Sender: No OFD packet to send [07:36:53]OFD Sender: No OFD packet to send [07:36:58]OFD Sender: No OFD packet to send [07:37:03]OFD Sender: No OFD packet to send [07:37:08]OFD Sender: No OFD packet to send [07:37:13]OFD Sender: No OFD packet to send [07:37:18]OFD Sender: No OFD packet to send [07:37:23]OFD Sender: No OFD packet to send [07:37:28]OFD Sender: No OFD packet to send [07:37:33]OFD Sender: No OFD packet to send [07:37:38]OFD Sender: No OFD packet to send [07:37:43]OFD Sender: No OFD packet to send [07:37:48]OFD Sender: No OFD packet to send [07:37:53]OFD Sender: No OFD packet to send [07:37:58]OFD Sender: No OFD packet to send [07:38:03]OFD Sender: No OFD packet to send [07:38:08]OFD Sender: No OFD packet to send [07:38:13]OFD Sender: No OFD packet to send [07:38:18]OFD Sender: No OFD packet to send [07:38:23]OFD Sender: No OFD packet to send [07:38:28]OFD Sender: No OFD packet to send [07:38:33]OFD Sender: No OFD packet to send [07:38:38]OFD Sender: No OFD packet to send [07:38:43]OFD Sender: No OFD packet to send [07:38:48]OFD Sender: No OFD packet to send [07:38:53]OFD Sender: No OFD packet to send [07:38:58]OFD Sender: No OFD packet to send [07:39:03]OFD Sender: No OFD packet to send [07:39:08]OFD Sender: No OFD packet to send [07:39:13]OFD Sender: No OFD packet to send [07:39:18]OFD Sender: No OFD packet to send [07:39:23]OFD Sender: No OFD packet to send [07:39:28]OFD Sender: No OFD packet to send [07:39:33]OFD Sender: No OFD packet to send [07:39:38]OFD Sender: No OFD packet to send [07:39:43]OFD Sender: No OFD packet to send [07:39:48]OFD Sender: No OFD packet to send [07:39:53]OFD Sender: No OFD packet to send [07:39:58]OFD Sender: No OFD packet to send [07:40:03]OFD Sender: No OFD packet to send [07:40:08]OFD Sender: No OFD packet to send [07:40:13]OFD Sender: No OFD packet to send [07:40:18]OFD Sender: No OFD packet to send [07:40:23]OFD Sender: No OFD packet to send [07:40:28]OFD Sender: No OFD packet to send [07:40:33]OFD Sender: No OFD packet to send [07:40:38]OFD Sender: No OFD packet to send [07:40:43]OFD Sender: No OFD packet to send [07:40:48]OFD Sender: No OFD packet to send [07:40:53]OFD Sender: No OFD packet to send [07:40:58]OFD Sender: No OFD packet to send [07:41:03]OFD Sender: No OFD packet to send [07:41:08]OFD Sender: No OFD packet to send [07:41:13]OFD Sender: No OFD packet to send [07:41:18]OFD Sender: No OFD packet to send [07:41:23]OFD Sender: No OFD packet to send [07:41:28]OFD Sender: No OFD packet to send [07:41:33]OFD Sender: No OFD packet to send [07:41:38]OFD Sender: No OFD packet to send [07:41:43]OFD Sender: No OFD packet to send [07:41:48]OFD Sender: No OFD packet to send [07:41:53]OFD Sender: No OFD packet to send [07:41:58]OFD Sender: No OFD packet to send [07:42:03]OFD Sender: No OFD packet to send [07:42:08]OFD Sender: No OFD packet to send [07:42:13]OFD Sender: No OFD packet to send [07:42:18]OFD Sender: No OFD packet to send [07:42:23]OFD Sender: No OFD packet to send [07:42:28]OFD Sender: No OFD packet to send [07:42:33]OFD Sender: No OFD packet to send [07:42:38]OFD Sender: No OFD packet to send [07:42:43]OFD Sender: No OFD packet to send [07:42:48]OFD Sender: No OFD packet to send [07:42:53]OFD Sender: No OFD packet to send [07:42:58]OFD Sender: No OFD packet to send [07:43:03]OFD Sender: No OFD packet to send [07:43:08]OFD Sender: No OFD packet to send [07:43:13]OFD Sender: No OFD packet to send [07:43:15]accept exits with 7 [07:43:15]New connection [07:43:15]New thread 3067157860 created [07:43:15]Thread 3067014500 joined [07:43:15]Waiting for new connection... [07:43:15] Sock 7.Parse request [07:43:15]Sock 7.Check first char [07:43:15]Sock 7.First char is OK [07:43:15]request: POST /json_proto HTTP/1.0 [07:43:15]Method: POST [07:43:15]URL: /json_proto [07:43:15]Method is POST - this is cgi request [07:43:15]url: /json_proto [07:43:15]query_string will be loaded in cgi processing [07:43:15]execute_cgi json_proto POST (null) [07:43:15]execute_cgi path=json_proto method=POST [07:43:15]POST find Content-Length [07:43:15]Host: 172.17.48.198:8080 [07:43:15]Content-Length: 650 [07:43:15]Content-Type: application/json [07:43:15] [07:43:15]POST finish read [07:43:15]Found Content-Length = 650 [07:43:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184145", "tax_sys" : 0, "items" : [ { "code": "4870216765057", "name": "\u041D\u0430\u0433\u0440.\u0422\u0430\u0431.\u041F\u0430\u043B\u043E\u0447. HEETS Green Zing", "price" : 141.00, "quantity" : 1.000, "sum" : 141.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 141.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:43:15]execute_script... [07:43:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184145", "tax_sys" : 0, "items" : [ { "code": "4870216765057", "name": "\u041D\u0430\u0433\u0440.\u0422\u0430\u0431.\u041F\u0430\u043B\u043E\u0447. HEETS Green Zing", "price" : 141.00, "quantity" : 1.000, "sum" : 141.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 141.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:43:15]POST & json_proto [07:43:15]process_json_proto [07:43:15]json parsed OK: [07:43:15]protocol is kg_v1.0 [07:43:15]action value=close_receipt [07:43:15]process_action close_receipt [07:43:15]cmd_close_receipt [07:43:15]MH_GetDate [07:43:15]Write to MH i2c: F0 00 00 9B 43 CD [07:43:15]Write i2c OK [07:43:15]MH_I2C_Read... [07:43:15]Read from MH i2c: F0 [07:43:15]MH_I2C_Read... [07:43:15]Read from MH i2c: F0 09 00 [07:43:15]MH_I2C_Read... [07:43:15]Read from MH i2c: F0 09 00 9B 43 00 1D 2A E4 65 CE C4 D4 65 31 [07:43:15]GetLastDocTimeStamp 1709448748 [07:43:15]current date 1709451805 [07:43:15]FM_GetShiftState [07:43:15]SAM_PROTO_GetShiftState [07:43:15]wFMCommunicate request_size=4 [07:43:15]MH_SAM_APDU [07:43:15]CAPDU: 80 13 01 00 [07:43:15]Write to MH i2c: E2 08 00 9C 43 80 13 01 00 00 00 00 00 5C [07:43:15]Write i2c OK [07:43:15]MH_I2C_Read... [07:43:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:43:15]Read from MH i2c: E2 [07:43:15]MH_I2C_Read... [07:43:15]Read from MH i2c: E2 0E 00 [07:43:15]MH_I2C_Read... [07:43:15]Read from MH i2c: E2 0E 00 9C 43 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 92 [07:43:15]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [07:43:15]wFMCommunicate OK [07:43:15]SAM_PROTO_GetShiftState done [07:43:15]FM_GetShiftState done [07:43:15]opened in 1709425694 [07:43:15]opened+sec_in_day 1709512094 [07:43:15]quantity*price = 14100 [07:43:15]sum+1 = 14101 [07:43:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 141.00 НСП 1% : 1.25 НДС 12% : 14.97 Наличными: 141.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 18 03.03.2024 07:43 Смена: 331 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 ФМ: 0000000000874796 ФД: 45181 ФПД: 236585920647942 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T074325&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45181&fm=236585920647942&tin=02508201610067®Number=0000000000090572&sum=14100 0 [07:43:16]StoreToDocumentArchive [07:43:16]shift 331 fd 45181 [07:43:16]save to /storage/0331/doc_00045181 [07:43:16]save last doc name /storage/0331/doc_00045181 to /storage/kkm_last_doc_name [07:43:16]save OK [07:43:16]Clear old archive folders... [07:43:16]ProcessDocumentItem done err = 0, tmpTLVsize=286 [07:43:16]tlvbuf is 01B29680 [07:43:16]SAM_PROTO_ClearQueue [07:43:16]wFMCommunicate request_size=4 [07:43:16]MH_SAM_APDU [07:43:16]CAPDU: 80 09 00 00 [07:43:16]Write to MH i2c: E2 08 00 A9 43 80 09 00 00 00 00 00 00 5E [07:43:16]Write i2c OK [07:43:16]MH_I2C_Read... [07:43:16]Read from MH i2c: E2 [07:43:16]MH_I2C_Read... [07:43:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:43:16]Read from MH i2c: E2 03 00 [07:43:16]MH_I2C_Read... [07:43:16]Read from MH i2c: E2 03 00 A9 43 00 90 00 60 [07:43:16]RAPDU: 90 00 [07:43:16]wFMCommunicate OK [07:43:16]SAM_PROTO_ClearQueue done [07:43:16]KKMCreateOFDPacket [07:43:16]OFDProtocolAddRootSTLVToBuf [07:43:16]FM_MakeSignedData [07:43:16]FM_MakeSignedData [07:43:16]SAM_PROTO_SignData [07:43:16]wFMCommunicate request_size=4 [07:43:16]MH_SAM_APDU [07:43:16]CAPDU: 80 0D 01 02 [07:43:16]Write to MH i2c: E2 08 00 AA 43 80 0D 01 02 00 00 00 00 66 [07:43:16]Write i2c OK [07:43:16]MH_I2C_Read... [07:43:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:43:16]Read from MH i2c: E2 [07:43:16]MH_I2C_Read... [07:43:16]Read from MH i2c: E2 03 00 [07:43:16]MH_I2C_Read... [07:43:16]Read from MH i2c: E2 03 00 AA 43 00 90 00 61 [07:43:16]RAPDU: 90 00 [07:43:16]wFMCommunicate OK [07:43:16]wFMCommunicate request_size=255 [07:43:16]MH_SAM_APDU [07:43:16]CAPDU: 80 0D 02 02 FA 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 35 30 35 37 06 04 2C 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 47 72 65 65 6E 20 5A 69 6E 67 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 05 00 00 00 00 07 04 06 00 14 37 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 1D 2A E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 [07:43:16]Write to MH i2c: E2 02 01 AB 43 80 0D 02 02 FA 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 35 30 35 37 06 04 2C 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 47 72 65 65 6E 20 5A 69 6E 67 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 05 00 00 00 00 07 04 06 00 14 37 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 1D 2A E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 00 00 EF [07:43:16]Write i2c OK [07:43:16]MH_I2C_Read... [07:43:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:43:17]Read from MH i2c: E2 [07:43:17]MH_I2C_Read... [07:43:17]Read from MH i2c: E2 03 00 [07:43:17]MH_I2C_Read... [07:43:17]Read from MH i2c: E2 03 00 AB 43 00 90 00 62 [07:43:17]RAPDU: 90 00 [07:43:17]wFMCommunicate OK [07:43:17]wFMCommunicate request_size=45 [07:43:17]MH_SAM_APDU [07:43:17]CAPDU: 80 0D 02 02 28 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 7D B0 00 00 35 04 06 00 D7 2C 73 C2 53 06 [07:43:17]Write to MH i2c: E2 30 00 AC 43 80 0D 02 02 28 00 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 7D B0 00 00 35 04 06 00 D7 2C 73 C2 53 06 00 00 85 [07:43:17]Write i2c OK [07:43:17]MH_I2C_Read... [07:43:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:43:17]Read from MH i2c: E2 [07:43:17]MH_I2C_Read... [07:43:17]Read from MH i2c: E2 03 00 [07:43:17]MH_I2C_Read... [07:43:17]Read from MH i2c: E2 03 00 AC 43 00 90 00 63 [07:43:17]RAPDU: 90 00 [07:43:17]wFMCommunicate OK [07:43:17]wFMCommunicate request_size=4 [07:43:17]MH_SAM_APDU [07:43:17]CAPDU: 80 0D 03 02 [07:43:17]Write to MH i2c: E2 08 00 AD 43 80 0D 03 02 00 00 00 00 6B [07:43:17]Write i2c OK [07:43:17]MH_I2C_Read... [07:43:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:43:17]Read from MH i2c: E2 [07:43:17]MH_I2C_Read... [07:43:17]Read from MH i2c: E2 0B 00 [07:43:17]MH_I2C_Read... [07:43:17]Read from MH i2c: E2 0B 00 AD 43 00 28 FE A0 34 8E 55 77 68 90 00 28 [07:43:17]RAPDU: 28 FE A0 34 8E 55 77 68 90 00 [07:43:17]wFMCommunicate OK [07:43:17]SAM_PROTO_SignData done [07:43:17]FM_MakeSignedData done [07:43:17]CreateOFDProtocolMessage [07:43:17]wFMCommunicate request_size=4 [07:43:17]MH_SAM_APDU [07:43:17]CAPDU: 80 11 00 00 [07:43:17]Write to MH i2c: E2 08 00 AE 43 80 11 00 00 00 00 00 00 6B [07:43:17]Write i2c OK [07:43:17]MH_I2C_Read... [07:43:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:43:17]Read from MH i2c: E2 [07:43:17]MH_I2C_Read... [07:43:17]Read from MH i2c: E2 17 00 [07:43:17]MH_I2C_Read... [07:43:17]Read from MH i2c: E2 17 00 AE 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 C7 [07:43:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [07:43:17]wFMCommunicate OK [07:43:17]CreateOFDProtocolMessage done [07:43:17]OFDSenderStorePacket 45181 [07:43:17]StoreOFDPacket docnum=45181 [07:43:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 32 01 00 00 C1 F6 2A 01 84 02 5A 03 01 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 35 30 35 37 06 04 2C 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 47 72 65 65 6E 20 5A 69 6E 67 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 05 00 00 00 00 07 04 06 00 14 37 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 1D 2A E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 7D B0 00 00 35 04 06 00 D7 2C 73 C2 53 06 28 FE A0 34 8E 55 77 68 [07:43:17]CheckFolder [07:43:17]dirname=/storage/ofd_packets [07:43:17]CheckFolder done [07:43:17]ProducePacketName [07:43:17]name=ofd_packets/00045181 [07:43:17]NVStorageSaveData ofd_packets/00045181 [07:43:17]File name is /storage/ofd_packets/00045181 [07:43:17]Write 336 bytes [07:43:17]NVStorageSaveData done [07:43:17]OFDSenderStorePacket done [07:43:17]KKMCreateOFDPacket done [07:43:17]NVStorageSaveData kkm_last_timestamp [07:43:17]File name is /storage/kkm_last_timestamp [07:43:17]Write 4 bytes [07:43:17]NVStorageSaveData done [07:43:17]ExternCall_PrintAddStr [07:43:17]wPrintStart [07:43:17]Write to MH i2c: 01 00 00 AF 43 F2 [07:43:17]Write i2c OK [07:43:17]MH_I2C_Read... [07:43:17]Read from MH i2c: 01 [07:43:17]MH_I2C_Read... [07:43:17]Read from MH i2c: 01 07 00 [07:43:17]MH_I2C_Read... [07:43:17]Read from MH i2c: 01 07 00 AF 43 00 00 00 00 00 FF 0F 07 [07:43:17]RasterBufferAndPrint [07:43:17]line Счет N : (3)184145 [07:43:17]line ИНН: 02508201610067 [07:43:17]line Контрольно-Кассовый Чек [07:43:17]line ПРОДАЖА [07:43:17]line Товар: 4870216765057 [07:43:17]line Нагр.Таб.Палоч. HEETS Green Zing [07:43:17]line 1.000 * 141.00 [07:43:17]line = 141.00 [07:43:17]line НДС 12% НСП 1% [07:43:17]line > о реализуемом товаре [07:43:17]line ИТОГО: 141.00 [07:43:17]line НСП 1% : 1.25 [07:43:17]line НДС 12% : 14.97 [07:43:17]line Наличными: 141.00 [07:43:17]line Безнал.: 0.00 [07:43:17]line Место: АЗС № 25 "Партнер Нефть" [07:43:17]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [07:43:17]line СНО: Общий режим [07:43:17]line Чек 18 03.03.2024 07:43 [07:43:17]line Смена: 331 ФФД: 1.0 [07:43:17]line ЗНМ: 0300000013 [07:43:17]line РНМ: 0000000000090572 [07:43:17]line Версия ККМ: 001 [07:43:17]line ФМ: 0000000000874796 [07:43:17]line ФД: 45181 [07:43:17]line ФПД: 236585920647942 [07:43:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T074325&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45181&fm=236585920647942&tin=02508201610067®Number=0000000000090572&sum=14100 [07:43:17]line 0 [07:43:17]OFD Sender: Processing packet 45181 [packets to send 17, broken 16] [07:43:17]ProducePacketName [07:43:17]name=ofd_packets/00045181 [07:43:17]OFD Sender: To server: pG, [07:43:17]CommunicateWithHost lk.salyk.kg:30040 [07:43:17]ConnectInit lk.salyk.kg [07:43:17]written 0, free lines is 4095 [07:43:17]Connected sock=10 [07:43:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 32 01 00 00 C1 F6 2A 01 84 02 5A 03 01 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 35 30 35 37 06 04 2C 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 47 72 65 65 6E 20 5A 69 6E 67 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 05 00 00 00 00 07 04 06 00 14 37 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 1D 2A E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 7D B0 00 00 35 04 06 00 D7 2C 73 C2 53 06 28 FE A0 34 8E 55 77 68 [07:43:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 7B F3 47 00 D9 E8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 7D B0 00 00 F4 03 04 00 E3 D5 E3 65 B6 04 01 00 00 65 41 64 D3 32 EB 81 B8 [07:43:17]CommunicateWithHost err = 0 [07:43:17]CheckOFDResponse [07:43:17]1017 (14) - 77093643461234 [07:43:17]1041 (16) - 0000000000874796 [07:43:17]1040 (4) - 45181 [07:43:17]1012 (4) - 03.03.2024 01:44 [07:43:17]1206 (1) - 0 [07:43:17]OFD Sender: Remove packet 45181 [07:43:17]ProducePacketName [07:43:17]name=ofd_packets/00045181 [07:43:17]NVStorageDeleteData [07:43:18]Write to MH i2c: 01 00 00 D8 43 1B [07:43:18]Write i2c OK [07:43:18]MH_I2C_Read... [07:43:18]Read from MH i2c: 01 [07:43:18]MH_I2C_Read... [07:43:18]Read from MH i2c: 01 07 00 [07:43:18]MH_I2C_Read... [07:43:18]Read from MH i2c: 01 07 00 D8 43 00 00 00 00 00 F9 0C 27 [07:43:18]RasterBufferAndPrint [07:43:18]line [07:43:18]line [07:43:18]line [07:43:18]line [07:43:18]line [07:43:18]written 0, free lines is 3327 [07:43:18]MH_Cut [07:43:18]Write to MH i2c: D1 01 00 DF 43 01 F4 [07:43:18]Write i2c OK [07:43:18]MH_I2C_Read... [07:43:18]Read from MH i2c: D1 [07:43:18]MH_I2C_Read... [07:43:18]Read from MH i2c: D1 01 00 [07:43:18]MH_I2C_Read... [07:43:18]Read from MH i2c: D1 01 00 DF 43 00 F3 [07:43:18]Write to MH i2c: 01 00 00 E0 43 23 [07:43:18]Write i2c OK [07:43:18]MH_I2C_Read... [07:43:18]OFD Sender: No OFD packet to send [07:43:18]*** Cut start [07:43:18]*** Purtial cut [07:43:18]*** Stage 1: CUTSNS_PIN = 1 [07:43:20]Read from MH i2c: 01 [07:43:20]MH_I2C_Read... [07:43:20]*** Stop cut motor [07:43:20]*** Cut end [07:43:20]Read from MH i2c: 01 07 00 [07:43:20]MH_I2C_Read... [07:43:20]Read from MH i2c: 01 07 00 E0 43 00 00 00 00 00 FF 0F 38 [07:43:20]process_action close_receipt done [07:43:20]requested_data is exist [07:43:20]produce_requested_data [07:43:20]requested_item fm.sn is exist - process it [07:43:20]wFMCommunicate request_size=4 [07:43:20]MH_SAM_APDU [07:43:20]CAPDU: 80 11 00 00 [07:43:20]Write to MH i2c: E2 08 00 E1 43 80 11 00 00 00 00 00 00 9E [07:43:20]Write i2c OK [07:43:20]MH_I2C_Read... [07:43:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:43:20]Read from MH i2c: E2 [07:43:20]MH_I2C_Read... [07:43:20]Read from MH i2c: E2 17 00 [07:43:20]MH_I2C_Read... [07:43:20]Read from MH i2c: E2 17 00 E1 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 FA [07:43:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [07:43:20]wFMCommunicate OK [07:43:20]requested_item fd.num is exist - process it [07:43:20]SAM_PROTO_GetFieldsCounters [07:43:20]wFMCommunicate request_size=4 [07:43:20]MH_SAM_APDU [07:43:20]CAPDU: 80 13 00 00 [07:43:20]Write to MH i2c: E2 08 00 E2 43 80 13 00 00 00 00 00 00 A1 [07:43:20]Write i2c OK [07:43:20]MH_I2C_Read... [07:43:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:43:20]Read from MH i2c: E2 [07:43:20]MH_I2C_Read... [07:43:20]Read from MH i2c: E2 62 00 [07:43:20]MH_I2C_Read... [07:43:20]Read from MH i2c: E2 62 00 E2 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 7D B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 78 [07:43:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 7D B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:43:20]wFMCommunicate OK [07:43:20]SAM_PROTO_GetFieldsCounters done [07:43:20]requested_item shift.num is exist - process it [07:43:20]requested_item shift.opened is exist - process it [07:43:20]req_shift_opened [07:43:20]FM_GetShiftState [07:43:20]SAM_PROTO_GetShiftState [07:43:20]wFMCommunicate request_size=4 [07:43:20]MH_SAM_APDU [07:43:20]CAPDU: 80 13 01 00 [07:43:20]Write to MH i2c: E2 08 00 E3 43 80 13 01 00 00 00 00 00 A3 [07:43:20]Write i2c OK [07:43:20]MH_I2C_Read... [07:43:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:43:20]Read from MH i2c: E2 [07:43:20]MH_I2C_Read... [07:43:20]Read from MH i2c: E2 0E 00 [07:43:20]MH_I2C_Read... [07:43:20]Read from MH i2c: E2 0E 00 E3 43 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 D9 [07:43:20]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [07:43:20]wFMCommunicate OK [07:43:20]SAM_PROTO_GetShiftState done [07:43:20]FM_GetShiftState done [07:43:20]req_shift_opened done [07:43:20]requested_item shift.open_date is exist - process it [07:43:20]req_shift_open_date [07:43:20]req_shift_open_date done [07:43:20]produce_requested_data done [07:43:20]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45181,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [07:43:20]process_action_free close_receipt [07:43:20]json_value_free [07:43:20]json_value_free done [07:43:20]process_json_proto returns [07:43:20]Send response to host [07:43:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45181,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [07:43:20]free response buf [07:43:20]execute_script done [07:43:20]execute_script returns [07:43:20]free content buf [07:43:20]Sock 7.Close socket [07:43:20]Sock 7.Thread stoped [07:43:23]OFD Sender: No OFD packet to send [07:43:28]OFD Sender: No OFD packet to send [07:43:33]OFD Sender: No OFD packet to send [07:43:38]OFD Sender: No OFD packet to send [07:43:43]OFD Sender: No OFD packet to send [07:43:48]OFD Sender: No OFD packet to send [07:43:53]OFD Sender: No OFD packet to send [07:43:58]OFD Sender: No OFD packet to send [07:44:03]OFD Sender: No OFD packet to send [07:44:08]OFD Sender: No OFD packet to send [07:44:13]OFD Sender: No OFD packet to send [07:44:18]OFD Sender: No OFD packet to send [07:44:23]OFD Sender: No OFD packet to send [07:44:28]OFD Sender: No OFD packet to send [07:44:33]OFD Sender: No OFD packet to send [07:44:38]OFD Sender: No OFD packet to send [07:44:43]OFD Sender: No OFD packet to send [07:44:48]OFD Sender: No OFD packet to send [07:44:53]OFD Sender: No OFD packet to send [07:44:58]OFD Sender: No OFD packet to send [07:45:03]OFD Sender: No OFD packet to send [07:45:08]OFD Sender: No OFD packet to send [07:45:13]OFD Sender: No OFD packet to send [07:45:18]OFD Sender: No OFD packet to send [07:45:23]OFD Sender: No OFD packet to send [07:45:28]OFD Sender: No OFD packet to send [07:45:33]OFD Sender: No OFD packet to send [07:45:38]OFD Sender: No OFD packet to send [07:45:43]OFD Sender: No OFD packet to send [07:45:48]OFD Sender: No OFD packet to send [07:45:53]OFD Sender: No OFD packet to send [07:45:58]OFD Sender: No OFD packet to send [07:46:03]OFD Sender: No OFD packet to send [07:46:08]OFD Sender: No OFD packet to send [07:46:13]OFD Sender: No OFD packet to send [07:46:18]OFD Sender: No OFD packet to send [07:46:23]OFD Sender: No OFD packet to send [07:46:28]OFD Sender: No OFD packet to send [07:46:33]OFD Sender: No OFD packet to send [07:46:38]OFD Sender: No OFD packet to send [07:46:43]OFD Sender: No OFD packet to send [07:46:48]OFD Sender: No OFD packet to send [07:46:53]OFD Sender: No OFD packet to send [07:46:58]OFD Sender: No OFD packet to send [07:47:03]OFD Sender: No OFD packet to send [07:47:08]OFD Sender: No OFD packet to send [07:47:13]OFD Sender: No OFD packet to send [07:47:18]OFD Sender: No OFD packet to send [07:47:23]OFD Sender: No OFD packet to send [07:47:28]OFD Sender: No OFD packet to send [07:47:33]OFD Sender: No OFD packet to send [07:47:38]OFD Sender: No OFD packet to send [07:47:43]OFD Sender: No OFD packet to send [07:47:48]OFD Sender: No OFD packet to send [07:47:53]OFD Sender: No OFD packet to send [07:47:58]OFD Sender: No OFD packet to send [07:48:03]OFD Sender: No OFD packet to send [07:48:08]OFD Sender: No OFD packet to send [07:48:13]OFD Sender: No OFD packet to send [07:48:18]OFD Sender: No OFD packet to send [07:48:23]OFD Sender: No OFD packet to send [07:48:28]OFD Sender: No OFD packet to send [07:48:33]OFD Sender: No OFD packet to send [07:48:38]OFD Sender: No OFD packet to send [07:48:43]OFD Sender: No OFD packet to send [07:48:48]OFD Sender: No OFD packet to send [07:48:53]OFD Sender: No OFD packet to send [07:48:58]OFD Sender: No OFD packet to send [07:49:03]OFD Sender: No OFD packet to send [07:49:08]OFD Sender: No OFD packet to send [07:49:13]OFD Sender: No OFD packet to send [07:49:18]OFD Sender: No OFD packet to send [07:49:23]OFD Sender: No OFD packet to send [07:49:28]OFD Sender: No OFD packet to send [07:49:33]OFD Sender: No OFD packet to send [07:49:38]OFD Sender: No OFD packet to send [07:49:43]OFD Sender: No OFD packet to send [07:49:48]OFD Sender: No OFD packet to send [07:49:53]OFD Sender: No OFD packet to send [07:49:58]OFD Sender: No OFD packet to send [07:50:03]OFD Sender: No OFD packet to send [07:50:08]OFD Sender: No OFD packet to send [07:50:13]OFD Sender: No OFD packet to send [07:50:18]OFD Sender: No OFD packet to send [07:50:23]OFD Sender: No OFD packet to send [07:50:28]OFD Sender: No OFD packet to send [07:50:33]OFD Sender: No OFD packet to send [07:50:38]OFD Sender: No OFD packet to send [07:50:43]OFD Sender: No OFD packet to send [07:50:48]OFD Sender: No OFD packet to send [07:50:53]OFD Sender: No OFD packet to send [07:50:58]OFD Sender: No OFD packet to send [07:51:03]OFD Sender: No OFD packet to send [07:51:08]OFD Sender: No OFD packet to send [07:51:13]OFD Sender: No OFD packet to send [07:51:18]OFD Sender: No OFD packet to send [07:51:23]OFD Sender: No OFD packet to send [07:51:28]OFD Sender: No OFD packet to send [07:51:33]OFD Sender: No OFD packet to send [07:51:38]OFD Sender: No OFD packet to send [07:51:43]OFD Sender: No OFD packet to send [07:51:48]OFD Sender: No OFD packet to send [07:51:53]OFD Sender: No OFD packet to send [07:51:58]OFD Sender: No OFD packet to send [07:52:03]OFD Sender: No OFD packet to send [07:52:08]OFD Sender: No OFD packet to send [07:52:13]OFD Sender: No OFD packet to send [07:52:18]OFD Sender: No OFD packet to send [07:52:23]OFD Sender: No OFD packet to send [07:52:28]OFD Sender: No OFD packet to send [07:52:33]OFD Sender: No OFD packet to send [07:52:38]OFD Sender: No OFD packet to send [07:52:43]OFD Sender: No OFD packet to send [07:52:48]OFD Sender: No OFD packet to send [07:52:53]OFD Sender: No OFD packet to send [07:52:58]OFD Sender: No OFD packet to send [07:53:03]OFD Sender: No OFD packet to send [07:53:08]OFD Sender: No OFD packet to send [07:53:13]OFD Sender: No OFD packet to send [07:53:18]OFD Sender: No OFD packet to send [07:53:23]OFD Sender: No OFD packet to send [07:53:28]OFD Sender: No OFD packet to send [07:53:33]OFD Sender: No OFD packet to send [07:53:38]OFD Sender: No OFD packet to send [07:53:43]OFD Sender: No OFD packet to send [07:53:48]OFD Sender: No OFD packet to send [07:53:53]OFD Sender: No OFD packet to send [07:53:58]OFD Sender: No OFD packet to send [07:54:03]OFD Sender: No OFD packet to send [07:54:08]OFD Sender: No OFD packet to send [07:54:13]OFD Sender: No OFD packet to send [07:54:18]OFD Sender: No OFD packet to send [07:54:23]OFD Sender: No OFD packet to send [07:54:28]OFD Sender: No OFD packet to send [07:54:33]OFD Sender: No OFD packet to send [07:54:38]OFD Sender: No OFD packet to send [07:54:43]OFD Sender: No OFD packet to send [07:54:48]OFD Sender: No OFD packet to send [07:54:53]OFD Sender: No OFD packet to send [07:54:58]OFD Sender: No OFD packet to send [07:55:03]OFD Sender: No OFD packet to send [07:55:08]OFD Sender: No OFD packet to send [07:55:13]OFD Sender: No OFD packet to send [07:55:18]OFD Sender: No OFD packet to send [07:55:23]OFD Sender: No OFD packet to send [07:55:28]OFD Sender: No OFD packet to send [07:55:33]OFD Sender: No OFD packet to send [07:55:38]OFD Sender: No OFD packet to send [07:55:43]OFD Sender: No OFD packet to send [07:55:48]OFD Sender: No OFD packet to send [07:55:53]OFD Sender: No OFD packet to send [07:55:58]OFD Sender: No OFD packet to send [07:56:03]OFD Sender: No OFD packet to send [07:56:08]OFD Sender: No OFD packet to send [07:56:13]OFD Sender: No OFD packet to send [07:56:18]OFD Sender: No OFD packet to send [07:56:23]OFD Sender: No OFD packet to send [07:56:28]OFD Sender: No OFD packet to send [07:56:33]OFD Sender: No OFD packet to send [07:56:39]OFD Sender: No OFD packet to send [07:56:44]OFD Sender: No OFD packet to send [07:56:49]OFD Sender: No OFD packet to send [07:56:54]OFD Sender: No OFD packet to send [07:56:59]OFD Sender: No OFD packet to send [07:57:04]OFD Sender: No OFD packet to send [07:57:09]OFD Sender: No OFD packet to send [07:57:14]OFD Sender: No OFD packet to send [07:57:19]OFD Sender: No OFD packet to send [07:57:24]OFD Sender: No OFD packet to send [07:57:29]OFD Sender: No OFD packet to send [07:57:34]OFD Sender: No OFD packet to send [07:57:39]OFD Sender: No OFD packet to send [07:57:44]OFD Sender: No OFD packet to send [07:57:49]OFD Sender: No OFD packet to send [07:57:54]OFD Sender: No OFD packet to send [07:57:59]OFD Sender: No OFD packet to send [07:58:04]OFD Sender: No OFD packet to send [07:58:09]OFD Sender: No OFD packet to send [07:58:14]OFD Sender: No OFD packet to send [07:58:19]OFD Sender: No OFD packet to send [07:58:24]OFD Sender: No OFD packet to send [07:58:29]OFD Sender: No OFD packet to send [07:58:34]OFD Sender: No OFD packet to send [07:58:39]OFD Sender: No OFD packet to send [07:58:44]OFD Sender: No OFD packet to send [07:58:49]OFD Sender: No OFD packet to send [07:58:54]OFD Sender: No OFD packet to send [07:58:59]OFD Sender: No OFD packet to send [07:59:04]OFD Sender: No OFD packet to send [07:59:09]OFD Sender: No OFD packet to send [07:59:14]OFD Sender: No OFD packet to send [07:59:19]OFD Sender: No OFD packet to send [07:59:24]OFD Sender: No OFD packet to send [07:59:29]OFD Sender: No OFD packet to send [07:59:34]OFD Sender: No OFD packet to send [07:59:39]OFD Sender: No OFD packet to send [07:59:44]OFD Sender: No OFD packet to send [07:59:49]OFD Sender: No OFD packet to send [07:59:54]OFD Sender: No OFD packet to send [07:59:59]OFD Sender: No OFD packet to send [08:00:04]OFD Sender: No OFD packet to send [08:00:09]OFD Sender: No OFD packet to send [08:00:14]OFD Sender: No OFD packet to send [08:00:19]OFD Sender: No OFD packet to send [08:00:24]OFD Sender: No OFD packet to send [08:00:29]OFD Sender: No OFD packet to send [08:00:34]OFD Sender: No OFD packet to send [08:00:39]OFD Sender: No OFD packet to send [08:00:44]OFD Sender: No OFD packet to send [08:00:49]OFD Sender: No OFD packet to send [08:00:54]OFD Sender: No OFD packet to send [08:00:59]OFD Sender: No OFD packet to send [08:01:04]OFD Sender: No OFD packet to send [08:01:09]OFD Sender: No OFD packet to send [08:01:14]OFD Sender: No OFD packet to send [08:01:19]OFD Sender: No OFD packet to send [08:01:24]OFD Sender: No OFD packet to send [08:01:29]OFD Sender: No OFD packet to send [08:01:34]OFD Sender: No OFD packet to send [08:01:39]OFD Sender: No OFD packet to send [08:01:44]OFD Sender: No OFD packet to send [08:01:49]OFD Sender: No OFD packet to send [08:01:54]OFD Sender: No OFD packet to send [08:01:59]OFD Sender: No OFD packet to send [08:02:04]OFD Sender: No OFD packet to send [08:02:09]OFD Sender: No OFD packet to send [08:02:14]OFD Sender: No OFD packet to send [08:02:19]OFD Sender: No OFD packet to send [08:02:24]OFD Sender: No OFD packet to send [08:02:29]OFD Sender: No OFD packet to send [08:02:34]OFD Sender: No OFD packet to send [08:02:39]OFD Sender: No OFD packet to send [08:02:44]OFD Sender: No OFD packet to send [08:02:49]OFD Sender: No OFD packet to send [08:02:54]OFD Sender: No OFD packet to send [08:02:59]OFD Sender: No OFD packet to send [08:03:04]OFD Sender: No OFD packet to send [08:03:09]OFD Sender: No OFD packet to send [08:03:14]OFD Sender: No OFD packet to send [08:03:19]OFD Sender: No OFD packet to send [08:03:24]OFD Sender: No OFD packet to send [08:03:29]OFD Sender: No OFD packet to send [08:03:34]OFD Sender: No OFD packet to send [08:03:36]accept exits with 9 [08:03:36]New connection [08:03:36]New thread 3067014500 created [08:03:36]Thread 3067157860 joined [08:03:36]Waiting for new connection... [08:03:36] Sock 9.Parse request [08:03:36]Sock 9.Check first char [08:03:36]Sock 9.First char is OK [08:03:36]request: POST /json_proto HTTP/1.0 [08:03:36]Method: POST [08:03:36]URL: /json_proto [08:03:36]Method is POST - this is cgi request [08:03:36]url: /json_proto [08:03:36]query_string will be loaded in cgi processing [08:03:36]execute_cgi json_proto POST (null) [08:03:36]execute_cgi path=json_proto method=POST [08:03:36]POST find Content-Length [08:03:36]Host: 172.17.48.198:8080 [08:03:36]Content-Length: 620 [08:03:36]Content-Type: application/json [08:03:36] [08:03:36]POST finish read [08:03:36]Found Content-Length = 620 [08:03:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184146", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:03:36]execute_script... [08:03:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184146", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:03:36]POST & json_proto [08:03:36]process_json_proto [08:03:36]json parsed OK: [08:03:36]protocol is kg_v1.0 [08:03:36]action value=close_receipt [08:03:36]process_action close_receipt [08:03:36]cmd_close_receipt [08:03:36]MH_GetDate [08:03:36]Write to MH i2c: F0 00 00 E4 43 16 [08:03:36]Write i2c OK [08:03:36]MH_I2C_Read... [08:03:36]Read from MH i2c: F0 [08:03:36]MH_I2C_Read... [08:03:36]Read from MH i2c: F0 09 00 [08:03:36]MH_I2C_Read... [08:03:36]Read from MH i2c: F0 09 00 E4 43 00 E2 2E E4 65 CE C4 D4 65 43 [08:03:36]GetLastDocTimeStamp 1709451805 [08:03:36]current date 1709453026 [08:03:36]FM_GetShiftState [08:03:36]SAM_PROTO_GetShiftState [08:03:36]wFMCommunicate request_size=4 [08:03:36]MH_SAM_APDU [08:03:36]CAPDU: 80 13 01 00 [08:03:36]Write to MH i2c: E2 08 00 E5 43 80 13 01 00 00 00 00 00 A5 [08:03:36]Write i2c OK [08:03:36]MH_I2C_Read... [08:03:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:03:36]Read from MH i2c: E2 [08:03:36]MH_I2C_Read... [08:03:36]Read from MH i2c: E2 0E 00 [08:03:36]MH_I2C_Read... [08:03:36]Read from MH i2c: E2 0E 00 E5 43 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 DB [08:03:36]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [08:03:36]wFMCommunicate OK [08:03:36]SAM_PROTO_GetShiftState done [08:03:36]FM_GetShiftState done [08:03:36]opened in 1709425694 [08:03:36]opened+sec_in_day 1709512094 [08:03:36]quantity*price = 13500 [08:03:36]sum+1 = 13501 [08:03:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 135.00 НСП 1% : 1.19 НДС 12% : 14.34 Наличными: 135.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 19 03.03.2024 08:03 Смена: 331 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 ФМ: 0000000000874796 ФД: 45182 ФПД: 79584006309831 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T080346&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45182&fm=79584006309831&tin=02508201610067®Number=0000000000090572&sum=13500 0 [08:03:37]StoreToDocumentArchive [08:03:37]shift 331 fd 45182 [08:03:37]save to /storage/0331/doc_00045182 [08:03:37]save last doc name /storage/0331/doc_00045182 to /storage/kkm_last_doc_name [08:03:37]save OK [08:03:37]Clear old archive folders... [08:03:37]ProcessDocumentItem done err = 0, tmpTLVsize=272 [08:03:37]tlvbuf is 01B2F5D0 [08:03:37]SAM_PROTO_ClearQueue [08:03:37]wFMCommunicate request_size=4 [08:03:37]MH_SAM_APDU [08:03:37]CAPDU: 80 09 00 00 [08:03:37]Write to MH i2c: E2 08 00 F2 43 80 09 00 00 00 00 00 00 A7 [08:03:37]Write i2c OK [08:03:37]MH_I2C_Read... [08:03:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:03:37]Read from MH i2c: E2 [08:03:37]MH_I2C_Read... [08:03:37]Read from MH i2c: E2 03 00 [08:03:37]MH_I2C_Read... [08:03:37]Read from MH i2c: E2 03 00 F2 43 00 90 00 A9 [08:03:37]RAPDU: 90 00 [08:03:37]wFMCommunicate OK [08:03:37]SAM_PROTO_ClearQueue done [08:03:37]KKMCreateOFDPacket [08:03:37]OFDProtocolAddRootSTLVToBuf [08:03:37]FM_MakeSignedData [08:03:37]FM_MakeSignedData [08:03:37]SAM_PROTO_SignData [08:03:37]wFMCommunicate request_size=4 [08:03:37]MH_SAM_APDU [08:03:37]CAPDU: 80 0D 01 02 [08:03:37]Write to MH i2c: E2 08 00 F3 43 80 0D 01 02 00 00 00 00 AF [08:03:37]Write i2c OK [08:03:37]MH_I2C_Read... [08:03:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:03:37]Read from MH i2c: E2 [08:03:37]MH_I2C_Read... [08:03:37]Read from MH i2c: E2 03 00 [08:03:37]MH_I2C_Read... [08:03:37]Read from MH i2c: E2 03 00 F3 43 00 90 00 AA [08:03:37]RAPDU: 90 00 [08:03:37]wFMCommunicate OK [08:03:37]wFMCommunicate request_size=255 [08:03:37]MH_SAM_APDU [08:03:37]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 E2 2E E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 [08:03:37]Write to MH i2c: E2 02 01 F4 43 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 E2 2E E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 00 00 20 [08:03:37]Write i2c OK [08:03:37]MH_I2C_Read... [08:03:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:03:38]Read from MH i2c: E2 [08:03:38]MH_I2C_Read... [08:03:38]Read from MH i2c: E2 03 00 [08:03:38]MH_I2C_Read... [08:03:38]Read from MH i2c: E2 03 00 F4 43 00 90 00 AB [08:03:38]RAPDU: 90 00 [08:03:38]wFMCommunicate OK [08:03:38]wFMCommunicate request_size=31 [08:03:38]MH_SAM_APDU [08:03:38]CAPDU: 80 0D 02 02 1A 30 30 38 37 34 37 39 36 10 04 04 00 7E B0 00 00 35 04 06 00 48 61 98 6D 07 C7 [08:03:38]Write to MH i2c: E2 22 00 F5 43 80 0D 02 02 1A 00 30 30 38 37 34 37 39 36 10 04 04 00 7E B0 00 00 35 04 06 00 48 61 98 6D 07 C7 00 00 90 [08:03:38]Write i2c OK [08:03:38]MH_I2C_Read... [08:03:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:03:38]Read from MH i2c: E2 [08:03:38]MH_I2C_Read... [08:03:38]Read from MH i2c: E2 03 00 [08:03:38]MH_I2C_Read... [08:03:38]Read from MH i2c: E2 03 00 F5 43 00 90 00 AC [08:03:38]RAPDU: 90 00 [08:03:38]wFMCommunicate OK [08:03:38]wFMCommunicate request_size=4 [08:03:38]MH_SAM_APDU [08:03:38]CAPDU: 80 0D 03 02 [08:03:38]Write to MH i2c: E2 08 00 F6 43 80 0D 03 02 00 00 00 00 B4 [08:03:38]Write i2c OK [08:03:38]MH_I2C_Read... [08:03:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:03:38]Read from MH i2c: E2 [08:03:38]MH_I2C_Read... [08:03:38]Read from MH i2c: E2 0B 00 [08:03:38]MH_I2C_Read... [08:03:38]Read from MH i2c: E2 0B 00 F6 43 00 53 DB 89 92 72 BF A3 A5 90 00 77 [08:03:38]RAPDU: 53 DB 89 92 72 BF A3 A5 90 00 [08:03:38]wFMCommunicate OK [08:03:38]SAM_PROTO_SignData done [08:03:38]FM_MakeSignedData done [08:03:38]CreateOFDProtocolMessage [08:03:38]wFMCommunicate request_size=4 [08:03:38]MH_SAM_APDU [08:03:38]CAPDU: 80 11 00 00 [08:03:38]Write to MH i2c: E2 08 00 F7 43 80 11 00 00 00 00 00 00 B4 [08:03:38]Write i2c OK [08:03:38]MH_I2C_Read... [08:03:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:03:38]Read from MH i2c: E2 [08:03:38]MH_I2C_Read... [08:03:38]Read from MH i2c: E2 17 00 [08:03:38]MH_I2C_Read... [08:03:38]Read from MH i2c: E2 17 00 F7 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 10 [08:03:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [08:03:38]wFMCommunicate OK [08:03:38]CreateOFDProtocolMessage done [08:03:38]OFDSenderStorePacket 45182 [08:03:38]StoreOFDPacket docnum=45182 [08:03:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 24 01 00 00 C2 9B 1C 01 C0 C7 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 E2 2E E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 7E B0 00 00 35 04 06 00 48 61 98 6D 07 C7 53 DB 89 92 72 BF A3 A5 [08:03:38]CheckFolder [08:03:38]dirname=/storage/ofd_packets [08:03:38]CheckFolder done [08:03:38]ProducePacketName [08:03:38]name=ofd_packets/00045182 [08:03:38]NVStorageSaveData ofd_packets/00045182 [08:03:38]File name is /storage/ofd_packets/00045182 [08:03:38]Write 322 bytes [08:03:38]NVStorageSaveData done [08:03:38]OFDSenderStorePacket done [08:03:38]KKMCreateOFDPacket done [08:03:38]NVStorageSaveData kkm_last_timestamp [08:03:38]File name is /storage/kkm_last_timestamp [08:03:38]Write 4 bytes [08:03:38]NVStorageSaveData done [08:03:38]ExternCall_PrintAddStr [08:03:38]wPrintStart [08:03:38]Write to MH i2c: 01 00 00 F8 43 3B [08:03:38]Write i2c OK [08:03:38]MH_I2C_Read... [08:03:38]Read from MH i2c: 01 [08:03:38]MH_I2C_Read... [08:03:38]Read from MH i2c: 01 07 00 [08:03:38]MH_I2C_Read... [08:03:38]Read from MH i2c: 01 07 00 F8 43 00 00 00 00 00 FF 0F 50 [08:03:38]RasterBufferAndPrint [08:03:38]line Счет N : (3)184146 [08:03:38]line ИНН: 02508201610067 [08:03:38]line Контрольно-Кассовый Чек [08:03:38]line ПРОДАЖА [08:03:38]line Товар: 48745000 [08:03:38]line Сигареты Winston Purple Mix [08:03:38]line 1.000 * 135.00 [08:03:38]line = 135.00 [08:03:38]line НДС 12% НСП 1% [08:03:38]line > о реализуемом товаре [08:03:38]line ИТОГО: 135.00 [08:03:38]line НСП 1% : 1.19 [08:03:38]line НДС 12% : 14.34 [08:03:38]line Наличными: 135.00 [08:03:38]line Безнал.: 0.00 [08:03:38]line Место: АЗС № 25 "Партнер Нефть" [08:03:38]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [08:03:38]line СНО: Общий режим [08:03:38]line Чек 19 03.03.2024 08:03 [08:03:38]line Смена: 331 ФФД: 1.0 [08:03:38]line ЗНМ: 0300000013 [08:03:38]line РНМ: 0000000000090572 [08:03:38]line Версия ККМ: 001 [08:03:38]line ФМ: 0000000000874796 [08:03:38]line ФД: 45182 [08:03:38]line ФПД: 79584006309831 [08:03:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T080346&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45182&fm=79584006309831&tin=02508201610067®Number=0000000000090572&sum=13500 [08:03:38]line 0 [08:03:38]OFD Sender: Processing packet 45182 [packets to send 17, broken 16] [08:03:38]ProducePacketName [08:03:38]name=ofd_packets/00045182 [08:03:38]OFD Sender: To server: pG, [08:03:38]CommunicateWithHost lk.salyk.kg:30040 [08:03:38]ConnectInit lk.salyk.kg [08:03:38]written 0, free lines is 4095 [08:03:38]Connected sock=10 [08:03:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 24 01 00 00 C2 9B 1C 01 C0 C7 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 E2 2E E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 7E B0 00 00 35 04 06 00 48 61 98 6D 07 C7 53 DB 89 92 72 BF A3 A5 [08:03:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 05 22 47 00 02 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 7E B0 00 00 F4 03 04 00 A8 DA E3 65 B6 04 01 00 00 C6 1D C2 CB 9F DD F9 CB [08:03:38]CommunicateWithHost err = 0 [08:03:38]CheckOFDResponse [08:03:38]1017 (14) - 77093643461234 [08:03:38]1041 (16) - 0000000000874796 [08:03:38]1040 (4) - 45182 [08:03:38]1012 (4) - 03.03.2024 02:04 [08:03:38]1206 (1) - 0 [08:03:38]OFD Sender: Remove packet 45182 [08:03:38]ProducePacketName [08:03:38]name=ofd_packets/00045182 [08:03:38]NVStorageDeleteData [08:03:39]Write to MH i2c: 01 00 00 20 44 64 [08:03:39]Write i2c OK [08:03:39]MH_I2C_Read... [08:03:39]Read from MH i2c: 01 [08:03:39]MH_I2C_Read... [08:03:39]Read from MH i2c: 01 07 00 [08:03:39]MH_I2C_Read... [08:03:39]Read from MH i2c: 01 07 00 20 44 00 00 00 00 00 02 0D 7A [08:03:39]RasterBufferAndPrint [08:03:39]line [08:03:39]line [08:03:39]line [08:03:39]line [08:03:39]line [08:03:39]written 0, free lines is 3336 [08:03:39]MH_Cut [08:03:39]Write to MH i2c: D1 01 00 27 44 01 3D [08:03:39]Write i2c OK [08:03:39]MH_I2C_Read... [08:03:39]Read from MH i2c: D1 [08:03:39]MH_I2C_Read... [08:03:39]Read from MH i2c: D1 01 00 [08:03:39]MH_I2C_Read... [08:03:39]Read from MH i2c: D1 01 00 27 44 00 3C [08:03:39]Write to MH i2c: 01 00 00 28 44 6C [08:03:39]Write i2c OK [08:03:39]MH_I2C_Read... [08:03:39]OFD Sender: No OFD packet to send [08:03:39]*** Cut start [08:03:39]*** Purtial cut [08:03:39]*** Stage 1: CUTSNS_PIN = 1 [08:03:41]Read from MH i2c: 01 [08:03:41]MH_I2C_Read... [08:03:41]*** Stop cut motor [08:03:41]*** Cut end [08:03:41]Read from MH i2c: 01 07 00 [08:03:41]MH_I2C_Read... [08:03:41]Read from MH i2c: 01 07 00 28 44 00 00 00 00 00 FF 0F 81 [08:03:41]process_action close_receipt done [08:03:41]requested_data is exist [08:03:41]produce_requested_data [08:03:41]requested_item fm.sn is exist - process it [08:03:41]wFMCommunicate request_size=4 [08:03:41]MH_SAM_APDU [08:03:41]CAPDU: 80 11 00 00 [08:03:41]Write to MH i2c: E2 08 00 29 44 80 11 00 00 00 00 00 00 E7 [08:03:41]Write i2c OK [08:03:41]MH_I2C_Read... [08:03:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:03:41]Read from MH i2c: E2 [08:03:41]MH_I2C_Read... [08:03:41]Read from MH i2c: E2 17 00 [08:03:41]MH_I2C_Read... [08:03:41]Read from MH i2c: E2 17 00 29 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 43 [08:03:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [08:03:41]wFMCommunicate OK [08:03:41]requested_item fd.num is exist - process it [08:03:41]SAM_PROTO_GetFieldsCounters [08:03:41]wFMCommunicate request_size=4 [08:03:41]MH_SAM_APDU [08:03:41]CAPDU: 80 13 00 00 [08:03:41]Write to MH i2c: E2 08 00 2A 44 80 13 00 00 00 00 00 00 EA [08:03:41]Write i2c OK [08:03:41]MH_I2C_Read... [08:03:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:03:41]Read from MH i2c: E2 [08:03:41]MH_I2C_Read... [08:03:41]Read from MH i2c: E2 62 00 [08:03:41]MH_I2C_Read... [08:03:41]Read from MH i2c: E2 62 00 2A 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 7E B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 C5 [08:03:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 7E B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:03:41]wFMCommunicate OK [08:03:41]SAM_PROTO_GetFieldsCounters done [08:03:41]requested_item shift.num is exist - process it [08:03:41]requested_item shift.opened is exist - process it [08:03:41]req_shift_opened [08:03:41]FM_GetShiftState [08:03:41]SAM_PROTO_GetShiftState [08:03:41]wFMCommunicate request_size=4 [08:03:41]MH_SAM_APDU [08:03:41]CAPDU: 80 13 01 00 [08:03:41]Write to MH i2c: E2 08 00 2B 44 80 13 01 00 00 00 00 00 EC [08:03:41]Write i2c OK [08:03:41]MH_I2C_Read... [08:03:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:03:41]Read from MH i2c: E2 [08:03:41]MH_I2C_Read... [08:03:41]Read from MH i2c: E2 0E 00 [08:03:41]MH_I2C_Read... [08:03:41]Read from MH i2c: E2 0E 00 2B 44 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 22 [08:03:41]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [08:03:41]wFMCommunicate OK [08:03:41]SAM_PROTO_GetShiftState done [08:03:41]FM_GetShiftState done [08:03:41]req_shift_opened done [08:03:41]requested_item shift.open_date is exist - process it [08:03:41]req_shift_open_date [08:03:41]req_shift_open_date done [08:03:41]produce_requested_data done [08:03:41]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45182,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [08:03:41]process_action_free close_receipt [08:03:41]json_value_free [08:03:41]json_value_free done [08:03:41]process_json_proto returns [08:03:41]Send response to host [08:03:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45182,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [08:03:42]free response buf [08:03:42]execute_script done [08:03:42]execute_script returns [08:03:42]free content buf [08:03:42]Sock 9.Close socket [08:03:42]Sock 9.Thread stoped [08:03:44]OFD Sender: No OFD packet to send [08:03:49]OFD Sender: No OFD packet to send [08:03:54]OFD Sender: No OFD packet to send [08:03:59]OFD Sender: No OFD packet to send [08:04:04]OFD Sender: No OFD packet to send [08:04:09]OFD Sender: No OFD packet to send [08:04:14]OFD Sender: No OFD packet to send [08:04:19]OFD Sender: No OFD packet to send [08:04:24]OFD Sender: No OFD packet to send [08:04:29]OFD Sender: No OFD packet to send [08:04:34]OFD Sender: No OFD packet to send [08:04:39]OFD Sender: No OFD packet to send [08:04:44]OFD Sender: No OFD packet to send [08:04:49]OFD Sender: No OFD packet to send [08:04:54]OFD Sender: No OFD packet to send [08:04:59]OFD Sender: No OFD packet to send [08:05:04]OFD Sender: No OFD packet to send [08:05:09]OFD Sender: No OFD packet to send [08:05:14]OFD Sender: No OFD packet to send [08:05:19]OFD Sender: No OFD packet to send [08:05:24]OFD Sender: No OFD packet to send [08:05:29]OFD Sender: No OFD packet to send [08:05:34]OFD Sender: No OFD packet to send [08:05:39]OFD Sender: No OFD packet to send [08:05:44]OFD Sender: No OFD packet to send [08:05:49]OFD Sender: No OFD packet to send [08:05:54]OFD Sender: No OFD packet to send [08:05:59]OFD Sender: No OFD packet to send [08:06:04]OFD Sender: No OFD packet to send [08:06:09]OFD Sender: No OFD packet to send [08:06:14]OFD Sender: No OFD packet to send [08:06:19]OFD Sender: No OFD packet to send [08:06:24]OFD Sender: No OFD packet to send [08:06:29]OFD Sender: No OFD packet to send [08:06:34]OFD Sender: No OFD packet to send [08:06:39]OFD Sender: No OFD packet to send [08:06:44]OFD Sender: No OFD packet to send [08:06:49]OFD Sender: No OFD packet to send [08:06:54]OFD Sender: No OFD packet to send [08:06:59]OFD Sender: No OFD packet to send [08:07:04]OFD Sender: No OFD packet to send [08:07:09]OFD Sender: No OFD packet to send [08:07:14]OFD Sender: No OFD packet to send [08:07:19]OFD Sender: No OFD packet to send [08:07:24]OFD Sender: No OFD packet to send [08:07:29]OFD Sender: No OFD packet to send [08:07:34]OFD Sender: No OFD packet to send [08:07:39]OFD Sender: No OFD packet to send [08:07:44]OFD Sender: No OFD packet to send [08:07:49]OFD Sender: No OFD packet to send [08:07:54]OFD Sender: No OFD packet to send [08:07:59]OFD Sender: No OFD packet to send [08:08:04]OFD Sender: No OFD packet to send [08:08:09]OFD Sender: No OFD packet to send [08:08:14]OFD Sender: No OFD packet to send [08:08:19]OFD Sender: No OFD packet to send [08:08:24]OFD Sender: No OFD packet to send [08:08:29]OFD Sender: No OFD packet to send [08:08:34]OFD Sender: No OFD packet to send [08:08:39]OFD Sender: No OFD packet to send [08:08:44]OFD Sender: No OFD packet to send [08:08:49]OFD Sender: No OFD packet to send [08:08:54]OFD Sender: No OFD packet to send [08:08:59]OFD Sender: No OFD packet to send [08:09:04]OFD Sender: No OFD packet to send [08:09:09]OFD Sender: No OFD packet to send [08:09:14]OFD Sender: No OFD packet to send [08:09:19]OFD Sender: No OFD packet to send [08:09:24]OFD Sender: No OFD packet to send [08:09:29]OFD Sender: No OFD packet to send [08:09:34]OFD Sender: No OFD packet to send [08:09:39]OFD Sender: No OFD packet to send [08:09:44]OFD Sender: No OFD packet to send [08:09:49]OFD Sender: No OFD packet to send [08:09:54]OFD Sender: No OFD packet to send [08:09:59]OFD Sender: No OFD packet to send [08:10:04]OFD Sender: No OFD packet to send [08:10:09]OFD Sender: No OFD packet to send [08:10:14]OFD Sender: No OFD packet to send [08:10:19]OFD Sender: No OFD packet to send [08:10:24]OFD Sender: No OFD packet to send [08:10:29]OFD Sender: No OFD packet to send [08:10:34]OFD Sender: No OFD packet to send [08:10:39]OFD Sender: No OFD packet to send [08:10:44]OFD Sender: No OFD packet to send [08:10:49]OFD Sender: No OFD packet to send [08:10:54]OFD Sender: No OFD packet to send [08:10:59]OFD Sender: No OFD packet to send [08:11:04]OFD Sender: No OFD packet to send [08:11:09]OFD Sender: No OFD packet to send [08:11:14]OFD Sender: No OFD packet to send [08:11:19]OFD Sender: No OFD packet to send [08:11:24]OFD Sender: No OFD packet to send [08:11:29]OFD Sender: No OFD packet to send [08:11:34]OFD Sender: No OFD packet to send [08:11:39]OFD Sender: No OFD packet to send [08:11:44]OFD Sender: No OFD packet to send [08:11:49]OFD Sender: No OFD packet to send [08:11:54]OFD Sender: No OFD packet to send [08:11:59]OFD Sender: No OFD packet to send [08:12:04]OFD Sender: No OFD packet to send [08:12:09]OFD Sender: No OFD packet to send [08:12:14]OFD Sender: No OFD packet to send [08:12:19]OFD Sender: No OFD packet to send [08:12:24]OFD Sender: No OFD packet to send [08:12:29]OFD Sender: No OFD packet to send [08:12:34]OFD Sender: No OFD packet to send [08:12:39]OFD Sender: No OFD packet to send [08:12:44]OFD Sender: No OFD packet to send [08:12:49]OFD Sender: No OFD packet to send [08:12:54]OFD Sender: No OFD packet to send [08:12:59]OFD Sender: No OFD packet to send [08:13:04]OFD Sender: No OFD packet to send [08:13:09]OFD Sender: No OFD packet to send [08:13:14]OFD Sender: No OFD packet to send [08:13:19]OFD Sender: No OFD packet to send [08:13:24]OFD Sender: No OFD packet to send [08:13:29]OFD Sender: No OFD packet to send [08:13:34]OFD Sender: No OFD packet to send [08:13:39]OFD Sender: No OFD packet to send [08:13:44]OFD Sender: No OFD packet to send [08:13:49]OFD Sender: No OFD packet to send [08:13:54]OFD Sender: No OFD packet to send [08:13:59]OFD Sender: No OFD packet to send [08:14:04]OFD Sender: No OFD packet to send [08:14:09]OFD Sender: No OFD packet to send [08:14:14]OFD Sender: No OFD packet to send [08:14:19]OFD Sender: No OFD packet to send [08:14:24]OFD Sender: No OFD packet to send [08:14:29]OFD Sender: No OFD packet to send [08:14:34]OFD Sender: No OFD packet to send [08:14:39]OFD Sender: No OFD packet to send [08:14:44]OFD Sender: No OFD packet to send [08:14:49]OFD Sender: No OFD packet to send [08:14:54]OFD Sender: No OFD packet to send [08:14:59]OFD Sender: No OFD packet to send [08:15:04]OFD Sender: No OFD packet to send [08:15:09]OFD Sender: No OFD packet to send [08:15:14]OFD Sender: No OFD packet to send [08:15:19]OFD Sender: No OFD packet to send [08:15:24]OFD Sender: No OFD packet to send [08:15:29]OFD Sender: No OFD packet to send [08:15:34]OFD Sender: No OFD packet to send [08:15:39]OFD Sender: No OFD packet to send [08:15:44]OFD Sender: No OFD packet to send [08:15:49]OFD Sender: No OFD packet to send [08:15:54]OFD Sender: No OFD packet to send [08:15:59]OFD Sender: No OFD packet to send [08:16:04]OFD Sender: No OFD packet to send [08:16:09]OFD Sender: No OFD packet to send [08:16:14]OFD Sender: No OFD packet to send [08:16:19]OFD Sender: No OFD packet to send [08:16:24]OFD Sender: No OFD packet to send [08:16:29]OFD Sender: No OFD packet to send [08:16:35]OFD Sender: No OFD packet to send [08:16:40]OFD Sender: No OFD packet to send [08:16:45]OFD Sender: No OFD packet to send [08:16:50]OFD Sender: No OFD packet to send [08:16:55]OFD Sender: No OFD packet to send [08:17:00]OFD Sender: No OFD packet to send [08:17:05]OFD Sender: No OFD packet to send [08:17:10]OFD Sender: No OFD packet to send [08:17:15]OFD Sender: No OFD packet to send [08:17:20]OFD Sender: No OFD packet to send [08:17:25]OFD Sender: No OFD packet to send [08:17:30]OFD Sender: No OFD packet to send [08:17:35]OFD Sender: No OFD packet to send [08:17:40]OFD Sender: No OFD packet to send [08:17:45]OFD Sender: No OFD packet to send [08:17:50]OFD Sender: No OFD packet to send [08:17:55]OFD Sender: No OFD packet to send [08:18:00]OFD Sender: No OFD packet to send [08:18:05]OFD Sender: No OFD packet to send [08:18:10]OFD Sender: No OFD packet to send [08:18:15]OFD Sender: No OFD packet to send [08:18:20]OFD Sender: No OFD packet to send [08:18:25]OFD Sender: No OFD packet to send [08:18:30]OFD Sender: No OFD packet to send [08:18:35]OFD Sender: No OFD packet to send [08:18:40]OFD Sender: No OFD packet to send [08:18:45]OFD Sender: No OFD packet to send [08:18:50]OFD Sender: No OFD packet to send [08:18:55]OFD Sender: No OFD packet to send [08:19:00]OFD Sender: No OFD packet to send [08:19:05]OFD Sender: No OFD packet to send [08:19:07]accept exits with 7 [08:19:07]New connection [08:19:07]New thread 3067157860 created [08:19:07]Thread 3067014500 joined [08:19:07]Waiting for new connection... [08:19:07] Sock 7.Parse request [08:19:07]Sock 7.Check first char [08:19:07]Sock 7.First char is OK [08:19:07]request: POST /json_proto HTTP/1.0 [08:19:07]Method: POST [08:19:07]URL: /json_proto [08:19:07]Method is POST - this is cgi request [08:19:07]url: /json_proto [08:19:07]query_string will be loaded in cgi processing [08:19:07]execute_cgi json_proto POST (null) [08:19:07]execute_cgi path=json_proto method=POST [08:19:07]POST find Content-Length [08:19:07]Host: 172.17.48.198:8080 [08:19:07]Content-Length: 667 [08:19:07]Content-Type: application/json [08:19:07] [08:19:07]POST finish read [08:19:07]Found Content-Length = 667 [08:19:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184147", "tax_sys" : 0, "items" : [ { "code": "4800452010610", "name": "\u041A\u043E\u0444\u0435 \u043A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL (\u0410\u041A\u0426\u0418\u042F)", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:19:07]execute_script... [08:19:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184147", "tax_sys" : 0, "items" : [ { "code": "4800452010610", "name": "\u041A\u043E\u0444\u0435 \u043A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL (\u0410\u041A\u0426\u0418\u042F)", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:19:07]POST & json_proto [08:19:07]process_json_proto [08:19:07]json parsed OK: [08:19:07]protocol is kg_v1.0 [08:19:07]action value=close_receipt [08:19:07]process_action close_receipt [08:19:07]cmd_close_receipt [08:19:07]MH_GetDate [08:19:07]Write to MH i2c: F0 00 00 2C 44 5F [08:19:07]Write i2c OK [08:19:07]MH_I2C_Read... [08:19:07]Read from MH i2c: F0 [08:19:07]MH_I2C_Read... [08:19:07]Read from MH i2c: F0 09 00 [08:19:07]MH_I2C_Read... [08:19:07]Read from MH i2c: F0 09 00 2C 44 00 85 32 E4 65 CE C4 D4 65 33 [08:19:07]GetLastDocTimeStamp 1709453026 [08:19:07]current date 1709453957 [08:19:07]FM_GetShiftState [08:19:07]SAM_PROTO_GetShiftState [08:19:07]wFMCommunicate request_size=4 [08:19:07]MH_SAM_APDU [08:19:07]CAPDU: 80 13 01 00 [08:19:07]Write to MH i2c: E2 08 00 2D 44 80 13 01 00 00 00 00 00 EE [08:19:07]Write i2c OK [08:19:07]MH_I2C_Read... [08:19:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:19:07]Read from MH i2c: E2 [08:19:07]MH_I2C_Read... [08:19:07]Read from MH i2c: E2 0E 00 [08:19:07]MH_I2C_Read... [08:19:07]Read from MH i2c: E2 0E 00 2D 44 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 24 [08:19:07]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [08:19:07]wFMCommunicate OK [08:19:07]SAM_PROTO_GetShiftState done [08:19:07]FM_GetShiftState done [08:19:07]opened in 1709425694 [08:19:07]opened+sec_in_day 1709512094 [08:19:07]quantity*price = 12000 [08:19:07]sum+1 = 12001 [08:19:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 120.00 НСП 1% : 1.06 НДС 12% : 12.74 Наличными: 120.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 20 03.03.2024 08:19 Смена: 331 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 ФМ: 0000000000874796 ФД: 45183 ФПД: 19163563146392 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T081917&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45183&fm=19163563146392&tin=02508201610067®Number=0000000000090572&sum=12000 0 [08:19:08]StoreToDocumentArchive [08:19:08]shift 331 fd 45183 [08:19:08]save to /storage/0331/doc_00045183 [08:19:08]save last doc name /storage/0331/doc_00045183 to /storage/kkm_last_doc_name [08:19:08]save OK [08:19:08]Clear old archive folders... [08:19:08]ProcessDocumentItem done err = 0, tmpTLVsize=283 [08:19:08]tlvbuf is 01B9BD00 [08:19:08]SAM_PROTO_ClearQueue [08:19:08]wFMCommunicate request_size=4 [08:19:08]MH_SAM_APDU [08:19:08]CAPDU: 80 09 00 00 [08:19:08]Write to MH i2c: E2 08 00 3A 44 80 09 00 00 00 00 00 00 F0 [08:19:08]Write i2c OK [08:19:08]MH_I2C_Read... [08:19:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:19:08]Read from MH i2c: E2 [08:19:08]MH_I2C_Read... [08:19:08]Read from MH i2c: E2 03 00 [08:19:08]MH_I2C_Read... [08:19:08]Read from MH i2c: E2 03 00 3A 44 00 90 00 F2 [08:19:08]RAPDU: 90 00 [08:19:08]wFMCommunicate OK [08:19:08]SAM_PROTO_ClearQueue done [08:19:08]KKMCreateOFDPacket [08:19:08]OFDProtocolAddRootSTLVToBuf [08:19:08]FM_MakeSignedData [08:19:08]FM_MakeSignedData [08:19:08]SAM_PROTO_SignData [08:19:08]wFMCommunicate request_size=4 [08:19:08]MH_SAM_APDU [08:19:08]CAPDU: 80 0D 01 02 [08:19:08]Write to MH i2c: E2 08 00 3B 44 80 0D 01 02 00 00 00 00 F8 [08:19:08]Write i2c OK [08:19:08]MH_I2C_Read... [08:19:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:19:08]Read from MH i2c: E2 [08:19:08]MH_I2C_Read... [08:19:08]Read from MH i2c: E2 03 00 [08:19:08]MH_I2C_Read... [08:19:08]Read from MH i2c: E2 03 00 3B 44 00 90 00 F3 [08:19:08]RAPDU: 90 00 [08:19:08]wFMCommunicate OK [08:19:08]wFMCommunicate request_size=255 [08:19:08]MH_SAM_APDU [08:19:08]CAPDU: 80 0D 02 02 FA 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 38 30 30 34 35 32 30 31 30 36 31 30 06 04 29 00 D0 9A D0 BE D1 84 D0 B5 20 D0 BA D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 20 28 D0 90 D0 9A D0 A6 D0 98 D0 AF 29 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 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 85 32 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 [08:19:08]Write to MH i2c: E2 02 01 3C 44 80 0D 02 02 FA 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 38 30 30 34 35 32 30 31 30 36 31 30 06 04 29 00 D0 9A D0 BE D1 84 D0 B5 20 D0 BA D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 20 28 D0 90 D0 9A D0 A6 D0 98 D0 AF 29 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 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 85 32 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 00 00 18 [08:19:08]Write i2c OK [08:19:08]MH_I2C_Read... [08:19:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:19:08]Read from MH i2c: E2 [08:19:08]MH_I2C_Read... [08:19:08]Read from MH i2c: E2 03 00 [08:19:08]MH_I2C_Read... [08:19:08]Read from MH i2c: E2 03 00 3C 44 00 90 00 F4 [08:19:08]RAPDU: 90 00 [08:19:08]wFMCommunicate OK [08:19:08]wFMCommunicate request_size=42 [08:19:08]MH_SAM_APDU [08:19:08]CAPDU: 80 0D 02 02 25 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 7F B0 00 00 35 04 06 00 11 6D DD 5F BC 98 [08:19:08]Write to MH i2c: E2 2D 00 3D 44 80 0D 02 02 25 00 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 7F B0 00 00 35 04 06 00 11 6D DD 5F BC 98 00 00 16 [08:19:08]Write i2c OK [08:19:08]MH_I2C_Read... [08:19:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:19:09]Read from MH i2c: E2 [08:19:09]MH_I2C_Read... [08:19:09]Read from MH i2c: E2 03 00 [08:19:09]MH_I2C_Read... [08:19:09]Read from MH i2c: E2 03 00 3D 44 00 90 00 F5 [08:19:09]RAPDU: 90 00 [08:19:09]wFMCommunicate OK [08:19:09]wFMCommunicate request_size=4 [08:19:09]MH_SAM_APDU [08:19:09]CAPDU: 80 0D 03 02 [08:19:09]Write to MH i2c: E2 08 00 3E 44 80 0D 03 02 00 00 00 00 FD [08:19:09]Write i2c OK [08:19:09]MH_I2C_Read... [08:19:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:19:09]Read from MH i2c: E2 [08:19:09]MH_I2C_Read... [08:19:09]Read from MH i2c: E2 0B 00 [08:19:09]MH_I2C_Read... [08:19:09]Read from MH i2c: E2 0B 00 3E 44 00 C5 DB C8 C0 95 04 FE 2E 90 00 EB [08:19:09]RAPDU: C5 DB C8 C0 95 04 FE 2E 90 00 [08:19:09]wFMCommunicate OK [08:19:09]SAM_PROTO_SignData done [08:19:09]FM_MakeSignedData done [08:19:09]CreateOFDProtocolMessage [08:19:09]wFMCommunicate request_size=4 [08:19:09]MH_SAM_APDU [08:19:09]CAPDU: 80 11 00 00 [08:19:09]Write to MH i2c: E2 08 00 3F 44 80 11 00 00 00 00 00 00 FD [08:19:09]Write i2c OK [08:19:09]MH_I2C_Read... [08:19:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:19:09]Read from MH i2c: E2 [08:19:09]MH_I2C_Read... [08:19:09]Read from MH i2c: E2 17 00 [08:19:09]MH_I2C_Read... [08:19:09]Read from MH i2c: E2 17 00 3F 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 59 [08:19:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [08:19:09]wFMCommunicate OK [08:19:09]CreateOFDProtocolMessage done [08:19:09]OFDSenderStorePacket 45183 [08:19:09]StoreOFDPacket docnum=45183 [08:19:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 2F 01 00 00 3B FA 27 01 75 65 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 38 30 30 34 35 32 30 31 30 36 31 30 06 04 29 00 D0 9A D0 BE D1 84 D0 B5 20 D0 BA D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 20 28 D0 90 D0 9A D0 A6 D0 98 D0 AF 29 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 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 85 32 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 7F B0 00 00 35 04 06 00 11 6D DD 5F BC 98 C5 DB C8 C0 95 04 FE 2E [08:19:09]CheckFolder [08:19:09]dirname=/storage/ofd_packets [08:19:09]CheckFolder done [08:19:09]ProducePacketName [08:19:09]name=ofd_packets/00045183 [08:19:09]NVStorageSaveData ofd_packets/00045183 [08:19:09]File name is /storage/ofd_packets/00045183 [08:19:09]Write 333 bytes [08:19:09]NVStorageSaveData done [08:19:09]OFDSenderStorePacket done [08:19:09]KKMCreateOFDPacket done [08:19:09]NVStorageSaveData kkm_last_timestamp [08:19:09]File name is /storage/kkm_last_timestamp [08:19:09]Write 4 bytes [08:19:09]NVStorageSaveData done [08:19:09]ExternCall_PrintAddStr [08:19:09]wPrintStart [08:19:09]Write to MH i2c: 01 00 00 40 44 84 [08:19:09]Write i2c OK [08:19:09]MH_I2C_Read... [08:19:09]Read from MH i2c: 01 [08:19:09]MH_I2C_Read... [08:19:09]Read from MH i2c: 01 07 00 [08:19:09]MH_I2C_Read... [08:19:09]Read from MH i2c: 01 07 00 40 44 00 00 00 00 00 FF 0F 99 [08:19:09]RasterBufferAndPrint [08:19:09]line Счет N : (3)184147 [08:19:09]line ИНН: 02508201610067 [08:19:09]line Контрольно-Кассовый Чек [08:19:09]line ПРОДАЖА [08:19:09]line Товар: 4800452010610 [08:19:09]line Кофе капучино XL (АКЦИЯ) [08:19:09]line 1.000 * 120.00 [08:19:09]line = 120.00 [08:19:09]line НДС 12% НСП 1% [08:19:09]line > о реализуемом товаре [08:19:09]line ИТОГО: 120.00 [08:19:09]line НСП 1% : 1.06 [08:19:09]line НДС 12% : 12.74 [08:19:09]line Наличными: 120.00 [08:19:09]line Безнал.: 0.00 [08:19:09]line Место: АЗС № 25 "Партнер Нефть" [08:19:09]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [08:19:09]line СНО: Общий режим [08:19:09]line Чек 20 03.03.2024 08:19 [08:19:09]line Смена: 331 ФФД: 1.0 [08:19:09]line ЗНМ: 0300000013 [08:19:09]line РНМ: 0000000000090572 [08:19:09]line Версия ККМ: 001 [08:19:09]line ФМ: 0000000000874796 [08:19:09]line ФД: 45183 [08:19:09]line ФПД: 19163563146392 [08:19:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T081917&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45183&fm=19163563146392&tin=02508201610067®Number=0000000000090572&sum=12000 [08:19:09]line 0 [08:19:09]OFD Sender: Processing packet 45183 [packets to send 17, broken 16] [08:19:09]ProducePacketName [08:19:09]name=ofd_packets/00045183 [08:19:09]OFD Sender: To server: pG, [08:19:09]CommunicateWithHost lk.salyk.kg:30040 [08:19:09]ConnectInit lk.salyk.kg [08:19:09]written 0, free lines is 4095 [08:19:09]Connected sock=10 [08:19:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 2F 01 00 00 3B FA 27 01 75 65 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 38 30 30 34 35 32 30 31 30 36 31 30 06 04 29 00 D0 9A D0 BE D1 84 D0 B5 20 D0 BA D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 20 28 D0 90 D0 9A D0 A6 D0 98 D0 AF 29 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 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 85 32 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 7F B0 00 00 35 04 06 00 11 6D DD 5F BC 98 C5 DB C8 C0 95 04 FE 2E [08:19:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 DD 72 47 00 41 87 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 7F B0 00 00 F4 03 04 00 4B DE E3 65 B6 04 01 00 00 79 1D 03 BC EB 3F AC E6 [08:19:09]CommunicateWithHost err = 0 [08:19:09]CheckOFDResponse [08:19:09]1017 (14) - 77093643461234 [08:19:09]1041 (16) - 0000000000874796 [08:19:09]1040 (4) - 45183 [08:19:09]1012 (4) - 03.03.2024 02:19 [08:19:09]1206 (1) - 0 [08:19:09]OFD Sender: Remove packet 45183 [08:19:09]ProducePacketName [08:19:09]name=ofd_packets/00045183 [08:19:09]NVStorageDeleteData [08:19:09]Write to MH i2c: 01 00 00 68 44 AC [08:19:09]Write i2c OK [08:19:09]MH_I2C_Read... [08:19:09]Read from MH i2c: 01 [08:19:09]MH_I2C_Read... [08:19:09]Read from MH i2c: 01 07 00 [08:19:09]MH_I2C_Read... [08:19:09]Read from MH i2c: 01 07 00 68 44 00 00 00 00 00 1B 0D DB [08:19:09]RasterBufferAndPrint [08:19:09]line [08:19:09]line [08:19:09]line [08:19:09]line [08:19:09]line [08:19:09]written 0, free lines is 3361 [08:19:09]MH_Cut [08:19:09]Write to MH i2c: D1 01 00 6F 44 01 85 [08:19:09]Write i2c OK [08:19:09]MH_I2C_Read... [08:19:09]Read from MH i2c: D1 [08:19:09]MH_I2C_Read... [08:19:09]Read from MH i2c: D1 01 00 [08:19:09]MH_I2C_Read... [08:19:09]Read from MH i2c: D1 01 00 6F 44 00 84 [08:19:09]Write to MH i2c: 01 00 00 70 44 B4 [08:19:09]Write i2c OK [08:19:09]MH_I2C_Read... [08:19:10]OFD Sender: No OFD packet to send [08:19:10]*** Cut start [08:19:10]*** Purtial cut [08:19:10]*** Stage 1: CUTSNS_PIN = 1 [08:19:12]Read from MH i2c: 01 [08:19:12]MH_I2C_Read... [08:19:12]*** Stop cut motor [08:19:12]*** Cut end [08:19:12]Read from MH i2c: 01 07 00 [08:19:12]MH_I2C_Read... [08:19:12]Read from MH i2c: 01 07 00 70 44 00 00 00 00 00 FF 0F C9 [08:19:12]process_action close_receipt done [08:19:12]requested_data is exist [08:19:12]produce_requested_data [08:19:12]requested_item fm.sn is exist - process it [08:19:12]wFMCommunicate request_size=4 [08:19:12]MH_SAM_APDU [08:19:12]CAPDU: 80 11 00 00 [08:19:12]Write to MH i2c: E2 08 00 71 44 80 11 00 00 00 00 00 00 2F [08:19:12]Write i2c OK [08:19:12]MH_I2C_Read... [08:19:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:19:12]Read from MH i2c: E2 [08:19:12]MH_I2C_Read... [08:19:12]Read from MH i2c: E2 17 00 [08:19:12]MH_I2C_Read... [08:19:12]Read from MH i2c: E2 17 00 71 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 8B [08:19:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [08:19:12]wFMCommunicate OK [08:19:12]requested_item fd.num is exist - process it [08:19:12]SAM_PROTO_GetFieldsCounters [08:19:12]wFMCommunicate request_size=4 [08:19:12]MH_SAM_APDU [08:19:12]CAPDU: 80 13 00 00 [08:19:12]Write to MH i2c: E2 08 00 72 44 80 13 00 00 00 00 00 00 32 [08:19:12]Write i2c OK [08:19:12]MH_I2C_Read... [08:19:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:19:12]Read from MH i2c: E2 [08:19:12]MH_I2C_Read... [08:19:12]Read from MH i2c: E2 62 00 [08:19:12]MH_I2C_Read... [08:19:12]Read from MH i2c: E2 62 00 72 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 7F B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 11 [08:19:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 7F B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:19:12]wFMCommunicate OK [08:19:12]SAM_PROTO_GetFieldsCounters done [08:19:12]requested_item shift.num is exist - process it [08:19:12]requested_item shift.opened is exist - process it [08:19:12]req_shift_opened [08:19:12]FM_GetShiftState [08:19:12]SAM_PROTO_GetShiftState [08:19:12]wFMCommunicate request_size=4 [08:19:12]MH_SAM_APDU [08:19:12]CAPDU: 80 13 01 00 [08:19:12]Write to MH i2c: E2 08 00 73 44 80 13 01 00 00 00 00 00 34 [08:19:12]Write i2c OK [08:19:12]MH_I2C_Read... [08:19:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:19:12]Read from MH i2c: E2 [08:19:12]MH_I2C_Read... [08:19:12]Read from MH i2c: E2 0E 00 [08:19:12]MH_I2C_Read... [08:19:12]Read from MH i2c: E2 0E 00 73 44 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 6A [08:19:12]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [08:19:12]wFMCommunicate OK [08:19:12]SAM_PROTO_GetShiftState done [08:19:12]FM_GetShiftState done [08:19:12]req_shift_opened done [08:19:12]requested_item shift.open_date is exist - process it [08:19:12]req_shift_open_date [08:19:12]req_shift_open_date done [08:19:12]produce_requested_data done [08:19:12]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45183,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [08:19:12]process_action_free close_receipt [08:19:12]json_value_free [08:19:12]json_value_free done [08:19:12]process_json_proto returns [08:19:12]Send response to host [08:19:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45183,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [08:19:12]free response buf [08:19:12]execute_script done [08:19:12]execute_script returns [08:19:12]free content buf [08:19:12]Sock 7.Close socket [08:19:12]Sock 7.Thread stoped [08:19:15]OFD Sender: No OFD packet to send [08:19:20]OFD Sender: No OFD packet to send [08:19:25]OFD Sender: No OFD packet to send [08:19:30]OFD Sender: No OFD packet to send [08:19:35]OFD Sender: No OFD packet to send [08:19:40]OFD Sender: No OFD packet to send [08:19:45]OFD Sender: No OFD packet to send [08:19:50]OFD Sender: No OFD packet to send [08:19:55]OFD Sender: No OFD packet to send [08:20:00]OFD Sender: No OFD packet to send [08:20:05]OFD Sender: No OFD packet to send [08:20:10]OFD Sender: No OFD packet to send [08:20:15]OFD Sender: No OFD packet to send [08:20:20]OFD Sender: No OFD packet to send [08:20:25]OFD Sender: No OFD packet to send [08:20:30]OFD Sender: No OFD packet to send [08:20:35]OFD Sender: No OFD packet to send [08:20:40]OFD Sender: No OFD packet to send [08:20:45]OFD Sender: No OFD packet to send [08:20:50]OFD Sender: No OFD packet to send [08:20:55]OFD Sender: No OFD packet to send [08:21:00]OFD Sender: No OFD packet to send [08:21:05]OFD Sender: No OFD packet to send [08:21:10]OFD Sender: No OFD packet to send [08:21:15]OFD Sender: No OFD packet to send [08:21:20]OFD Sender: No OFD packet to send [08:21:25]OFD Sender: No OFD packet to send [08:21:30]OFD Sender: No OFD packet to send [08:21:35]OFD Sender: No OFD packet to send [08:21:40]OFD Sender: No OFD packet to send [08:21:45]OFD Sender: No OFD packet to send [08:21:50]OFD Sender: No OFD packet to send [08:21:55]OFD Sender: No OFD packet to send [08:22:00]OFD Sender: No OFD packet to send [08:22:05]OFD Sender: No OFD packet to send [08:22:10]OFD Sender: No OFD packet to send [08:22:15]OFD Sender: No OFD packet to send [08:22:20]OFD Sender: No OFD packet to send [08:22:25]OFD Sender: No OFD packet to send [08:22:30]OFD Sender: No OFD packet to send [08:22:35]OFD Sender: No OFD packet to send [08:22:40]OFD Sender: No OFD packet to send [08:22:45]OFD Sender: No OFD packet to send [08:22:50]OFD Sender: No OFD packet to send [08:22:55]OFD Sender: No OFD packet to send [08:23:00]OFD Sender: No OFD packet to send [08:23:05]OFD Sender: No OFD packet to send [08:23:10]OFD Sender: No OFD packet to send [08:23:15]OFD Sender: No OFD packet to send [08:23:20]OFD Sender: No OFD packet to send [08:23:25]OFD Sender: No OFD packet to send [08:23:30]OFD Sender: No OFD packet to send [08:23:35]OFD Sender: No OFD packet to send [08:23:40]OFD Sender: No OFD packet to send [08:23:45]OFD Sender: No OFD packet to send [08:23:50]OFD Sender: No OFD packet to send [08:23:55]OFD Sender: No OFD packet to send [08:24:00]OFD Sender: No OFD packet to send [08:24:05]OFD Sender: No OFD packet to send [08:24:10]OFD Sender: No OFD packet to send [08:24:15]OFD Sender: No OFD packet to send [08:24:20]OFD Sender: No OFD packet to send [08:24:25]OFD Sender: No OFD packet to send [08:24:30]OFD Sender: No OFD packet to send [08:24:35]OFD Sender: No OFD packet to send [08:24:40]OFD Sender: No OFD packet to send [08:24:45]OFD Sender: No OFD packet to send [08:24:50]OFD Sender: No OFD packet to send [08:24:55]OFD Sender: No OFD packet to send [08:25:00]OFD Sender: No OFD packet to send [08:25:05]OFD Sender: No OFD packet to send [08:25:10]OFD Sender: No OFD packet to send [08:25:15]OFD Sender: No OFD packet to send [08:25:20]OFD Sender: No OFD packet to send [08:25:25]OFD Sender: No OFD packet to send [08:25:30]OFD Sender: No OFD packet to send [08:25:35]OFD Sender: No OFD packet to send [08:25:40]OFD Sender: No OFD packet to send [08:25:45]OFD Sender: No OFD packet to send [08:25:50]OFD Sender: No OFD packet to send [08:25:55]OFD Sender: No OFD packet to send [08:26:00]OFD Sender: No OFD packet to send [08:26:05]OFD Sender: No OFD packet to send [08:26:10]OFD Sender: No OFD packet to send [08:26:15]OFD Sender: No OFD packet to send [08:26:20]OFD Sender: No OFD packet to send [08:26:25]OFD Sender: No OFD packet to send [08:26:30]OFD Sender: No OFD packet to send [08:26:35]OFD Sender: No OFD packet to send [08:26:40]OFD Sender: No OFD packet to send [08:26:45]OFD Sender: No OFD packet to send [08:26:50]OFD Sender: No OFD packet to send [08:26:55]OFD Sender: No OFD packet to send [08:27:00]OFD Sender: No OFD packet to send [08:27:05]OFD Sender: No OFD packet to send [08:27:10]OFD Sender: No OFD packet to send [08:27:15]OFD Sender: No OFD packet to send [08:27:20]OFD Sender: No OFD packet to send [08:27:25]OFD Sender: No OFD packet to send [08:27:30]OFD Sender: No OFD packet to send [08:27:35]OFD Sender: No OFD packet to send [08:27:40]OFD Sender: No OFD packet to send [08:27:45]OFD Sender: No OFD packet to send [08:27:50]OFD Sender: No OFD packet to send [08:27:55]OFD Sender: No OFD packet to send [08:28:00]OFD Sender: No OFD packet to send [08:28:05]OFD Sender: No OFD packet to send [08:28:10]OFD Sender: No OFD packet to send [08:28:15]OFD Sender: No OFD packet to send [08:28:20]OFD Sender: No OFD packet to send [08:28:25]OFD Sender: No OFD packet to send [08:28:30]OFD Sender: No OFD packet to send [08:28:35]OFD Sender: No OFD packet to send [08:28:40]OFD Sender: No OFD packet to send [08:28:45]OFD Sender: No OFD packet to send [08:28:50]OFD Sender: No OFD packet to send [08:28:55]OFD Sender: No OFD packet to send [08:29:00]OFD Sender: No OFD packet to send [08:29:05]OFD Sender: No OFD packet to send [08:29:10]OFD Sender: No OFD packet to send [08:29:15]OFD Sender: No OFD packet to send [08:29:20]OFD Sender: No OFD packet to send [08:29:25]OFD Sender: No OFD packet to send [08:29:30]OFD Sender: No OFD packet to send [08:29:32]accept exits with 9 [08:29:32]New connection [08:29:32]New thread 3067014500 created [08:29:32]Thread 3067157860 joined [08:29:32]Waiting for new connection... [08:29:32] Sock 9.Parse request [08:29:32]Sock 9.Check first char [08:29:32]Sock 9.First char is OK [08:29:32]request: POST /json_proto HTTP/1.0 [08:29:32]Method: POST [08:29:32]URL: /json_proto [08:29:32]Method is POST - this is cgi request [08:29:32]url: /json_proto [08:29:32]query_string will be loaded in cgi processing [08:29:32]execute_cgi json_proto POST (null) [08:29:32]execute_cgi path=json_proto method=POST [08:29:32]POST find Content-Length [08:29:32]Host: 172.17.48.198:8080 [08:29:32]Content-Length: 215 [08:29:32]Content-Type: application/json [08:29:32] [08:29:32]POST finish read [08:29:32]Found Content-Length = 215 [08:29:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:29:32]execute_script... [08:29:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:29:32]POST & json_proto [08:29:32]process_json_proto [08:29:32]json parsed OK: [08:29:32]protocol is kg_v1.0 [08:29:32]action value=get_value [08:29:32]process_action get_value [08:29:32]cmd_get_value [08:29:32]process_action get_value done [08:29:32]requested_data is exist [08:29:32]produce_requested_data [08:29:32]requested_item kkm.sn is exist - process it [08:29:32]requested_item kkm.ver is exist - process it [08:29:32]requested_item fm.sn is exist - process it [08:29:32]wFMCommunicate request_size=4 [08:29:32]MH_SAM_APDU [08:29:32]CAPDU: 80 11 00 00 [08:29:32]Write to MH i2c: E2 08 00 74 44 80 11 00 00 00 00 00 00 32 [08:29:32]Write i2c OK [08:29:32]MH_I2C_Read... [08:29:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:29:32]Read from MH i2c: E2 [08:29:32]MH_I2C_Read... [08:29:32]Read from MH i2c: E2 17 00 [08:29:32]MH_I2C_Read... [08:29:32]Read from MH i2c: E2 17 00 74 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 8E [08:29:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [08:29:32]wFMCommunicate OK [08:29:32]requested_item fd.num is exist - process it [08:29:32]SAM_PROTO_GetFieldsCounters [08:29:32]wFMCommunicate request_size=4 [08:29:32]MH_SAM_APDU [08:29:32]CAPDU: 80 13 00 00 [08:29:32]Write to MH i2c: E2 08 00 75 44 80 13 00 00 00 00 00 00 35 [08:29:32]Write i2c OK [08:29:32]MH_I2C_Read... [08:29:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:29:32]Read from MH i2c: E2 [08:29:32]MH_I2C_Read... [08:29:32]Read from MH i2c: E2 62 00 [08:29:32]MH_I2C_Read... [08:29:32]Read from MH i2c: E2 62 00 75 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 7F B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 14 [08: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 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 7F B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:29:32]wFMCommunicate OK [08:29:32]SAM_PROTO_GetFieldsCounters done [08:29:32]requested_item shift.num is exist - process it [08:29:32]requested_item shift.opened is exist - process it [08:29:32]req_shift_opened [08:29:32]FM_GetShiftState [08:29:32]SAM_PROTO_GetShiftState [08:29:32]wFMCommunicate request_size=4 [08:29:32]MH_SAM_APDU [08:29:32]CAPDU: 80 13 01 00 [08:29:32]Write to MH i2c: E2 08 00 76 44 80 13 01 00 00 00 00 00 37 [08:29:32]Write i2c OK [08:29:32]MH_I2C_Read... [08:29:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:29:32]Read from MH i2c: E2 [08:29:32]MH_I2C_Read... [08:29:32]Read from MH i2c: E2 0E 00 [08:29:32]MH_I2C_Read... [08:29:32]Read from MH i2c: E2 0E 00 76 44 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 6D [08:29:32]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [08:29:32]wFMCommunicate OK [08:29:32]SAM_PROTO_GetShiftState done [08:29:32]FM_GetShiftState done [08:29:32]req_shift_opened done [08:29:32]requested_item shift.open_date is exist - process it [08:29:32]req_shift_open_date [08:29:32]req_shift_open_date done [08:29:32]produce_requested_data done [08:29:32]produce_requested_data return {"kkm.sn":"0300000013","kkm.ver":"001","fm.sn":"0000000000874796","fd.num":45183,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [08:29:32]process_action_free get_value [08:29:32]json_value_free [08:29:32]json_value_free done [08:29:32]process_json_proto returns [08:29:32]Send response to host [08:29:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000013","kkm.ver":"001","fm.sn":"0000000000874796","fd.num":45183,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [08:29:32]free response buf [08:29:32]execute_script done [08:29:32]execute_script returns [08:29:32]free content buf [08:29:32]Sock 9.Close socket [08:29:32]Sock 9.Thread stoped [08:29:35]OFD Sender: No OFD packet to send [08:29:35]accept exits with 7 [08:29:35]New connection [08:29:35]New thread 3067157860 created [08:29:35]Thread 3067014500 joined [08:29:35]Waiting for new connection... [08:29:35] Sock 7.Parse request [08:29:35]Sock 7.Check first char [08:29:35]Sock 7.First char is OK [08:29:35]request: POST /json_proto HTTP/1.0 [08:29:35]Method: POST [08:29:35]URL: /json_proto [08:29:35]Method is POST - this is cgi request [08:29:35]url: /json_proto [08:29:35]query_string will be loaded in cgi processing [08:29:35]execute_cgi json_proto POST (null) [08:29:35]execute_cgi path=json_proto method=POST [08:29:35]POST find Content-Length [08:29:35]Host: 172.17.48.198:8080 [08:29:35]Content-Length: 331 [08:29:35]Content-Type: application/json [08:29:35] [08:29:35]POST finish read [08:29:35]Found Content-Length = 331 [08:29:35]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" ] } } [08:29:35]execute_script... [08:29:35]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" ] } } [08:29:35]POST & json_proto [08:29:35]process_json_proto [08:29:35]json parsed OK: [08:29:35]protocol is kg_v1.0 [08:29:35]action value=get_value [08:29:35]process_action get_value [08:29:35]cmd_get_value [08:29:35]process_action get_value done [08:29:35]requested_data is exist [08:29:35]produce_requested_data [08:29:35]requested_item fm.sale.total is exist - process it [08:29:35]SAM_PROTO_GetFMData [08:29:35]wFMCommunicate request_size=4 [08:29:35]MH_SAM_APDU [08:29:35]CAPDU: 80 13 03 00 [08:29:35]Write to MH i2c: E2 08 00 77 44 80 13 03 00 00 00 00 00 3A [08:29:35]Write i2c OK [08:29:35]MH_I2C_Read... [08:29:36]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [08:29:36]Read from MH i2c: E2 [08:29:36]MH_I2C_Read... [08:29:36]Read from MH i2c: E2 FD 00 [08:29:36]MH_I2C_Read... [08:29:36]Read from MH i2c: E2 FD 00 77 44 00 C4 04 85 04 C0 04 6E 04 04 00 E5 AD 00 00 69 04 A0 00 6F 04 04 00 F3 AA 00 00 B1 04 04 00 5C E9 11 4A 70 04 04 00 9F EE 05 37 72 04 04 00 BD FA 0B 13 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 6E BD DD 07 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 E1 BE A7 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F2 02 00 00 B1 04 04 00 DE CB 28 05 70 04 04 00 66 1A 02 05 72 04 03 00 78 B1 26 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 46 46 8C EF 03 09 00 90 00 D0 [08:29:36]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 E5 AD 00 00 69 04 A0 00 6F 04 04 00 F3 AA 00 00 B1 04 04 00 5C E9 11 4A 70 04 04 00 9F EE 05 37 72 04 04 00 BD FA 0B 13 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 6E BD DD 07 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 E1 BE A7 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F2 02 00 00 B1 04 04 00 DE CB 28 05 70 04 04 00 66 1A 02 05 72 04 03 00 78 B1 26 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 46 46 8C EF 03 09 00 90 00 [08:29:36]wFMCommunicate OK [08:29:36]wFMCommunicate request_size=4 [08:29:36]MH_SAM_APDU [08:29:36]CAPDU: 80 17 00 00 [08:29:36]Write to MH i2c: E2 08 00 78 44 80 17 00 00 00 00 00 00 3C [08:29:36]Write i2c OK [08:29:36]MH_I2C_Read... [08:29:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:29:36]Read from MH i2c: E2 [08:29:36]MH_I2C_Read... [08:29:36]Read from MH i2c: E2 FD 00 [08:29:36]MH_I2C_Read... [08:29:36]Read from MH i2c: E2 FD 00 78 44 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 39 B0 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 E6 [08:29:36]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 39 B0 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [08:29:36]wFMCommunicate OK [08:29:36]wFMCommunicate request_size=4 [08:29:36]MH_SAM_APDU [08:29:36]CAPDU: 80 17 00 00 [08:29:36]Write to MH i2c: E2 08 00 79 44 80 17 00 00 00 00 00 00 3D [08:29:36]Write i2c OK [08:29:36]MH_I2C_Read... [08:29:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:29:36]Read from MH i2c: E2 [08:29:36]MH_I2C_Read... [08:29:36]Read from MH i2c: E2 FD 00 [08:29:36]MH_I2C_Read... [08:29:36]Read from MH i2c: E2 FD 00 79 44 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 52 [08:29:36]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [08:29:36]wFMCommunicate OK [08:29:36]wFMCommunicate request_size=4 [08:29:36]MH_SAM_APDU [08:29:36]CAPDU: 80 17 00 00 [08:29:36]Write to MH i2c: E2 08 00 7A 44 80 17 00 00 00 00 00 00 3E [08:29:36]Write i2c OK [08:29:36]MH_I2C_Read... [08:29:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:29:37]Read from MH i2c: E2 [08:29:37]MH_I2C_Read... [08:29:37]Read from MH i2c: E2 FD 00 [08:29:37]MH_I2C_Read... [08:29:37]Read from MH i2c: E2 FD 00 7A 44 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B6 [08:29:37]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [08:29:37]wFMCommunicate OK [08:29:37]wFMCommunicate request_size=4 [08:29:37]MH_SAM_APDU [08:29:37]CAPDU: 80 17 00 00 [08:29:37]Write to MH i2c: E2 08 00 7B 44 80 17 00 00 00 00 00 00 3F [08:29:37]Write i2c OK [08:29:37]MH_I2C_Read... [08:29:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [08:29:37]Read from MH i2c: E2 [08:29:37]MH_I2C_Read... [08:29:37]Read from MH i2c: E2 E1 00 [08:29:37]MH_I2C_Read... [08:29:37]Read from MH i2c: E2 E1 00 7B 44 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 2D [08:29:37]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [08:29:37]wFMCommunicate OK [08:29:37]SAM_PROTO_GetFMData done [08:29:37]requested_item fm.sale_refund.total is exist - process it [08:29:37]requested_item fm.buy.total is exist - process it [08:29:37]requested_item shift.sale.total is exist - process it [08:29:37]SAM_PROTO_GetShiftData [08:29:37]wFMCommunicate request_size=4 [08:29:37]MH_SAM_APDU [08:29:37]CAPDU: 80 13 02 00 [08:29:37]Write to MH i2c: E2 08 00 7C 44 80 13 02 00 00 00 00 00 3E [08:29:37]Write i2c OK [08:29:37]MH_I2C_Read... [08:29:37]Read from MH i2c: E2 [08:29:37]MH_I2C_Read... [08:29:37]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [08:29:37]Read from MH i2c: E2 FD 00 [08:29:37]MH_I2C_Read... [08:29:37]Read from MH i2c: E2 FD 00 7C 44 00 B4 04 AA 04 B0 04 6E 04 04 00 14 00 00 00 69 04 9A 00 6F 04 04 00 13 00 00 00 B1 04 03 00 50 28 05 70 04 03 00 60 F1 03 72 04 03 00 F0 36 01 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 36 8C 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 AB 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 10 27 70 04 02 00 10 27 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 29 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 00 F6 90 00 51 [08:29:37]RAPDU: B4 04 AA 04 B0 04 6E 04 04 00 14 00 00 00 69 04 9A 00 6F 04 04 00 13 00 00 00 B1 04 03 00 50 28 05 70 04 03 00 60 F1 03 72 04 03 00 F0 36 01 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 36 8C 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 AB 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 10 27 70 04 02 00 10 27 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 29 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 00 F6 90 00 [08:29:37]wFMCommunicate OK [08:29:37]wFMCommunicate request_size=4 [08:29:37]MH_SAM_APDU [08:29:37]CAPDU: 80 17 00 00 [08:29:37]Write to MH i2c: E2 08 00 7D 44 80 17 00 00 00 00 00 00 41 [08:29:37]Write i2c OK [08:29:37]MH_I2C_Read... [08:29:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:29:38]Read from MH i2c: E2 [08:29:38]MH_I2C_Read... [08:29:38]Read from MH i2c: E2 FD 00 [08:29:38]MH_I2C_Read... [08:29:38]Read from MH i2c: E2 FD 00 7D 44 00 03 01 00 01 F7 03 01 00 59 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C3 [08:29:38]RAPDU: 03 01 00 01 F7 03 01 00 59 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [08:29:38]wFMCommunicate OK [08:29:38]wFMCommunicate request_size=4 [08:29:38]MH_SAM_APDU [08:29:38]CAPDU: 80 17 00 00 [08:29:38]Write to MH i2c: E2 08 00 7E 44 80 17 00 00 00 00 00 00 42 [08:29:38]Write i2c OK [08:29:38]MH_I2C_Read... [08:29:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:29:38]Read from MH i2c: E2 [08:29:38]MH_I2C_Read... [08:29:38]Read from MH i2c: E2 FD 00 [08:29:38]MH_I2C_Read... [08:29:38]Read from MH i2c: E2 FD 00 7E 44 00 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 EC [08:29:38]RAPDU: 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [08:29:38]wFMCommunicate OK [08:29:38]wFMCommunicate request_size=4 [08:29:38]MH_SAM_APDU [08:29:38]CAPDU: 80 17 00 00 [08:29:38]Write to MH i2c: E2 08 00 7F 44 80 17 00 00 00 00 00 00 43 [08:29:38]Write i2c OK [08:29:38]MH_I2C_Read... [08:29:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:29:38]Read from MH i2c: E2 [08:29:38]MH_I2C_Read... [08:29:38]Read from MH i2c: E2 FD 00 [08:29:38]MH_I2C_Read... [08:29:38]Read from MH i2c: E2 FD 00 7F 44 00 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 90 00 C5 [08:29:38]RAPDU: 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 90 00 [08:29:38]wFMCommunicate OK [08:29:38]wFMCommunicate request_size=4 [08:29:38]MH_SAM_APDU [08:29:38]CAPDU: 80 17 00 00 [08:29:38]Write to MH i2c: E2 08 00 80 44 80 17 00 00 00 00 00 00 44 [08:29:38]Write i2c OK [08:29:38]MH_I2C_Read... [08:29:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 206! [08:29:39]Read from MH i2c: E2 [08:29:39]MH_I2C_Read... [08:29:39]Read from MH i2c: E2 D1 00 [08:29:39]MH_I2C_Read... [08:29:39]Read from MH i2c: E2 D1 00 80 44 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 26 [08:29:39]RAPDU: F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [08:29:39]wFMCommunicate OK [08:29:39]SAM_PROTO_GetShiftData done [08:29:39]requested_item shift.sale.total_cash is exist - process it [08:29:39]requested_item shift.sale_refund.total is exist - process it [08:29:39]requested_item shift.sale_refund.total_cash is exist - process it [08:29:39]requested_item shift.buy.total is exist - process it [08:29:39]requested_item shift.buy.total_cash is exist - process it [08:29:39]produce_requested_data done [08:29:39]produce_requested_data return {"fm.sale.total":12426878.36,"fm.sale_refund.total":865597.10,"fm.buy.total":0.00,"shift.sale.total":3380.00,"shift.sale.total_cash":2584.00,"shift.sale_refund.total":100.00,"shift.sale_refund.total_cash":100.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [08:29:39]process_action_free get_value [08:29:39]json_value_free [08:29:39]json_value_free done [08:29:39]process_json_proto returns [08:29:39]Send response to host [08:29:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":12426878.36,"fm.sale_refund.total":865597.10,"fm.buy.total":0.00,"shift.sale.total":3380.00,"shift.sale.total_cash":2584.00,"shift.sale_refund.total":100.00,"shift.sale_refund.total_cash":100.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [08:29:39]free response buf [08:29:39]execute_script done [08:29:39]execute_script returns [08:29:39]free content buf [08:29:39]Sock 7.Close socket [08:29:39]Sock 7.Thread stoped [08:29:40]OFD Sender: No OFD packet to send [08:29:45]OFD Sender: No OFD packet to send [08:29:50]OFD Sender: No OFD packet to send [08:29:55]OFD Sender: No OFD packet to send [08:30:00]OFD Sender: No OFD packet to send [08:30:05]OFD Sender: No OFD packet to send [08:30:10]OFD Sender: No OFD packet to send [08:30:15]OFD Sender: No OFD packet to send [08:30:20]OFD Sender: No OFD packet to send [08:30:25]OFD Sender: No OFD packet to send [08:30:30]OFD Sender: No OFD packet to send [08:30:35]OFD Sender: No OFD packet to send [08:30:40]OFD Sender: No OFD packet to send [08:30:45]OFD Sender: No OFD packet to send [08:30:50]OFD Sender: No OFD packet to send [08:30:55]OFD Sender: No OFD packet to send [08:31:00]OFD Sender: No OFD packet to send [08:31:05]OFD Sender: No OFD packet to send [08:31:10]OFD Sender: No OFD packet to send [08:31:15]OFD Sender: No OFD packet to send [08:31:20]OFD Sender: No OFD packet to send [08:31:25]OFD Sender: No OFD packet to send [08:31:30]OFD Sender: No OFD packet to send [08:31:35]OFD Sender: No OFD packet to send [08:31:40]OFD Sender: No OFD packet to send [08:31:45]OFD Sender: No OFD packet to send [08:31:50]OFD Sender: No OFD packet to send [08:31:55]OFD Sender: No OFD packet to send [08:32:00]OFD Sender: No OFD packet to send [08:32:05]OFD Sender: No OFD packet to send [08:32:10]OFD Sender: No OFD packet to send [08:32:15]OFD Sender: No OFD packet to send [08:32:20]OFD Sender: No OFD packet to send [08:32:25]OFD Sender: No OFD packet to send [08:32:30]OFD Sender: No OFD packet to send [08:32:35]OFD Sender: No OFD packet to send [08:32:40]OFD Sender: No OFD packet to send [08:32:45]OFD Sender: No OFD packet to send [08:32:50]OFD Sender: No OFD packet to send [08:32:55]OFD Sender: No OFD packet to send [08:33:00]OFD Sender: No OFD packet to send [08:33:05]OFD Sender: No OFD packet to send [08:33:10]OFD Sender: No OFD packet to send [08:33:15]OFD Sender: No OFD packet to send [08:33:21]OFD Sender: No OFD packet to send [08:33:26]OFD Sender: No OFD packet to send [08:33:31]OFD Sender: No OFD packet to send [08:33:36]OFD Sender: No OFD packet to send [08:33:41]OFD Sender: No OFD packet to send [08:33:46]OFD Sender: No OFD packet to send [08:33:51]OFD Sender: No OFD packet to send [08:33:56]OFD Sender: No OFD packet to send [08:34:01]OFD Sender: No OFD packet to send [08:34:06]OFD Sender: No OFD packet to send [08:34:11]OFD Sender: No OFD packet to send [08:34:16]OFD Sender: No OFD packet to send [08:34:21]OFD Sender: No OFD packet to send [08:34:26]OFD Sender: No OFD packet to send [08:34:31]OFD Sender: No OFD packet to send [08:34:36]OFD Sender: No OFD packet to send [08:34:41]OFD Sender: No OFD packet to send [08:34:46]OFD Sender: No OFD packet to send [08:34:51]OFD Sender: No OFD packet to send [08:34:56]OFD Sender: No OFD packet to send [08:34:58]accept exits with 9 [08:34:58]New connection [08:34:58]New thread 3067014500 created [08:34:58]Thread 3067157860 joined [08:34:58]Waiting for new connection... [08:34:58] Sock 9.Parse request [08:34:58]Sock 9.Check first char [08:34:58]Sock 9.First char is OK [08:34:58]request: POST /json_proto HTTP/1.0 [08:34:58]Method: POST [08:34:58]URL: /json_proto [08:34:58]Method is POST - this is cgi request [08:34:58]url: /json_proto [08:34:58]query_string will be loaded in cgi processing [08:34:58]execute_cgi json_proto POST (null) [08:34:58]execute_cgi path=json_proto method=POST [08:34:58]POST find Content-Length [08:34:58]Host: 172.17.48.198:8080 [08:34:58]Content-Length: 215 [08:34:58]Content-Type: application/json [08:34:58] [08:34:58]POST finish read [08:34:58]Found Content-Length = 215 [08:34:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:34:58]execute_script... [08:34:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:34:58]POST & json_proto [08:34:58]process_json_proto [08:34:58]json parsed OK: [08:34:58]protocol is kg_v1.0 [08:34:58]action value=get_value [08:34:58]process_action get_value [08:34:58]cmd_get_value [08:34:58]process_action get_value done [08:34:58]requested_data is exist [08:34:58]produce_requested_data [08:34:58]requested_item kkm.sn is exist - process it [08:34:58]requested_item kkm.ver is exist - process it [08:34:58]requested_item fm.sn is exist - process it [08:34:58]wFMCommunicate request_size=4 [08:34:58]MH_SAM_APDU [08:34:58]CAPDU: 80 11 00 00 [08:34:58]Write to MH i2c: E2 08 00 81 44 80 11 00 00 00 00 00 00 3F [08:34:58]Write i2c OK [08:34:58]MH_I2C_Read... [08:34:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:34:58]Read from MH i2c: E2 [08:34:58]MH_I2C_Read... [08:34:58]Read from MH i2c: E2 17 00 [08:34:58]MH_I2C_Read... [08:34:58]Read from MH i2c: E2 17 00 81 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 9B [08:34:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [08:34:58]wFMCommunicate OK [08:34:58]requested_item fd.num is exist - process it [08:34:58]SAM_PROTO_GetFieldsCounters [08:34:58]wFMCommunicate request_size=4 [08:34:58]MH_SAM_APDU [08:34:58]CAPDU: 80 13 00 00 [08:34:58]Write to MH i2c: E2 08 00 82 44 80 13 00 00 00 00 00 00 42 [08:34:58]Write i2c OK [08:34:58]MH_I2C_Read... [08:34:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:34:59]Read from MH i2c: E2 [08:34:59]MH_I2C_Read... [08:34:59]Read from MH i2c: E2 62 00 [08:34:59]MH_I2C_Read... [08:34:59]Read from MH i2c: E2 62 00 82 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 7F B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 21 [08:34:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 7F B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:34:59]wFMCommunicate OK [08:34:59]SAM_PROTO_GetFieldsCounters done [08:34:59]requested_item shift.num is exist - process it [08:34:59]requested_item shift.opened is exist - process it [08:34:59]req_shift_opened [08:34:59]FM_GetShiftState [08:34:59]SAM_PROTO_GetShiftState [08:34:59]wFMCommunicate request_size=4 [08:34:59]MH_SAM_APDU [08:34:59]CAPDU: 80 13 01 00 [08:34:59]Write to MH i2c: E2 08 00 83 44 80 13 01 00 00 00 00 00 44 [08:34:59]Write i2c OK [08:34:59]MH_I2C_Read... [08:34:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:34:59]Read from MH i2c: E2 [08:34:59]MH_I2C_Read... [08:34:59]Read from MH i2c: E2 0E 00 [08:34:59]MH_I2C_Read... [08:34:59]Read from MH i2c: E2 0E 00 83 44 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 7A [08:34:59]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [08:34:59]wFMCommunicate OK [08:34:59]SAM_PROTO_GetShiftState done [08:34:59]FM_GetShiftState done [08:34:59]req_shift_opened done [08:34:59]requested_item shift.open_date is exist - process it [08:34:59]req_shift_open_date [08:34:59]req_shift_open_date done [08:34:59]produce_requested_data done [08:34:59]produce_requested_data return {"kkm.sn":"0300000013","kkm.ver":"001","fm.sn":"0000000000874796","fd.num":45183,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [08:34:59]process_action_free get_value [08:34:59]json_value_free [08:34:59]json_value_free done [08:34:59]process_json_proto returns [08:34:59]Send response to host [08:34:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000013","kkm.ver":"001","fm.sn":"0000000000874796","fd.num":45183,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [08:34:59]free response buf [08:34:59]execute_script done [08:34:59]execute_script returns [08:34:59]free content buf [08:34:59]Sock 9.Close socket [08:34:59]Sock 9.Thread stoped [08:35:01]OFD Sender: No OFD packet to send [08:35:02]accept exits with 7 [08:35:02]New connection [08:35:02]New thread 3067157860 created [08:35:02]Thread 3067014500 joined [08:35:02]Waiting for new connection... [08:35:02] Sock 7.Parse request [08:35:02]Sock 7.Check first char [08:35:02]Sock 7.First char is OK [08:35:02]request: POST /json_proto HTTP/1.0 [08:35:02]Method: POST [08:35:02]URL: /json_proto [08:35:02]Method is POST - this is cgi request [08:35:02]url: /json_proto [08:35:02]query_string will be loaded in cgi processing [08:35:02]execute_cgi json_proto POST (null) [08:35:02]execute_cgi path=json_proto method=POST [08:35:02]POST find Content-Length [08:35:02]Host: 172.17.48.198:8080 [08:35:02]Content-Length: 331 [08:35:02]Content-Type: application/json [08:35:02] [08:35:02]POST finish read [08:35:02]Found Content-Length = 331 [08:35:02]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" ] } } [08:35:02]execute_script... [08:35:02]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" ] } } [08:35:02]POST & json_proto [08:35:02]process_json_proto [08:35:02]json parsed OK: [08:35:02]protocol is kg_v1.0 [08:35:02]action value=get_value [08:35:02]process_action get_value [08:35:02]cmd_get_value [08:35:02]process_action get_value done [08:35:02]requested_data is exist [08:35:02]produce_requested_data [08:35:02]requested_item fm.sale.total is exist - process it [08:35:02]SAM_PROTO_GetFMData [08:35:02]wFMCommunicate request_size=4 [08:35:02]MH_SAM_APDU [08:35:02]CAPDU: 80 13 03 00 [08:35:02]Write to MH i2c: E2 08 00 84 44 80 13 03 00 00 00 00 00 47 [08:35:02]Write i2c OK [08:35:02]MH_I2C_Read... [08:35:02]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [08:35:02]Read from MH i2c: E2 [08:35:02]MH_I2C_Read... [08:35:02]Read from MH i2c: E2 FD 00 [08:35:02]MH_I2C_Read... [08:35:02]Read from MH i2c: E2 FD 00 84 44 00 C4 04 85 04 C0 04 6E 04 04 00 E5 AD 00 00 69 04 A0 00 6F 04 04 00 F3 AA 00 00 B1 04 04 00 5C E9 11 4A 70 04 04 00 9F EE 05 37 72 04 04 00 BD FA 0B 13 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 6E BD DD 07 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 E1 BE A7 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F2 02 00 00 B1 04 04 00 DE CB 28 05 70 04 04 00 66 1A 02 05 72 04 03 00 78 B1 26 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 46 46 8C EF 03 09 00 90 00 DD [08:35:02]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 E5 AD 00 00 69 04 A0 00 6F 04 04 00 F3 AA 00 00 B1 04 04 00 5C E9 11 4A 70 04 04 00 9F EE 05 37 72 04 04 00 BD FA 0B 13 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 6E BD DD 07 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 E1 BE A7 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F2 02 00 00 B1 04 04 00 DE CB 28 05 70 04 04 00 66 1A 02 05 72 04 03 00 78 B1 26 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 46 46 8C EF 03 09 00 90 00 [08:35:02]wFMCommunicate OK [08:35:02]wFMCommunicate request_size=4 [08:35:02]MH_SAM_APDU [08:35:02]CAPDU: 80 17 00 00 [08:35:02]Write to MH i2c: E2 08 00 85 44 80 17 00 00 00 00 00 00 49 [08:35:02]Write i2c OK [08:35:02]MH_I2C_Read... [08:35:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:35:02]Read from MH i2c: E2 [08:35:02]MH_I2C_Read... [08:35:02]Read from MH i2c: E2 FD 00 [08:35:02]MH_I2C_Read... [08:35:02]Read from MH i2c: E2 FD 00 85 44 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 39 B0 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 F3 [08:35:02]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 39 B0 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [08:35:02]wFMCommunicate OK [08:35:02]wFMCommunicate request_size=4 [08:35:02]MH_SAM_APDU [08:35:02]CAPDU: 80 17 00 00 [08:35:02]Write to MH i2c: E2 08 00 86 44 80 17 00 00 00 00 00 00 4A [08:35:02]Write i2c OK [08:35:02]MH_I2C_Read... [08:35:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:35:03]Read from MH i2c: E2 [08:35:03]MH_I2C_Read... [08:35:03]Read from MH i2c: E2 FD 00 [08:35:03]MH_I2C_Read... [08:35:03]Read from MH i2c: E2 FD 00 86 44 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 5F [08:35:03]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [08:35:03]wFMCommunicate OK [08:35:03]wFMCommunicate request_size=4 [08:35:03]MH_SAM_APDU [08:35:03]CAPDU: 80 17 00 00 [08:35:03]Write to MH i2c: E2 08 00 87 44 80 17 00 00 00 00 00 00 4B [08:35:03]Write i2c OK [08:35:03]MH_I2C_Read... [08:35:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:35:03]Read from MH i2c: E2 [08:35:03]MH_I2C_Read... [08:35:03]Read from MH i2c: E2 FD 00 [08:35:03]MH_I2C_Read... [08:35:03]Read from MH i2c: E2 FD 00 87 44 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C3 [08:35:03]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [08:35:03]wFMCommunicate OK [08:35:03]wFMCommunicate request_size=4 [08:35:03]MH_SAM_APDU [08:35:03]CAPDU: 80 17 00 00 [08:35:03]Write to MH i2c: E2 08 00 88 44 80 17 00 00 00 00 00 00 4C [08:35:03]Write i2c OK [08:35:03]MH_I2C_Read... [08:35:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [08:35:03]Read from MH i2c: E2 [08:35:03]MH_I2C_Read... [08:35:03]Read from MH i2c: E2 E1 00 [08:35:03]MH_I2C_Read... [08:35:03]Read from MH i2c: E2 E1 00 88 44 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 3A [08:35:03]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [08:35:03]wFMCommunicate OK [08:35:03]SAM_PROTO_GetFMData done [08:35:03]requested_item fm.sale_refund.total is exist - process it [08:35:03]requested_item fm.buy.total is exist - process it [08:35:03]requested_item shift.sale.total is exist - process it [08:35:03]SAM_PROTO_GetShiftData [08:35:03]wFMCommunicate request_size=4 [08:35:03]MH_SAM_APDU [08:35:03]CAPDU: 80 13 02 00 [08:35:03]Write to MH i2c: E2 08 00 89 44 80 13 02 00 00 00 00 00 4B [08:35:03]Write i2c OK [08:35:03]MH_I2C_Read... [08:35:04]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [08:35:04]Read from MH i2c: E2 [08:35:04]MH_I2C_Read... [08:35:04]Read from MH i2c: E2 FD 00 [08:35:04]MH_I2C_Read... [08:35:04]Read from MH i2c: E2 FD 00 89 44 00 B4 04 AA 04 B0 04 6E 04 04 00 14 00 00 00 69 04 9A 00 6F 04 04 00 13 00 00 00 B1 04 03 00 50 28 05 70 04 03 00 60 F1 03 72 04 03 00 F0 36 01 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 36 8C 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 AB 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 10 27 70 04 02 00 10 27 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 29 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 00 F6 90 00 5E [08:35:04]RAPDU: B4 04 AA 04 B0 04 6E 04 04 00 14 00 00 00 69 04 9A 00 6F 04 04 00 13 00 00 00 B1 04 03 00 50 28 05 70 04 03 00 60 F1 03 72 04 03 00 F0 36 01 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 36 8C 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 AB 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 10 27 70 04 02 00 10 27 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 29 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 00 F6 90 00 [08:35:04]wFMCommunicate OK [08:35:04]wFMCommunicate request_size=4 [08:35:04]MH_SAM_APDU [08:35:04]CAPDU: 80 17 00 00 [08:35:04]Write to MH i2c: E2 08 00 8A 44 80 17 00 00 00 00 00 00 4E [08:35:04]Write i2c OK [08:35:04]MH_I2C_Read... [08:35:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:35:04]Read from MH i2c: E2 [08:35:04]MH_I2C_Read... [08:35:04]Read from MH i2c: E2 FD 00 [08:35:04]MH_I2C_Read... [08:35:04]Read from MH i2c: E2 FD 00 8A 44 00 03 01 00 01 F7 03 01 00 59 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D0 [08:35:04]RAPDU: 03 01 00 01 F7 03 01 00 59 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [08:35:04]wFMCommunicate OK [08:35:04]wFMCommunicate request_size=4 [08:35:04]MH_SAM_APDU [08:35:04]CAPDU: 80 17 00 00 [08:35:04]Write to MH i2c: E2 08 00 8B 44 80 17 00 00 00 00 00 00 4F [08:35:04]Write i2c OK [08:35:04]MH_I2C_Read... [08:35:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:35:04]Read from MH i2c: E2 [08:35:04]MH_I2C_Read... [08:35:04]Read from MH i2c: E2 FD 00 [08:35:04]MH_I2C_Read... [08:35:04]Read from MH i2c: E2 FD 00 8B 44 00 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 F9 [08:35:04]RAPDU: 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [08:35:04]wFMCommunicate OK [08:35:04]wFMCommunicate request_size=4 [08:35:04]MH_SAM_APDU [08:35:04]CAPDU: 80 17 00 00 [08:35:04]Write to MH i2c: E2 08 00 8C 44 80 17 00 00 00 00 00 00 50 [08:35:04]Write i2c OK [08:35:04]MH_I2C_Read... [08:35:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:35:05]Read from MH i2c: E2 [08:35:05]MH_I2C_Read... [08:35:05]Read from MH i2c: E2 FD 00 [08:35:05]MH_I2C_Read... [08:35:05]Read from MH i2c: E2 FD 00 8C 44 00 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 90 00 D2 [08:35:05]RAPDU: 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 90 00 [08:35:05]wFMCommunicate OK [08:35:05]wFMCommunicate request_size=4 [08:35:05]MH_SAM_APDU [08:35:05]CAPDU: 80 17 00 00 [08:35:05]Write to MH i2c: E2 08 00 8D 44 80 17 00 00 00 00 00 00 51 [08:35:05]Write i2c OK [08:35:05]MH_I2C_Read... [08:35:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 206! [08:35:05]Read from MH i2c: E2 [08:35:05]MH_I2C_Read... [08:35:05]Read from MH i2c: E2 D1 00 [08:35:05]MH_I2C_Read... [08:35:05]Read from MH i2c: E2 D1 00 8D 44 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 33 [08:35:05]RAPDU: F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [08:35:05]wFMCommunicate OK [08:35:05]SAM_PROTO_GetShiftData done [08:35:05]requested_item shift.sale.total_cash is exist - process it [08:35:05]requested_item shift.sale_refund.total is exist - process it [08:35:05]requested_item shift.sale_refund.total_cash is exist - process it [08:35:05]requested_item shift.buy.total is exist - process it [08:35:05]requested_item shift.buy.total_cash is exist - process it [08:35:05]produce_requested_data done [08:35:05]produce_requested_data return {"fm.sale.total":12426878.36,"fm.sale_refund.total":865597.10,"fm.buy.total":0.00,"shift.sale.total":3380.00,"shift.sale.total_cash":2584.00,"shift.sale_refund.total":100.00,"shift.sale_refund.total_cash":100.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [08:35:05]process_action_free get_value [08:35:05]json_value_free [08:35:05]json_value_free done [08:35:05]process_json_proto returns [08:35:05]Send response to host [08:35:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":12426878.36,"fm.sale_refund.total":865597.10,"fm.buy.total":0.00,"shift.sale.total":3380.00,"shift.sale.total_cash":2584.00,"shift.sale_refund.total":100.00,"shift.sale_refund.total_cash":100.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [08:35:05]free response buf [08:35:05]execute_script done [08:35:05]execute_script returns [08:35:05]free content buf [08:35:05]Sock 7.Close socket [08:35:05]Sock 7.Thread stoped [08:35:06]OFD Sender: No OFD packet to send [08:35:11]OFD Sender: No OFD packet to send [08:35:16]OFD Sender: No OFD packet to send [08:35:21]OFD Sender: No OFD packet to send [08:35:26]OFD Sender: No OFD packet to send [08:35:31]OFD Sender: No OFD packet to send [08:35:36]OFD Sender: No OFD packet to send [08:35:41]OFD Sender: No OFD packet to send [08:35:46]OFD Sender: No OFD packet to send [08:35:51]OFD Sender: No OFD packet to send [08:35:56]OFD Sender: No OFD packet to send [08:36:01]OFD Sender: No OFD packet to send [08:36:06]OFD Sender: No OFD packet to send [08:36:11]OFD Sender: No OFD packet to send [08:36:16]OFD Sender: No OFD packet to send [08:36:21]OFD Sender: No OFD packet to send [08:36:26]OFD Sender: No OFD packet to send [08:36:31]OFD Sender: No OFD packet to send [08:36:36]OFD Sender: No OFD packet to send [08:36:41]OFD Sender: No OFD packet to send [08:36:46]OFD Sender: No OFD packet to send [08:36:51]OFD Sender: No OFD packet to send [08:36:56]OFD Sender: No OFD packet to send [08:37:01]OFD Sender: No OFD packet to send [08:37:06]OFD Sender: No OFD packet to send [08:37:11]OFD Sender: No OFD packet to send [08:37:16]OFD Sender: No OFD packet to send [08:37:21]OFD Sender: No OFD packet to send [08:37:26]OFD Sender: No OFD packet to send [08:37:31]OFD Sender: No OFD packet to send [08:37:36]OFD Sender: No OFD packet to send [08:37:41]OFD Sender: No OFD packet to send [08:37:46]OFD Sender: No OFD packet to send [08:37:51]OFD Sender: No OFD packet to send [08:37:56]OFD Sender: No OFD packet to send [08:38:01]OFD Sender: No OFD packet to send [08:38:06]OFD Sender: No OFD packet to send [08:38:11]OFD Sender: No OFD packet to send [08:38:16]OFD Sender: No OFD packet to send [08:38:21]OFD Sender: No OFD packet to send [08:38:26]OFD Sender: No OFD packet to send [08:38:31]OFD Sender: No OFD packet to send [08:38:36]OFD Sender: No OFD packet to send [08:38:41]OFD Sender: No OFD packet to send [08:38:46]OFD Sender: No OFD packet to send [08:38:51]OFD Sender: No OFD packet to send [08:38:56]OFD Sender: No OFD packet to send [08:39:01]OFD Sender: No OFD packet to send [08:39:06]OFD Sender: No OFD packet to send [08:39:11]OFD Sender: No OFD packet to send [08:39:16]OFD Sender: No OFD packet to send [08:39:21]OFD Sender: No OFD packet to send [08:39:26]OFD Sender: No OFD packet to send [08:39:31]OFD Sender: No OFD packet to send [08:39:36]OFD Sender: No OFD packet to send [08:39:41]OFD Sender: No OFD packet to send [08:39:46]OFD Sender: No OFD packet to send [08:39:51]OFD Sender: No OFD packet to send [08:39:56]OFD Sender: No OFD packet to send [08:40:01]OFD Sender: No OFD packet to send [08:40:06]OFD Sender: No OFD packet to send [08:40:11]OFD Sender: No OFD packet to send [08:40:16]OFD Sender: No OFD packet to send [08:40:21]OFD Sender: No OFD packet to send [08:40:26]OFD Sender: No OFD packet to send [08:40:31]OFD Sender: No OFD packet to send [08:40:36]OFD Sender: No OFD packet to send [08:40:41]OFD Sender: No OFD packet to send [08:40:46]OFD Sender: No OFD packet to send [08:40:51]OFD Sender: No OFD packet to send [08:40:56]OFD Sender: No OFD packet to send [08:41:01]OFD Sender: No OFD packet to send [08:41:06]OFD Sender: No OFD packet to send [08:41:11]OFD Sender: No OFD packet to send [08:41:16]OFD Sender: No OFD packet to send [08:41:21]OFD Sender: No OFD packet to send [08:41:26]OFD Sender: No OFD packet to send [08:41:31]OFD Sender: No OFD packet to send [08:41:36]OFD Sender: No OFD packet to send [08:41:41]OFD Sender: No OFD packet to send [08:41:46]OFD Sender: No OFD packet to send [08:41:51]OFD Sender: No OFD packet to send [08:41:56]OFD Sender: No OFD packet to send [08:42:01]OFD Sender: No OFD packet to send [08:42:06]OFD Sender: No OFD packet to send [08:42:11]OFD Sender: No OFD packet to send [08:42:16]OFD Sender: No OFD packet to send [08:42:21]OFD Sender: No OFD packet to send [08:42:26]OFD Sender: No OFD packet to send [08:42:31]OFD Sender: No OFD packet to send [08:42:36]OFD Sender: No OFD packet to send [08:42:41]OFD Sender: No OFD packet to send [08:42:46]OFD Sender: No OFD packet to send [08:42:51]OFD Sender: No OFD packet to send [08:42:56]OFD Sender: No OFD packet to send [08:43:01]OFD Sender: No OFD packet to send [08:43:06]OFD Sender: No OFD packet to send [08:43:11]OFD Sender: No OFD packet to send [08:43:16]OFD Sender: No OFD packet to send [08:43:21]OFD Sender: No OFD packet to send [08:43:26]OFD Sender: No OFD packet to send [08:43:31]OFD Sender: No OFD packet to send [08:43:36]OFD Sender: No OFD packet to send [08:43:41]OFD Sender: No OFD packet to send [08:43:46]OFD Sender: No OFD packet to send [08:43:51]OFD Sender: No OFD packet to send [08:43:56]OFD Sender: No OFD packet to send [08:44:01]OFD Sender: No OFD packet to send [08:44:06]OFD Sender: No OFD packet to send [08:44:11]OFD Sender: No OFD packet to send [08:44:16]OFD Sender: No OFD packet to send [08:44:21]OFD Sender: No OFD packet to send [08:44:26]OFD Sender: No OFD packet to send [08:44:31]OFD Sender: No OFD packet to send [08:44:36]OFD Sender: No OFD packet to send [08:44:41]OFD Sender: No OFD packet to send [08:44:46]OFD Sender: No OFD packet to send [08:44:51]OFD Sender: No OFD packet to send [08:44:56]OFD Sender: No OFD packet to send [08:45:01]OFD Sender: No OFD packet to send [08:45:06]OFD Sender: No OFD packet to send [08:45:11]OFD Sender: No OFD packet to send [08:45:16]OFD Sender: No OFD packet to send [08:45:21]OFD Sender: No OFD packet to send [08:45:26]OFD Sender: No OFD packet to send [08:45:31]OFD Sender: No OFD packet to send [08:45:36]OFD Sender: No OFD packet to send [08:45:41]OFD Sender: No OFD packet to send [08:45:46]OFD Sender: No OFD packet to send [08:45:51]OFD Sender: No OFD packet to send [08:45:56]OFD Sender: No OFD packet to send [08:46:01]OFD Sender: No OFD packet to send [08:46:06]OFD Sender: No OFD packet to send [08:46:11]OFD Sender: No OFD packet to send [08:46:16]OFD Sender: No OFD packet to send [08:46:21]OFD Sender: No OFD packet to send [08:46:26]OFD Sender: No OFD packet to send [08:46:31]OFD Sender: No OFD packet to send [08:46:36]OFD Sender: No OFD packet to send [08:46:41]OFD Sender: No OFD packet to send [08:46:46]OFD Sender: No OFD packet to send [08:46:51]OFD Sender: No OFD packet to send [08:46:56]OFD Sender: No OFD packet to send [08:47:01]OFD Sender: No OFD packet to send [08:47:06]OFD Sender: No OFD packet to send [08:47:11]OFD Sender: No OFD packet to send [08:47:16]OFD Sender: No OFD packet to send [08:47:21]OFD Sender: No OFD packet to send [08:47:26]OFD Sender: No OFD packet to send [08:47:31]OFD Sender: No OFD packet to send [08:47:36]OFD Sender: No OFD packet to send [08:47:41]OFD Sender: No OFD packet to send [08:47:46]OFD Sender: No OFD packet to send [08:47:51]OFD Sender: No OFD packet to send [08:47:56]OFD Sender: No OFD packet to send [08:48:01]OFD Sender: No OFD packet to send [08:48:06]OFD Sender: No OFD packet to send [08:48:11]OFD Sender: No OFD packet to send [08:48:16]OFD Sender: No OFD packet to send [08:48:21]OFD Sender: No OFD packet to send [08:48:26]OFD Sender: No OFD packet to send [08:48:31]OFD Sender: No OFD packet to send [08:48:36]OFD Sender: No OFD packet to send [08:48:41]OFD Sender: No OFD packet to send [08:48:46]OFD Sender: No OFD packet to send [08:48:51]OFD Sender: No OFD packet to send [08:48:56]OFD Sender: No OFD packet to send [08:49:01]OFD Sender: No OFD packet to send [08:49:06]OFD Sender: No OFD packet to send [08:49:11]OFD Sender: No OFD packet to send [08:49:16]OFD Sender: No OFD packet to send [08:49:21]OFD Sender: No OFD packet to send [08:49:26]OFD Sender: No OFD packet to send [08:49:31]OFD Sender: No OFD packet to send [08:49:36]OFD Sender: No OFD packet to send [08:49:41]OFD Sender: No OFD packet to send [08:49:46]OFD Sender: No OFD packet to send [08:49:51]OFD Sender: No OFD packet to send [08:49:56]OFD Sender: No OFD packet to send [08:50:01]OFD Sender: No OFD packet to send [08:50:06]OFD Sender: No OFD packet to send [08:50:11]OFD Sender: No OFD packet to send [08:50:16]OFD Sender: No OFD packet to send [08:50:21]OFD Sender: No OFD packet to send [08:50:26]OFD Sender: No OFD packet to send [08:50:31]OFD Sender: No OFD packet to send [08:50:36]OFD Sender: No OFD packet to send [08:50:41]OFD Sender: No OFD packet to send [08:50:46]OFD Sender: No OFD packet to send [08:50:51]OFD Sender: No OFD packet to send [08:50:56]OFD Sender: No OFD packet to send [08:51:01]OFD Sender: No OFD packet to send [08:51:06]OFD Sender: No OFD packet to send [08:51:11]OFD Sender: No OFD packet to send [08:51:16]OFD Sender: No OFD packet to send [08:51:21]OFD Sender: No OFD packet to send [08:51:26]OFD Sender: No OFD packet to send [08:51:31]OFD Sender: No OFD packet to send [08:51:36]OFD Sender: No OFD packet to send [08:51:41]OFD Sender: No OFD packet to send [08:51:46]OFD Sender: No OFD packet to send [08:51:51]OFD Sender: No OFD packet to send [08:51:56]OFD Sender: No OFD packet to send [08:52:01]OFD Sender: No OFD packet to send [08:52:06]OFD Sender: No OFD packet to send [08:52:11]OFD Sender: No OFD packet to send [08:52:16]OFD Sender: No OFD packet to send [08:52:21]OFD Sender: No OFD packet to send [08:52:26]OFD Sender: No OFD packet to send [08:52:31]OFD Sender: No OFD packet to send [08:52:36]OFD Sender: No OFD packet to send [08:52:41]OFD Sender: No OFD packet to send [08:52:46]OFD Sender: No OFD packet to send [08:52:51]OFD Sender: No OFD packet to send [08:52:57]OFD Sender: No OFD packet to send [08:53:02]OFD Sender: No OFD packet to send [08:53:07]OFD Sender: No OFD packet to send [08:53:12]OFD Sender: No OFD packet to send [08:53:17]OFD Sender: No OFD packet to send [08:53:22]OFD Sender: No OFD packet to send [08:53:27]OFD Sender: No OFD packet to send [08:53:32]OFD Sender: No OFD packet to send [08:53:37]OFD Sender: No OFD packet to send [08:53:42]OFD Sender: No OFD packet to send [08:53:47]OFD Sender: No OFD packet to send [08:53:52]OFD Sender: No OFD packet to send [08:53:57]OFD Sender: No OFD packet to send [08:54:02]OFD Sender: No OFD packet to send [08:54:07]OFD Sender: No OFD packet to send [08:54:12]OFD Sender: No OFD packet to send [08:54:17]OFD Sender: No OFD packet to send [08:54:22]OFD Sender: No OFD packet to send [08:54:27]OFD Sender: No OFD packet to send [08:54:32]OFD Sender: No OFD packet to send [08:54:37]OFD Sender: No OFD packet to send [08:54:42]OFD Sender: No OFD packet to send [08:54:47]OFD Sender: No OFD packet to send [08:54:52]OFD Sender: No OFD packet to send [08:54:57]OFD Sender: No OFD packet to send [08:55:02]OFD Sender: No OFD packet to send [08:55:07]OFD Sender: No OFD packet to send [08:55:12]OFD Sender: No OFD packet to send [08:55:17]OFD Sender: No OFD packet to send [08:55:22]OFD Sender: No OFD packet to send [08:55:27]OFD Sender: No OFD packet to send [08:55:32]OFD Sender: No OFD packet to send [08:55:37]OFD Sender: No OFD packet to send [08:55:42]OFD Sender: No OFD packet to send [08:55:47]OFD Sender: No OFD packet to send [08:55:52]OFD Sender: No OFD packet to send [08:55:57]OFD Sender: No OFD packet to send [08:56:02]OFD Sender: No OFD packet to send [08:56:07]OFD Sender: No OFD packet to send [08:56:12]OFD Sender: No OFD packet to send [08:56:17]OFD Sender: No OFD packet to send [08:56:22]OFD Sender: No OFD packet to send [08:56:27]OFD Sender: No OFD packet to send [08:56:32]OFD Sender: No OFD packet to send [08:56:37]OFD Sender: No OFD packet to send [08:56:42]OFD Sender: No OFD packet to send [08:56:47]OFD Sender: No OFD packet to send [08:56:52]OFD Sender: No OFD packet to send [08:56:57]OFD Sender: No OFD packet to send [08:57:02]OFD Sender: No OFD packet to send [08:57:07]OFD Sender: No OFD packet to send [08:57:12]OFD Sender: No OFD packet to send [08:57:17]OFD Sender: No OFD packet to send [08:57:22]OFD Sender: No OFD packet to send [08:57:27]OFD Sender: No OFD packet to send [08:57:32]OFD Sender: No OFD packet to send [08:57:37]OFD Sender: No OFD packet to send [08:57:42]OFD Sender: No OFD packet to send [08:57:47]OFD Sender: No OFD packet to send [08:57:52]OFD Sender: No OFD packet to send [08:57:57]OFD Sender: No OFD packet to send [08:58:02]OFD Sender: No OFD packet to send [08:58:07]OFD Sender: No OFD packet to send [08:58:12]OFD Sender: No OFD packet to send [08:58:17]OFD Sender: No OFD packet to send [08:58:22]OFD Sender: No OFD packet to send [08:58:27]OFD Sender: No OFD packet to send [08:58:32]OFD Sender: No OFD packet to send [08:58:37]OFD Sender: No OFD packet to send [08:58:42]OFD Sender: No OFD packet to send [08:58:47]OFD Sender: No OFD packet to send [08:58:52]OFD Sender: No OFD packet to send [08:58:57]OFD Sender: No OFD packet to send [08:59:02]OFD Sender: No OFD packet to send [08:59:07]OFD Sender: No OFD packet to send [08:59:12]OFD Sender: No OFD packet to send [08:59:17]OFD Sender: No OFD packet to send [08:59:22]OFD Sender: No OFD packet to send [08:59:27]OFD Sender: No OFD packet to send [08:59:29]accept exits with 9 [08:59:29]New connection [08:59:29]New thread 3067014500 created [08:59:29]Thread 3067157860 joined [08:59:29]Waiting for new connection... [08:59:29] Sock 9.Parse request [08:59:29]Sock 9.Check first char [08:59:29]Sock 9.First char is OK [08:59:29]request: POST /json_proto HTTP/1.0 [08:59:29]Method: POST [08:59:29]URL: /json_proto [08:59:29]Method is POST - this is cgi request [08:59:29]url: /json_proto [08:59:29]query_string will be loaded in cgi processing [08:59:29]execute_cgi json_proto POST (null) [08:59:29]execute_cgi path=json_proto method=POST [08:59:29]POST find Content-Length [08:59:29]Host: 172.17.48.198:8080 [08:59:29]Content-Length: 697 [08:59:29]Content-Type: application/json [08:59:29] [08:59:29]POST finish read [08:59:29]Found Content-Length = 697 [08:59:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184148", "tax_sys" : 0, "items" : [ { "code": "4700000283323", "name": "\u0412\u043E\u0434\u043A\u0430 \u0420\u0443\u0441\u0441\u043A\u0430\u044F \u043C\u0430\u0440\u043A\u0430 \u043F\u0448\u0435\u043D 0,5\u043B", "price" : 356.00, "quantity" : 1.000, "sum" : 356.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 356.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:59:29]execute_script... [08:59:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184148", "tax_sys" : 0, "items" : [ { "code": "4700000283323", "name": "\u0412\u043E\u0434\u043A\u0430 \u0420\u0443\u0441\u0441\u043A\u0430\u044F \u043C\u0430\u0440\u043A\u0430 \u043F\u0448\u0435\u043D 0,5\u043B", "price" : 356.00, "quantity" : 1.000, "sum" : 356.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 356.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:59:29]POST & json_proto [08:59:29]process_json_proto [08:59:29]json parsed OK: [08:59:29]protocol is kg_v1.0 [08:59:29]action value=close_receipt [08:59:29]process_action close_receipt [08:59:29]cmd_close_receipt [08:59:29]MH_GetDate [08:59:29]Write to MH i2c: F0 00 00 8E 44 C1 [08:59:29]Write i2c OK [08:59:29]MH_I2C_Read... [08:59:29]Read from MH i2c: F0 [08:59:29]MH_I2C_Read... [08:59:29]Read from MH i2c: F0 09 00 [08:59:29]MH_I2C_Read... [08:59:29]Read from MH i2c: F0 09 00 8E 44 00 FB 3B E4 65 CE C4 D4 65 14 [08:59:29]GetLastDocTimeStamp 1709453957 [08:59:29]current date 1709456379 [08:59:29]FM_GetShiftState [08:59:29]SAM_PROTO_GetShiftState [08:59:29]wFMCommunicate request_size=4 [08:59:29]MH_SAM_APDU [08:59:29]CAPDU: 80 13 01 00 [08:59:29]Write to MH i2c: E2 08 00 8F 44 80 13 01 00 00 00 00 00 50 [08:59:29]Write i2c OK [08:59:29]MH_I2C_Read... [08:59:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:59:29]Read from MH i2c: E2 [08:59:29]MH_I2C_Read... [08:59:29]Read from MH i2c: E2 0E 00 [08:59:29]MH_I2C_Read... [08:59:29]Read from MH i2c: E2 0E 00 8F 44 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 86 [08:59:29]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [08:59:29]wFMCommunicate OK [08:59:29]SAM_PROTO_GetShiftState done [08:59:29]FM_GetShiftState done [08:59:29]opened in 1709425694 [08:59:29]opened+sec_in_day 1709512094 [08:59:29]quantity*price = 35600 [08:59:29]sum+1 = 35601 [08:59:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 356.00 НСП 1% : 3.15 НДС 12% : 37.80 Наличными: 356.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 21 03.03.2024 08:59 Смена: 331 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 ФМ: 0000000000874796 ФД: 45184 ФПД: 152150942140582 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T085939&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45184&fm=152150942140582&tin=02508201610067®Number=0000000000090572&sum=35600 0 [08:59:30]StoreToDocumentArchive [08:59:30]shift 331 fd 45184 [08:59:30]save to /storage/0331/doc_00045184 [08:59:30]save last doc name /storage/0331/doc_00045184 to /storage/kkm_last_doc_name [08:59:30]save OK [08:59:30]Clear old archive folders... [08:59:30]ProcessDocumentItem done err = 0, tmpTLVsize=293 [08:59:30]tlvbuf is 01B29680 [08:59:30]SAM_PROTO_ClearQueue [08:59:30]wFMCommunicate request_size=4 [08:59:30]MH_SAM_APDU [08:59:30]CAPDU: 80 09 00 00 [08:59:30]Write to MH i2c: E2 08 00 9C 44 80 09 00 00 00 00 00 00 52 [08:59:30]Write i2c OK [08:59:30]MH_I2C_Read... [08:59:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:59:30]Read from MH i2c: E2 [08:59:30]MH_I2C_Read... [08:59:30]Read from MH i2c: E2 03 00 [08:59:30]MH_I2C_Read... [08:59:30]Read from MH i2c: E2 03 00 9C 44 00 90 00 54 [08:59:30]RAPDU: 90 00 [08:59:30]wFMCommunicate OK [08:59:30]SAM_PROTO_ClearQueue done [08:59:30]KKMCreateOFDPacket [08:59:30]OFDProtocolAddRootSTLVToBuf [08:59:30]FM_MakeSignedData [08:59:30]FM_MakeSignedData [08:59:30]SAM_PROTO_SignData [08:59:30]wFMCommunicate request_size=4 [08:59:30]MH_SAM_APDU [08:59:30]CAPDU: 80 0D 01 02 [08:59:30]Write to MH i2c: E2 08 00 9D 44 80 0D 01 02 00 00 00 00 5A [08:59:30]Write i2c OK [08:59:30]MH_I2C_Read... [08:59:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:59:30]Read from MH i2c: E2 [08:59:30]MH_I2C_Read... [08:59:30]Read from MH i2c: E2 03 00 [08:59:30]MH_I2C_Read... [08:59:30]Read from MH i2c: E2 03 00 9D 44 00 90 00 55 [08:59:30]RAPDU: 90 00 [08:59:30]wFMCommunicate OK [08:59:30]wFMCommunicate request_size=255 [08:59:30]MH_SAM_APDU [08:59:30]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 32 38 33 33 32 33 06 04 33 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A0 D1 83 D1 81 D1 81 D0 BA D0 B0 D1 8F 20 D0 BC D0 B0 D1 80 D0 BA D0 B0 20 D0 BF D1 88 D0 B5 D0 BD 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 8B 00 00 00 00 13 04 06 00 10 8B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 8B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 0E 00 00 00 00 07 04 06 00 10 8B 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 FB 3B E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [08:59:30]Write to MH i2c: E2 02 01 9E 44 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 32 38 33 33 32 33 06 04 33 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A0 D1 83 D1 81 D1 81 D0 BA D0 B0 D1 8F 20 D0 BC D0 B0 D1 80 D0 BA D0 B0 20 D0 BF D1 88 D0 B5 D0 BD 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 8B 00 00 00 00 13 04 06 00 10 8B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 8B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 0E 00 00 00 00 07 04 06 00 10 8B 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 FB 3B E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 32 [08:59:30]Write i2c OK [08:59:30]MH_I2C_Read... [08:59:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:59:31]Read from MH i2c: E2 [08:59:31]MH_I2C_Read... [08:59:31]Read from MH i2c: E2 03 00 [08:59:31]MH_I2C_Read... [08:59:31]Read from MH i2c: E2 03 00 9E 44 00 90 00 56 [08:59:31]RAPDU: 90 00 [08:59:31]wFMCommunicate OK [08:59:31]wFMCommunicate request_size=52 [08:59:31]MH_SAM_APDU [08:59:31]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 80 B0 00 00 35 04 06 00 8A 61 66 DB C8 A6 [08:59:31]Write to MH i2c: E2 37 00 9F 44 80 0D 02 02 2F 00 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 80 B0 00 00 35 04 06 00 8A 61 66 DB C8 A6 00 00 F1 [08:59:31]Write i2c OK [08:59:31]MH_I2C_Read... [08:59:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:59:31]Read from MH i2c: E2 [08:59:31]MH_I2C_Read... [08:59:31]Read from MH i2c: E2 03 00 [08:59:31]MH_I2C_Read... [08:59:31]Read from MH i2c: E2 03 00 9F 44 00 90 00 57 [08:59:31]RAPDU: 90 00 [08:59:31]wFMCommunicate OK [08:59:31]wFMCommunicate request_size=4 [08:59:31]MH_SAM_APDU [08:59:31]CAPDU: 80 0D 03 02 [08:59:31]Write to MH i2c: E2 08 00 A0 44 80 0D 03 02 00 00 00 00 5F [08:59:31]Write i2c OK [08:59:31]MH_I2C_Read... [08:59:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:59:31]Read from MH i2c: E2 [08:59:31]MH_I2C_Read... [08:59:31]Read from MH i2c: E2 0B 00 [08:59:31]MH_I2C_Read... [08:59:31]Read from MH i2c: E2 0B 00 A0 44 00 00 64 9F DC 98 CF AA 66 90 00 B6 [08:59:31]RAPDU: 00 64 9F DC 98 CF AA 66 90 00 [08:59:31]wFMCommunicate OK [08:59:31]SAM_PROTO_SignData done [08:59:31]FM_MakeSignedData done [08:59:31]CreateOFDProtocolMessage [08:59:31]wFMCommunicate request_size=4 [08:59:31]MH_SAM_APDU [08:59:31]CAPDU: 80 11 00 00 [08:59:31]Write to MH i2c: E2 08 00 A1 44 80 11 00 00 00 00 00 00 5F [08:59:31]Write i2c OK [08:59:31]MH_I2C_Read... [08:59:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:59:31]Read from MH i2c: E2 [08:59:31]MH_I2C_Read... [08:59:31]Read from MH i2c: E2 17 00 [08:59:31]MH_I2C_Read... [08:59:31]Read from MH i2c: E2 17 00 A1 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 BB [08:59:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [08:59:31]wFMCommunicate OK [08:59:31]CreateOFDProtocolMessage done [08:59:31]OFDSenderStorePacket 45184 [08:59:31]StoreOFDPacket docnum=45184 [08:59:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 39 01 00 00 FE FE 31 01 85 50 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 32 38 33 33 32 33 06 04 33 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A0 D1 83 D1 81 D1 81 D0 BA D0 B0 D1 8F 20 D0 BC D0 B0 D1 80 D0 BA D0 B0 20 D0 BF D1 88 D0 B5 D0 BD 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 8B 00 00 00 00 13 04 06 00 10 8B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 8B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 0E 00 00 00 00 07 04 06 00 10 8B 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 FB 3B E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 80 B0 00 00 35 04 06 00 8A 61 66 DB C8 A6 00 64 9F DC 98 CF AA 66 [08:59:31]CheckFolder [08:59:31]dirname=/storage/ofd_packets [08:59:31]CheckFolder done [08:59:31]ProducePacketName [08:59:31]name=ofd_packets/00045184 [08:59:31]NVStorageSaveData ofd_packets/00045184 [08:59:31]File name is /storage/ofd_packets/00045184 [08:59:31]Write 343 bytes [08:59:31]NVStorageSaveData done [08:59:31]OFDSenderStorePacket done [08:59:31]KKMCreateOFDPacket done [08:59:31]NVStorageSaveData kkm_last_timestamp [08:59:31]File name is /storage/kkm_last_timestamp [08:59:31]Write 4 bytes [08:59:31]NVStorageSaveData done [08:59:31]ExternCall_PrintAddStr [08:59:31]wPrintStart [08:59:31]Write to MH i2c: 01 00 00 A2 44 E6 [08:59:31]Write i2c OK [08:59:31]MH_I2C_Read... [08:59:31]Read from MH i2c: 01 [08:59:31]MH_I2C_Read... [08:59:31]Read from MH i2c: 01 07 00 [08:59:31]MH_I2C_Read... [08:59:31]Read from MH i2c: 01 07 00 A2 44 00 00 00 00 00 FF 0F FB [08:59:31]RasterBufferAndPrint [08:59:31]line Счет N : (3)184148 [08:59:31]line ИНН: 02508201610067 [08:59:31]line Контрольно-Кассовый Чек [08:59:31]line ПРОДАЖА [08:59:31]line Товар: 4700000283323 [08:59:31]line Водка Русская марка пшен 0,5л [08:59:31]line 1.000 * 356.00 [08:59:31]line = 356.00 [08:59:31]line НДС 12% НСП 1% [08:59:31]line > о реализуемом товаре [08:59:31]line ИТОГО: 356.00 [08:59:31]line НСП 1% : 3.15 [08:59:31]line НДС 12% : 37.80 [08:59:31]line Наличными: 356.00 [08:59:31]line Безнал.: 0.00 [08:59:31]line Место: АЗС № 25 "Партнер Нефть" [08:59:31]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [08:59:31]line СНО: Общий режим [08:59:31]line Чек 21 03.03.2024 08:59 [08:59:31]line Смена: 331 ФФД: 1.0 [08:59:31]line ЗНМ: 0300000013 [08:59:31]line РНМ: 0000000000090572 [08:59:31]line Версия ККМ: 001 [08:59:31]line ФМ: 0000000000874796 [08:59:31]line ФД: 45184 [08:59:31]line ФПД: 152150942140582 [08:59:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T085939&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45184&fm=152150942140582&tin=02508201610067®Number=0000000000090572&sum=35600 [08:59:31]line 0 [08:59:31]OFD Sender: Processing packet 45184 [packets to send 17, broken 16] [08:59:31]ProducePacketName [08:59:31]name=ofd_packets/00045184 [08:59:31]OFD Sender: To server: pG, [08:59:31]CommunicateWithHost lk.salyk.kg:30040 [08:59:31]ConnectInit lk.salyk.kg [08:59:31]written 0, free lines is 4095 [08:59:31]Connected sock=10 [08:59:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 39 01 00 00 FE FE 31 01 85 50 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 32 38 33 33 32 33 06 04 33 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A0 D1 83 D1 81 D1 81 D0 BA D0 B0 D1 8F 20 D0 BC D0 B0 D1 80 D0 BA D0 B0 20 D0 BF D1 88 D0 B5 D0 BD 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 8B 00 00 00 00 13 04 06 00 10 8B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 8B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 0E 00 00 00 00 07 04 06 00 10 8B 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 FB 3B E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 80 B0 00 00 35 04 06 00 8A 61 66 DB C8 A6 00 64 9F DC 98 CF AA 66 [08:59:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 C7 23 47 00 ED 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 80 B0 00 00 F4 03 04 00 C1 E7 E3 65 B6 04 01 00 00 25 5C B9 8F 31 70 26 D2 [08:59:31]CommunicateWithHost err = 0 [08:59:31]CheckOFDResponse [08:59:31]1017 (14) - 77093643461234 [08:59:31]1041 (16) - 0000000000874796 [08:59:31]1040 (4) - 45184 [08:59:31]1012 (4) - 03.03.2024 03:00 [08:59:31]1206 (1) - 0 [08:59:31]OFD Sender: Remove packet 45184 [08:59:31]ProducePacketName [08:59:31]name=ofd_packets/00045184 [08:59:31]NVStorageDeleteData [08:59:31]Write to MH i2c: 01 00 00 CB 44 0F [08:59:31]Write i2c OK [08:59:31]MH_I2C_Read... [08:59:31]Read from MH i2c: 01 [08:59:31]MH_I2C_Read... [08:59:31]Read from MH i2c: 01 07 00 [08:59:31]MH_I2C_Read... [08:59:31]Read from MH i2c: 01 07 00 CB 44 00 00 00 00 00 FC 0C 1E [08:59:31]RasterBufferAndPrint [08:59:31]line [08:59:31]line [08:59:31]line [08:59:31]line [08:59:31]line [08:59:32]written 0, free lines is 3329 [08:59:32]MH_Cut [08:59:32]Write to MH i2c: D1 01 00 D2 44 01 E8 [08:59:32]Write i2c OK [08:59:32]MH_I2C_Read... [08:59:32]Read from MH i2c: D1 [08:59:32]MH_I2C_Read... [08:59:32]Read from MH i2c: D1 01 00 [08:59:32]MH_I2C_Read... [08:59:32]Read from MH i2c: D1 01 00 D2 44 00 E7 [08:59:32]Write to MH i2c: 01 00 00 D3 44 17 [08:59:32]Write i2c OK [08:59:32]MH_I2C_Read... [08:59:32]OFD Sender: No OFD packet to send [08:59:32]*** Cut start [08:59:32]*** Purtial cut [08:59:32]*** Stage 1: CUTSNS_PIN = 1 [08:59:34]Read from MH i2c: 01 [08:59:34]MH_I2C_Read... [08:59:34]*** Stop cut motor [08:59:34]*** Cut end [08:59:34]Read from MH i2c: 01 07 00 [08:59:34]MH_I2C_Read... [08:59:34]Read from MH i2c: 01 07 00 D3 44 00 00 00 00 00 FF 0F 2C [08:59:34]process_action close_receipt done [08:59:34]requested_data is exist [08:59:34]produce_requested_data [08:59:34]requested_item fm.sn is exist - process it [08:59:34]wFMCommunicate request_size=4 [08:59:34]MH_SAM_APDU [08:59:34]CAPDU: 80 11 00 00 [08:59:34]Write to MH i2c: E2 08 00 D4 44 80 11 00 00 00 00 00 00 92 [08:59:34]Write i2c OK [08:59:34]MH_I2C_Read... [08:59:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:59:34]Read from MH i2c: E2 [08:59:34]MH_I2C_Read... [08:59:34]Read from MH i2c: E2 17 00 [08:59:34]MH_I2C_Read... [08:59:34]Read from MH i2c: E2 17 00 D4 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 EE [08:59:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [08:59:34]wFMCommunicate OK [08:59:34]requested_item fd.num is exist - process it [08:59:34]SAM_PROTO_GetFieldsCounters [08:59:34]wFMCommunicate request_size=4 [08:59:34]MH_SAM_APDU [08:59:34]CAPDU: 80 13 00 00 [08:59:34]Write to MH i2c: E2 08 00 D5 44 80 13 00 00 00 00 00 00 95 [08:59:34]Write i2c OK [08:59:34]MH_I2C_Read... [08:59:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:59:34]Read from MH i2c: E2 [08:59:34]MH_I2C_Read... [08:59:34]Read from MH i2c: E2 62 00 [08:59:34]MH_I2C_Read... [08:59:34]Read from MH i2c: E2 62 00 D5 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 80 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 78 [08:59:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 80 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:59:34]wFMCommunicate OK [08:59:34]SAM_PROTO_GetFieldsCounters done [08:59:34]requested_item shift.num is exist - process it [08:59:34]requested_item shift.opened is exist - process it [08:59:34]req_shift_opened [08:59:34]FM_GetShiftState [08:59:34]SAM_PROTO_GetShiftState [08:59:34]wFMCommunicate request_size=4 [08:59:34]MH_SAM_APDU [08:59:34]CAPDU: 80 13 01 00 [08:59:34]Write to MH i2c: E2 08 00 D6 44 80 13 01 00 00 00 00 00 97 [08:59:34]Write i2c OK [08:59:34]MH_I2C_Read... [08:59:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:59:34]Read from MH i2c: E2 [08:59:34]MH_I2C_Read... [08:59:34]Read from MH i2c: E2 0E 00 [08:59:34]MH_I2C_Read... [08:59:34]Read from MH i2c: E2 0E 00 D6 44 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 CD [08:59:34]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [08:59:34]wFMCommunicate OK [08:59:34]SAM_PROTO_GetShiftState done [08:59:34]FM_GetShiftState done [08:59:34]req_shift_opened done [08:59:34]requested_item shift.open_date is exist - process it [08:59:34]req_shift_open_date [08:59:34]req_shift_open_date done [08:59:34]produce_requested_data done [08:59:34]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45184,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [08:59:34]process_action_free close_receipt [08:59:34]json_value_free [08:59:34]json_value_free done [08:59:34]process_json_proto returns [08:59:34]Send response to host [08:59:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45184,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [08:59:34]free response buf [08:59:34]execute_script done [08:59:34]execute_script returns [08:59:34]free content buf [08:59:34]Sock 9.Close socket [08:59:34]Sock 9.Thread stoped [08:59:37]OFD Sender: No OFD packet to send [08:59:42]OFD Sender: No OFD packet to send [08:59:47]OFD Sender: No OFD packet to send [08:59:52]OFD Sender: No OFD packet to send [08:59:57]OFD Sender: No OFD packet to send [09:00:02]OFD Sender: No OFD packet to send [09:00:07]OFD Sender: No OFD packet to send [09:00:12]OFD Sender: No OFD packet to send [09:00:17]OFD Sender: No OFD packet to send [09:00:22]OFD Sender: No OFD packet to send [09:00:27]OFD Sender: No OFD packet to send [09:00:32]OFD Sender: No OFD packet to send [09:00:37]OFD Sender: No OFD packet to send [09:00:42]OFD Sender: No OFD packet to send [09:00:47]OFD Sender: No OFD packet to send [09:00:52]OFD Sender: No OFD packet to send [09:00:57]OFD Sender: No OFD packet to send [09:01:02]OFD Sender: No OFD packet to send [09:01:07]OFD Sender: No OFD packet to send [09:01:12]OFD Sender: No OFD packet to send [09:01:17]OFD Sender: No OFD packet to send [09:01:22]OFD Sender: No OFD packet to send [09:01:27]OFD Sender: No OFD packet to send [09:01:32]OFD Sender: No OFD packet to send [09:01:37]OFD Sender: No OFD packet to send [09:01:42]OFD Sender: No OFD packet to send [09:01:47]OFD Sender: No OFD packet to send [09:01:52]OFD Sender: No OFD packet to send [09:01:57]OFD Sender: No OFD packet to send [09:02:02]OFD Sender: No OFD packet to send [09:02:07]OFD Sender: No OFD packet to send [09:02:12]OFD Sender: No OFD packet to send [09:02:17]OFD Sender: No OFD packet to send [09:02:22]OFD Sender: No OFD packet to send [09:02:27]OFD Sender: No OFD packet to send [09:02:32]OFD Sender: No OFD packet to send [09:02:37]OFD Sender: No OFD packet to send [09:02:42]OFD Sender: No OFD packet to send [09:02:47]OFD Sender: No OFD packet to send [09:02:52]OFD Sender: No OFD packet to send [09:02:57]OFD Sender: No OFD packet to send [09:03:02]OFD Sender: No OFD packet to send [09:03:07]OFD Sender: No OFD packet to send [09:03:12]OFD Sender: No OFD packet to send [09:03:17]OFD Sender: No OFD packet to send [09:03:22]OFD Sender: No OFD packet to send [09:03:27]OFD Sender: No OFD packet to send [09:03:32]OFD Sender: No OFD packet to send [09:03:37]OFD Sender: No OFD packet to send [09:03:42]OFD Sender: No OFD packet to send [09:03:47]OFD Sender: No OFD packet to send [09:03:52]OFD Sender: No OFD packet to send [09:03:57]OFD Sender: No OFD packet to send [09:04:02]OFD Sender: No OFD packet to send [09:04:07]OFD Sender: No OFD packet to send [09:04:12]OFD Sender: No OFD packet to send [09:04:17]OFD Sender: No OFD packet to send [09:04:22]OFD Sender: No OFD packet to send [09:04:27]OFD Sender: No OFD packet to send [09:04:32]OFD Sender: No OFD packet to send [09:04:37]OFD Sender: No OFD packet to send [09:04:42]OFD Sender: No OFD packet to send [09:04:47]OFD Sender: No OFD packet to send [09:04:52]OFD Sender: No OFD packet to send [09:04:57]OFD Sender: No OFD packet to send [09:05:02]OFD Sender: No OFD packet to send [09:05:07]OFD Sender: No OFD packet to send [09:05:12]OFD Sender: No OFD packet to send [09:05:17]OFD Sender: No OFD packet to send [09:05:22]OFD Sender: No OFD packet to send [09:05:27]OFD Sender: No OFD packet to send [09:05:32]OFD Sender: No OFD packet to send [09:05:37]OFD Sender: No OFD packet to send [09:05:42]OFD Sender: No OFD packet to send [09:05:47]OFD Sender: No OFD packet to send [09:05:52]OFD Sender: No OFD packet to send [09:05:57]OFD Sender: No OFD packet to send [09:06:02]OFD Sender: No OFD packet to send [09:06:07]OFD Sender: No OFD packet to send [09:06:12]OFD Sender: No OFD packet to send [09:06:17]OFD Sender: No OFD packet to send [09:06:22]OFD Sender: No OFD packet to send [09:06:27]OFD Sender: No OFD packet to send [09:06:32]OFD Sender: No OFD packet to send [09:06:37]OFD Sender: No OFD packet to send [09:06:42]OFD Sender: No OFD packet to send [09:06:47]OFD Sender: No OFD packet to send [09:06:52]OFD Sender: No OFD packet to send [09:06:57]OFD Sender: No OFD packet to send [09:07:02]OFD Sender: No OFD packet to send [09:07:07]OFD Sender: No OFD packet to send [09:07:12]OFD Sender: No OFD packet to send [09:07:17]OFD Sender: No OFD packet to send [09:07:22]OFD Sender: No OFD packet to send [09:07:27]OFD Sender: No OFD packet to send [09:07:32]OFD Sender: No OFD packet to send [09:07:37]OFD Sender: No OFD packet to send [09:07:42]OFD Sender: No OFD packet to send [09:07:47]OFD Sender: No OFD packet to send [09:07:52]OFD Sender: No OFD packet to send [09:07:57]OFD Sender: No OFD packet to send [09:08:02]OFD Sender: No OFD packet to send [09:08:07]OFD Sender: No OFD packet to send [09:08:12]OFD Sender: No OFD packet to send [09:08:17]OFD Sender: No OFD packet to send [09:08:22]OFD Sender: No OFD packet to send [09:08:27]OFD Sender: No OFD packet to send [09:08:32]OFD Sender: No OFD packet to send [09:08:37]OFD Sender: No OFD packet to send [09:08:42]OFD Sender: No OFD packet to send [09:08:47]OFD Sender: No OFD packet to send [09:08:52]OFD Sender: No OFD packet to send [09:08:57]OFD Sender: No OFD packet to send [09:09:02]OFD Sender: No OFD packet to send [09:09:07]OFD Sender: No OFD packet to send [09:09:12]OFD Sender: No OFD packet to send [09:09:17]OFD Sender: No OFD packet to send [09:09:22]OFD Sender: No OFD packet to send [09:09:27]OFD Sender: No OFD packet to send [09:09:32]OFD Sender: No OFD packet to send [09:09:37]OFD Sender: No OFD packet to send [09:09:42]OFD Sender: No OFD packet to send [09:09:47]OFD Sender: No OFD packet to send [09:09:52]OFD Sender: No OFD packet to send [09:09:57]OFD Sender: No OFD packet to send [09:10:02]OFD Sender: No OFD packet to send [09:10:07]OFD Sender: No OFD packet to send [09:10:12]OFD Sender: No OFD packet to send [09:10:17]OFD Sender: No OFD packet to send [09:10:22]OFD Sender: No OFD packet to send [09:10:27]OFD Sender: No OFD packet to send [09:10:32]OFD Sender: No OFD packet to send [09:10:37]OFD Sender: No OFD packet to send [09:10:42]OFD Sender: No OFD packet to send [09:10:47]OFD Sender: No OFD packet to send [09:10:52]OFD Sender: No OFD packet to send [09:10:57]OFD Sender: No OFD packet to send [09:11:02]OFD Sender: No OFD packet to send [09:11:07]OFD Sender: No OFD packet to send [09:11:12]OFD Sender: No OFD packet to send [09:11:17]OFD Sender: No OFD packet to send [09:11:22]OFD Sender: No OFD packet to send [09:11:27]OFD Sender: No OFD packet to send [09:11:32]OFD Sender: No OFD packet to send [09:11:37]OFD Sender: No OFD packet to send [09:11:42]OFD Sender: No OFD packet to send [09:11:47]OFD Sender: No OFD packet to send [09:11:52]OFD Sender: No OFD packet to send [09:11:57]OFD Sender: No OFD packet to send [09:12:02]OFD Sender: No OFD packet to send [09:12:07]OFD Sender: No OFD packet to send [09:12:12]OFD Sender: No OFD packet to send [09:12:17]OFD Sender: No OFD packet to send [09:12:22]OFD Sender: No OFD packet to send [09:12:27]OFD Sender: No OFD packet to send [09:12:32]OFD Sender: No OFD packet to send [09:12:37]OFD Sender: No OFD packet to send [09:12:42]OFD Sender: No OFD packet to send [09:12:47]OFD Sender: No OFD packet to send [09:12:52]OFD Sender: No OFD packet to send [09:12:57]OFD Sender: No OFD packet to send [09:13:02]OFD Sender: No OFD packet to send [09:13:07]OFD Sender: No OFD packet to send [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:28]OFD Sender: No OFD packet to send [09:13:33]OFD Sender: No OFD packet to send [09:13:38]OFD Sender: No OFD packet to send [09:13:43]OFD Sender: No OFD packet to send [09:13:48]OFD Sender: No OFD packet to send [09:13:53]OFD Sender: No OFD packet to send [09:13:58]OFD Sender: No OFD packet to send [09:14:03]OFD Sender: No OFD packet to send [09:14:08]OFD Sender: No OFD packet to send [09:14:13]OFD Sender: No OFD packet to send [09:14:18]OFD Sender: No OFD packet to send [09:14:23]OFD Sender: No OFD packet to send [09:14:28]OFD Sender: No OFD packet to send [09:14:33]OFD Sender: No OFD packet to send [09:14:38]OFD Sender: No OFD packet to send [09:14:43]OFD Sender: No OFD packet to send [09:14:48]OFD Sender: No OFD packet to send [09:14:53]OFD Sender: No OFD packet to send [09:14:58]OFD Sender: No OFD packet to send [09:15:03]OFD Sender: No OFD packet to send [09:15:08]OFD Sender: No OFD packet to send [09:15:13]OFD Sender: No OFD packet to send [09:15:18]OFD Sender: No OFD packet to send [09:15:23]OFD Sender: No OFD packet to send [09:15:28]OFD Sender: No OFD packet to send [09:15:33]OFD Sender: No OFD packet to send [09:15:38]OFD Sender: No OFD packet to send [09:15:43]OFD Sender: No OFD packet to send [09:15:48]OFD Sender: No OFD packet to send [09:15:53]OFD Sender: No OFD packet to send [09:15:58]OFD Sender: No OFD packet to send [09:16:03]OFD Sender: No OFD packet to send [09:16:08]OFD Sender: No OFD packet to send [09:16:13]OFD Sender: No OFD packet to send [09:16:18]OFD Sender: No OFD packet to send [09:16:23]OFD Sender: No OFD packet to send [09:16:28]OFD Sender: No OFD packet to send [09:16:33]OFD Sender: No OFD packet to send [09:16:38]OFD Sender: No OFD packet to send [09:16:43]OFD Sender: No OFD packet to send [09:16:48]OFD Sender: No OFD packet to send [09:16:53]OFD Sender: No OFD packet to send [09:16:58]OFD Sender: No OFD packet to send [09:17:03]OFD Sender: No OFD packet to send [09:17:08]OFD Sender: No OFD packet to send [09:17:13]OFD Sender: No OFD packet to send [09:17:18]OFD Sender: No OFD packet to send [09:17:23]OFD Sender: No OFD packet to send [09:17:28]OFD Sender: No OFD packet to send [09:17:33]OFD Sender: No OFD packet to send [09:17:38]OFD Sender: No OFD packet to send [09:17:43]OFD Sender: No OFD packet to send [09:17:48]OFD Sender: No OFD packet to send [09:17:53]OFD Sender: No OFD packet to send [09:17:58]OFD Sender: No OFD packet to send [09:18:03]OFD Sender: No OFD packet to send [09:18:08]OFD Sender: No OFD packet to send [09:18:13]OFD Sender: No OFD packet to send [09:18:18]OFD Sender: No OFD packet to send [09:18:23]OFD Sender: No OFD packet to send [09:18:28]OFD Sender: No OFD packet to send [09:18:33]OFD Sender: No OFD packet to send [09:18:38]OFD Sender: No OFD packet to send [09:18:43]OFD Sender: No OFD packet to send [09:18:48]OFD Sender: No OFD packet to send [09:18:53]OFD Sender: No OFD packet to send [09:18:58]OFD Sender: No OFD packet to send [09:19:03]OFD Sender: No OFD packet to send [09:19:08]OFD Sender: No OFD packet to send [09:19:13]OFD Sender: No OFD packet to send [09:19:18]OFD Sender: No OFD packet to send [09:19:23]OFD Sender: No OFD packet to send [09:19:25]accept exits with 7 [09:19:25]New connection [09:19:25]New thread 3067157860 created [09:19:25]Thread 3067014500 joined [09:19:25]Waiting for new connection... [09:19:25] Sock 7.Parse request [09:19:25]Sock 7.Check first char [09:19:25]Sock 7.First char is OK [09:19:25]request: POST /json_proto HTTP/1.0 [09:19:25]Method: POST [09:19:25]URL: /json_proto [09:19:25]Method is POST - this is cgi request [09:19:25]url: /json_proto [09:19:25]query_string will be loaded in cgi processing [09:19:25]execute_cgi json_proto POST (null) [09:19:25]execute_cgi path=json_proto method=POST [09:19:25]POST find Content-Length [09:19:25]Host: 172.17.48.198:8080 [09:19:25]Content-Length: 724 [09:19:25]Content-Type: application/json [09:19:25] [09:19:25]POST finish read [09:19:25]Found Content-Length = 724 [09:19:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184149", "tax_sys" : 0, "items" : [ { "code": "8901086040022", "name": "\u0416\u0438\u0434\u043A\u043E\u0441\u0442\u044C \u0441\u0442\u0435\u043A\u043B\u043E\u043E\u043C\u044B\u0432\u0430\u044E\u0449\u0430\u044F \u041F\u041D -20 4,5\u043B", "price" : 257.00, "quantity" : 1.000, "sum" : 257.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 257.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:19:25]execute_script... [09:19:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184149", "tax_sys" : 0, "items" : [ { "code": "8901086040022", "name": "\u0416\u0438\u0434\u043A\u043E\u0441\u0442\u044C \u0441\u0442\u0435\u043A\u043B\u043E\u043E\u043C\u044B\u0432\u0430\u044E\u0449\u0430\u044F \u041F\u041D -20 4,5\u043B", "price" : 257.00, "quantity" : 1.000, "sum" : 257.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 257.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:19:25]POST & json_proto [09:19:25]process_json_proto [09:19:25]json parsed OK: [09:19:25]protocol is kg_v1.0 [09:19:25]action value=close_receipt [09:19:25]process_action close_receipt [09:19:25]cmd_close_receipt [09:19:25]MH_GetDate [09:19:25]Write to MH i2c: F0 00 00 D7 44 0A [09:19:25]Write i2c OK [09:19:25]MH_I2C_Read... [09:19:25]Read from MH i2c: F0 [09:19:25]MH_I2C_Read... [09:19:25]Read from MH i2c: F0 09 00 [09:19:25]MH_I2C_Read... [09:19:25]Read from MH i2c: F0 09 00 D7 44 00 A8 40 E4 65 CE C4 D4 65 0F [09:19:25]GetLastDocTimeStamp 1709456379 [09:19:25]current date 1709457576 [09:19:25]FM_GetShiftState [09:19:25]SAM_PROTO_GetShiftState [09:19:25]wFMCommunicate request_size=4 [09:19:25]MH_SAM_APDU [09:19:25]CAPDU: 80 13 01 00 [09:19:25]Write to MH i2c: E2 08 00 D8 44 80 13 01 00 00 00 00 00 99 [09:19:25]Write i2c OK [09:19:25]MH_I2C_Read... [09:19:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:19:25]Read from MH i2c: E2 [09:19:25]MH_I2C_Read... [09:19:25]Read from MH i2c: E2 0E 00 [09:19:25]MH_I2C_Read... [09:19:25]Read from MH i2c: E2 0E 00 D8 44 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 CF [09:19:25]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [09:19:25]wFMCommunicate OK [09:19:25]SAM_PROTO_GetShiftState done [09:19:25]FM_GetShiftState done [09:19:25]opened in 1709425694 [09:19:25]opened+sec_in_day 1709512094 [09:19:25]quantity*price = 25700 [09:19:25]sum+1 = 25701 [09:19:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 257.00 НСП 1% : 2.27 НДС 12% : 27.29 Наличными: 257.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 22 03.03.2024 09:19 Смена: 331 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 ФМ: 0000000000874796 ФД: 45185 ФПД: 183708317530889 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T091936&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45185&fm=183708317530889&tin=02508201610067®Number=0000000000090572&sum=25700 0 [09:19:26]StoreToDocumentArchive [09:19:26]shift 331 fd 45185 [09:19:26]save to /storage/0331/doc_00045185 [09:19:26]save last doc name /storage/0331/doc_00045185 to /storage/kkm_last_doc_name [09:19:26]save OK [09:19:26]Clear old archive folders... [09:19:26]ProcessDocumentItem done err = 0, tmpTLVsize=304 [09:19:26]tlvbuf is 01C16000 [09:19:26]SAM_PROTO_ClearQueue [09:19:26]wFMCommunicate request_size=4 [09:19:26]MH_SAM_APDU [09:19:26]CAPDU: 80 09 00 00 [09:19:26]Write to MH i2c: E2 08 00 E5 44 80 09 00 00 00 00 00 00 9B [09:19:26]Write i2c OK [09:19:26]MH_I2C_Read... [09:19:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:19:26]Read from MH i2c: E2 [09:19:26]MH_I2C_Read... [09:19:26]Read from MH i2c: E2 03 00 [09:19:26]MH_I2C_Read... [09:19:26]Read from MH i2c: E2 03 00 E5 44 00 90 00 9D [09:19:26]RAPDU: 90 00 [09:19:26]wFMCommunicate OK [09:19:26]SAM_PROTO_ClearQueue done [09:19:26]KKMCreateOFDPacket [09:19:26]OFDProtocolAddRootSTLVToBuf [09:19:26]FM_MakeSignedData [09:19:26]FM_MakeSignedData [09:19:26]SAM_PROTO_SignData [09:19:26]wFMCommunicate request_size=4 [09:19:26]MH_SAM_APDU [09:19:26]CAPDU: 80 0D 01 02 [09:19:26]Write to MH i2c: E2 08 00 E6 44 80 0D 01 02 00 00 00 00 A3 [09:19:26]Write i2c OK [09:19:26]MH_I2C_Read... [09:19:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:19:26]Read from MH i2c: E2 [09:19:26]MH_I2C_Read... [09:19:26]Read from MH i2c: E2 03 00 [09:19:26]MH_I2C_Read... [09:19:26]Read from MH i2c: E2 03 00 E6 44 00 90 00 9E [09:19:26]RAPDU: 90 00 [09:19:26]wFMCommunicate OK [09:19:26]wFMCommunicate request_size=255 [09:19:26]MH_SAM_APDU [09:19:26]CAPDU: 80 0D 02 02 FA 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 32 32 06 04 3E 00 D0 96 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE D0 BE D0 BC D1 8B D0 B2 D0 B0 D1 8E D1 89 D0 B0 D1 8F 20 D0 9F D0 9D 20 2D 32 30 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 64 00 00 00 00 13 04 06 00 64 64 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 64 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 0A 00 00 00 00 07 04 06 00 64 64 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 A8 40 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 [09:19:26]Write to MH i2c: E2 02 01 E7 44 80 0D 02 02 FA 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 32 32 06 04 3E 00 D0 96 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE D0 BE D0 BC D1 8B D0 B2 D0 B0 D1 8E D1 89 D0 B0 D1 8F 20 D0 9F D0 9D 20 2D 32 30 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 64 00 00 00 00 13 04 06 00 64 64 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 64 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 0A 00 00 00 00 07 04 06 00 64 64 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 A8 40 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 00 00 4A [09:19:26]Write i2c OK [09:19:26]MH_I2C_Read... [09:19:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:19:27]Read from MH i2c: E2 [09:19:27]MH_I2C_Read... [09:19:27]Read from MH i2c: E2 03 00 [09:19:27]MH_I2C_Read... [09:19:27]Read from MH i2c: E2 03 00 E7 44 00 90 00 9F [09:19:27]RAPDU: 90 00 [09:19:27]wFMCommunicate OK [09:19:27]wFMCommunicate request_size=63 [09:19:27]MH_SAM_APDU [09:19:27]CAPDU: 80 0D 02 02 3A 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 81 B0 00 00 35 04 06 00 A7 14 ED 02 3B 09 [09:19:27]Write to MH i2c: E2 42 00 E8 44 80 0D 02 02 3A 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 81 B0 00 00 35 04 06 00 A7 14 ED 02 3B 09 00 00 16 [09:19:27]Write i2c OK [09:19:27]MH_I2C_Read... [09:19:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:19:27]Read from MH i2c: E2 [09:19:27]MH_I2C_Read... [09:19:27]Read from MH i2c: E2 03 00 [09:19:27]MH_I2C_Read... [09:19:27]Read from MH i2c: E2 03 00 E8 44 00 90 00 A0 [09:19:27]RAPDU: 90 00 [09:19:27]wFMCommunicate OK [09:19:27]wFMCommunicate request_size=4 [09:19:27]MH_SAM_APDU [09:19:27]CAPDU: 80 0D 03 02 [09:19:27]Write to MH i2c: E2 08 00 E9 44 80 0D 03 02 00 00 00 00 A8 [09:19:27]Write i2c OK [09:19:27]MH_I2C_Read... [09:19:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:19:27]Read from MH i2c: E2 [09:19:27]MH_I2C_Read... [09:19:27]Read from MH i2c: E2 0B 00 [09:19:27]MH_I2C_Read... [09:19:27]Read from MH i2c: E2 0B 00 E9 44 00 D4 44 A3 71 24 55 B4 DB 90 00 DD [09:19:27]RAPDU: D4 44 A3 71 24 55 B4 DB 90 00 [09:19:27]wFMCommunicate OK [09:19:27]SAM_PROTO_SignData done [09:19:27]FM_MakeSignedData done [09:19:27]CreateOFDProtocolMessage [09:19:27]wFMCommunicate request_size=4 [09:19:27]MH_SAM_APDU [09:19:27]CAPDU: 80 11 00 00 [09:19:27]Write to MH i2c: E2 08 00 EA 44 80 11 00 00 00 00 00 00 A8 [09:19:27]Write i2c OK [09:19:27]MH_I2C_Read... [09:19:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:19:27]Read from MH i2c: E2 [09:19:27]MH_I2C_Read... [09:19:27]Read from MH i2c: E2 17 00 [09:19:27]MH_I2C_Read... [09:19:27]Read from MH i2c: E2 17 00 EA 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 04 [09:19:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [09:19:27]wFMCommunicate OK [09:19:27]CreateOFDProtocolMessage done [09:19:27]OFDSenderStorePacket 45185 [09:19:27]StoreOFDPacket docnum=45185 [09:19:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 44 01 00 00 FE 85 3C 01 F4 CC 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 32 32 06 04 3E 00 D0 96 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE D0 BE D0 BC D1 8B D0 B2 D0 B0 D1 8E D1 89 D0 B0 D1 8F 20 D0 9F D0 9D 20 2D 32 30 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 64 00 00 00 00 13 04 06 00 64 64 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 64 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 0A 00 00 00 00 07 04 06 00 64 64 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 A8 40 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 81 B0 00 00 35 04 06 00 A7 14 ED 02 3B 09 D4 44 A3 71 24 55 B4 DB [09:19:27]CheckFolder [09:19:27]dirname=/storage/ofd_packets [09:19:27]CheckFolder done [09:19:27]ProducePacketName [09:19:27]name=ofd_packets/00045185 [09:19:27]NVStorageSaveData ofd_packets/00045185 [09:19:27]File name is /storage/ofd_packets/00045185 [09:19:27]Write 354 bytes [09:19:27]NVStorageSaveData done [09:19:27]OFDSenderStorePacket done [09:19:27]KKMCreateOFDPacket done [09:19:27]NVStorageSaveData kkm_last_timestamp [09:19:27]File name is /storage/kkm_last_timestamp [09:19:27]Write 4 bytes [09:19:27]NVStorageSaveData done [09:19:27]ExternCall_PrintAddStr [09:19:27]wPrintStart [09:19:27]Write to MH i2c: 01 00 00 EB 44 2F [09:19:27]Write i2c OK [09:19:27]MH_I2C_Read... [09:19:27]Read from MH i2c: 01 [09:19:27]MH_I2C_Read... [09:19:27]Read from MH i2c: 01 07 00 [09:19:27]MH_I2C_Read... [09:19:27]Read from MH i2c: 01 07 00 EB 44 00 00 00 00 00 FF 0F 44 [09:19:27]RasterBufferAndPrint [09:19:27]line Счет N : (3)184149 [09:19:27]line ИНН: 02508201610067 [09:19:27]line Контрольно-Кассовый Чек [09:19:27]line ПРОДАЖА [09:19:27]line Товар: 8901086040022 [09:19:27]line Жидкость стеклоомывающая ПН -20 4,5л [09:19:27]line 1.000 * 257.00 [09:19:27]line = 257.00 [09:19:27]line НДС 12% НСП 1% [09:19:27]line > о реализуемом товаре [09:19:27]line ИТОГО: 257.00 [09:19:27]line НСП 1% : 2.27 [09:19:27]line НДС 12% : 27.29 [09:19:27]line Наличными: 257.00 [09:19:27]line Безнал.: 0.00 [09:19:27]line Место: АЗС № 25 "Партнер Нефть" [09:19:27]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [09:19:27]line СНО: Общий режим [09:19:27]line Чек 22 03.03.2024 09:19 [09:19:27]line Смена: 331 ФФД: 1.0 [09:19:27]line ЗНМ: 0300000013 [09:19:27]line РНМ: 0000000000090572 [09:19:27]line Версия ККМ: 001 [09:19:27]line ФМ: 0000000000874796 [09:19:27]line ФД: 45185 [09:19:27]line ФПД: 183708317530889 [09:19:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T091936&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45185&fm=183708317530889&tin=02508201610067®Number=0000000000090572&sum=25700 [09:19:27]line 0 [09:19:27]OFD Sender: Processing packet 45185 [packets to send 17, broken 16] [09:19:27]ProducePacketName [09:19:27]name=ofd_packets/00045185 [09:19:27]OFD Sender: To server: pG, [09:19:27]CommunicateWithHost lk.salyk.kg:30040 [09:19:27]ConnectInit lk.salyk.kg [09:19:27]written 0, free lines is 4095 [09:19:27]Connected sock=10 [09:19:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 44 01 00 00 FE 85 3C 01 F4 CC 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 32 32 06 04 3E 00 D0 96 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE D0 BE D0 BC D1 8B D0 B2 D0 B0 D1 8E D1 89 D0 B0 D1 8F 20 D0 9F D0 9D 20 2D 32 30 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 64 00 00 00 00 13 04 06 00 64 64 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 64 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 0A 00 00 00 00 07 04 06 00 64 64 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 A8 40 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 81 B0 00 00 35 04 06 00 A7 14 ED 02 3B 09 D4 44 A3 71 24 55 B4 DB [09:19:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 C6 35 47 00 42 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 81 B0 00 00 F4 03 04 00 6D EC E3 65 B6 04 01 00 00 26 F3 A2 4A 72 69 15 55 [09:19:27]CommunicateWithHost err = 0 [09:19:27]CheckOFDResponse [09:19:27]1017 (14) - 77093643461234 [09:19:27]1041 (16) - 0000000000874796 [09:19:27]1040 (4) - 45185 [09:19:27]1012 (4) - 03.03.2024 03:20 [09:19:27]1206 (1) - 0 [09:19:27]OFD Sender: Remove packet 45185 [09:19:27]ProducePacketName [09:19:27]name=ofd_packets/00045185 [09:19:27]NVStorageDeleteData [09:19:28]Write to MH i2c: 01 00 00 14 45 59 [09:19:28]Write i2c OK [09:19:28]MH_I2C_Read... [09:19:28]Read from MH i2c: 01 [09:19:28]MH_I2C_Read... [09:19:28]Read from MH i2c: 01 07 00 [09:19:28]MH_I2C_Read... [09:19:28]Read from MH i2c: 01 07 00 14 45 00 00 00 00 00 04 0D 71 [09:19:28]RasterBufferAndPrint [09:19:28]line [09:19:28]line [09:19:28]line [09:19:28]line [09:19:28]line [09:19:28]written 0, free lines is 3338 [09:19:28]MH_Cut [09:19:28]Write to MH i2c: D1 01 00 1B 45 01 32 [09:19:28]Write i2c OK [09:19:28]MH_I2C_Read... [09:19:28]Read from MH i2c: D1 [09:19:28]MH_I2C_Read... [09:19:28]Read from MH i2c: D1 01 00 [09:19:28]MH_I2C_Read... [09:19:28]Read from MH i2c: D1 01 00 1B 45 00 31 [09:19:28]Write to MH i2c: 01 00 00 1C 45 61 [09:19:28]Write i2c OK [09:19:28]MH_I2C_Read... [09:19:28]OFD Sender: No OFD packet to send [09:19:28]*** Cut start [09:19:28]*** Purtial cut [09:19:28]*** Stage 1: CUTSNS_PIN = 1 [09:19:30]Read from MH i2c: 01 [09:19:30]MH_I2C_Read... [09:19:30]*** Stop cut motor [09:19:30]*** Cut end [09:19:30]Read from MH i2c: 01 07 00 [09:19:30]MH_I2C_Read... [09:19:30]Read from MH i2c: 01 07 00 1C 45 00 00 00 00 00 FF 0F 76 [09:19:30]process_action close_receipt done [09:19:30]requested_data is exist [09:19:30]produce_requested_data [09:19:30]requested_item fm.sn is exist - process it [09:19:30]wFMCommunicate request_size=4 [09:19:30]MH_SAM_APDU [09:19:30]CAPDU: 80 11 00 00 [09:19:30]Write to MH i2c: E2 08 00 1D 45 80 11 00 00 00 00 00 00 DC [09:19:30]Write i2c OK [09:19:30]MH_I2C_Read... [09:19:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:19:30]Read from MH i2c: E2 [09:19:30]MH_I2C_Read... [09:19:30]Read from MH i2c: E2 17 00 [09:19:30]MH_I2C_Read... [09:19:30]Read from MH i2c: E2 17 00 1D 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 38 [09:19:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [09:19:30]wFMCommunicate OK [09:19:30]requested_item fd.num is exist - process it [09:19:30]SAM_PROTO_GetFieldsCounters [09:19:30]wFMCommunicate request_size=4 [09:19:30]MH_SAM_APDU [09:19:30]CAPDU: 80 13 00 00 [09:19:30]Write to MH i2c: E2 08 00 1E 45 80 13 00 00 00 00 00 00 DF [09:19:30]Write i2c OK [09:19:30]MH_I2C_Read... [09:19:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:19:30]Read from MH i2c: E2 [09:19:30]MH_I2C_Read... [09:19:30]Read from MH i2c: E2 62 00 [09:19:30]MH_I2C_Read... [09:19:30]Read from MH i2c: E2 62 00 1E 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 81 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 C6 [09:19:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 81 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:19:30]wFMCommunicate OK [09:19:30]SAM_PROTO_GetFieldsCounters done [09:19:30]requested_item shift.num is exist - process it [09:19:30]requested_item shift.opened is exist - process it [09:19:30]req_shift_opened [09:19:30]FM_GetShiftState [09:19:30]SAM_PROTO_GetShiftState [09:19:30]wFMCommunicate request_size=4 [09:19:30]MH_SAM_APDU [09:19:30]CAPDU: 80 13 01 00 [09:19:30]Write to MH i2c: E2 08 00 1F 45 80 13 01 00 00 00 00 00 E1 [09:19:30]Write i2c OK [09:19:30]MH_I2C_Read... [09:19:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:19:30]Read from MH i2c: E2 [09:19:30]MH_I2C_Read... [09:19:30]Read from MH i2c: E2 0E 00 [09:19:30]MH_I2C_Read... [09:19:30]Read from MH i2c: E2 0E 00 1F 45 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 17 [09:19:30]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [09:19:30]wFMCommunicate OK [09:19:30]SAM_PROTO_GetShiftState done [09:19:30]FM_GetShiftState done [09:19:30]req_shift_opened done [09:19:30]requested_item shift.open_date is exist - process it [09:19:30]req_shift_open_date [09:19:30]req_shift_open_date done [09:19:30]produce_requested_data done [09:19:30]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45185,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [09:19:30]process_action_free close_receipt [09:19:30]json_value_free [09:19:30]json_value_free done [09:19:30]process_json_proto returns [09:19:30]Send response to host [09:19:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45185,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [09:19:30]free response buf [09:19:30]execute_script done [09:19:30]execute_script returns [09:19:30]free content buf [09:19:30]Sock 7.Close socket [09:19:30]Sock 7.Thread stoped [09:19:33]OFD Sender: No OFD packet to send [09:19:38]OFD Sender: No OFD packet to send [09:19:43]OFD Sender: No OFD packet to send [09:19:48]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: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:38]OFD Sender: No OFD packet to send [09:22:43]OFD Sender: No OFD packet to send [09:22:48]OFD Sender: No OFD packet to send [09:22:53]OFD Sender: No OFD packet to send [09:22:58]OFD Sender: No OFD packet to send [09:23:03]OFD Sender: No OFD packet to send [09:23:08]OFD Sender: No OFD packet to send [09:23:13]OFD Sender: No OFD packet to send [09:23:18]OFD Sender: No OFD packet to send [09:23:23]OFD Sender: No OFD packet to send [09:23:28]OFD Sender: No OFD packet to send [09:23:33]OFD Sender: No OFD packet to send [09:23:38]OFD Sender: No OFD packet to send [09:23:43]OFD Sender: No OFD packet to send [09:23:48]OFD Sender: No OFD packet to send [09:23:53]OFD Sender: No OFD packet to send [09:23:58]OFD Sender: No OFD packet to send [09:24:03]OFD Sender: No OFD packet to send [09:24:08]OFD Sender: No OFD packet to send [09:24:13]OFD Sender: No OFD packet to send [09:24:18]OFD Sender: No OFD packet to send [09:24:23]OFD Sender: No OFD packet to send [09:24:28]OFD Sender: No OFD packet to send [09:24:33]OFD Sender: No OFD packet to send [09:24:38]OFD Sender: No OFD packet to send [09:24:43]OFD Sender: No OFD packet to send [09:24:48]OFD Sender: No OFD packet to send [09:24:53]OFD Sender: No OFD packet to send [09:24:58]OFD Sender: No OFD packet to send [09:25:03]OFD Sender: No OFD packet to send [09:25:08]OFD Sender: No OFD packet to send [09:25:13]OFD Sender: No OFD packet to send [09:25:18]OFD Sender: No OFD packet to send [09:25:23]OFD Sender: No OFD packet to send [09:25:28]OFD Sender: No OFD packet to send [09:25:33]OFD Sender: No OFD packet to send [09:25:38]OFD Sender: No OFD packet to send [09:25:43]OFD Sender: No OFD packet to send [09:25:48]OFD Sender: No OFD packet to send [09:25:53]OFD Sender: No OFD packet to send [09:25:58]OFD Sender: No OFD packet to send [09:26:03]OFD Sender: No OFD packet to send [09:26:08]OFD Sender: No OFD packet to send [09:26:13]OFD Sender: No OFD packet to send [09:26:18]OFD Sender: No OFD packet to send [09:26:23]OFD Sender: No OFD packet to send [09:26:28]OFD Sender: No OFD packet to send [09:26:33]OFD Sender: No OFD packet to send [09:26:38]OFD Sender: No OFD packet to send [09:26:43]OFD Sender: No OFD packet to send [09:26:48]OFD Sender: No OFD packet to send [09:26:53]OFD Sender: No OFD packet to send [09:26:58]OFD Sender: No OFD packet to send [09:27:03]OFD Sender: No OFD packet to send [09:27:08]OFD Sender: No OFD packet to send [09:27:13]OFD Sender: No OFD packet to send [09:27:18]OFD Sender: No OFD packet to send [09:27:23]OFD Sender: No OFD packet to send [09:27:28]OFD Sender: No OFD packet to send [09:27:33]OFD Sender: No OFD packet to send [09:27:38]OFD Sender: No OFD packet to send [09:27:43]OFD Sender: No OFD packet to send [09:27:48]OFD Sender: No OFD packet to send [09:27:53]OFD Sender: No OFD packet to send [09:27:58]OFD Sender: No OFD packet to send [09:28:03]OFD Sender: No OFD packet to send [09:28:08]OFD Sender: No OFD packet to send [09:28:13]OFD Sender: No OFD packet to send [09:28:18]OFD Sender: No OFD packet to send [09:28:23]OFD Sender: No OFD packet to send [09:28:28]OFD Sender: No OFD packet to send [09:28:33]OFD Sender: No OFD packet to send [09:28:38]OFD Sender: No OFD packet to send [09:28:43]OFD Sender: No OFD packet to send [09:28:48]OFD Sender: No OFD packet to send [09:28:53]OFD Sender: No OFD packet to send [09:28:58]OFD Sender: No OFD packet to send [09:29:03]OFD Sender: No OFD packet to send [09:29:08]OFD Sender: No OFD packet to send [09:29:13]OFD Sender: No OFD packet to send [09:29:18]OFD Sender: No OFD packet to send [09:29:23]OFD Sender: No OFD packet to send [09:29:28]OFD Sender: No OFD packet to send [09:29:33]OFD Sender: No OFD packet to send [09:29:38]OFD Sender: No OFD packet to send [09:29:43]OFD Sender: No OFD packet to send [09:29:48]OFD Sender: No OFD packet to send [09:29:53]OFD Sender: No OFD packet to send [09:29:58]OFD Sender: No OFD packet to send [09:30:03]OFD Sender: No OFD packet to send [09:30:05]accept exits with 9 [09:30:05]New connection [09:30:05]New thread 3067014500 created [09:30:05]Thread 3067157860 joined [09:30:05]Waiting for new connection... [09:30:05] Sock 9.Parse request [09:30:05]Sock 9.Check first char [09:30:05]Sock 9.First char is OK [09:30:05]request: POST /json_proto HTTP/1.0 [09:30:05]Method: POST [09:30:05]URL: /json_proto [09:30:05]Method is POST - this is cgi request [09:30:05]url: /json_proto [09:30:05]query_string will be loaded in cgi processing [09:30:05]execute_cgi json_proto POST (null) [09:30:05]execute_cgi path=json_proto method=POST [09:30:05]POST find Content-Length [09:30:05]Host: 172.17.48.198:8080 [09:30:05]Content-Length: 1386 [09:30:05]Content-Type: application/json [09:30:05] [09:30:05]POST finish read [09:30:05]Found Content-Length = 1386 [09:30:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184150", "tax_sys" : 0, "items" : [ { "code": "4601025117542", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0440\u0443\u0442\u043C\u043E\u0442\u0438\u0432 \u0442\u0440\u043E\u043F\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043C\u0438\u043A\u0441 0,5", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000039210050", "name": "\u0410\u041A\u0426\u0418\u042F \u0424\u0440\u0435\u043D\u0447-\u0434\u043E\u0433 Sib \u0433\u043E\u0432\u044F\u0436\u044C\u044F 180\u0433", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 305.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:30:05]execute_script... [09:30:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184150", "tax_sys" : 0, "items" : [ { "code": "4601025117542", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0440\u0443\u0442\u043C\u043E\u0442\u0438\u0432 \u0442\u0440\u043E\u043F\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043C\u0438\u043A\u0441 0,5", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000039210050", "name": "\u0410\u041A\u0426\u0418\u042F \u0424\u0440\u0435\u043D\u0447-\u0434\u043E\u0433 Sib \u0433\u043E\u0432\u044F\u0436\u044C\u044F 180\u0433", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 305.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:30:05]POST & json_proto [09:30:05]process_json_proto [09:30:05]json parsed OK: [09:30:05]protocol is kg_v1.0 [09:30:05]action value=close_receipt [09:30:05]process_action close_receipt [09:30:05]cmd_close_receipt [09:30:05]MH_GetDate [09:30:05]Write to MH i2c: F0 00 00 20 45 54 [09:30:05]Write i2c OK [09:30:05]MH_I2C_Read... [09:30:05]Read from MH i2c: F0 [09:30:05]MH_I2C_Read... [09:30:05]Read from MH i2c: F0 09 00 [09:30:05]MH_I2C_Read... [09:30:05]Read from MH i2c: F0 09 00 20 45 00 28 43 E4 65 CE C4 D4 65 DC [09:30:05]GetLastDocTimeStamp 1709457576 [09:30:05]current date 1709458216 [09:30:05]FM_GetShiftState [09:30:05]SAM_PROTO_GetShiftState [09:30:05]wFMCommunicate request_size=4 [09:30:05]MH_SAM_APDU [09:30:05]CAPDU: 80 13 01 00 [09:30:05]Write to MH i2c: E2 08 00 21 45 80 13 01 00 00 00 00 00 E3 [09:30:05]Write i2c OK [09:30:05]MH_I2C_Read... [09:30:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:30:06]Read from MH i2c: E2 [09:30:06]MH_I2C_Read... [09:30:06]Read from MH i2c: E2 0E 00 [09:30:06]MH_I2C_Read... [09:30:06]Read from MH i2c: E2 0E 00 21 45 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 19 [09:30:06]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [09:30:06]wFMCommunicate OK [09:30:06]SAM_PROTO_GetShiftState done [09:30:06]FM_GetShiftState done [09:30:06]opened in 1709425694 [09:30:06]opened+sec_in_day 1709512094 [09:30:06]quantity*price = 8500 [09:30:06]sum+1 = 8501 [09:30:06]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000039210050 АКЦИЯ Френч-дог Sib говяжья 180г 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000480302 Напиток энерг Nitro манго-клуб 0.45 ж/б 1.000 * 90.00 = 90.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 305.00 НСП 1% : 2.70 НДС 12% : 32.39 Наличными: 305.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 23 03.03.2024 09:30 Смена: 331 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 ФМ: 0000000000874796 ФД: 45186 ФПД: 281024068458733 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T093016&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45186&fm=281024068458733&tin=02508201610067®Number=0000000000090572&sum=30500 0 [09:30:07]StoreToDocumentArchive [09:30:07]shift 331 fd 45186 [09:30:07]save to /storage/0331/doc_00045186 [09:30:07]save last doc name /storage/0331/doc_00045186 to /storage/kkm_last_doc_name [09:30:07]save OK [09:30:07]Clear old archive folders... [09:30:07]ProcessDocumentItem done err = 0, tmpTLVsize=570 [09:30:07]tlvbuf is 01C04DF0 [09:30:07]SAM_PROTO_ClearQueue [09:30:07]wFMCommunicate request_size=4 [09:30:07]MH_SAM_APDU [09:30:07]CAPDU: 80 09 00 00 [09:30:07]Write to MH i2c: E2 08 00 2E 45 80 09 00 00 00 00 00 00 E5 [09:30:07]Write i2c OK [09:30:07]MH_I2C_Read... [09:30:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:30:07]Read from MH i2c: E2 [09:30:07]MH_I2C_Read... [09:30:07]Read from MH i2c: E2 03 00 [09:30:07]MH_I2C_Read... [09:30:07]Read from MH i2c: E2 03 00 2E 45 00 90 00 E7 [09:30:07]RAPDU: 90 00 [09:30:07]wFMCommunicate OK [09:30:07]SAM_PROTO_ClearQueue done [09:30:07]KKMCreateOFDPacket [09:30:07]OFDProtocolAddRootSTLVToBuf [09:30:07]FM_MakeSignedData [09:30:07]FM_MakeSignedData [09:30:07]SAM_PROTO_SignData [09:30:07]wFMCommunicate request_size=4 [09:30:07]MH_SAM_APDU [09:30:07]CAPDU: 80 0D 01 02 [09:30:07]Write to MH i2c: E2 08 00 2F 45 80 0D 01 02 00 00 00 00 ED [09:30:07]Write i2c OK [09:30:07]MH_I2C_Read... [09:30:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:30:07]Read from MH i2c: E2 [09:30:07]MH_I2C_Read... [09:30:07]Read from MH i2c: E2 03 00 [09:30:07]MH_I2C_Read... [09:30:07]Read from MH i2c: E2 03 00 2F 45 00 90 00 E8 [09:30:07]RAPDU: 90 00 [09:30:07]wFMCommunicate OK [09:30:07]wFMCommunicate request_size=255 [09:30:07]MH_SAM_APDU [09:30:07]CAPDU: 80 0D 02 02 FA 03 00 3A 02 1E 04 01 00 01 23 04 89 00 8A 04 0D 00 34 36 30 31 30 32 35 31 31 37 35 34 32 06 04 45 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BC D0 BE D1 82 D0 B8 D0 B2 20 D1 82 D1 80 D0 BE D0 BF D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 D0 BC D0 B8 D0 BA D1 81 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 32 30 30 30 30 33 39 32 31 30 30 35 30 06 04 35 00 D0 90 D0 9A D0 A6 D0 98 D0 AF 20 D0 A4 D1 80 D0 B5 D0 BD D1 87 2D D0 B4 D0 BE D0 B3 20 53 69 62 20 D0 B3 D0 BE D0 B2 D1 8F D0 B6 D1 8C D1 8F 20 31 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 [09:30:07]Write to MH i2c: E2 02 01 30 45 80 0D 02 02 FA 00 03 00 3A 02 1E 04 01 00 01 23 04 89 00 8A 04 0D 00 34 36 30 31 30 32 35 31 31 37 35 34 32 06 04 45 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BC D0 BE D1 82 D0 B8 D0 B2 20 D1 82 D1 80 D0 BE D0 BF D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 D0 BC D0 B8 D0 BA D1 81 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 32 30 30 30 30 33 39 32 31 30 30 35 30 06 04 35 00 D0 90 D0 9A D0 A6 D0 98 D0 AF 20 D0 A4 D1 80 D0 B5 D0 BD D1 87 2D D0 B4 D0 BE D0 B3 20 53 69 62 20 D0 B3 D0 BE D0 B2 D1 8F D0 B6 D1 8C D1 8F 20 31 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 00 00 CC [09:30:07]Write i2c OK [09:30:07]MH_I2C_Read... [09:30:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:30:07]Read from MH i2c: E2 [09:30:07]MH_I2C_Read... [09:30:07]Read from MH i2c: E2 03 00 [09:30:07]MH_I2C_Read... [09:30:07]Read from MH i2c: E2 03 00 30 45 00 90 00 E9 [09:30:07]RAPDU: 90 00 [09:30:07]wFMCommunicate OK [09:30:07]wFMCommunicate request_size=255 [09:30:07]MH_SAM_APDU [09:30:07]CAPDU: 80 0D 02 02 FA 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 77 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 0C 00 00 00 00 07 04 06 00 24 77 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 28 [09:30:07]Write to MH i2c: E2 02 01 31 45 80 0D 02 02 FA 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 77 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 0C 00 00 00 00 07 04 06 00 24 77 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 28 00 00 53 [09:30:07]Write i2c OK [09:30:07]MH_I2C_Read... [09:30:08]Read from MH i2c: E2 [09:30:08]MH_I2C_Read... [09:30:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:30:08]Read from MH i2c: E2 03 00 [09:30:08]MH_I2C_Read... [09:30:08]Read from MH i2c: E2 03 00 31 45 00 90 00 EA [09:30:08]RAPDU: 90 00 [09:30:08]wFMCommunicate OK [09:30:08]wFMCommunicate request_size=79 [09:30:08]MH_SAM_APDU [09:30:08]CAPDU: 80 0D 02 02 4A 43 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 82 B0 00 00 35 04 06 00 FF 97 03 C6 18 ED [09:30:08]Write to MH i2c: E2 52 00 32 45 80 0D 02 02 4A 00 43 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 82 B0 00 00 35 04 06 00 FF 97 03 C6 18 ED 00 00 A5 [09:30:08]Write i2c OK [09:30:08]MH_I2C_Read... [09:30:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:30:08]Read from MH i2c: E2 [09:30:08]MH_I2C_Read... [09:30:08]Read from MH i2c: E2 03 00 [09:30:08]MH_I2C_Read... [09:30:08]Read from MH i2c: E2 03 00 32 45 00 90 00 EB [09:30:08]RAPDU: 90 00 [09:30:08]wFMCommunicate OK [09:30:08]wFMCommunicate request_size=4 [09:30:08]MH_SAM_APDU [09:30:08]CAPDU: 80 0D 03 02 [09:30:08]Write to MH i2c: E2 08 00 33 45 80 0D 03 02 00 00 00 00 F3 [09:30:08]Write i2c OK [09:30:08]MH_I2C_Read... [09:30:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:30:08]Read from MH i2c: E2 [09:30:08]MH_I2C_Read... [09:30:08]Read from MH i2c: E2 0B 00 [09:30:08]MH_I2C_Read... [09:30:08]Read from MH i2c: E2 0B 00 33 45 00 FD E6 FD 34 41 82 93 A5 90 00 03 [09:30:08]RAPDU: FD E6 FD 34 41 82 93 A5 90 00 [09:30:08]wFMCommunicate OK [09:30:08]SAM_PROTO_SignData done [09:30:08]FM_MakeSignedData done [09:30:08]CreateOFDProtocolMessage [09:30:08]wFMCommunicate request_size=4 [09:30:08]MH_SAM_APDU [09:30:08]CAPDU: 80 11 00 00 [09:30:08]Write to MH i2c: E2 08 00 34 45 80 11 00 00 00 00 00 00 F3 [09:30:08]Write i2c OK [09:30:08]MH_I2C_Read... [09:30:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:30:08]Read from MH i2c: E2 [09:30:08]MH_I2C_Read... [09:30:08]Read from MH i2c: E2 17 00 [09:30:08]MH_I2C_Read... [09:30:08]Read from MH i2c: E2 17 00 34 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 4F [09:30:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [09:30:08]wFMCommunicate OK [09:30:08]CreateOFDProtocolMessage done [09:30:08]OFDSenderStorePacket 45186 [09:30:08]StoreOFDPacket docnum=45186 [09:30:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4E 02 00 00 95 42 46 02 DA CC 5A 03 01 00 03 00 3A 02 1E 04 01 00 01 23 04 89 00 8A 04 0D 00 34 36 30 31 30 32 35 31 31 37 35 34 32 06 04 45 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BC D0 BE D1 82 D0 B8 D0 B2 20 D1 82 D1 80 D0 BE D0 BF D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 D0 BC D0 B8 D0 BA D1 81 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 32 30 30 30 30 33 39 32 31 30 30 35 30 06 04 35 00 D0 90 D0 9A D0 A6 D0 98 D0 AF 20 D0 A4 D1 80 D0 B5 D0 BD D1 87 2D D0 B4 D0 BE D0 B3 20 53 69 62 20 D0 B3 D0 BE D0 B2 D1 8F D0 B6 D1 8C D1 8F 20 31 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 77 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 0C 00 00 00 00 07 04 06 00 24 77 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 28 43 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 82 B0 00 00 35 04 06 00 FF 97 03 C6 18 ED FD E6 FD 34 41 82 93 A5 [09:30:08]CheckFolder [09:30:08]dirname=/storage/ofd_packets [09:30:08]CheckFolder done [09:30:08]ProducePacketName [09:30:08]name=ofd_packets/00045186 [09:30:08]NVStorageSaveData ofd_packets/00045186 [09:30:08]File name is /storage/ofd_packets/00045186 [09:30:08]Write 620 bytes [09:30:08]NVStorageSaveData done [09:30:08]OFDSenderStorePacket done [09:30:08]KKMCreateOFDPacket done [09:30:08]NVStorageSaveData kkm_last_timestamp [09:30:08]File name is /storage/kkm_last_timestamp [09:30:08]Write 4 bytes [09:30:08]NVStorageSaveData done [09:30:08]ExternCall_PrintAddStr [09:30:08]wPrintStart [09:30:08]Write to MH i2c: 01 00 00 35 45 7A [09:30:08]OFD Sender: Processing packet 45186 [packets to send 17, broken 16] [09:30:08]ProducePacketName [09:30:08]name=ofd_packets/00045186 [09:30:08]Write i2c OK [09:30:08]MH_I2C_Read... [09:30:08]OFD Sender: To server: pG, [09:30:08]CommunicateWithHost lk.salyk.kg:30040 [09:30:08]ConnectInit lk.salyk.kg [09:30:08]Read from MH i2c: 01 [09:30:08]MH_I2C_Read... [09:30:08]Read from MH i2c: 01 07 00 [09:30:08]MH_I2C_Read... [09:30:08]Read from MH i2c: 01 07 00 35 45 00 00 00 00 00 FF 0F 8F [09:30:08]RasterBufferAndPrint [09:30:08]line Счет N : (3)184150 [09:30:08]line ИНН: 02508201610067 [09:30:08]line Контрольно-Кассовый Чек [09:30:08]line ПРОДАЖА [09:30:08]line Товар: 4601025117542 [09:30:08]line Напиток Фрутмотив тропический микс 0,5 [09:30:08]line 1.000 * 85.00 [09:30:08]line = 85.00 [09:30:08]line НДС 12% НСП 1% [09:30:08]line > о реализуемом товаре [09:30:08]line Товар: 2000039210050 [09:30:08]line АКЦИЯ Френч-дог Sib говяжья 180г [09:30:08]line 1.000 * 130.00 [09:30:08]line = 130.00 [09:30:08]line НДС 12% НСП 1% [09:30:08]line > о реализуемом товаре [09:30:08]line Товар: 4700000480302 [09:30:08]line Напиток энерг Nitro манго-клуб 0.45 ж/б [09:30:08]line 1.000 * 90.00 [09:30:08]line = 90.00 [09:30:08]line НДС 12% НСП 1% [09:30:08]line > о реализуемом товаре [09:30:08]line ИТОГО: 305.00 [09:30:08]line НСП 1% : 2.70 [09:30:08]line НДС 12% : 32.39 [09:30:08]line Наличными: 305.00 [09:30:08]line Безнал.: 0.00 [09:30:08]line Место: АЗС № 25 "Партнер Нефть" [09:30:08]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [09:30:08]line СНО: Общий режим [09:30:08]line Чек 23 03.03.2024 09:30 [09:30:08]line Смена: 331 ФФД: 1.0 [09:30:08]line ЗНМ: 0300000013 [09:30:08]line РНМ: 0000000000090572 [09:30:08]line Версия ККМ: 001 [09:30:08]line ФМ: 0000000000874796 [09:30:08]line ФД: 45186 [09:30:08]line ФПД: 281024068458733 [09:30:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T093016&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45186&fm=281024068458733&tin=02508201610067®Number=0000000000090572&sum=30500 [09:30:08]line 0 [09:30:08]Connected sock=10 [09:30:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4E 02 00 00 95 42 46 02 DA CC 5A 03 01 00 03 00 3A 02 1E 04 01 00 01 23 04 89 00 8A 04 0D 00 34 36 30 31 30 32 35 31 31 37 35 34 32 06 04 45 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BC D0 BE D1 82 D0 B8 D0 B2 20 D1 82 D1 80 D0 BE D0 BF D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 D0 BC D0 B8 D0 BA D1 81 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 32 30 30 30 30 33 39 32 31 30 30 35 30 06 04 35 00 D0 90 D0 9A D0 A6 D0 98 D0 AF 20 D0 A4 D1 80 D0 B5 D0 BD D1 87 2D D0 B4 D0 BE D0 B3 20 53 69 62 20 D0 B3 D0 BE D0 B2 D1 8F D0 B6 D1 8C D1 8F 20 31 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 77 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 0C 00 00 00 00 07 04 06 00 24 77 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 28 43 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 82 B0 00 00 35 04 06 00 FF 97 03 C6 18 ED FD E6 FD 34 41 82 93 A5 [09:30:08]written 0, free lines is 4095 [09:30:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 19 25 47 00 DF 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 34 37 39 36 10 04 04 00 82 B0 00 00 F4 03 04 00 EE EE E3 65 B6 04 01 00 00 34 EA 02 2B E2 3A 5C 65 [09:30:08]CommunicateWithHost err = 0 [09:30:08]CheckOFDResponse [09:30:08]1017 (14) - 77093643461234 [09:30:08]1041 (16) - 0000000000874796 [09:30:08]1040 (4) - 45186 [09:30:08]1012 (4) - 03.03.2024 03:30 [09:30:08]1206 (1) - 0 [09:30:08]OFD Sender: Remove packet 45186 [09:30:08]ProducePacketName [09:30:08]name=ofd_packets/00045186 [09:30:08]NVStorageDeleteData [09:30:09]Write to MH i2c: 01 00 00 6C 45 B1 [09:30:09]Write i2c OK [09:30:09]MH_I2C_Read... [09:30:09]Read from MH i2c: 01 [09:30:09]MH_I2C_Read... [09:30:09]Read from MH i2c: 01 07 00 [09:30:09]MH_I2C_Read... [09:30:09]Read from MH i2c: 01 07 00 6C 45 00 00 00 00 00 36 0C FA [09:30:09]RasterBufferAndPrint [09:30:09]line [09:30:09]line [09:30:09]line [09:30:09]line [09:30:09]line [09:30:09]written 0, free lines is 3136 [09:30:09]MH_Cut [09:30:09]Write to MH i2c: D1 01 00 73 45 01 8A [09:30:09]Write i2c OK [09:30:09]MH_I2C_Read... [09:30:09]Read from MH i2c: D1 [09:30:09]MH_I2C_Read... [09:30:09]Read from MH i2c: D1 01 00 [09:30:09]MH_I2C_Read... [09:30:09]Read from MH i2c: D1 01 00 73 45 00 89 [09:30:09]Write to MH i2c: 01 00 00 74 45 B9 [09:30:09]Write i2c OK [09:30:09]MH_I2C_Read... [09:30:09]OFD Sender: No OFD packet to send [09:30:10]*** Cut start [09:30:10]*** Purtial cut [09:30:10]*** Stage 1: CUTSNS_PIN = 1 [09:30:12]Read from MH i2c: 01 [09:30:12]MH_I2C_Read... [09:30:12]*** Stop cut motor [09:30:12]*** Cut end [09:30:12]Read from MH i2c: 01 07 00 [09:30:12]MH_I2C_Read... [09:30:12]Read from MH i2c: 01 07 00 74 45 00 00 00 00 00 FF 0F CE [09:30:12]process_action close_receipt done [09:30:12]requested_data is exist [09:30:12]produce_requested_data [09:30:12]requested_item fm.sn is exist - process it [09:30:12]wFMCommunicate request_size=4 [09:30:12]MH_SAM_APDU [09:30:12]CAPDU: 80 11 00 00 [09:30:12]Write to MH i2c: E2 08 00 75 45 80 11 00 00 00 00 00 00 34 [09:30:12]Write i2c OK [09:30:12]MH_I2C_Read... [09:30:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:30:12]Read from MH i2c: E2 [09:30:12]MH_I2C_Read... [09:30:12]Read from MH i2c: E2 17 00 [09:30:12]MH_I2C_Read... [09:30:12]Read from MH i2c: E2 17 00 75 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 90 [09:30:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [09:30:12]wFMCommunicate OK [09:30:12]requested_item fd.num is exist - process it [09:30:12]SAM_PROTO_GetFieldsCounters [09:30:12]wFMCommunicate request_size=4 [09:30:12]MH_SAM_APDU [09:30:12]CAPDU: 80 13 00 00 [09:30:12]Write to MH i2c: E2 08 00 76 45 80 13 00 00 00 00 00 00 37 [09:30:12]Write i2c OK [09:30:12]MH_I2C_Read... [09:30:12]Read from MH i2c: E2 [09:30:12]MH_I2C_Read... [09:30:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:30:12]Read from MH i2c: E2 62 00 [09:30:12]MH_I2C_Read... [09:30:12]Read from MH i2c: E2 62 00 76 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 82 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 22 [09:30:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 82 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:30:12]wFMCommunicate OK [09:30:12]SAM_PROTO_GetFieldsCounters done [09:30:12]requested_item shift.num is exist - process it [09:30:12]requested_item shift.opened is exist - process it [09:30:12]req_shift_opened [09:30:12]FM_GetShiftState [09:30:12]SAM_PROTO_GetShiftState [09:30:12]wFMCommunicate request_size=4 [09:30:12]MH_SAM_APDU [09:30:12]CAPDU: 80 13 01 00 [09:30:12]Write to MH i2c: E2 08 00 77 45 80 13 01 00 00 00 00 00 39 [09:30:12]Write i2c OK [09:30:12]MH_I2C_Read... [09:30:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:30:12]Read from MH i2c: E2 [09:30:12]MH_I2C_Read... [09:30:12]Read from MH i2c: E2 0E 00 [09:30:12]MH_I2C_Read... [09:30:12]Read from MH i2c: E2 0E 00 77 45 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 6F [09:30:12]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [09:30:12]wFMCommunicate OK [09:30:12]SAM_PROTO_GetShiftState done [09:30:12]FM_GetShiftState done [09:30:12]req_shift_opened done [09:30:12]requested_item shift.open_date is exist - process it [09:30:12]req_shift_open_date [09:30:12]req_shift_open_date done [09:30:12]produce_requested_data done [09:30:12]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45186,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [09:30:12]process_action_free close_receipt [09:30:12]json_value_free [09:30:12]json_value_free done [09:30:12]process_json_proto returns [09:30:12]Send response to host [09:30:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45186,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [09:30:12]free response buf [09:30:12]execute_script done [09:30:12]execute_script returns [09:30:12]free content buf [09:30:12]Sock 9.Close socket [09:30:12]Sock 9.Thread stoped [09:30:14]OFD Sender: No OFD packet to send [09:30:19]OFD Sender: No OFD packet to send [09:30:24]OFD Sender: No OFD packet to send [09:30:29]OFD Sender: No OFD packet to send [09:30:34]OFD Sender: No OFD packet to send [09:30:39]OFD Sender: No OFD packet to send [09:30:44]OFD Sender: No OFD packet to send [09:30:49]OFD Sender: No OFD packet to send [09:30:54]OFD Sender: No OFD packet to send [09:30:59]OFD Sender: No OFD packet to send [09:31:04]OFD Sender: No OFD packet to send [09:31:09]OFD Sender: No OFD packet to send [09:31:14]OFD Sender: No OFD packet to send [09:31:19]OFD Sender: No OFD packet to send [09:31:24]OFD Sender: No OFD packet to send [09:31:29]OFD Sender: No OFD packet to send [09:31:34]OFD Sender: No OFD packet to send [09:31:39]OFD Sender: No OFD packet to send [09:31:44]OFD Sender: No OFD packet to send [09:31:49]OFD Sender: No OFD packet to send [09:31:54]OFD Sender: No OFD packet to send [09:31:59]OFD Sender: No OFD packet to send [09:32:04]OFD Sender: No OFD packet to send [09:32:09]OFD Sender: No OFD packet to send [09:32:14]OFD Sender: No OFD packet to send [09:32:19]OFD Sender: No OFD packet to send [09:32:24]OFD Sender: No OFD packet to send [09:32:29]OFD Sender: No OFD packet to send [09:32:34]OFD Sender: No OFD packet to send [09:32:39]OFD Sender: No OFD packet to send [09:32:44]OFD Sender: No OFD packet to send [09:32:49]OFD Sender: No OFD packet to send [09:32:54]OFD Sender: No OFD packet to send [09:32:59]OFD Sender: No OFD packet to send [09:33:04]OFD Sender: No OFD packet to send [09:33:09]OFD Sender: No OFD packet to send [09:33:14]OFD Sender: No OFD packet to send [09:33:19]OFD Sender: No OFD packet to send [09:33:24]OFD Sender: No OFD packet to send [09:33:29]OFD Sender: No OFD packet to send [09:33:34]OFD Sender: No OFD packet to send [09:33:39]OFD Sender: No OFD packet to send [09:33:44]OFD Sender: No OFD packet to send [09:33:49]OFD Sender: No OFD packet to send [09:33:54]OFD Sender: No OFD packet to send [09:33:59]OFD Sender: No OFD packet to send [09:34:04]OFD Sender: No OFD packet to send [09:34:09]OFD Sender: No OFD packet to send [09:34:14]OFD Sender: No OFD packet to send [09:34:19]OFD Sender: No OFD packet to send [09:34:24]OFD Sender: No OFD packet to send [09:34:29]OFD Sender: No OFD packet to send [09:34:34]OFD Sender: No OFD packet to send [09:34:39]OFD Sender: No OFD packet to send [09:34:44]OFD Sender: No OFD packet to send [09:34:49]OFD Sender: No OFD packet to send [09:34:54]OFD Sender: No OFD packet to send [09:34:59]OFD Sender: No OFD packet to send [09:35:04]OFD Sender: No OFD packet to send [09:35:09]OFD Sender: No OFD packet to send [09:35:14]OFD Sender: No OFD packet to send [09:35:19]OFD Sender: No OFD packet to send [09:35:24]OFD Sender: No OFD packet to send [09:35:29]OFD Sender: No OFD packet to send [09:35:34]OFD Sender: No OFD packet to send [09:35:39]OFD Sender: No OFD packet to send [09:35:44]OFD Sender: No OFD packet to send [09:35:49]OFD Sender: No OFD packet to send [09:35:54]OFD Sender: No OFD packet to send [09:35:59]OFD Sender: No OFD packet to send [09:36:04]OFD Sender: No OFD packet to send [09:36:09]OFD Sender: No OFD packet to send [09:36:14]OFD Sender: No OFD packet to send [09:36:19]OFD Sender: No OFD packet to send [09:36:24]OFD Sender: No OFD packet to send [09:36:29]OFD Sender: No OFD packet to send [09:36:34]OFD Sender: No OFD packet to send [09:36:39]OFD Sender: No OFD packet to send [09:36:44]OFD Sender: No OFD packet to send [09:36:49]OFD Sender: No OFD packet to send [09:36:54]OFD Sender: No OFD packet to send [09:36:59]OFD Sender: No OFD packet to send [09:37:04]OFD Sender: No OFD packet to send [09:37:09]OFD Sender: No OFD packet to send [09:37:14]OFD Sender: No OFD packet to send [09:37:19]OFD Sender: No OFD packet to send [09:37:24]OFD Sender: No OFD packet to send [09:37:29]OFD Sender: No OFD packet to send [09:37:34]OFD Sender: No OFD packet to send [09:37:39]OFD Sender: No OFD packet to send [09:37:44]OFD Sender: No OFD packet to send [09:37:49]OFD Sender: No OFD packet to send [09:37:54]OFD Sender: No OFD packet to send [09:37:59]OFD Sender: No OFD packet to send [09:38:04]OFD Sender: No OFD packet to send [09:38:09]OFD Sender: No OFD packet to send [09:38:14]OFD Sender: No OFD packet to send [09:38:19]OFD Sender: No OFD packet to send [09:38:24]OFD Sender: No OFD packet to send [09:38:29]OFD Sender: No OFD packet to send [09:38:34]OFD Sender: No OFD packet to send [09:38:39]OFD Sender: No OFD packet to send [09:38:44]OFD Sender: No OFD packet to send [09:38:49]OFD Sender: No OFD packet to send [09:38:54]OFD Sender: No OFD packet to send [09:38:59]OFD Sender: No OFD packet to send [09:39:04]OFD Sender: No OFD packet to send [09:39:09]OFD Sender: No OFD packet to send [09:39:14]OFD Sender: No OFD packet to send [09:39:19]OFD Sender: No OFD packet to send [09:39:24]OFD Sender: No OFD packet to send [09:39:29]OFD Sender: No OFD packet to send [09:39:34]OFD Sender: No OFD packet to send [09:39:39]OFD Sender: No OFD packet to send [09:39:44]OFD Sender: No OFD packet to send [09:39:49]OFD Sender: No OFD packet to send [09:39:54]OFD Sender: No OFD packet to send [09:39:59]OFD Sender: No OFD packet to send [09:40:04]OFD Sender: No OFD packet to send [09:40:05]accept exits with 7 [09:40:05]New connection [09:40:05]New thread 3067157860 created [09:40:05]Thread 3067014500 joined [09:40:05]Waiting for new connection... [09:40:05] Sock 7.Parse request [09:40:05]Sock 7.Check first char [09:40:05]Sock 7.First char is OK [09:40:05]request: POST /json_proto HTTP/1.0 [09:40:05]Method: POST [09:40:05]URL: /json_proto [09:40:05]Method is POST - this is cgi request [09:40:05]url: /json_proto [09:40:05]query_string will be loaded in cgi processing [09:40:05]execute_cgi json_proto POST (null) [09:40:05]execute_cgi path=json_proto method=POST [09:40:05]POST find Content-Length [09:40:05]Host: 172.17.48.198:8080 [09:40:05]Content-Length: 833 [09:40:05]Content-Type: application/json [09:40:05] [09:40:05]POST finish read [09:40:05]Found Content-Length = 833 [09:40:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184153", "tax_sys" : 0, "items" : [ { "code": "4800452010610", "name": "\u041A\u043E\u0444\u0435 \u043A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL (\u0410\u041A\u0426\u0418\u042F)", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:40:05]execute_script... [09: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 : (3)184153", "tax_sys" : 0, "items" : [ { "code": "4800452010610", "name": "\u041A\u043E\u0444\u0435 \u043A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL (\u0410\u041A\u0426\u0418\u042F)", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:40:05]POST & json_proto [09:40:05]process_json_proto [09:40:05]json parsed OK: [09:40:05]protocol is kg_v1.0 [09:40:05]action value=close_receipt [09:40:05]process_action close_receipt [09:40:05]cmd_close_receipt [09:40:05]MH_GetDate [09:40:05]Write to MH i2c: F0 00 00 78 45 AC [09:40:05]Write i2c OK [09:40:05]MH_I2C_Read... [09:40:05]Read from MH i2c: F0 [09:40:05]MH_I2C_Read... [09:40:05]Read from MH i2c: F0 09 00 [09:40:05]MH_I2C_Read... [09:40:05]Read from MH i2c: F0 09 00 78 45 00 80 45 E4 65 CE C4 D4 65 8E [09:40:05]GetLastDocTimeStamp 1709458216 [09:40:05]current date 1709458816 [09:40:05]FM_GetShiftState [09:40:05]SAM_PROTO_GetShiftState [09:40:05]wFMCommunicate request_size=4 [09:40:05]MH_SAM_APDU [09:40:05]CAPDU: 80 13 01 00 [09:40:05]Write to MH i2c: E2 08 00 79 45 80 13 01 00 00 00 00 00 3B [09:40:05]Write i2c OK [09:40:05]MH_I2C_Read... [09:40:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:05]Read from MH i2c: E2 [09:40:05]MH_I2C_Read... [09:40:05]Read from MH i2c: E2 0E 00 [09:40:05]MH_I2C_Read... [09:40:05]Read from MH i2c: E2 0E 00 79 45 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 71 [09:40:05]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [09:40:05]wFMCommunicate OK [09:40:05]SAM_PROTO_GetShiftState done [09:40:05]FM_GetShiftState done [09:40:05]opened in 1709425694 [09:40:05]opened+sec_in_day 1709512094 [09:40:05]quantity*price = 12000 [09:40:05]sum+1 = 12001 [09:40:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 120.00 НСП 1% : 1.06 НДС 12% : 12.74 Наличными: 0.00 Безнал.: 120.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 24 03.03.2024 09:40 Смена: 331 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874796 ФД: 45187 ФПД: 141590410931157 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T094016&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45187&fm=141590410931157&tin=02508201610067®Number=0000000000090572&sum=12000 0 [09:40:06]StoreToDocumentArchive [09:40:06]shift 331 fd 45187 [09:40:06]save to /storage/0331/doc_00045187 [09:40:06]save last doc name /storage/0331/doc_00045187 to /storage/kkm_last_doc_name [09:40:06]save OK [09:40:06]Clear old archive folders... [09:40:06]ProcessDocumentItem done err = 0, tmpTLVsize=283 [09:40:06]tlvbuf is 01AFD0F0 [09:40:06]SAM_PROTO_ClearQueue [09:40:06]wFMCommunicate request_size=4 [09:40:06]MH_SAM_APDU [09:40:06]CAPDU: 80 09 00 00 [09:40:06]Write to MH i2c: E2 08 00 86 45 80 09 00 00 00 00 00 00 3D [09:40:06]Write i2c OK [09:40:06]MH_I2C_Read... [09:40:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:40:06]Read from MH i2c: E2 [09:40:06]MH_I2C_Read... [09:40:06]Read from MH i2c: E2 03 00 [09:40:06]MH_I2C_Read... [09:40:06]Read from MH i2c: E2 03 00 86 45 00 90 00 3F [09:40:06]RAPDU: 90 00 [09:40:06]wFMCommunicate OK [09:40:06]SAM_PROTO_ClearQueue done [09:40:06]KKMCreateOFDPacket [09:40:06]OFDProtocolAddRootSTLVToBuf [09:40:06]FM_MakeSignedData [09:40:06]FM_MakeSignedData [09:40:06]SAM_PROTO_SignData [09:40:06]wFMCommunicate request_size=4 [09:40:06]MH_SAM_APDU [09:40:06]CAPDU: 80 0D 01 02 [09:40:06]Write to MH i2c: E2 08 00 87 45 80 0D 01 02 00 00 00 00 45 [09:40:06]Write i2c OK [09:40:06]MH_I2C_Read... [09:40:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:40:06]Read from MH i2c: E2 [09:40:06]MH_I2C_Read... [09:40:06]Read from MH i2c: E2 03 00 [09:40:06]MH_I2C_Read... [09:40:06]Read from MH i2c: E2 03 00 87 45 00 90 00 40 [09:40:06]RAPDU: 90 00 [09:40:06]wFMCommunicate OK [09:40:06]wFMCommunicate request_size=255 [09:40:06]MH_SAM_APDU [09:40:06]CAPDU: 80 0D 02 02 FA 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 38 30 30 34 35 32 30 31 30 36 31 30 06 04 29 00 D0 9A D0 BE D1 84 D0 B5 20 D0 BA D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 20 28 D0 90 D0 9A D0 A6 D0 98 D0 AF 29 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 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 2E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 80 45 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 [09:40:06]Write to MH i2c: E2 02 01 88 45 80 0D 02 02 FA 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 38 30 30 34 35 32 30 31 30 36 31 30 06 04 29 00 D0 9A D0 BE D1 84 D0 B5 20 D0 BA D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 20 28 D0 90 D0 9A D0 A6 D0 98 D0 AF 29 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 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 2E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 80 45 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 00 00 77 [09:40:06]Write i2c OK [09:40:06]MH_I2C_Read... [09:40:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:40:06]Read from MH i2c: E2 [09:40:06]MH_I2C_Read... [09:40:06]Read from MH i2c: E2 03 00 [09:40:06]MH_I2C_Read... [09:40:06]Read from MH i2c: E2 03 00 88 45 00 90 00 41 [09:40:06]RAPDU: 90 00 [09:40:06]wFMCommunicate OK [09:40:06]wFMCommunicate request_size=42 [09:40:06]MH_SAM_APDU [09:40:06]CAPDU: 80 0D 02 02 25 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 83 B0 00 00 35 04 06 00 80 C6 96 25 AB D5 [09:40:06]Write to MH i2c: E2 2D 00 89 45 80 0D 02 02 25 00 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 83 B0 00 00 35 04 06 00 80 C6 96 25 AB D5 00 00 DA [09:40:06]Write i2c OK [09:40:06]MH_I2C_Read... [09:40:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:40:07]Read from MH i2c: E2 [09:40:07]MH_I2C_Read... [09:40:07]Read from MH i2c: E2 03 00 [09:40:07]MH_I2C_Read... [09:40:07]Read from MH i2c: E2 03 00 89 45 00 90 00 42 [09:40:07]RAPDU: 90 00 [09:40:07]wFMCommunicate OK [09:40:07]wFMCommunicate request_size=4 [09:40:07]MH_SAM_APDU [09:40:07]CAPDU: 80 0D 03 02 [09:40:07]Write to MH i2c: E2 08 00 8A 45 80 0D 03 02 00 00 00 00 4A [09:40:07]Write i2c OK [09:40:07]MH_I2C_Read... [09:40:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:40:07]Read from MH i2c: E2 [09:40:07]MH_I2C_Read... [09:40:07]Read from MH i2c: E2 0B 00 [09:40:07]MH_I2C_Read... [09:40:07]Read from MH i2c: E2 0B 00 8A 45 00 80 48 E9 84 5B C0 08 4D 90 00 F0 [09:40:07]RAPDU: 80 48 E9 84 5B C0 08 4D 90 00 [09:40:07]wFMCommunicate OK [09:40:07]SAM_PROTO_SignData done [09:40:07]FM_MakeSignedData done [09:40:07]CreateOFDProtocolMessage [09:40:07]wFMCommunicate request_size=4 [09:40:07]MH_SAM_APDU [09:40:07]CAPDU: 80 11 00 00 [09:40:07]Write to MH i2c: E2 08 00 8B 45 80 11 00 00 00 00 00 00 4A [09:40:07]Write i2c OK [09:40:07]MH_I2C_Read... [09:40:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:07]Read from MH i2c: E2 [09:40:07]MH_I2C_Read... [09:40:07]Read from MH i2c: E2 17 00 [09:40:07]MH_I2C_Read... [09:40:07]Read from MH i2c: E2 17 00 8B 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 A6 [09:40:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [09:40:07]wFMCommunicate OK [09:40:07]CreateOFDProtocolMessage done [09:40:07]OFDSenderStorePacket 45187 [09:40:07]StoreOFDPacket docnum=45187 [09:40:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 2F 01 00 00 6D E1 27 01 E4 1C 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 38 30 30 34 35 32 30 31 30 36 31 30 06 04 29 00 D0 9A D0 BE D1 84 D0 B5 20 D0 BA D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 20 28 D0 90 D0 9A D0 A6 D0 98 D0 AF 29 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 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 2E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 80 45 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 83 B0 00 00 35 04 06 00 80 C6 96 25 AB D5 80 48 E9 84 5B C0 08 4D [09:40:07]CheckFolder [09:40:07]dirname=/storage/ofd_packets [09:40:07]CheckFolder done [09:40:07]ProducePacketName [09:40:07]name=ofd_packets/00045187 [09:40:07]NVStorageSaveData ofd_packets/00045187 [09:40:07]File name is /storage/ofd_packets/00045187 [09:40:07]Write 333 bytes [09:40:07]NVStorageSaveData done [09:40:07]OFDSenderStorePacket done [09:40:07]KKMCreateOFDPacket done [09:40:07]NVStorageSaveData kkm_last_timestamp [09:40:07]File name is /storage/kkm_last_timestamp [09:40:07]Write 4 bytes [09:40:07]NVStorageSaveData done [09:40:07]ExternCall_PrintAddStr [09:40:07]wPrintStart [09:40:07]Write to MH i2c: 01 00 00 8C 45 D1 [09:40:07]Write i2c OK [09:40:07]MH_I2C_Read... [09:40:07]Read from MH i2c: 01 [09:40:07]MH_I2C_Read... [09:40:07]Read from MH i2c: 01 07 00 [09:40:07]MH_I2C_Read... [09:40:07]Read from MH i2c: 01 07 00 8C 45 00 00 00 00 00 FF 0F E6 [09:40:07]RasterBufferAndPrint [09:40:07]line Счет N : (3)184153 [09:40:07]line ИНН: 02508201610067 [09:40:07]line Контрольно-Кассовый Чек [09:40:07]line ПРОДАЖА [09:40:07]line Товар: 4800452010610 [09:40:07]line Кофе капучино XL (АКЦИЯ) [09:40:07]line 1.000 * 120.00 [09:40:07]line = 120.00 [09:40:07]line НДС 12% НСП 1% [09:40:07]line > о реализуемом товаре [09:40:07]line ИТОГО: 120.00 [09:40:07]line НСП 1% : 1.06 [09:40:07]line НДС 12% : 12.74 [09:40:07]line Наличными: 0.00 [09:40:07]line Безнал.: 120.00 [09:40:07]line Место: АЗС № 25 "Партнер Нефть" [09:40:07]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [09:40:07]line СНО: Общий режим [09:40:07]line Чек 24 03.03.2024 09:40 [09:40:07]line Смена: 331 ФФД: 1.0 [09:40:07]line ЗНМ: 0300000013 [09:40:07]line РНМ: 0000000000090572 [09:40:07]line Версия ККМ: 001 [09:40:07]line Платежная система: О! деньги [09:40:07]line ФМ: 0000000000874796 [09:40:07]line ФД: 45187 [09:40:07]line ФПД: 141590410931157 [09:40:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T094016&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45187&fm=141590410931157&tin=02508201610067®Number=0000000000090572&sum=12000 [09:40:07]line 0 [09:40:07]OFD Sender: Processing packet 45187 [packets to send 17, broken 16] [09:40:07]ProducePacketName [09:40:07]name=ofd_packets/00045187 [09:40:07]OFD Sender: To server: pG, [09:40:07]CommunicateWithHost lk.salyk.kg:30040 [09:40:07]ConnectInit lk.salyk.kg [09:40:07]written 0, free lines is 4095 [09:40:07]Connected sock=10 [09:40:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 2F 01 00 00 6D E1 27 01 E4 1C 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 38 30 30 34 35 32 30 31 30 36 31 30 06 04 29 00 D0 9A D0 BE D1 84 D0 B5 20 D0 BA D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 20 28 D0 90 D0 9A D0 A6 D0 98 D0 AF 29 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 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 2E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 80 45 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 83 B0 00 00 35 04 06 00 80 C6 96 25 AB D5 80 48 E9 84 5B C0 08 4D [09:40:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 E1 C0 47 00 23 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 83 B0 00 00 F4 03 04 00 45 F1 E3 65 B6 04 01 00 00 23 5A 48 A8 64 FC BD 93 [09:40:07]CommunicateWithHost err = 0 [09:40:07]CheckOFDResponse [09:40:07]1017 (14) - 77093643461234 [09:40:07]1041 (16) - 0000000000874796 [09:40:07]1040 (4) - 45187 [09:40:07]1012 (4) - 03.03.2024 03:40 [09:40:07]1206 (1) - 0 [09:40:07]OFD Sender: Remove packet 45187 [09:40:07]ProducePacketName [09:40:07]name=ofd_packets/00045187 [09:40:07]NVStorageDeleteData [09:40:07]Write to MH i2c: 01 00 00 B6 45 FB [09:40:07]Write i2c OK [09:40:07]MH_I2C_Read... [09:40:07]Read from MH i2c: 01 [09:40:07]MH_I2C_Read... [09:40:07]Read from MH i2c: 01 07 00 [09:40:07]MH_I2C_Read... [09:40:07]Read from MH i2c: 01 07 00 B6 45 00 00 00 00 00 F9 0C 07 [09:40:07]RasterBufferAndPrint [09:40:07]line [09:40:07]line [09:40:07]line [09:40:07]line [09:40:07]line [09:40:07]written 0, free lines is 3330 [09:40:07]MH_Cut [09:40:07]Write to MH i2c: D1 01 00 BD 45 01 D4 [09:40:07]Write i2c OK [09:40:07]MH_I2C_Read... [09:40:07]Read from MH i2c: D1 [09:40:07]MH_I2C_Read... [09:40:07]Read from MH i2c: D1 01 00 [09:40:07]MH_I2C_Read... [09:40:07]Read from MH i2c: D1 01 00 BD 45 00 D3 [09:40:07]Write to MH i2c: 01 00 00 BE 45 03 [09:40:07]Write i2c OK [09:40:07]MH_I2C_Read... [09:40:08]OFD Sender: No OFD packet to send [09:40:08]*** Cut start [09:40:08]*** Purtial cut [09:40:08]*** Stage 1: CUTSNS_PIN = 1 [09:40:10]Read from MH i2c: 01 [09:40:10]MH_I2C_Read... [09:40:10]*** Stop cut motor [09:40:10]*** Cut end [09:40:10]Read from MH i2c: 01 07 00 [09:40:10]MH_I2C_Read... [09:40:10]Read from MH i2c: 01 07 00 BE 45 00 00 00 00 00 FF 0F 18 [09:40:10]process_action close_receipt done [09:40:10]requested_data is exist [09:40:10]produce_requested_data [09:40:10]requested_item fm.sn is exist - process it [09:40:10]wFMCommunicate request_size=4 [09:40:10]MH_SAM_APDU [09:40:10]CAPDU: 80 11 00 00 [09:40:10]Write to MH i2c: E2 08 00 BF 45 80 11 00 00 00 00 00 00 7E [09:40:10]Write i2c OK [09:40:10]MH_I2C_Read... [09:40:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:10]Read from MH i2c: E2 [09:40:10]MH_I2C_Read... [09:40:10]Read from MH i2c: E2 17 00 [09:40:10]MH_I2C_Read... [09:40:10]Read from MH i2c: E2 17 00 BF 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 DA [09:40:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [09:40:10]wFMCommunicate OK [09:40:10]requested_item fd.num is exist - process it [09:40:10]SAM_PROTO_GetFieldsCounters [09:40:10]wFMCommunicate request_size=4 [09:40:10]MH_SAM_APDU [09:40:10]CAPDU: 80 13 00 00 [09:40:10]Write to MH i2c: E2 08 00 C0 45 80 13 00 00 00 00 00 00 81 [09:40:10]Write i2c OK [09:40:10]MH_I2C_Read... [09:40:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:40:10]Read from MH i2c: E2 [09:40:10]MH_I2C_Read... [09:40:10]Read from MH i2c: E2 62 00 [09:40:10]MH_I2C_Read... [09:40:10]Read from MH i2c: E2 62 00 C0 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 83 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 70 [09:40:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 83 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:40:10]wFMCommunicate OK [09:40:10]SAM_PROTO_GetFieldsCounters done [09:40:10]requested_item shift.num is exist - process it [09:40:10]requested_item shift.opened is exist - process it [09:40:10]req_shift_opened [09:40:10]FM_GetShiftState [09:40:10]SAM_PROTO_GetShiftState [09:40:10]wFMCommunicate request_size=4 [09:40:10]MH_SAM_APDU [09:40:10]CAPDU: 80 13 01 00 [09:40:10]Write to MH i2c: E2 08 00 C1 45 80 13 01 00 00 00 00 00 83 [09:40:10]Write i2c OK [09:40:10]MH_I2C_Read... [09:40:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:10]Read from MH i2c: E2 [09:40:10]MH_I2C_Read... [09:40:10]Read from MH i2c: E2 0E 00 [09:40:10]MH_I2C_Read... [09:40:10]Read from MH i2c: E2 0E 00 C1 45 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 B9 [09:40:10]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [09:40:10]wFMCommunicate OK [09:40:10]SAM_PROTO_GetShiftState done [09:40:10]FM_GetShiftState done [09:40:10]req_shift_opened done [09:40:10]requested_item shift.open_date is exist - process it [09:40:10]req_shift_open_date [09:40:10]req_shift_open_date done [09:40:10]produce_requested_data done [09:40:10]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45187,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [09:40:10]process_action_free close_receipt [09:40:10]json_value_free [09:40:10]json_value_free done [09:40:10]process_json_proto returns [09:40:10]Send response to host [09:40:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45187,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [09:40:10]free response buf [09:40:10]execute_script done [09:40:10]execute_script returns [09:40:10]free content buf [09:40:10]Sock 7.Close socket [09:40:10]Sock 7.Thread stoped [09:40:13]OFD Sender: No OFD packet to send [09:40:18]OFD Sender: No OFD packet to send [09:40:23]OFD Sender: No OFD packet to send [09:40:28]OFD Sender: No OFD packet to send [09:40:33]OFD Sender: No OFD packet to send [09:40:38]OFD Sender: No OFD packet to send [09:40:43]OFD Sender: No OFD packet to send [09:40:48]OFD Sender: No OFD packet to send [09:40:53]OFD Sender: No OFD packet to send [09:40:58]OFD Sender: No OFD packet to send [09:41:03]OFD Sender: No OFD packet to send [09:41:08]OFD Sender: No OFD packet to send [09:41:13]OFD Sender: No OFD packet to send [09:41:18]OFD Sender: No OFD packet to send [09:41:23]OFD Sender: No OFD packet to send [09:41:28]OFD Sender: No OFD packet to send [09:41:33]OFD Sender: No OFD packet to send [09:41:38]OFD Sender: No OFD packet to send [09:41:43]OFD Sender: No OFD packet to send [09:41:48]OFD Sender: No OFD packet to send [09:41:53]OFD Sender: No OFD packet to send [09:41:58]OFD Sender: No OFD packet to send [09:42:03]OFD Sender: No OFD packet to send [09:42:08]OFD Sender: No OFD packet to send [09:42:13]OFD Sender: No OFD packet to send [09:42:18]OFD Sender: No OFD packet to send [09:42:23]OFD Sender: No OFD packet to send [09:42:28]OFD Sender: No OFD packet to send [09:42:33]OFD Sender: No OFD packet to send [09:42:38]OFD Sender: No OFD packet to send [09:42:43]OFD Sender: No OFD packet to send [09:42:48]OFD Sender: No OFD packet to send [09:42:53]OFD Sender: No OFD packet to send [09:42:58]OFD Sender: No OFD packet to send [09:43:03]OFD Sender: No OFD packet to send [09:43:08]OFD Sender: No OFD packet to send [09:43:13]OFD Sender: No OFD packet to send [09:43:18]OFD Sender: No OFD packet to send [09:43:23]OFD Sender: No OFD packet to send [09:43:27]accept exits with 9 [09:43:27]New connection [09:43:27]New thread 3067014500 created [09:43:27]Thread 3067157860 joined [09:43:27]Waiting for new connection... [09:43:27] Sock 9.Parse request [09:43:27]Sock 9.Check first char [09:43:27]Sock 9.First char is OK [09:43:27]request: POST /json_proto HTTP/1.0 [09:43:27]Method: POST [09:43:27]URL: /json_proto [09:43:27]Method is POST - this is cgi request [09:43:27]url: /json_proto [09:43:27]query_string will be loaded in cgi processing [09:43:27]execute_cgi json_proto POST (null) [09:43:27]execute_cgi path=json_proto method=POST [09:43:27]POST find Content-Length [09:43:27]Host: 172.17.48.198:8080 [09:43:27]Content-Length: 632 [09:43:27]Content-Type: application/json [09:43:27] [09:43:27]POST finish read [09:43:27]Found Content-Length = 632 [09:43:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184154", "tax_sys" : 0, "items" : [ { "code": "4610080727818", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0438 Pamperino kids 8\u0448\u0442", "price" : 25.00, "quantity" : 1.000, "sum" : 25.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 25.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:43:27]execute_script... [09:43:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184154", "tax_sys" : 0, "items" : [ { "code": "4610080727818", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0438 Pamperino kids 8\u0448\u0442", "price" : 25.00, "quantity" : 1.000, "sum" : 25.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 25.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:43:27]POST & json_proto [09:43:27]process_json_proto [09:43:27]json parsed OK: [09:43:27]protocol is kg_v1.0 [09:43:27]action value=close_receipt [09:43:27]process_action close_receipt [09:43:27]cmd_close_receipt [09:43:27]MH_GetDate [09:43:27]Write to MH i2c: F0 00 00 C2 45 F6 [09:43:27]Write i2c OK [09:43:27]MH_I2C_Read... [09:43:27]Read from MH i2c: F0 [09:43:27]MH_I2C_Read... [09:43:27]Read from MH i2c: F0 09 00 [09:43:27]MH_I2C_Read... [09:43:27]Read from MH i2c: F0 09 00 C2 45 00 4A 46 E4 65 CE C4 D4 65 A3 [09:43:27]GetLastDocTimeStamp 1709458816 [09:43:27]current date 1709459018 [09:43:27]FM_GetShiftState [09:43:27]SAM_PROTO_GetShiftState [09:43:27]wFMCommunicate request_size=4 [09:43:27]MH_SAM_APDU [09:43:27]CAPDU: 80 13 01 00 [09:43:27]Write to MH i2c: E2 08 00 C3 45 80 13 01 00 00 00 00 00 85 [09:43:27]Write i2c OK [09:43:27]MH_I2C_Read... [09:43:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:27]Read from MH i2c: E2 [09:43:27]MH_I2C_Read... [09:43:27]Read from MH i2c: E2 0E 00 [09:43:27]MH_I2C_Read... [09:43:27]Read from MH i2c: E2 0E 00 C3 45 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 BB [09:43:27]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [09:43:27]wFMCommunicate OK [09:43:27]SAM_PROTO_GetShiftState done [09:43:27]FM_GetShiftState done [09:43:27]opened in 1709425694 [09:43:27]opened+sec_in_day 1709512094 [09:43:27]quantity*price = 2500 [09:43:27]sum+1 = 2501 [09:43:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 25.00 НСП 1% : 0.22 НДС 12% : 2.65 Наличными: 25.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 25 03.03.2024 09:43 Смена: 331 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 ФМ: 0000000000874796 ФД: 45188 ФПД: 258501970768930 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T094338&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45188&fm=258501970768930&tin=02508201610067®Number=0000000000090572&sum=2500 0 [09:43:28]StoreToDocumentArchive [09:43:28]shift 331 fd 45188 [09:43:28]save to /storage/0331/doc_00045188 [09:43:28]save last doc name /storage/0331/doc_00045188 to /storage/kkm_last_doc_name [09:43:28]save OK [09:43:28]Clear old archive folders... [09:43:28]ProcessDocumentItem done err = 0, tmpTLVsize=279 [09:43:28]tlvbuf is 01B528C0 [09:43:28]SAM_PROTO_ClearQueue [09:43:28]wFMCommunicate request_size=4 [09:43:28]MH_SAM_APDU [09:43:28]CAPDU: 80 09 00 00 [09:43:28]Write to MH i2c: E2 08 00 D0 45 80 09 00 00 00 00 00 00 87 [09:43:28]Write i2c OK [09:43:28]MH_I2C_Read... [09:43:28]Read from MH i2c: E2 [09:43:28]MH_I2C_Read... [09:43:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:43:28]Read from MH i2c: E2 03 00 [09:43:28]MH_I2C_Read... [09:43:28]Read from MH i2c: E2 03 00 D0 45 00 90 00 89 [09:43:28]RAPDU: 90 00 [09:43:28]wFMCommunicate OK [09:43:28]SAM_PROTO_ClearQueue done [09:43:28]KKMCreateOFDPacket [09:43:28]OFDProtocolAddRootSTLVToBuf [09:43:28]FM_MakeSignedData [09:43:28]FM_MakeSignedData [09:43:28]SAM_PROTO_SignData [09:43:28]wFMCommunicate request_size=4 [09:43:28]MH_SAM_APDU [09:43:28]CAPDU: 80 0D 01 02 [09:43:28]Write to MH i2c: E2 08 00 D1 45 80 0D 01 02 00 00 00 00 8F [09:43:28]Write i2c OK [09:43:28]MH_I2C_Read... [09:43:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:43:28]Read from MH i2c: E2 [09:43:28]MH_I2C_Read... [09:43:28]Read from MH i2c: E2 03 00 [09:43:28]MH_I2C_Read... [09:43:28]Read from MH i2c: E2 03 00 D1 45 00 90 00 8A [09:43:28]RAPDU: 90 00 [09:43:28]wFMCommunicate OK [09:43:28]wFMCommunicate request_size=255 [09:43:28]MH_SAM_APDU [09:43:28]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 31 30 30 38 30 37 32 37 38 31 38 06 04 25 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 50 61 6D 70 65 72 69 6E 6F 20 6B 69 64 73 20 38 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 09 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 16 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 09 01 00 00 00 00 07 04 06 00 C4 09 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 4A 46 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 [09:43:28]Write to MH i2c: E2 02 01 D2 45 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 31 30 30 38 30 37 32 37 38 31 38 06 04 25 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 50 61 6D 70 65 72 69 6E 6F 20 6B 69 64 73 20 38 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 09 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 16 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 09 01 00 00 00 00 07 04 06 00 C4 09 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 4A 46 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 00 00 AD [09:43:28]Write i2c OK [09:43:28]MH_I2C_Read... [09:43:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:28]Read from MH i2c: E2 [09:43:28]MH_I2C_Read... [09:43:28]Read from MH i2c: E2 03 00 [09:43:28]MH_I2C_Read... [09:43:28]Read from MH i2c: E2 03 00 D2 45 00 90 00 8B [09:43:28]RAPDU: 90 00 [09:43:28]wFMCommunicate OK [09:43:28]wFMCommunicate request_size=38 [09:43:28]MH_SAM_APDU [09:43:28]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 84 B0 00 00 35 04 06 00 EB 1B 2E 24 34 22 [09:43:28]Write to MH i2c: E2 29 00 D3 45 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 84 B0 00 00 35 04 06 00 EB 1B 2E 24 34 22 00 00 06 [09:43:28]Write i2c OK [09:43:28]MH_I2C_Read... [09:43:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:29]Read from MH i2c: E2 [09:43:29]MH_I2C_Read... [09:43:29]Read from MH i2c: E2 03 00 [09:43:29]MH_I2C_Read... [09:43:29]Read from MH i2c: E2 03 00 D3 45 00 90 00 8C [09:43:29]RAPDU: 90 00 [09:43:29]wFMCommunicate OK [09:43:29]wFMCommunicate request_size=4 [09:43:29]MH_SAM_APDU [09:43:29]CAPDU: 80 0D 03 02 [09:43:29]Write to MH i2c: E2 08 00 D4 45 80 0D 03 02 00 00 00 00 94 [09:43:29]Write i2c OK [09:43:29]MH_I2C_Read... [09:43:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:43:29]Read from MH i2c: E2 [09:43:29]MH_I2C_Read... [09:43:29]Read from MH i2c: E2 0B 00 [09:43:29]MH_I2C_Read... [09:43:29]Read from MH i2c: E2 0B 00 D4 45 00 1B C7 68 C0 4B DD C5 0F 90 00 9B [09:43:29]RAPDU: 1B C7 68 C0 4B DD C5 0F 90 00 [09:43:29]wFMCommunicate OK [09:43:29]SAM_PROTO_SignData done [09:43:29]FM_MakeSignedData done [09:43:29]CreateOFDProtocolMessage [09:43:29]wFMCommunicate request_size=4 [09:43:29]MH_SAM_APDU [09:43:29]CAPDU: 80 11 00 00 [09:43:29]Write to MH i2c: E2 08 00 D5 45 80 11 00 00 00 00 00 00 94 [09:43:29]Write i2c OK [09:43:29]MH_I2C_Read... [09:43:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:29]Read from MH i2c: E2 [09:43:29]MH_I2C_Read... [09:43:29]Read from MH i2c: E2 17 00 [09:43:29]MH_I2C_Read... [09:43:29]Read from MH i2c: E2 17 00 D5 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 F0 [09:43:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [09:43:29]wFMCommunicate OK [09:43:29]CreateOFDProtocolMessage done [09:43:29]OFDSenderStorePacket 45188 [09:43:29]StoreOFDPacket docnum=45188 [09:43:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 2B 01 00 00 FC 9C 23 01 30 D5 5A 03 01 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 31 30 30 38 30 37 32 37 38 31 38 06 04 25 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 50 61 6D 70 65 72 69 6E 6F 20 6B 69 64 73 20 38 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 09 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 16 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 09 01 00 00 00 00 07 04 06 00 C4 09 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 4A 46 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 84 B0 00 00 35 04 06 00 EB 1B 2E 24 34 22 1B C7 68 C0 4B DD C5 0F [09:43:29]CheckFolder [09:43:29]dirname=/storage/ofd_packets [09:43:29]CheckFolder done [09:43:29]ProducePacketName [09:43:29]name=ofd_packets/00045188 [09:43:29]NVStorageSaveData ofd_packets/00045188 [09:43:29]File name is /storage/ofd_packets/00045188 [09:43:29]Write 329 bytes [09:43:29]NVStorageSaveData done [09:43:29]OFDSenderStorePacket done [09:43:29]KKMCreateOFDPacket done [09:43:29]NVStorageSaveData kkm_last_timestamp [09:43:29]File name is /storage/kkm_last_timestamp [09:43:29]Write 4 bytes [09:43:29]NVStorageSaveData done [09:43:29]ExternCall_PrintAddStr [09:43:29]wPrintStart [09:43:29]Write to MH i2c: 01 00 00 D6 45 1B [09:43:29]Write i2c OK [09:43:29]MH_I2C_Read... [09:43:29]Read from MH i2c: 01 [09:43:29]MH_I2C_Read... [09:43:29]Read from MH i2c: 01 07 00 [09:43:29]MH_I2C_Read... [09:43:29]Read from MH i2c: 01 07 00 D6 45 00 00 00 00 00 FF 0F 30 [09:43:29]RasterBufferAndPrint [09:43:29]line Счет N : (3)184154 [09:43:29]line ИНН: 02508201610067 [09:43:29]line Контрольно-Кассовый Чек [09:43:29]line ПРОДАЖА [09:43:29]line Товар: 4610080727818 [09:43:29]line Салфетки Pamperino kids 8шт [09:43:29]line 1.000 * 25.00 [09:43:29]line = 25.00 [09:43:29]line НДС 12% НСП 1% [09:43:29]line > о реализуемом товаре [09:43:29]line ИТОГО: 25.00 [09:43:29]line НСП 1% : 0.22 [09:43:29]line НДС 12% : 2.65 [09:43:29]line Наличными: 25.00 [09:43:29]line Безнал.: 0.00 [09:43:29]line Место: АЗС № 25 "Партнер Нефть" [09:43:29]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [09:43:29]line СНО: Общий режим [09:43:29]line Чек 25 03.03.2024 09:43 [09:43:29]line Смена: 331 ФФД: 1.0 [09:43:29]line ЗНМ: 0300000013 [09:43:29]line РНМ: 0000000000090572 [09:43:29]line Версия ККМ: 001 [09:43:29]line ФМ: 0000000000874796 [09:43:29]line ФД: 45188 [09:43:29]line ФПД: 258501970768930 [09:43:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T094338&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45188&fm=258501970768930&tin=02508201610067®Number=0000000000090572&sum=2500 [09:43:29]line 0 [09:43:29]OFD Sender: Processing packet 45188 [packets to send 17, broken 16] [09:43:29]ProducePacketName [09:43:29]name=ofd_packets/00045188 [09:43:29]OFD Sender: To server: pG, [09:43:29]CommunicateWithHost lk.salyk.kg:30040 [09:43:29]ConnectInit lk.salyk.kg [09:43:29]written 0, free lines is 4095 [09:43:29]Connected sock=10 [09:43:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 2B 01 00 00 FC 9C 23 01 30 D5 5A 03 01 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 31 30 30 38 30 37 32 37 38 31 38 06 04 25 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 50 61 6D 70 65 72 69 6E 6F 20 6B 69 64 73 20 38 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 09 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 16 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 09 01 00 00 00 00 07 04 06 00 C4 09 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 4A 46 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 84 B0 00 00 35 04 06 00 EB 1B 2E 24 34 22 1B C7 68 C0 4B DD C5 0F [09:43:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 0B FB 47 00 81 86 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 84 B0 00 00 F4 03 04 00 0F F2 E3 65 B6 04 01 00 00 23 87 93 F2 80 F3 80 63 [09:43:29]CommunicateWithHost err = 0 [09:43:29]CheckOFDResponse [09:43:29]1017 (14) - 77093643461234 [09:43:29]1041 (16) - 0000000000874796 [09:43:29]1040 (4) - 45188 [09:43:29]1012 (4) - 03.03.2024 03:44 [09:43:29]1206 (1) - 0 [09:43:29]OFD Sender: Remove packet 45188 [09:43:29]ProducePacketName [09:43:29]name=ofd_packets/00045188 [09:43:29]NVStorageDeleteData [09:43:29]Write to MH i2c: 01 00 00 FE 45 43 [09:43:29]Write i2c OK [09:43:29]MH_I2C_Read... [09:43:29]Read from MH i2c: 01 [09:43:29]MH_I2C_Read... [09:43:29]Read from MH i2c: 01 07 00 [09:43:29]MH_I2C_Read... [09:43:29]Read from MH i2c: 01 07 00 FE 45 00 00 00 00 00 0B 0D 62 [09:43:29]RasterBufferAndPrint [09:43:29]line [09:43:29]line [09:43:29]line [09:43:29]line [09:43:29]line [09:43:29]written 0, free lines is 3345 [09:43:29]MH_Cut [09:43:29]Write to MH i2c: D1 01 00 05 46 01 1D [09:43:29]Write i2c OK [09:43:29]MH_I2C_Read... [09:43:29]Read from MH i2c: D1 [09:43:29]MH_I2C_Read... [09:43:29]Read from MH i2c: D1 01 00 [09:43:29]MH_I2C_Read... [09:43:29]Read from MH i2c: D1 01 00 05 46 00 1C [09:43:29]Write to MH i2c: 01 00 00 06 46 4C [09:43:29]Write i2c OK [09:43:29]MH_I2C_Read... [09:43:30]OFD Sender: No OFD packet to send [09:43:30]*** Cut start [09:43:30]*** Purtial cut [09:43:30]*** Stage 1: CUTSNS_PIN = 1 [09:43:32]Read from MH i2c: 01 [09:43:32]MH_I2C_Read... [09:43:32]*** Stop cut motor [09:43:32]*** Cut end [09:43:32]Read from MH i2c: 01 07 00 [09:43:32]MH_I2C_Read... [09:43:32]Read from MH i2c: 01 07 00 06 46 00 00 00 00 00 FF 0F 61 [09:43:32]process_action close_receipt done [09:43:32]requested_data is exist [09:43:32]produce_requested_data [09:43:32]requested_item fm.sn is exist - process it [09:43:32]wFMCommunicate request_size=4 [09:43:32]MH_SAM_APDU [09:43:32]CAPDU: 80 11 00 00 [09:43:32]Write to MH i2c: E2 08 00 07 46 80 11 00 00 00 00 00 00 C7 [09:43:32]Write i2c OK [09:43:32]MH_I2C_Read... [09:43:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:32]Read from MH i2c: E2 [09:43:32]MH_I2C_Read... [09:43:32]Read from MH i2c: E2 17 00 [09:43:32]MH_I2C_Read... [09:43:32]Read from MH i2c: E2 17 00 07 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 23 [09:43:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [09:43:32]wFMCommunicate OK [09:43:32]requested_item fd.num is exist - process it [09:43:32]SAM_PROTO_GetFieldsCounters [09:43:32]wFMCommunicate request_size=4 [09:43:32]MH_SAM_APDU [09:43:32]CAPDU: 80 13 00 00 [09:43:32]Write to MH i2c: E2 08 00 08 46 80 13 00 00 00 00 00 00 CA [09:43:32]Write i2c OK [09:43:32]MH_I2C_Read... [09:43:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:43:32]Read from MH i2c: E2 [09:43:32]MH_I2C_Read... [09:43:32]Read from MH i2c: E2 62 00 [09:43:32]MH_I2C_Read... [09:43:32]Read from MH i2c: E2 62 00 08 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 84 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 BD [09:43:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 84 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:43:32]wFMCommunicate OK [09:43:32]SAM_PROTO_GetFieldsCounters done [09:43:32]requested_item shift.num is exist - process it [09:43:32]requested_item shift.opened is exist - process it [09:43:32]req_shift_opened [09:43:32]FM_GetShiftState [09:43:32]SAM_PROTO_GetShiftState [09:43:32]wFMCommunicate request_size=4 [09:43:32]MH_SAM_APDU [09:43:32]CAPDU: 80 13 01 00 [09:43:32]Write to MH i2c: E2 08 00 09 46 80 13 01 00 00 00 00 00 CC [09:43:32]Write i2c OK [09:43:32]MH_I2C_Read... [09:43:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:32]Read from MH i2c: E2 [09:43:32]MH_I2C_Read... [09:43:32]Read from MH i2c: E2 0E 00 [09:43:32]MH_I2C_Read... [09:43:32]Read from MH i2c: E2 0E 00 09 46 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 02 [09:43:32]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [09:43:32]wFMCommunicate OK [09:43:32]SAM_PROTO_GetShiftState done [09:43:32]FM_GetShiftState done [09:43:32]req_shift_opened done [09:43:32]requested_item shift.open_date is exist - process it [09:43:32]req_shift_open_date [09:43:32]req_shift_open_date done [09:43:32]produce_requested_data done [09:43:32]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45188,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [09:43:32]process_action_free close_receipt [09:43:32]json_value_free [09:43:32]json_value_free done [09:43:32]process_json_proto returns [09:43:32]Send response to host [09:43:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45188,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [09:43:32]free response buf [09:43:32]execute_script done [09:43:32]execute_script returns [09:43:32]free content buf [09:43:32]Sock 9.Close socket [09:43:32]Sock 9.Thread stoped [09:43:35]OFD Sender: No OFD packet to send [09:43:40]OFD Sender: No OFD packet to send [09:43:45]OFD Sender: No OFD packet to send [09:43:50]OFD Sender: No OFD packet to send [09:43:55]OFD Sender: No OFD packet to send [09:44:00]OFD Sender: No OFD packet to send [09:44:05]OFD Sender: No OFD packet to send [09:44:10]OFD Sender: No OFD packet to send [09:44:15]OFD Sender: No OFD packet to send [09:44:20]OFD Sender: No OFD packet to send [09:44:25]OFD Sender: No OFD packet to send [09:44:30]OFD Sender: No OFD packet to send [09:44:35]OFD Sender: No OFD packet to send [09:44:40]OFD Sender: No OFD packet to send [09:44:45]OFD Sender: No OFD packet to send [09:44:50]OFD Sender: No OFD packet to send [09:44:55]OFD Sender: No OFD packet to send [09:45:00]OFD Sender: No OFD packet to send [09:45:05]OFD Sender: No OFD packet to send [09:45:10]OFD Sender: No OFD packet to send [09:45:15]OFD Sender: No OFD packet to send [09:45:20]OFD Sender: No OFD packet to send [09:45:25]OFD Sender: No OFD packet to send [09:45:30]OFD Sender: No OFD packet to send [09:45:35]OFD Sender: No OFD packet to send [09:45:40]OFD Sender: No OFD packet to send [09:45:45]OFD Sender: No OFD packet to send [09:45:50]OFD Sender: No OFD packet to send [09:45:55]OFD Sender: No OFD packet to send [09:46:00]OFD Sender: No OFD packet to send [09:46:05]OFD Sender: No OFD packet to send [09:46:10]OFD Sender: No OFD packet to send [09:46:15]OFD Sender: No OFD packet to send [09:46:20]OFD Sender: No OFD packet to send [09:46:25]OFD Sender: No OFD packet to send [09:46:30]OFD Sender: No OFD packet to send [09:46:35]OFD Sender: No OFD packet to send [09:46:40]OFD Sender: No OFD packet to send [09:46:45]OFD Sender: No OFD packet to send [09:46:50]OFD Sender: No OFD packet to send [09:46:55]OFD Sender: No OFD packet to send [09:47:00]OFD Sender: No OFD packet to send [09:47:05]OFD Sender: No OFD packet to send [09:47:10]OFD Sender: No OFD packet to send [09:47:15]OFD Sender: No OFD packet to send [09:47:20]OFD Sender: No OFD packet to send [09:47:25]OFD Sender: No OFD packet to send [09:47:30]OFD Sender: No OFD packet to send [09:47:35]OFD Sender: No OFD packet to send [09:47:40]OFD Sender: No OFD packet to send [09:47:45]OFD Sender: No OFD packet to send [09:47:50]OFD Sender: No OFD packet to send [09:47:55]OFD Sender: No OFD packet to send [09:48:00]OFD Sender: No OFD packet to send [09:48:05]OFD Sender: No OFD packet to send [09:48:10]OFD Sender: No OFD packet to send [09:48:15]OFD Sender: No OFD packet to send [09:48:20]OFD Sender: No OFD packet to send [09:48:25]OFD Sender: No OFD packet to send [09:48:30]OFD Sender: No OFD packet to send [09:48:35]OFD Sender: No OFD packet to send [09:48:40]OFD Sender: No OFD packet to send [09:48:45]OFD Sender: No OFD packet to send [09:48:50]OFD Sender: No OFD packet to send [09:48:55]OFD Sender: No OFD packet to send [09:49:00]OFD Sender: No OFD packet to send [09:49:05]OFD Sender: No OFD packet to send [09:49:10]OFD Sender: No OFD packet to send [09:49:15]OFD Sender: No OFD packet to send [09:49:20]OFD Sender: No OFD packet to send [09:49:25]OFD Sender: No OFD packet to send [09:49:30]OFD Sender: No OFD packet to send [09:49:35]OFD Sender: No OFD packet to send [09:49:40]OFD Sender: No OFD packet to send [09:49:45]OFD Sender: No OFD packet to send [09:49:50]OFD Sender: No OFD packet to send [09:49:55]OFD Sender: No OFD packet to send [09:50:00]OFD Sender: No OFD packet to send [09:50:05]OFD Sender: No OFD packet to send [09:50:10]OFD Sender: No OFD packet to send [09:50:15]OFD Sender: No OFD packet to send [09:50:20]OFD Sender: No OFD packet to send [09:50:25]OFD Sender: No OFD packet to send [09:50:30]OFD Sender: No OFD packet to send [09:50:35]OFD Sender: No OFD packet to send [09:50:40]OFD Sender: No OFD packet to send [09:50:45]OFD Sender: No OFD packet to send [09:50:50]OFD Sender: No OFD packet to send [09:50:55]OFD Sender: No OFD packet to send [09:51:00]OFD Sender: No OFD packet to send [09:51:05]OFD Sender: No OFD packet to send [09:51:10]OFD Sender: No OFD packet to send [09:51:15]OFD Sender: No OFD packet to send [09:51:20]OFD Sender: No OFD packet to send [09:51:25]OFD Sender: No OFD packet to send [09:51:30]OFD Sender: No OFD packet to send [09:51:35]OFD Sender: No OFD packet to send [09:51:40]OFD Sender: No OFD packet to send [09:51:45]OFD Sender: No OFD packet to send [09:51:50]OFD Sender: No OFD packet to send [09:51:55]OFD Sender: No OFD packet to send [09:52:00]OFD Sender: No OFD packet to send [09:52:05]OFD Sender: No OFD packet to send [09:52:10]OFD Sender: No OFD packet to send [09:52:15]OFD Sender: No OFD packet to send [09:52:20]OFD Sender: No OFD packet to send [09:52:25]OFD Sender: No OFD packet to send [09:52:30]OFD Sender: No OFD packet to send [09:52:35]OFD Sender: No OFD packet to send [09:52:40]OFD Sender: No OFD packet to send [09:52:45]OFD Sender: No OFD packet to send [09:52:50]OFD Sender: No OFD packet to send [09:52:55]OFD Sender: No OFD packet to send [09:53:00]OFD Sender: No OFD packet to send [09:53:05]OFD Sender: No OFD packet to send [09:53:10]OFD Sender: No OFD packet to send [09:53:15]OFD Sender: No OFD packet to send [09:53:20]OFD Sender: No OFD packet to send [09:53:25]OFD Sender: No OFD packet to send [09:53:30]OFD Sender: No OFD packet to send [09:53:35]OFD Sender: No OFD packet to send [09:53:40]OFD Sender: No OFD packet to send [09:53:43]accept exits with 7 [09:53:43]New connection [09:53:43]New thread 3067157860 created [09:53:43]Thread 3067014500 joined [09:53:43]Waiting for new connection... [09:53:43] Sock 7.Parse request [09:53:43]Sock 7.Check first char [09:53:43]Sock 7.First char is OK [09:53:43]request: POST /json_proto HTTP/1.0 [09:53:43]Method: POST [09:53:43]URL: /json_proto [09:53:43]Method is POST - this is cgi request [09:53:43]url: /json_proto [09:53:43]query_string will be loaded in cgi processing [09:53:43]execute_cgi json_proto POST (null) [09:53:43]execute_cgi path=json_proto method=POST [09:53:43]POST find Content-Length [09:53:43]Host: 172.17.48.198:8080 [09:53:43]Content-Length: 798 [09:53:43]Content-Type: application/json [09:53:43] [09:53:43]POST finish read [09:53:43]Found Content-Length = 798 [09:53:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184155", "tax_sys" : 0, "items" : [ { "code": "48744119", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Xstyle Dual", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:53:43]execute_script... [09:53:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184155", "tax_sys" : 0, "items" : [ { "code": "48744119", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Xstyle Dual", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:53:43]POST & json_proto [09:53:43]process_json_proto [09:53:43]json parsed OK: [09:53:43]protocol is kg_v1.0 [09:53:43]action value=close_receipt [09:53:43]process_action close_receipt [09:53:43]cmd_close_receipt [09:53:43]MH_GetDate [09:53:43]Write to MH i2c: F0 00 00 0A 46 3F [09:53:43]Write i2c OK [09:53:43]MH_I2C_Read... [09:53:43]Read from MH i2c: F0 [09:53:43]MH_I2C_Read... [09:53:43]Read from MH i2c: F0 09 00 [09:53:43]MH_I2C_Read... [09:53:43]Read from MH i2c: F0 09 00 0A 46 00 B2 48 E4 65 CE C4 D4 65 56 [09:53:43]GetLastDocTimeStamp 1709459018 [09:53:43]current date 1709459634 [09:53:43]FM_GetShiftState [09:53:43]SAM_PROTO_GetShiftState [09:53:43]wFMCommunicate request_size=4 [09:53:43]MH_SAM_APDU [09:53:43]CAPDU: 80 13 01 00 [09:53:43]Write to MH i2c: E2 08 00 0B 46 80 13 01 00 00 00 00 00 CE [09:53:43]Write i2c OK [09:53:43]MH_I2C_Read... [09:53:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:43]Read from MH i2c: E2 [09:53:43]MH_I2C_Read... [09:53:43]Read from MH i2c: E2 0E 00 [09:53:43]MH_I2C_Read... [09:53:43]Read from MH i2c: E2 0E 00 0B 46 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 04 [09:53:43]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [09:53:43]wFMCommunicate OK [09:53:43]SAM_PROTO_GetShiftState done [09:53:43]FM_GetShiftState done [09:53:43]opened in 1709425694 [09:53:43]opened+sec_in_day 1709512094 [09:53:43]quantity*price = 14000 [09:53:43]sum+1 = 14001 [09:53:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 0.00 Безнал.: 140.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 26 03.03.2024 09:53 Смена: 331 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874796 ФД: 45189 ФПД: 54275293653982 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T095354&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45189&fm=54275293653982&tin=02508201610067®Number=0000000000090572&sum=14000 0 [09:53:44]StoreToDocumentArchive [09:53:44]shift 331 fd 45189 [09:53:44]save to /storage/0331/doc_00045189 [09:53:44]save last doc name /storage/0331/doc_00045189 to /storage/kkm_last_doc_name [09:53:44]save OK [09:53:44]Clear old archive folders... [09:53:44]ProcessDocumentItem done err = 0, tmpTLVsize=273 [09:53:44]tlvbuf is 01AFCB50 [09:53:44]SAM_PROTO_ClearQueue [09:53:44]wFMCommunicate request_size=4 [09:53:44]MH_SAM_APDU [09:53:44]CAPDU: 80 09 00 00 [09:53:44]Write to MH i2c: E2 08 00 18 46 80 09 00 00 00 00 00 00 D0 [09:53:44]Write i2c OK [09:53:44]MH_I2C_Read... [09:53:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:53:44]Read from MH i2c: E2 [09:53:44]MH_I2C_Read... [09:53:44]Read from MH i2c: E2 03 00 [09:53:44]MH_I2C_Read... [09:53:44]Read from MH i2c: E2 03 00 18 46 00 90 00 D2 [09:53:44]RAPDU: 90 00 [09:53:44]wFMCommunicate OK [09:53:44]SAM_PROTO_ClearQueue done [09:53:44]KKMCreateOFDPacket [09:53:44]OFDProtocolAddRootSTLVToBuf [09:53:44]FM_MakeSignedData [09:53:44]FM_MakeSignedData [09:53:44]SAM_PROTO_SignData [09:53:44]wFMCommunicate request_size=4 [09:53:44]MH_SAM_APDU [09:53:44]CAPDU: 80 0D 01 02 [09:53:44]Write to MH i2c: E2 08 00 19 46 80 0D 01 02 00 00 00 00 D8 [09:53:44]Write i2c OK [09:53:44]MH_I2C_Read... [09:53:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:53:44]Read from MH i2c: E2 [09:53:44]MH_I2C_Read... [09:53:44]Read from MH i2c: E2 03 00 [09:53:44]MH_I2C_Read... [09:53:44]Read from MH i2c: E2 03 00 19 46 00 90 00 D3 [09:53:44]RAPDU: 90 00 [09:53:44]wFMCommunicate OK [09:53:44]wFMCommunicate request_size=255 [09:53:44]MH_SAM_APDU [09:53:44]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 34 31 31 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 73 74 79 6C 65 20 44 75 61 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 B2 48 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 [09:53:44]Write to MH i2c: E2 02 01 1A 46 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 34 31 31 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 73 74 79 6C 65 20 44 75 61 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 B2 48 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 00 00 92 [09:53:44]Write i2c OK [09:53:44]MH_I2C_Read... [09:53:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:45]Read from MH i2c: E2 [09:53:45]MH_I2C_Read... [09:53:45]Read from MH i2c: E2 03 00 [09:53:45]MH_I2C_Read... [09:53:45]Read from MH i2c: E2 03 00 1A 46 00 90 00 D4 [09:53:45]RAPDU: 90 00 [09:53:45]wFMCommunicate OK [09:53:45]wFMCommunicate request_size=32 [09:53:45]MH_SAM_APDU [09:53:45]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 37 39 36 10 04 04 00 85 B0 00 00 35 04 06 00 31 5C F3 99 2B DE [09:53:45]Write to MH i2c: E2 23 00 1B 46 80 0D 02 02 1B 00 30 30 30 38 37 34 37 39 36 10 04 04 00 85 B0 00 00 35 04 06 00 31 5C F3 99 2B DE 00 00 98 [09:53:45]Write i2c OK [09:53:45]MH_I2C_Read... [09:53:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:45]Read from MH i2c: E2 [09:53:45]MH_I2C_Read... [09:53:45]Read from MH i2c: E2 03 00 [09:53:45]MH_I2C_Read... [09:53:45]Read from MH i2c: E2 03 00 1B 46 00 90 00 D5 [09:53:45]RAPDU: 90 00 [09:53:45]wFMCommunicate OK [09:53:45]wFMCommunicate request_size=4 [09:53:45]MH_SAM_APDU [09:53:45]CAPDU: 80 0D 03 02 [09:53:45]Write to MH i2c: E2 08 00 1C 46 80 0D 03 02 00 00 00 00 DD [09:53:45]Write i2c OK [09:53:45]MH_I2C_Read... [09:53:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:53:45]Read from MH i2c: E2 [09:53:45]MH_I2C_Read... [09:53:45]Read from MH i2c: E2 0B 00 [09:53:45]MH_I2C_Read... [09:53:45]Read from MH i2c: E2 0B 00 1C 46 00 A5 D5 A7 3A 74 29 22 E5 90 00 DD [09:53:45]RAPDU: A5 D5 A7 3A 74 29 22 E5 90 00 [09:53:45]wFMCommunicate OK [09:53:45]SAM_PROTO_SignData done [09:53:45]FM_MakeSignedData done [09:53:45]CreateOFDProtocolMessage [09:53:45]wFMCommunicate request_size=4 [09:53:45]MH_SAM_APDU [09:53:45]CAPDU: 80 11 00 00 [09:53:45]Write to MH i2c: E2 08 00 1D 46 80 11 00 00 00 00 00 00 DD [09:53:45]Write i2c OK [09:53:45]MH_I2C_Read... [09:53:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:45]Read from MH i2c: E2 [09:53:45]MH_I2C_Read... [09:53:45]Read from MH i2c: E2 17 00 [09:53:45]MH_I2C_Read... [09:53:45]Read from MH i2c: E2 17 00 1D 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 39 [09:53:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [09:53:45]wFMCommunicate OK [09:53:45]CreateOFDProtocolMessage done [09:53:45]OFDSenderStorePacket 45189 [09:53:45]StoreOFDPacket docnum=45189 [09:53:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 25 01 00 00 91 4B 1D 01 0C 77 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 34 31 31 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 73 74 79 6C 65 20 44 75 61 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 B2 48 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 85 B0 00 00 35 04 06 00 31 5C F3 99 2B DE A5 D5 A7 3A 74 29 22 E5 [09:53:45]CheckFolder [09:53:45]dirname=/storage/ofd_packets [09:53:45]CheckFolder done [09:53:45]ProducePacketName [09:53:45]name=ofd_packets/00045189 [09:53:45]NVStorageSaveData ofd_packets/00045189 [09:53:45]File name is /storage/ofd_packets/00045189 [09:53:45]Write 323 bytes [09:53:45]NVStorageSaveData done [09:53:45]OFDSenderStorePacket done [09:53:45]KKMCreateOFDPacket done [09:53:45]NVStorageSaveData kkm_last_timestamp [09:53:45]File name is /storage/kkm_last_timestamp [09:53:45]Write 4 bytes [09:53:45]NVStorageSaveData done [09:53:45]ExternCall_PrintAddStr [09:53:45]wPrintStart [09:53:45]Write to MH i2c: 01 00 00 1E 46 64 [09:53:45]Write i2c OK [09:53:45]MH_I2C_Read... [09:53:45]Read from MH i2c: 01 [09:53:45]MH_I2C_Read... [09:53:45]Read from MH i2c: 01 07 00 [09:53:45]MH_I2C_Read... [09:53:45]Read from MH i2c: 01 07 00 1E 46 00 00 00 00 00 FF 0F 79 [09:53:45]RasterBufferAndPrint [09:53:45]line Счет N : (3)184155 [09:53:45]line ИНН: 02508201610067 [09:53:45]line Контрольно-Кассовый Чек [09:53:45]line ПРОДАЖА [09:53:45]line Товар: 48744119 [09:53:45]line Сигареты Winston Xstyle Dual [09:53:45]line 1.000 * 140.00 [09:53:45]line = 140.00 [09:53:45]line НДС 12% НСП 1% [09:53:45]line > о реализуемом товаре [09:53:45]line ИТОГО: 140.00 [09:53:45]line НСП 1% : 1.24 [09:53:45]line НДС 12% : 14.87 [09:53:45]line Наличными: 0.00 [09:53:45]line Безнал.: 140.00 [09:53:45]line Место: АЗС № 25 "Партнер Нефть" [09:53:45]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [09:53:45]line СНО: Общий режим [09:53:45]line Чек 26 03.03.2024 09:53 [09:53:45]line Смена: 331 ФФД: 1.0 [09:53:45]line ЗНМ: 0300000013 [09:53:45]line РНМ: 0000000000090572 [09:53:45]line Версия ККМ: 001 [09:53:45]line Платежная система: Бакай Банк [09:53:45]line ФМ: 0000000000874796 [09:53:45]line ФД: 45189 [09:53:45]line ФПД: 54275293653982 [09:53:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T095354&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45189&fm=54275293653982&tin=02508201610067®Number=0000000000090572&sum=14000 [09:53:45]line 0 [09:53:45]OFD Sender: Processing packet 45189 [packets to send 17, broken 16] [09:53:45]ProducePacketName [09:53:45]name=ofd_packets/00045189 [09:53:45]OFD Sender: To server: pG, [09:53:45]CommunicateWithHost lk.salyk.kg:30040 [09:53:45]ConnectInit lk.salyk.kg [09:53:45]written 0, free lines is 4095 [09:53:45]Connected sock=10 [09:53:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 25 01 00 00 91 4B 1D 01 0C 77 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 34 31 31 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 73 74 79 6C 65 20 44 75 61 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 B2 48 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 85 B0 00 00 35 04 06 00 31 5C F3 99 2B DE A5 D5 A7 3A 74 29 22 E5 [09:53:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 34 6E 47 00 97 F4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 85 B0 00 00 F4 03 04 00 77 F4 E3 65 B6 04 01 00 00 3C 48 AE D2 4F A8 CF 1C [09:53:45]CommunicateWithHost err = 0 [09:53:45]CheckOFDResponse [09:53:45]1017 (14) - 77093643461234 [09:53:45]1041 (16) - 0000000000874796 [09:53:45]1040 (4) - 45189 [09:53:45]1012 (4) - 03.03.2024 03:54 [09:53:45]1206 (1) - 0 [09:53:45]OFD Sender: Remove packet 45189 [09:53:45]ProducePacketName [09:53:45]name=ofd_packets/00045189 [09:53:45]NVStorageDeleteData [09:53:46]Write to MH i2c: 01 00 00 48 46 8E [09:53:46]Write i2c OK [09:53:46]MH_I2C_Read... [09:53:46]Read from MH i2c: 01 [09:53:46]MH_I2C_Read... [09:53:46]Read from MH i2c: 01 07 00 [09:53:46]MH_I2C_Read... [09:53:46]Read from MH i2c: 01 07 00 48 46 00 00 00 00 00 F5 0C 96 [09:53:46]RasterBufferAndPrint [09:53:46]line [09:53:46]line [09:53:46]line [09:53:46]line [09:53:46]line [09:53:46]written 0, free lines is 3326 [09:53:46]MH_Cut [09:53:46]Write to MH i2c: D1 01 00 4F 46 01 67 [09:53:46]Write i2c OK [09:53:46]MH_I2C_Read... [09:53:46]Read from MH i2c: D1 [09:53:46]MH_I2C_Read... [09:53:46]Read from MH i2c: D1 01 00 [09:53:46]MH_I2C_Read... [09:53:46]Read from MH i2c: D1 01 00 4F 46 00 66 [09:53:46]Write to MH i2c: 01 00 00 50 46 96 [09:53:46]Write i2c OK [09:53:46]MH_I2C_Read... [09:53:46]OFD Sender: No OFD packet to send [09:53:46]*** Cut start [09:53:46]*** Purtial cut [09:53:46]*** Stage 1: CUTSNS_PIN = 1 [09:53:48]Read from MH i2c: 01 [09:53:48]MH_I2C_Read... [09:53:48]*** Stop cut motor [09:53:48]*** Cut end [09:53:48]Read from MH i2c: 01 07 00 [09:53:48]MH_I2C_Read... [09:53:48]Read from MH i2c: 01 07 00 50 46 00 00 00 00 00 FF 0F AB [09:53:48]process_action close_receipt done [09:53:48]requested_data is exist [09:53:48]produce_requested_data [09:53:48]requested_item fm.sn is exist - process it [09:53:48]wFMCommunicate request_size=4 [09:53:48]MH_SAM_APDU [09:53:48]CAPDU: 80 11 00 00 [09:53:48]Write to MH i2c: E2 08 00 51 46 80 11 00 00 00 00 00 00 11 [09:53:48]Write i2c OK [09:53:48]MH_I2C_Read... [09:53:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:48]Read from MH i2c: E2 [09:53:48]MH_I2C_Read... [09:53:48]Read from MH i2c: E2 17 00 [09:53:48]MH_I2C_Read... [09:53:48]Read from MH i2c: E2 17 00 51 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 6D [09:53:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [09:53:48]wFMCommunicate OK [09:53:48]requested_item fd.num is exist - process it [09:53:48]SAM_PROTO_GetFieldsCounters [09:53:48]wFMCommunicate request_size=4 [09:53:48]MH_SAM_APDU [09:53:48]CAPDU: 80 13 00 00 [09:53:48]Write to MH i2c: E2 08 00 52 46 80 13 00 00 00 00 00 00 14 [09:53:48]Write i2c OK [09:53:48]MH_I2C_Read... [09:53:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:53:48]Read from MH i2c: E2 [09:53:48]MH_I2C_Read... [09:53:48]Read from MH i2c: E2 62 00 [09:53:48]MH_I2C_Read... [09:53:48]Read from MH i2c: E2 62 00 52 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 85 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 0B [09:53:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 85 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:53:48]wFMCommunicate OK [09:53:48]SAM_PROTO_GetFieldsCounters done [09:53:48]requested_item shift.num is exist - process it [09:53:48]requested_item shift.opened is exist - process it [09:53:48]req_shift_opened [09:53:48]FM_GetShiftState [09:53:48]SAM_PROTO_GetShiftState [09:53:48]wFMCommunicate request_size=4 [09:53:48]MH_SAM_APDU [09:53:48]CAPDU: 80 13 01 00 [09:53:48]Write to MH i2c: E2 08 00 53 46 80 13 01 00 00 00 00 00 16 [09:53:48]Write i2c OK [09:53:48]MH_I2C_Read... [09:53:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:48]Read from MH i2c: E2 [09:53:48]MH_I2C_Read... [09:53:48]Read from MH i2c: E2 0E 00 [09:53:48]MH_I2C_Read... [09:53:48]Read from MH i2c: E2 0E 00 53 46 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 4C [09:53:48]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [09:53:48]wFMCommunicate OK [09:53:48]SAM_PROTO_GetShiftState done [09:53:48]FM_GetShiftState done [09:53:48]req_shift_opened done [09:53:48]requested_item shift.open_date is exist - process it [09:53:48]req_shift_open_date [09:53:48]req_shift_open_date done [09:53:48]produce_requested_data done [09:53:48]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45189,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [09:53:48]process_action_free close_receipt [09:53:48]json_value_free [09:53:48]json_value_free done [09:53:48]process_json_proto returns [09:53:48]Send response to host [09:53:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45189,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [09:53:48]free response buf [09:53:48]execute_script done [09:53:48]execute_script returns [09:53:48]free content buf [09:53:48]Sock 7.Close socket [09:53:48]Sock 7.Thread stoped [09:53:51]OFD Sender: No OFD packet to send [09:53:56]OFD Sender: No OFD packet to send [09:54:01]OFD Sender: No OFD packet to send [09:54:06]OFD Sender: No OFD packet to send [09:54:11]OFD Sender: No OFD packet to send [09:54:16]OFD Sender: No OFD packet to send [09:54:21]OFD Sender: No OFD packet to send [09:54:26]OFD Sender: No OFD packet to send [09:54:31]OFD Sender: No OFD packet to send [09:54:36]OFD Sender: No OFD packet to send [09:54:41]OFD Sender: No OFD packet to send [09:54:46]OFD Sender: No OFD packet to send [09:54:51]OFD Sender: No OFD packet to send [09:54:56]OFD Sender: No OFD packet to send [09:55:01]OFD Sender: No OFD packet to send [09:55:06]OFD Sender: No OFD packet to send [09:55:11]OFD Sender: No OFD packet to send [09:55:16]OFD Sender: No OFD packet to send [09:55:21]OFD Sender: No OFD packet to send [09:55:26]OFD Sender: No OFD packet to send [09:55:31]OFD Sender: No OFD packet to send [09:55:36]OFD Sender: No OFD packet to send [09:55:41]OFD Sender: No OFD packet to send [09:55:46]OFD Sender: No OFD packet to send [09:55:51]OFD Sender: No OFD packet to send [09:55:56]OFD Sender: No OFD packet to send [09:56:01]OFD Sender: No OFD packet to send [09:56:06]OFD Sender: No OFD packet to send [09:56:11]OFD Sender: No OFD packet to send [09:56:16]OFD Sender: No OFD packet to send [09:56:21]OFD Sender: No OFD packet to send [09:56:26]OFD Sender: No OFD packet to send [09:56:31]OFD Sender: No OFD packet to send [09:56:36]OFD Sender: No OFD packet to send [09:56:41]OFD Sender: No OFD packet to send [09:56:46]OFD Sender: No OFD packet to send [09:56:51]OFD Sender: No OFD packet to send [09:56:56]OFD Sender: No OFD packet to send [09:57:01]OFD Sender: No OFD packet to send [09:57:06]OFD Sender: No OFD packet to send [09:57:11]OFD Sender: No OFD packet to send [09:57:16]OFD Sender: No OFD packet to send [09:57:21]OFD Sender: No OFD packet to send [09:57:26]OFD Sender: No OFD packet to send [09:57:31]OFD Sender: No OFD packet to send [09:57:36]accept exits with 9 [09:57:36]New connection [09:57:36]New thread 3067014500 created [09:57:36]Thread 3067157860 joined [09:57:36]Waiting for new connection... [09:57:36] Sock 9.Parse request [09:57:36]Sock 9.Check first char [09:57:36]Sock 9.First char is OK [09:57:36]request: POST /json_proto HTTP/1.0 [09:57:36]Method: POST [09:57:36]URL: /json_proto [09:57:36]Method is POST - this is cgi request [09:57:36]url: /json_proto [09:57:36]query_string will be loaded in cgi processing [09:57:36]execute_cgi json_proto POST (null) [09:57:36]execute_cgi path=json_proto method=POST [09:57:36]POST find Content-Length [09:57:36]Host: 172.17.48.198:8080 [09:57:36]Content-Length: 667 [09:57:36]Content-Type: application/json [09:57:36] [09:57:36]POST finish read [09:57:36]Found Content-Length = 667 [09:57:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184156", "tax_sys" : 0, "items" : [ { "code": "4800452010610", "name": "\u041A\u043E\u0444\u0435 \u043A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL (\u0410\u041A\u0426\u0418\u042F)", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:57:36]execute_script... [09:57:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184156", "tax_sys" : 0, "items" : [ { "code": "4800452010610", "name": "\u041A\u043E\u0444\u0435 \u043A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL (\u0410\u041A\u0426\u0418\u042F)", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:57:36]POST & json_proto [09:57:36]process_json_proto [09:57:36]json parsed OK: [09:57:36]protocol is kg_v1.0 [09:57:36]action value=close_receipt [09:57:36]process_action close_receipt [09:57:36]cmd_close_receipt [09:57:36]MH_GetDate [09:57:36]Write to MH i2c: F0 00 00 54 46 89 [09:57:36]Write i2c OK [09:57:36]MH_I2C_Read... [09:57:36]Read from MH i2c: F0 [09:57:36]MH_I2C_Read... [09:57:36]Read from MH i2c: F0 09 00 [09:57:36]MH_I2C_Read... [09:57:36]Read from MH i2c: F0 09 00 54 46 00 9B 49 E4 65 CE C4 D4 65 8A [09:57:36]GetLastDocTimeStamp 1709459634 [09:57:36]current date 1709459867 [09:57:36]FM_GetShiftState [09:57:36]SAM_PROTO_GetShiftState [09:57:36]wFMCommunicate request_size=4 [09:57:36]MH_SAM_APDU [09:57:36]CAPDU: 80 13 01 00 [09:57:36]Write to MH i2c: E2 08 00 55 46 80 13 01 00 00 00 00 00 18 [09:57:36]Write i2c OK [09:57:36]MH_I2C_Read... [09:57:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:57:36]Read from MH i2c: E2 [09:57:36]MH_I2C_Read... [09:57:36]Read from MH i2c: E2 0E 00 [09:57:36]MH_I2C_Read... [09:57:36]Read from MH i2c: E2 0E 00 55 46 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 4E [09:57:36]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [09:57:36]wFMCommunicate OK [09:57:36]SAM_PROTO_GetShiftState done [09:57:36]FM_GetShiftState done [09:57:36]opened in 1709425694 [09:57:36]opened+sec_in_day 1709512094 [09:57:36]quantity*price = 12000 [09:57:36]sum+1 = 12001 [09:57:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 120.00 НСП 1% : 1.06 НДС 12% : 12.74 Наличными: 120.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 27 03.03.2024 09:57 Смена: 331 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 ФМ: 0000000000874796 ФД: 45190 ФПД: 125770509952556 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T095747&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45190&fm=125770509952556&tin=02508201610067®Number=0000000000090572&sum=12000 0 [09:57:37]StoreToDocumentArchive [09:57:37]shift 331 fd 45190 [09:57:37]save to /storage/0331/doc_00045190 [09:57:37]save last doc name /storage/0331/doc_00045190 to /storage/kkm_last_doc_name [09:57:37]save OK [09:57:37]Clear old archive folders... [09:57:37]ProcessDocumentItem done err = 0, tmpTLVsize=283 [09:57:37]tlvbuf is 01AFA010 [09:57:37]SAM_PROTO_ClearQueue [09:57:37]wFMCommunicate request_size=4 [09:57:37]MH_SAM_APDU [09:57:37]CAPDU: 80 09 00 00 [09:57:37]Write to MH i2c: E2 08 00 62 46 80 09 00 00 00 00 00 00 1A [09:57:37]Write i2c OK [09:57:37]MH_I2C_Read... [09:57:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:57:37]Read from MH i2c: E2 [09:57:37]MH_I2C_Read... [09:57:37]Read from MH i2c: E2 03 00 [09:57:37]MH_I2C_Read... [09:57:37]Read from MH i2c: E2 03 00 62 46 00 90 00 1C [09:57:37]RAPDU: 90 00 [09:57:37]wFMCommunicate OK [09:57:37]SAM_PROTO_ClearQueue done [09:57:37]KKMCreateOFDPacket [09:57:37]OFDProtocolAddRootSTLVToBuf [09:57:37]FM_MakeSignedData [09:57:37]FM_MakeSignedData [09:57:37]SAM_PROTO_SignData [09:57:37]wFMCommunicate request_size=4 [09:57:37]MH_SAM_APDU [09:57:37]CAPDU: 80 0D 01 02 [09:57:37]Write to MH i2c: E2 08 00 63 46 80 0D 01 02 00 00 00 00 22 [09:57:37]Write i2c OK [09:57:37]MH_I2C_Read... [09:57:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:57:37]Read from MH i2c: E2 [09:57:37]MH_I2C_Read... [09:57:37]Read from MH i2c: E2 03 00 [09:57:37]MH_I2C_Read... [09:57:37]Read from MH i2c: E2 03 00 63 46 00 90 00 1D [09:57:37]RAPDU: 90 00 [09:57:37]wFMCommunicate OK [09:57:37]wFMCommunicate request_size=255 [09:57:37]MH_SAM_APDU [09:57:37]CAPDU: 80 0D 02 02 FA 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 38 30 30 34 35 32 30 31 30 36 31 30 06 04 29 00 D0 9A D0 BE D1 84 D0 B5 20 D0 BA D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 20 28 D0 90 D0 9A D0 A6 D0 98 D0 AF 29 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 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 9B 49 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 [09:57:37]Write to MH i2c: E2 02 01 64 46 80 0D 02 02 FA 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 38 30 30 34 35 32 30 31 30 36 31 30 06 04 29 00 D0 9A D0 BE D1 84 D0 B5 20 D0 BA D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 20 28 D0 90 D0 9A D0 A6 D0 98 D0 AF 29 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 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 9B 49 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 00 00 76 [09:57:37]Write i2c OK [09:57:37]MH_I2C_Read... [09:57:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:57:37]Read from MH i2c: E2 [09:57:37]MH_I2C_Read... [09:57:37]Read from MH i2c: E2 03 00 [09:57:37]MH_I2C_Read... [09:57:37]Read from MH i2c: E2 03 00 64 46 00 90 00 1E [09:57:37]RAPDU: 90 00 [09:57:37]wFMCommunicate OK [09:57:37]wFMCommunicate request_size=42 [09:57:37]MH_SAM_APDU [09:57:37]CAPDU: 80 0D 02 02 25 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 86 B0 00 00 35 04 06 00 72 63 3A 91 A6 2C [09:57:37]Write to MH i2c: E2 2D 00 65 46 80 0D 02 02 25 00 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 86 B0 00 00 35 04 06 00 72 63 3A 91 A6 2C 00 00 AB [09:57:37]Write i2c OK [09:57:37]MH_I2C_Read... [09:57:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:57:38]Read from MH i2c: E2 [09:57:38]MH_I2C_Read... [09:57:38]Read from MH i2c: E2 03 00 [09:57:38]MH_I2C_Read... [09:57:38]Read from MH i2c: E2 03 00 65 46 00 90 00 1F [09:57:38]RAPDU: 90 00 [09:57:38]wFMCommunicate OK [09:57:38]wFMCommunicate request_size=4 [09:57:38]MH_SAM_APDU [09:57:38]CAPDU: 80 0D 03 02 [09:57:38]Write to MH i2c: E2 08 00 66 46 80 0D 03 02 00 00 00 00 27 [09:57:38]Write i2c OK [09:57:38]MH_I2C_Read... [09:57:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:57:38]Read from MH i2c: E2 [09:57:38]MH_I2C_Read... [09:57:38]Read from MH i2c: E2 0B 00 [09:57:38]MH_I2C_Read... [09:57:38]Read from MH i2c: E2 0B 00 66 46 00 FC 9A 34 E1 37 E8 58 94 90 00 DE [09:57:38]RAPDU: FC 9A 34 E1 37 E8 58 94 90 00 [09:57:38]wFMCommunicate OK [09:57:38]SAM_PROTO_SignData done [09:57:38]FM_MakeSignedData done [09:57:38]CreateOFDProtocolMessage [09:57:38]wFMCommunicate request_size=4 [09:57:38]MH_SAM_APDU [09:57:38]CAPDU: 80 11 00 00 [09:57:38]Write to MH i2c: E2 08 00 67 46 80 11 00 00 00 00 00 00 27 [09:57:38]Write i2c OK [09:57:38]MH_I2C_Read... [09:57:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:57:38]Read from MH i2c: E2 [09:57:38]MH_I2C_Read... [09:57:38]Read from MH i2c: E2 17 00 [09:57:38]MH_I2C_Read... [09:57:38]Read from MH i2c: E2 17 00 67 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 83 [09:57:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [09:57:38]wFMCommunicate OK [09:57:38]CreateOFDProtocolMessage done [09:57:38]OFDSenderStorePacket 45190 [09:57:38]StoreOFDPacket docnum=45190 [09:57:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 2F 01 00 00 CB E8 27 01 9C EA 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 38 30 30 34 35 32 30 31 30 36 31 30 06 04 29 00 D0 9A D0 BE D1 84 D0 B5 20 D0 BA D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 20 28 D0 90 D0 9A D0 A6 D0 98 D0 AF 29 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 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 9B 49 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 86 B0 00 00 35 04 06 00 72 63 3A 91 A6 2C FC 9A 34 E1 37 E8 58 94 [09:57:38]CheckFolder [09:57:38]dirname=/storage/ofd_packets [09:57:38]CheckFolder done [09:57:38]ProducePacketName [09:57:38]name=ofd_packets/00045190 [09:57:38]NVStorageSaveData ofd_packets/00045190 [09:57:38]File name is /storage/ofd_packets/00045190 [09:57:38]Write 333 bytes [09:57:38]NVStorageSaveData done [09:57:38]OFDSenderStorePacket done [09:57:38]KKMCreateOFDPacket done [09:57:38]NVStorageSaveData kkm_last_timestamp [09:57:38]File name is /storage/kkm_last_timestamp [09:57:38]Write 4 bytes [09:57:38]NVStorageSaveData done [09:57:38]ExternCall_PrintAddStr [09:57:38]wPrintStart [09:57:38]Write to MH i2c: 01 00 00 68 46 AE [09:57:38]Write i2c OK [09:57:38]MH_I2C_Read... [09:57:38]Read from MH i2c: 01 [09:57:38]MH_I2C_Read... [09:57:38]Read from MH i2c: 01 07 00 [09:57:38]MH_I2C_Read... [09:57:38]Read from MH i2c: 01 07 00 68 46 00 00 00 00 00 FF 0F C3 [09:57:38]RasterBufferAndPrint [09:57:38]line Счет N : (3)184156 [09:57:38]line ИНН: 02508201610067 [09:57:38]line Контрольно-Кассовый Чек [09:57:38]line ПРОДАЖА [09:57:38]line Товар: 4800452010610 [09:57:38]line Кофе капучино XL (АКЦИЯ) [09:57:38]line 1.000 * 120.00 [09:57:38]line = 120.00 [09:57:38]line НДС 12% НСП 1% [09:57:38]line > о реализуемом товаре [09:57:38]line ИТОГО: 120.00 [09:57:38]line НСП 1% : 1.06 [09:57:38]line НДС 12% : 12.74 [09:57:38]line Наличными: 120.00 [09:57:38]line Безнал.: 0.00 [09:57:38]line Место: АЗС № 25 "Партнер Нефть" [09:57:38]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [09:57:38]line СНО: Общий режим [09:57:38]line Чек 27 03.03.2024 09:57 [09:57:38]line Смена: 331 ФФД: 1.0 [09:57:38]line ЗНМ: 0300000013 [09:57:38]line РНМ: 0000000000090572 [09:57:38]line Версия ККМ: 001 [09:57:38]line ФМ: 0000000000874796 [09:57:38]line ФД: 45190 [09:57:38]line ФПД: 125770509952556 [09:57:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T095747&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45190&fm=125770509952556&tin=02508201610067®Number=0000000000090572&sum=12000 [09:57:38]line 0 [09:57:38]OFD Sender: Processing packet 45190 [packets to send 17, broken 16] [09:57:38]ProducePacketName [09:57:38]name=ofd_packets/00045190 [09:57:38]OFD Sender: To server: pG, [09:57:38]CommunicateWithHost lk.salyk.kg:30040 [09:57:38]ConnectInit lk.salyk.kg [09:57:38]written 0, free lines is 4095 [09:57:38]Connected sock=10 [09:57:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 2F 01 00 00 CB E8 27 01 9C EA 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 38 30 30 34 35 32 30 31 30 36 31 30 06 04 29 00 D0 9A D0 BE D1 84 D0 B5 20 D0 BA D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 20 28 D0 90 D0 9A D0 A6 D0 98 D0 AF 29 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 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 9B 49 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 86 B0 00 00 35 04 06 00 72 63 3A 91 A6 2C FC 9A 34 E1 37 E8 58 94 [09:57:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 9D 43 47 00 6A 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 34 37 39 36 10 04 04 00 86 B0 00 00 F4 03 04 00 60 F5 E3 65 B6 04 01 00 00 55 85 19 70 3F E0 03 9A [09:57:38]CommunicateWithHost err = 0 [09:57:38]CheckOFDResponse [09:57:38]1017 (14) - 77093643461234 [09:57:38]1041 (16) - 0000000000874796 [09:57:38]1040 (4) - 45190 [09:57:38]1012 (4) - 03.03.2024 03:58 [09:57:38]1206 (1) - 0 [09:57:38]OFD Sender: Remove packet 45190 [09:57:38]ProducePacketName [09:57:38]name=ofd_packets/00045190 [09:57:38]NVStorageDeleteData [09:57:38]Write to MH i2c: 01 00 00 90 46 D6 [09:57:38]Write i2c OK [09:57:38]MH_I2C_Read... [09:57:38]Read from MH i2c: 01 [09:57:38]MH_I2C_Read... [09:57:38]Read from MH i2c: 01 07 00 [09:57:38]MH_I2C_Read... [09:57:38]Read from MH i2c: 01 07 00 90 46 00 00 00 00 00 10 0D FA [09:57:38]RasterBufferAndPrint [09:57:38]line [09:57:38]line [09:57:38]line [09:57:38]line [09:57:38]line [09:57:38]written 0, free lines is 3349 [09:57:38]MH_Cut [09:57:38]Write to MH i2c: D1 01 00 97 46 01 AF [09:57:38]Write i2c OK [09:57:38]MH_I2C_Read... [09:57:38]Read from MH i2c: D1 [09:57:38]MH_I2C_Read... [09:57:38]Read from MH i2c: D1 01 00 [09:57:38]MH_I2C_Read... [09:57:38]Read from MH i2c: D1 01 00 97 46 00 AE [09:57:38]Write to MH i2c: 01 00 00 98 46 DE [09:57:38]Write i2c OK [09:57:38]MH_I2C_Read... [09:57:39]OFD Sender: No OFD packet to send [09:57:39]*** Cut start [09:57:39]*** Purtial cut [09:57:39]*** Stage 1: CUTSNS_PIN = 1 [09:57:41]Read from MH i2c: 01 [09:57:41]MH_I2C_Read... [09:57:41]*** Stop cut motor [09:57:41]*** Cut end [09:57:41]Read from MH i2c: 01 07 00 [09:57:41]MH_I2C_Read... [09:57:41]Read from MH i2c: 01 07 00 98 46 00 00 00 00 00 FF 0F F3 [09:57:41]process_action close_receipt done [09:57:41]requested_data is exist [09:57:41]produce_requested_data [09:57:41]requested_item fm.sn is exist - process it [09:57:41]wFMCommunicate request_size=4 [09:57:41]MH_SAM_APDU [09:57:41]CAPDU: 80 11 00 00 [09:57:41]Write to MH i2c: E2 08 00 99 46 80 11 00 00 00 00 00 00 59 [09:57:41]Write i2c OK [09:57:41]MH_I2C_Read... [09:57:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:57:41]Read from MH i2c: E2 [09:57:41]MH_I2C_Read... [09:57:41]Read from MH i2c: E2 17 00 [09:57:41]MH_I2C_Read... [09:57:41]Read from MH i2c: E2 17 00 99 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 B5 [09:57:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [09:57:41]wFMCommunicate OK [09:57:41]requested_item fd.num is exist - process it [09:57:41]SAM_PROTO_GetFieldsCounters [09:57:41]wFMCommunicate request_size=4 [09:57:41]MH_SAM_APDU [09:57:41]CAPDU: 80 13 00 00 [09:57:41]Write to MH i2c: E2 08 00 9A 46 80 13 00 00 00 00 00 00 5C [09:57:41]Write i2c OK [09:57:41]MH_I2C_Read... [09:57:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:57:41]Read from MH i2c: E2 [09:57:41]MH_I2C_Read... [09:57:41]Read from MH i2c: E2 62 00 [09:57:41]MH_I2C_Read... [09:57:41]Read from MH i2c: E2 62 00 9A 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 86 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 57 [09:57:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 86 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:57:41]wFMCommunicate OK [09:57:41]SAM_PROTO_GetFieldsCounters done [09:57:41]requested_item shift.num is exist - process it [09:57:41]requested_item shift.opened is exist - process it [09:57:41]req_shift_opened [09:57:41]FM_GetShiftState [09:57:41]SAM_PROTO_GetShiftState [09:57:41]wFMCommunicate request_size=4 [09:57:41]MH_SAM_APDU [09:57:41]CAPDU: 80 13 01 00 [09:57:41]Write to MH i2c: E2 08 00 9B 46 80 13 01 00 00 00 00 00 5E [09:57:41]Write i2c OK [09:57:41]MH_I2C_Read... [09:57:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:57:41]Read from MH i2c: E2 [09:57:41]MH_I2C_Read... [09:57:41]Read from MH i2c: E2 0E 00 [09:57:41]MH_I2C_Read... [09:57:41]Read from MH i2c: E2 0E 00 9B 46 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 94 [09:57:41]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [09:57:41]wFMCommunicate OK [09:57:41]SAM_PROTO_GetShiftState done [09:57:41]FM_GetShiftState done [09:57:41]req_shift_opened done [09:57:41]requested_item shift.open_date is exist - process it [09:57:41]req_shift_open_date [09:57:41]req_shift_open_date done [09:57:41]produce_requested_data done [09:57:41]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45190,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [09:57:41]process_action_free close_receipt [09:57:41]json_value_free [09:57:41]json_value_free done [09:57:41]process_json_proto returns [09:57:41]Send response to host [09:57:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45190,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [09:57:41]free response buf [09:57:41]execute_script done [09:57:41]execute_script returns [09:57:41]free content buf [09:57:41]Sock 9.Close socket [09:57:41]Sock 9.Thread stoped [09:57:44]OFD Sender: No OFD packet to send [09:57:49]OFD Sender: No OFD packet to send [09:57:54]OFD Sender: No OFD packet to send [09:57:59]OFD Sender: No OFD packet to send [09:58:04]OFD Sender: No OFD packet to send [09:58:09]OFD Sender: No OFD packet to send [09:58:14]OFD Sender: No OFD packet to send [09:58:19]OFD Sender: No OFD packet to send [09:58:24]OFD Sender: No OFD packet to send [09:58:29]OFD Sender: No OFD packet to send [09:58:34]OFD Sender: No OFD packet to send [09:58:39]OFD Sender: No OFD packet to send [09:58:44]OFD Sender: No OFD packet to send [09:58:49]OFD Sender: No OFD packet to send [09:58:54]OFD Sender: No OFD packet to send [09:58:59]OFD Sender: No OFD packet to send [09:59:04]OFD Sender: No OFD packet to send [09:59:09]OFD Sender: No OFD packet to send [09:59:14]OFD Sender: No OFD packet to send [09:59:19]OFD Sender: No OFD packet to send [09:59:24]OFD Sender: No OFD packet to send [09:59:29]OFD Sender: No OFD packet to send [09:59:34]OFD Sender: No OFD packet to send [09:59:39]OFD Sender: No OFD packet to send [09:59:44]OFD Sender: No OFD packet to send [09:59:49]OFD Sender: No OFD packet to send [09:59:54]OFD Sender: No OFD packet to send [09:59:59]OFD Sender: No OFD packet to send [10:00:04]OFD Sender: No OFD packet to send [10:00:09]OFD Sender: No OFD packet to send [10:00:14]OFD Sender: No OFD packet to send [10:00:19]OFD Sender: No OFD packet to send [10:00:24]OFD Sender: No OFD packet to send [10:00:29]OFD Sender: No OFD packet to send [10:00:34]OFD Sender: No OFD packet to send [10:00:39]OFD Sender: No OFD packet to send [10:00:44]OFD Sender: No OFD packet to send [10:00:49]OFD Sender: No OFD packet to send [10:00:54]OFD Sender: No OFD packet to send [10:00:59]OFD Sender: No OFD packet to send [10:01:04]OFD Sender: No OFD packet to send [10:01:09]OFD Sender: No OFD packet to send [10:01:14]OFD Sender: No OFD packet to send [10:01:19]OFD Sender: No OFD packet to send [10:01:24]OFD Sender: No OFD packet to send [10:01:29]OFD Sender: No OFD packet to send [10:01:34]OFD Sender: No OFD packet to send [10:01:39]OFD Sender: No OFD packet to send [10:01:44]OFD Sender: No OFD packet to send [10:01:49]OFD Sender: No OFD packet to send [10:01:54]OFD Sender: No OFD packet to send [10:01:59]OFD Sender: No OFD packet to send [10:02:04]OFD Sender: No OFD packet to send [10:02:09]OFD Sender: No OFD packet to send [10:02:14]OFD Sender: No OFD packet to send [10:02:19]OFD Sender: No OFD packet to send [10:02:24]OFD Sender: No OFD packet to send [10:02:29]OFD Sender: No OFD packet to send [10:02:34]OFD Sender: No OFD packet to send [10:02:39]OFD Sender: No OFD packet to send [10:02:44]OFD Sender: No OFD packet to send [10:02:49]OFD Sender: No OFD packet to send [10:02:54]OFD Sender: No OFD packet to send [10:02:59]OFD Sender: No OFD packet to send [10:03:04]OFD Sender: No OFD packet to send [10:03:09]OFD Sender: No OFD packet to send [10:03:14]OFD Sender: No OFD packet to send [10:03:19]OFD Sender: No OFD packet to send [10:03:24]OFD Sender: No OFD packet to send [10:03:29]OFD Sender: No OFD packet to send [10:03:34]OFD Sender: No OFD packet to send [10:03:39]OFD Sender: No OFD packet to send [10:03:44]OFD Sender: No OFD packet to send [10:03:49]OFD Sender: No OFD packet to send [10:03:54]OFD Sender: No OFD packet to send [10:03:59]OFD Sender: No OFD packet to send [10:04:04]OFD Sender: No OFD packet to send [10:04:09]OFD Sender: No OFD packet to send [10:04:14]OFD Sender: No OFD packet to send [10:04:19]OFD Sender: No OFD packet to send [10:04:24]OFD Sender: No OFD packet to send [10:04:29]OFD Sender: No OFD packet to send [10:04:34]OFD Sender: No OFD packet to send [10:04:39]OFD Sender: No OFD packet to send [10:04:44]OFD Sender: No OFD packet to send [10:04:49]OFD Sender: No OFD packet to send [10:04:54]OFD Sender: No OFD packet to send [10:04:59]OFD Sender: No OFD packet to send [10:05:04]OFD Sender: No OFD packet to send [10:05:09]OFD Sender: No OFD packet to send [10:05:14]OFD Sender: No OFD packet to send [10:05:19]OFD Sender: No OFD packet to send [10:05:24]OFD Sender: No OFD packet to send [10:05:29]OFD Sender: No OFD packet to send [10:05:34]OFD Sender: No OFD packet to send [10:05:39]OFD Sender: No OFD packet to send [10:05:44]OFD Sender: No OFD packet to send [10:05:49]OFD Sender: No OFD packet to send [10:05:54]OFD Sender: No OFD packet to send [10:05:59]OFD Sender: No OFD packet to send [10:06:04]OFD Sender: No OFD packet to send [10:06:09]OFD Sender: No OFD packet to send [10:06:14]OFD Sender: No OFD packet to send [10:06:19]OFD Sender: No OFD packet to send [10:06:24]OFD Sender: No OFD packet to send [10:06:29]OFD Sender: No OFD packet to send [10:06:34]OFD Sender: No OFD packet to send [10:06:39]OFD Sender: No OFD packet to send [10:06:44]OFD Sender: No OFD packet to send [10:06:49]OFD Sender: No OFD packet to send [10:06:54]OFD Sender: No OFD packet to send [10:06:59]OFD Sender: No OFD packet to send [10:07:04]OFD Sender: No OFD packet to send [10:07:09]OFD Sender: No OFD packet to send [10:07:14]OFD Sender: No OFD packet to send [10:07:19]OFD Sender: No OFD packet to send [10:07:24]OFD Sender: No OFD packet to send [10:07:29]OFD Sender: No OFD packet to send [10:07:34]OFD Sender: No OFD packet to send [10:07:39]OFD Sender: No OFD packet to send [10:07:44]OFD Sender: No OFD packet to send [10:07:49]OFD Sender: No OFD packet to send [10:07:54]OFD Sender: No OFD packet to send [10:07:59]OFD Sender: No OFD packet to send [10:08:04]OFD Sender: No OFD packet to send [10:08:09]OFD Sender: No OFD packet to send [10:08:14]OFD Sender: No OFD packet to send [10:08:19]OFD Sender: No OFD packet to send [10:08:24]OFD Sender: No OFD packet to send [10:08:29]OFD Sender: No OFD packet to send [10:08:34]OFD Sender: No OFD packet to send [10:08:39]OFD Sender: No OFD packet to send [10:08:44]OFD Sender: No OFD packet to send [10:08:49]OFD Sender: No OFD packet to send [10:08:54]OFD Sender: No OFD packet to send [10:08:59]OFD Sender: No OFD packet to send [10:09:04]OFD Sender: No OFD packet to send [10:09:09]OFD Sender: No OFD packet to send [10:09:14]OFD Sender: No OFD packet to send [10:09:19]OFD Sender: No OFD packet to send [10:09:24]OFD Sender: No OFD packet to send [10:09:29]OFD Sender: No OFD packet to send [10:09:34]OFD Sender: No OFD packet to send [10:09:39]OFD Sender: No OFD packet to send [10:09:44]OFD Sender: No OFD packet to send [10:09:49]OFD Sender: No OFD packet to send [10:09:54]OFD Sender: No OFD packet to send [10:09:59]OFD Sender: No OFD packet to send [10:10:04]OFD Sender: No OFD packet to send [10:10:09]OFD Sender: No OFD packet to send [10:10:14]OFD Sender: No OFD packet to send [10:10:19]OFD Sender: No OFD packet to send [10:10:24]OFD Sender: No OFD packet to send [10:10:29]OFD Sender: No OFD packet to send [10:10:34]OFD Sender: No OFD packet to send [10:10:39]OFD Sender: No OFD packet to send [10:10:44]OFD Sender: No OFD packet to send [10:10:49]OFD Sender: No OFD packet to send [10:10:54]OFD Sender: No OFD packet to send [10:10:59]OFD Sender: No OFD packet to send [10:11:04]OFD Sender: No OFD packet to send [10:11:09]OFD Sender: No OFD packet to send [10:11:14]OFD Sender: No OFD packet to send [10:11:19]OFD Sender: No OFD packet to send [10:11:24]OFD Sender: No OFD packet to send [10:11:29]OFD Sender: No OFD packet to send [10:11:34]OFD Sender: No OFD packet to send [10:11:39]OFD Sender: No OFD packet to send [10:11:44]OFD Sender: No OFD packet to send [10:11:49]OFD Sender: No OFD packet to send [10:11:54]OFD Sender: No OFD packet to send [10:11:59]OFD Sender: No OFD packet to send [10:12:04]OFD Sender: No OFD packet to send [10:12:09]OFD Sender: No OFD packet to send [10:12:14]OFD Sender: No OFD packet to send [10:12:19]OFD Sender: No OFD packet to send [10:12:24]OFD Sender: No OFD packet to send [10:12:29]OFD Sender: No OFD packet to send [10:12:34]OFD Sender: No OFD packet to send [10:12:39]OFD Sender: No OFD packet to send [10:12:44]OFD Sender: No OFD packet to send [10:12:49]OFD Sender: No OFD packet to send [10:12:54]OFD Sender: No OFD packet to send [10:12:59]OFD Sender: No OFD packet to send [10:13:04]OFD Sender: No OFD packet to send [10:13:09]OFD Sender: No OFD packet to send [10:13:14]OFD Sender: No OFD packet to send [10:13:19]OFD Sender: No OFD packet to send [10:13:24]OFD Sender: No OFD packet to send [10:13:29]OFD Sender: No OFD packet to send [10:13:34]OFD Sender: No OFD packet to send [10:13:39]OFD Sender: No OFD packet to send [10:13:44]OFD Sender: No OFD packet to send [10:13:49]OFD Sender: No OFD packet to send [10:13:54]OFD Sender: No OFD packet to send [10:13:59]OFD Sender: No OFD packet to send [10:14:05]OFD Sender: No OFD packet to send [10:14:10]OFD Sender: No OFD packet to send [10:14:15]OFD Sender: No OFD packet to send [10:14:20]OFD Sender: No OFD packet to send [10:14:25]OFD Sender: No OFD packet to send [10:14:30]OFD Sender: No OFD packet to send [10:14:35]OFD Sender: No OFD packet to send [10:14:40]OFD Sender: No OFD packet to send [10:14:45]OFD Sender: No OFD packet to send [10:14:50]OFD Sender: No OFD packet to send [10:14:55]OFD Sender: No OFD packet to send [10:15:00]OFD Sender: No OFD packet to send [10:15:05]OFD Sender: No OFD packet to send [10:15:10]OFD Sender: No OFD packet to send [10:15:15]OFD Sender: No OFD packet to send [10:15:20]OFD Sender: No OFD packet to send [10:15:25]OFD Sender: No OFD packet to send [10:15:30]OFD Sender: No OFD packet to send [10:15:35]OFD Sender: No OFD packet to send [10:15:40]OFD Sender: No OFD packet to send [10:15:45]OFD Sender: No OFD packet to send [10:15:50]OFD Sender: No OFD packet to send [10:15:55]OFD Sender: No OFD packet to send [10:16:00]OFD Sender: No OFD packet to send [10:16:05]OFD Sender: No OFD packet to send [10:16:10]OFD Sender: No OFD packet to send [10:16:15]OFD Sender: No OFD packet to send [10:16:20]OFD Sender: No OFD packet to send [10:16:25]OFD Sender: No OFD packet to send [10:16:30]OFD Sender: No OFD packet to send [10:16:35]OFD Sender: No OFD packet to send [10:16:40]OFD Sender: No OFD packet to send [10:16:45]OFD Sender: No OFD packet to send [10:16:50]OFD Sender: No OFD packet to send [10:16:55]OFD Sender: No OFD packet to send [10:17:00]OFD Sender: No OFD packet to send [10:17:05]OFD Sender: No OFD packet to send [10:17:10]OFD Sender: No OFD packet to send [10:17:15]OFD Sender: No OFD packet to send [10:17:20]OFD Sender: No OFD packet to send [10:17:25]OFD Sender: No OFD packet to send [10:17:30]OFD Sender: No OFD packet to send [10:17:35]OFD Sender: No OFD packet to send [10:17:40]OFD Sender: No OFD packet to send [10:17:45]OFD Sender: No OFD packet to send [10:17:50]OFD Sender: No OFD packet to send [10:17:55]OFD Sender: No OFD packet to send [10:18:00]OFD Sender: No OFD packet to send [10:18:05]OFD Sender: No OFD packet to send [10:18:10]OFD Sender: No OFD packet to send [10:18:15]OFD Sender: No OFD packet to send [10:18:20]OFD Sender: No OFD packet to send [10:18:25]OFD Sender: No OFD packet to send [10:18:30]OFD Sender: No OFD packet to send [10:18:35]OFD Sender: No OFD packet to send [10:18:40]OFD Sender: No OFD packet to send [10:18:45]OFD Sender: No OFD packet to send [10:18:50]OFD Sender: No OFD packet to send [10:18:55]OFD Sender: No OFD packet to send [10:19:00]OFD Sender: No OFD packet to send [10:19:05]OFD Sender: No OFD packet to send [10:19:10]OFD Sender: No OFD packet to send [10:19:15]OFD Sender: No OFD packet to send [10:19:20]OFD Sender: No OFD packet to send [10:19:25]OFD Sender: No OFD packet to send [10:19:30]OFD Sender: No OFD packet to send [10:19:35]OFD Sender: No OFD packet to send [10:19:40]OFD Sender: No OFD packet to send [10:19:45]OFD Sender: No OFD packet to send [10:19:50]OFD Sender: No OFD packet to send [10:19:55]OFD Sender: No OFD packet to send [10:20:00]OFD Sender: No OFD packet to send [10:20:05]OFD Sender: No OFD packet to send [10:20:10]OFD Sender: No OFD packet to send [10:20:15]OFD Sender: No OFD packet to send [10:20:20]OFD Sender: No OFD packet to send [10:20:25]OFD Sender: No OFD packet to send [10:20:30]OFD Sender: No OFD packet to send [10:20:35]OFD Sender: No OFD packet to send [10:20:40]OFD Sender: No OFD packet to send [10:20:45]OFD Sender: No OFD packet to send [10:20:50]OFD Sender: No OFD packet to send [10:20:55]OFD Sender: No OFD packet to send [10:21:00]OFD Sender: No OFD packet to send [10:21:05]OFD Sender: No OFD packet to send [10:21:10]OFD Sender: No OFD packet to send [10:21:15]OFD Sender: No OFD packet to send [10:21:20]OFD Sender: No OFD packet to send [10:21:25]OFD Sender: No OFD packet to send [10:21:30]OFD Sender: No OFD packet to send [10:21:35]OFD Sender: No OFD packet to send [10:21:40]OFD Sender: No OFD packet to send [10:21:45]OFD Sender: No OFD packet to send [10:21:50]OFD Sender: No OFD packet to send [10:21:55]OFD Sender: No OFD packet to send [10:22:00]OFD Sender: No OFD packet to send [10:22:05]OFD Sender: No OFD packet to send [10:22:10]OFD Sender: No OFD packet to send [10:22:15]OFD Sender: No OFD packet to send [10:22:20]OFD Sender: No OFD packet to send [10:22:25]OFD Sender: No OFD packet to send [10:22:30]OFD Sender: No OFD packet to send [10:22:35]OFD Sender: No OFD packet to send [10:22:40]OFD Sender: No OFD packet to send [10:22:45]OFD Sender: No OFD packet to send [10:22:50]OFD Sender: No OFD packet to send [10:22:55]OFD Sender: No OFD packet to send [10:23:00]OFD Sender: No OFD packet to send [10:23:05]OFD Sender: No OFD packet to send [10:23:10]OFD Sender: No OFD packet to send [10:23:15]OFD Sender: No OFD packet to send [10:23:20]OFD Sender: No OFD packet to send [10:23:25]OFD Sender: No OFD packet to send [10:23:30]OFD Sender: No OFD packet to send [10:23:35]OFD Sender: No OFD packet to send [10:23:40]OFD Sender: No OFD packet to send [10:23:45]OFD Sender: No OFD packet to send [10:23:50]OFD Sender: No OFD packet to send [10:23:55]OFD Sender: No OFD packet to send [10:24:00]OFD Sender: No OFD packet to send [10:24:05]OFD Sender: No OFD packet to send [10:24:10]OFD Sender: No OFD packet to send [10:24:15]OFD Sender: No OFD packet to send [10:24:20]OFD Sender: No OFD packet to send [10:24:25]OFD Sender: No OFD packet to send [10:24:30]OFD Sender: No OFD packet to send [10:24:35]OFD Sender: No OFD packet to send [10:24:40]OFD Sender: No OFD packet to send [10:24:45]OFD Sender: No OFD packet to send [10:24:50]OFD Sender: No OFD packet to send [10:24:55]OFD Sender: No OFD packet to send [10:25:00]OFD Sender: No OFD packet to send [10:25:05]OFD Sender: No OFD packet to send [10:25:10]OFD Sender: No OFD packet to send [10:25:15]OFD Sender: No OFD packet to send [10:25:20]OFD Sender: No OFD packet to send [10:25:25]OFD Sender: No OFD packet to send [10:25:30]OFD Sender: No OFD packet to send [10:25:35]OFD Sender: No OFD packet to send [10:25:40]OFD Sender: No OFD packet to send [10:25:45]OFD Sender: No OFD packet to send [10:25:50]OFD Sender: No OFD packet to send [10:25:55]OFD Sender: No OFD packet to send [10:26:00]OFD Sender: No OFD packet to send [10:26:05]OFD Sender: No OFD packet to send [10:26:10]OFD Sender: No OFD packet to send [10:26:15]OFD Sender: No OFD packet to send [10:26:20]OFD Sender: No OFD packet to send [10:26:25]OFD Sender: No OFD packet to send [10:26:30]OFD Sender: No OFD packet to send [10:26:35]OFD Sender: No OFD packet to send [10:26:40]OFD Sender: No OFD packet to send [10:26:45]OFD Sender: No OFD packet to send [10:26:50]OFD Sender: No OFD packet to send [10:26:55]OFD Sender: No OFD packet to send [10:27:00]OFD Sender: No OFD packet to send [10:27:05]OFD Sender: No OFD packet to send [10:27:10]OFD Sender: No OFD packet to send [10:27:15]OFD Sender: No OFD packet to send [10:27:20]OFD Sender: No OFD packet to send [10:27:25]OFD Sender: No OFD packet to send [10:27:30]OFD Sender: No OFD packet to send [10:27:35]OFD Sender: No OFD packet to send [10:27:40]OFD Sender: No OFD packet to send [10:27:45]OFD Sender: No OFD packet to send [10:27:50]OFD Sender: No OFD packet to send [10:27:55]OFD Sender: No OFD packet to send [10:28:00]OFD Sender: No OFD packet to send [10:28:05]OFD Sender: No OFD packet to send [10:28:10]OFD Sender: No OFD packet to send [10:28:15]OFD Sender: No OFD packet to send [10:28:20]OFD Sender: No OFD packet to send [10:28:25]OFD Sender: No OFD packet to send [10:28:30]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]OFD Sender: No OFD packet to send [10:29:50]OFD Sender: No OFD packet to send [10:29:55]OFD Sender: No OFD packet to send [10:30:00]OFD Sender: No OFD packet to send [10:30:05]OFD Sender: No OFD packet to send [10:30:10]OFD Sender: No OFD packet to send [10:30:15]OFD Sender: No OFD packet to send [10:30:20]OFD Sender: No OFD packet to send [10:30:25]OFD Sender: No OFD packet to send [10:30:30]OFD Sender: No OFD packet to send [10:30:35]OFD Sender: No OFD packet to send [10:30:40]OFD Sender: No OFD packet to send [10:30:45]OFD Sender: No OFD packet to send [10:30:50]OFD Sender: No OFD packet to send [10:30:55]OFD Sender: No OFD packet to send [10:31:00]OFD Sender: No OFD packet to send [10:31:05]OFD Sender: No OFD packet to send [10:31:10]OFD Sender: No OFD packet to send [10:31:15]OFD Sender: No OFD packet to send [10:31:20]OFD Sender: No OFD packet to send [10:31:25]OFD Sender: No OFD packet to send [10:31:30]OFD Sender: No OFD packet to send [10:31:35]OFD Sender: No OFD packet to send [10:31:40]OFD Sender: No OFD packet to send [10:31:45]OFD Sender: No OFD packet to send [10:31:50]OFD Sender: No OFD packet to send [10:31:55]OFD Sender: No OFD packet to send [10:32:00]OFD Sender: No OFD packet to send [10:32:05]OFD Sender: No OFD packet to send [10:32:10]OFD Sender: No OFD packet to send [10:32:15]OFD Sender: No OFD packet to send [10:32:20]OFD Sender: No OFD packet to send [10:32:25]OFD Sender: No OFD packet to send [10:32:30]OFD Sender: No OFD packet to send [10:32:35]OFD Sender: No OFD packet to send [10:32:40]OFD Sender: No OFD packet to send [10:32:45]OFD Sender: No OFD packet to send [10:32:50]OFD Sender: No OFD packet to send [10:32:55]OFD Sender: No OFD packet to send [10:33:00]OFD Sender: No OFD packet to send [10:33:05]OFD Sender: No OFD packet to send [10:33:10]OFD Sender: No OFD packet to send [10:33:15]OFD Sender: No OFD packet to send [10:33:20]OFD Sender: No OFD packet to send [10:33:25]OFD Sender: No OFD packet to send [10:33:30]OFD Sender: No OFD packet to send [10:33:35]OFD Sender: No OFD packet to send [10:33:40]OFD Sender: No OFD packet to send [10:33:45]OFD Sender: No OFD packet to send [10:33:50]OFD Sender: No OFD packet to send [10:33:55]OFD Sender: No OFD packet to send [10:34:00]OFD Sender: No OFD packet to send [10:34:05]OFD Sender: No OFD packet to send [10:34:10]OFD Sender: No OFD packet to send [10:34:15]OFD Sender: No OFD packet to send [10:34:20]OFD Sender: No OFD packet to send [10:34:25]OFD Sender: No OFD packet to send [10:34:30]OFD Sender: No OFD packet to send [10:34:35]OFD Sender: No OFD packet to send [10:34:41]OFD Sender: No OFD packet to send [10:34:46]OFD Sender: No OFD packet to send [10:34:51]OFD Sender: No OFD packet to send [10:34:56]OFD Sender: No OFD packet to send [10:35:01]OFD Sender: No OFD packet to send [10:35:06]OFD Sender: No OFD packet to send [10:35:11]OFD Sender: No OFD packet to send [10:35:16]OFD Sender: No OFD packet to send [10:35:21]OFD Sender: No OFD packet to send [10:35:26]OFD Sender: No OFD packet to send [10:35:31]OFD Sender: No OFD packet to send [10:35:36]OFD Sender: No OFD packet to send [10:35:41]OFD Sender: No OFD packet to send [10:35:46]OFD Sender: No OFD packet to send [10:35:51]OFD Sender: No OFD packet to send [10:35:56]OFD Sender: No OFD packet to send [10:36:01]OFD Sender: No OFD packet to send [10:36:06]OFD Sender: No OFD packet to send [10:36:11]OFD Sender: No OFD packet to send [10:36:16]OFD Sender: No OFD packet to send [10:36:21]OFD Sender: No OFD packet to send [10:36:26]OFD Sender: No OFD packet to send [10:36:31]OFD Sender: No OFD packet to send [10:36:36]OFD Sender: No OFD packet to send [10:36:41]OFD Sender: No OFD packet to send [10:36:46]OFD Sender: No OFD packet to send [10:36:51]OFD Sender: No OFD packet to send [10:36:56]OFD Sender: No OFD packet to send [10:37:01]OFD Sender: No OFD packet to send [10:37:06]OFD Sender: No OFD packet to send [10:37:11]OFD Sender: No OFD packet to send [10:37:16]OFD Sender: No OFD packet to send [10:37:21]OFD Sender: No OFD packet to send [10:37:26]OFD Sender: No OFD packet to send [10:37:31]OFD Sender: No OFD packet to send [10:37:36]OFD Sender: No OFD packet to send [10:37:41]OFD Sender: No OFD packet to send [10:37:46]OFD Sender: No OFD packet to send [10:37:51]OFD Sender: No OFD packet to send [10:37:56]OFD Sender: No OFD packet to send [10:38:01]OFD Sender: No OFD packet to send [10:38:06]OFD Sender: No OFD packet to send [10:38:11]OFD Sender: No OFD packet to send [10:38:16]OFD Sender: No OFD packet to send [10:38:21]OFD Sender: No OFD packet to send [10:38:26]OFD Sender: No OFD packet to send [10:38:31]OFD Sender: No OFD packet to send [10:38:36]OFD Sender: No OFD packet to send [10:38:41]OFD Sender: No OFD packet to send [10:38:46]OFD Sender: No OFD packet to send [10:38:51]OFD Sender: No OFD packet to send [10:38:56]OFD Sender: No OFD packet to send [10:39:01]OFD Sender: No OFD packet to send [10:39:06]OFD Sender: No OFD packet to send [10:39:11]OFD Sender: No OFD packet to send [10:39:16]OFD Sender: No OFD packet to send [10:39:21]OFD Sender: No OFD packet to send [10:39:26]OFD Sender: No OFD packet to send [10:39:31]OFD Sender: No OFD packet to send [10:39:36]OFD Sender: No OFD packet to send [10:39:41]OFD Sender: No OFD packet to send [10:39:46]OFD Sender: No OFD packet to send [10:39:51]OFD Sender: No OFD packet to send [10:39:56]OFD Sender: No OFD packet to send [10:40:01]OFD Sender: No OFD packet to send [10:40:06]OFD Sender: No OFD packet to send [10:40:11]OFD Sender: No OFD packet to send [10:40:16]OFD Sender: No OFD packet to send [10:40:21]OFD Sender: No OFD packet to send [10:40:26]OFD Sender: No OFD packet to send [10:40:31]OFD Sender: No OFD packet to send [10:40:36]OFD Sender: No OFD packet to send [10:40:41]OFD Sender: No OFD packet to send [10:40:46]OFD Sender: No OFD packet to send [10:40:51]OFD Sender: No OFD packet to send [10:40:56]OFD Sender: No OFD packet to send [10:41:01]OFD Sender: No OFD packet to send [10:41:06]OFD Sender: No OFD packet to send [10:41:11]OFD Sender: No OFD packet to send [10:41:16]OFD Sender: No OFD packet to send [10:41:21]OFD Sender: No OFD packet to send [10:41:26]OFD Sender: No OFD packet to send [10:41:31]OFD Sender: No OFD packet to send [10:41:36]OFD Sender: No OFD packet to send [10:41:41]OFD Sender: No OFD packet to send [10:41:46]OFD Sender: No OFD packet to send [10:41:51]OFD Sender: No OFD packet to send [10:41:56]OFD Sender: No OFD packet to send [10:42:01]OFD Sender: No OFD packet to send [10:42:06]OFD Sender: No OFD packet to send [10:42:11]OFD Sender: No OFD packet to send [10:42:16]OFD Sender: No OFD packet to send [10:42:21]OFD Sender: No OFD packet to send [10:42:26]OFD Sender: No OFD packet to send [10:42:31]OFD Sender: No OFD packet to send [10:42:36]OFD Sender: No OFD packet to send [10:42:41]OFD Sender: No OFD packet to send [10:42:46]OFD Sender: No OFD packet to send [10:42:51]OFD Sender: No OFD packet to send [10:42:56]OFD Sender: No OFD packet to send [10:43:01]OFD Sender: No OFD packet to send [10:43:06]OFD Sender: No OFD packet to send [10:43:11]OFD Sender: No OFD packet to send [10:43:16]OFD Sender: No OFD packet to send [10:43:21]OFD Sender: No OFD packet to send [10:43:26]OFD Sender: No OFD packet to send [10:43:31]OFD Sender: No OFD packet to send [10:43:36]OFD Sender: No OFD packet to send [10:43:41]OFD Sender: No OFD packet to send [10:43:46]OFD Sender: No OFD packet to send [10:43:51]OFD Sender: No OFD packet to send [10:43:56]OFD Sender: No OFD packet to send [10:44:01]OFD Sender: No OFD packet to send [10:44:06]OFD Sender: No OFD packet to send [10:44:11]OFD Sender: No OFD packet to send [10:44:16]OFD Sender: No OFD packet to send [10:44:21]OFD Sender: No OFD packet to send [10:44:26]OFD Sender: No OFD packet to send [10:44:31]OFD Sender: No OFD packet to send [10:44:36]OFD Sender: No OFD packet to send [10:44:41]OFD Sender: No OFD packet to send [10:44:46]OFD Sender: No OFD packet to send [10:44:51]OFD Sender: No OFD packet to send [10:44:56]OFD Sender: No OFD packet to send [10:45:01]OFD Sender: No OFD packet to send [10:45:06]OFD Sender: No OFD packet to send [10:45:11]OFD Sender: No OFD packet to send [10:45:16]OFD Sender: No OFD packet to send [10:45:21]OFD Sender: No OFD packet to send [10:45:26]OFD Sender: No OFD packet to send [10:45:31]OFD Sender: No OFD packet to send [10:45:36]OFD Sender: No OFD packet to send [10:45:41]OFD Sender: No OFD packet to send [10:45:46]OFD Sender: No OFD packet to send [10:45:51]OFD Sender: No OFD packet to send [10:45:56]OFD Sender: No OFD packet to send [10:46:01]OFD Sender: No OFD packet to send [10:46:06]OFD Sender: No OFD packet to send [10:46:11]OFD Sender: No OFD packet to send [10:46:16]OFD Sender: No OFD packet to send [10:46:21]OFD Sender: No OFD packet to send [10:46:26]OFD Sender: No OFD packet to send [10:46:31]OFD Sender: No OFD packet to send [10:46:36]OFD Sender: No OFD packet to send [10:46:41]OFD Sender: No OFD packet to send [10:46:46]OFD Sender: No OFD packet to send [10:46:51]OFD Sender: No OFD packet to send [10:46:56]OFD Sender: No OFD packet to send [10:47:01]OFD Sender: No OFD packet to send [10:47:06]OFD Sender: No OFD packet to send [10:47:11]OFD Sender: No OFD packet to send [10:47:16]OFD Sender: No OFD packet to send [10:47:21]OFD Sender: No OFD packet to send [10:47:26]OFD Sender: No OFD packet to send [10:47:31]OFD Sender: No OFD packet to send [10:47:36]OFD Sender: No OFD packet to send [10:47:41]OFD Sender: No OFD packet to send [10:47:46]OFD Sender: No OFD packet to send [10:47:51]OFD Sender: No OFD packet to send [10:47:56]OFD Sender: No OFD packet to send [10:48:01]OFD Sender: No OFD packet to send [10:48:06]OFD Sender: No OFD packet to send [10:48:11]OFD Sender: No OFD packet to send [10:48:16]OFD Sender: No OFD packet to send [10:48:21]OFD Sender: No OFD packet to send [10:48:26]OFD Sender: No OFD packet to send [10:48:31]OFD Sender: No OFD packet to send [10:48:36]OFD Sender: No OFD packet to send [10:48:41]OFD Sender: No OFD packet to send [10:48:46]OFD Sender: No OFD packet to send [10:48:51]OFD Sender: No OFD packet to send [10:48:56]OFD Sender: No OFD packet to send [10:49:01]OFD Sender: No OFD packet to send [10:49:06]OFD Sender: No OFD packet to send [10:49:11]OFD Sender: No OFD packet to send [10:49:16]OFD Sender: No OFD packet to send [10:49:21]OFD Sender: No OFD packet to send [10:49:26]OFD Sender: No OFD packet to send [10:49:31]OFD Sender: No OFD packet to send [10:49:36]OFD Sender: No OFD packet to send [10:49:41]OFD Sender: No OFD packet to send [10:49:46]OFD Sender: No OFD packet to send [10:49:51]OFD Sender: No OFD packet to send [10:49:56]OFD Sender: No OFD packet to send [10:50:01]OFD Sender: No OFD packet to send [10:50:06]OFD Sender: No OFD packet to send [10:50:11]OFD Sender: No OFD packet to send [10:50:16]OFD Sender: No OFD packet to send [10:50:21]OFD Sender: No OFD packet to send [10:50:26]OFD Sender: No OFD packet to send [10:50:31]OFD Sender: No OFD packet to send [10:50:36]OFD Sender: No OFD packet to send [10:50:41]OFD Sender: No OFD packet to send [10:50:46]OFD Sender: No OFD packet to send [10:50:51]OFD Sender: No OFD packet to send [10:50:56]OFD Sender: No OFD packet to send [10:51:01]OFD Sender: No OFD packet to send [10:51:06]OFD Sender: No OFD packet to send [10:51:11]OFD Sender: No OFD packet to send [10:51:16]OFD Sender: No OFD packet to send [10:51:21]OFD Sender: No OFD packet to send [10:51:26]OFD Sender: No OFD packet to send [10:51:31]OFD Sender: No OFD packet to send [10:51:36]OFD Sender: No OFD packet to send [10:51:41]OFD Sender: No OFD packet to send [10:51:46]OFD Sender: No OFD packet to send [10:51:51]OFD Sender: No OFD packet to send [10:51:56]OFD Sender: No OFD packet to send [10:52:01]OFD Sender: No OFD packet to send [10:52:06]OFD Sender: No OFD packet to send [10:52:11]OFD Sender: No OFD packet to send [10:52:16]OFD Sender: No OFD packet to send [10:52:21]OFD Sender: No OFD packet to send [10:52:26]OFD Sender: No OFD packet to send [10:52:31]OFD Sender: No OFD packet to send [10:52:36]OFD Sender: No OFD packet to send [10:52:41]OFD Sender: No OFD packet to send [10:52:46]OFD Sender: No OFD packet to send [10:52:51]OFD Sender: No OFD packet to send [10:52:56]OFD Sender: No OFD packet to send [10:53:01]OFD Sender: No OFD packet to send [10:53:06]OFD Sender: No OFD packet to send [10:53:11]OFD Sender: No OFD packet to send [10:53:16]OFD Sender: No OFD packet to send [10:53:21]OFD Sender: No OFD packet to send [10:53:26]OFD Sender: No OFD packet to send [10:53:31]OFD Sender: No OFD packet to send [10:53:36]OFD Sender: No OFD packet to send [10:53:41]OFD Sender: No OFD packet to send [10:53:46]OFD Sender: No OFD packet to send [10:53:51]OFD Sender: No OFD packet to send [10:53:56]OFD Sender: No OFD packet to send [10:54:01]OFD Sender: No OFD packet to send [10:54:06]OFD Sender: No OFD packet to send [10:54:11]OFD Sender: No OFD packet to send [10:54:16]OFD Sender: No OFD packet to send [10:54:21]OFD Sender: No OFD packet to send [10:54:26]OFD Sender: No OFD packet to send [10:54:31]OFD Sender: No OFD packet to send [10:54:36]OFD Sender: No OFD packet to send [10:54:41]OFD Sender: No OFD packet to send [10:54:46]OFD Sender: No OFD packet to send [10:54:51]OFD Sender: No OFD packet to send [10:54:56]OFD Sender: No OFD packet to send [10:55:01]OFD Sender: No OFD packet to send [10:55:06]OFD Sender: No OFD packet to send [10:55:11]OFD Sender: No OFD packet to send [10:55:16]OFD Sender: No OFD packet to send [10:55:21]OFD Sender: No OFD packet to send [10:55:26]OFD Sender: No OFD packet to send [10:55:32]OFD Sender: No OFD packet to send [10:55:37]OFD Sender: No OFD packet to send [10:55:42]OFD Sender: No OFD packet to send [10:55:47]OFD Sender: No OFD packet to send [10:55:52]OFD Sender: No OFD packet to send [10:55:57]OFD Sender: No OFD packet to send [10:56:02]OFD Sender: No OFD packet to send [10:56:07]OFD Sender: No OFD packet to send [10:56:12]OFD Sender: No OFD packet to send [10:56:17]OFD Sender: No OFD packet to send [10:56:22]OFD Sender: No OFD packet to send [10:56:27]OFD Sender: No OFD packet to send [10:56:32]OFD Sender: No OFD packet to send [10:56:37]OFD Sender: No OFD packet to send [10:56:42]OFD Sender: No OFD packet to send [10:56:47]OFD Sender: No OFD packet to send [10:56:52]OFD Sender: No OFD packet to send [10:56:57]OFD Sender: No OFD packet to send [10:57:02]OFD Sender: No OFD packet to send [10:57:07]OFD Sender: No OFD packet to send [10:57:12]OFD Sender: No OFD packet to send [10:57:17]OFD Sender: No OFD packet to send [10:57:22]OFD Sender: No OFD packet to send [10:57:27]OFD Sender: No OFD packet to send [10:57:32]OFD Sender: No OFD packet to send [10:57:37]OFD Sender: No OFD packet to send [10:57:42]OFD Sender: No OFD packet to send [10:57:47]OFD Sender: No OFD packet to send [10:57:52]OFD Sender: No OFD packet to send [10:57:57]OFD Sender: No OFD packet to send [10:58:02]OFD Sender: No OFD packet to send [10:58:07]OFD Sender: No OFD packet to send [10:58:12]OFD Sender: No OFD packet to send [10:58:17]OFD Sender: No OFD packet to send [10:58:22]OFD Sender: No OFD packet to send [10:58:27]OFD Sender: No OFD packet to send [10:58:32]OFD Sender: No OFD packet to send [10:58:37]OFD Sender: No OFD packet to send [10:58:42]OFD Sender: No OFD packet to send [10:58:47]OFD Sender: No OFD packet to send [10:58:52]OFD Sender: No OFD packet to send [10:58:57]OFD Sender: No OFD packet to send [10:59:02]OFD Sender: No OFD packet to send [10:59:07]OFD Sender: No OFD packet to send [10:59:12]OFD Sender: No OFD packet to send [10:59:17]OFD Sender: No OFD packet to send [10:59:22]OFD Sender: No OFD packet to send [10:59:27]OFD Sender: No OFD packet to send [10:59:32]OFD Sender: No OFD packet to send [10:59:37]OFD Sender: No OFD packet to send [10:59:42]OFD Sender: No OFD packet to send [10:59:47]OFD Sender: No OFD packet to send [10:59:52]OFD Sender: No OFD packet to send [10:59:57]OFD Sender: No OFD packet to send [11:00:02]OFD Sender: No OFD packet to send [11:00:07]OFD Sender: No OFD packet to send [11:00:12]OFD Sender: No OFD packet to send [11:00:17]OFD Sender: No OFD packet to send [11:00:22]OFD Sender: No OFD packet to send [11:00:27]OFD Sender: No OFD packet to send [11:00:32]OFD Sender: No OFD packet to send [11:00:37]OFD Sender: No OFD packet to send [11:00:42]OFD Sender: No OFD packet to send [11:00:47]OFD Sender: No OFD packet to send [11:00:52]OFD Sender: No OFD packet to send [11:00:57]OFD Sender: No OFD packet to send [11:01:02]OFD Sender: No OFD packet to send [11:01:07]OFD Sender: No OFD packet to send [11:01:12]OFD Sender: No OFD packet to send [11:01:17]OFD Sender: No OFD packet to send [11:01:22]OFD Sender: No OFD packet to send [11:01:27]OFD Sender: No OFD packet to send [11:01:32]OFD Sender: No OFD packet to send [11:01:37]OFD Sender: No OFD packet to send [11:01:42]OFD Sender: No OFD packet to send [11:01:47]OFD Sender: No OFD packet to send [11:01:52]OFD Sender: No OFD packet to send [11:01:57]OFD Sender: No OFD packet to send [11:02:02]OFD Sender: No OFD packet to send [11:02:07]OFD Sender: No OFD packet to send [11:02:12]OFD Sender: No OFD packet to send [11:02:17]OFD Sender: No OFD packet to send [11:02:22]OFD Sender: No OFD packet to send [11:02:27]OFD Sender: No OFD packet to send [11:02:32]OFD Sender: No OFD packet to send [11:02:37]OFD Sender: No OFD packet to send [11:02:42]OFD Sender: No OFD packet to send [11:02:47]OFD Sender: No OFD packet to send [11:02:52]OFD Sender: No OFD packet to send [11:02:57]OFD Sender: No OFD packet to send [11:03:02]OFD Sender: No OFD packet to send [11:03:07]OFD Sender: No OFD packet to send [11:03:12]OFD Sender: No OFD packet to send [11:03:17]OFD Sender: No OFD packet to send [11:03:22]OFD Sender: No OFD packet to send [11:03:27]OFD Sender: No OFD packet to send [11:03:32]OFD Sender: No OFD packet to send [11:03:37]OFD Sender: No OFD packet to send [11:03:38]accept exits with 7 [11:03:38]New connection [11:03:38]New thread 3067157860 created [11:03:38]Thread 3067014500 joined [11:03:38]Waiting for new connection... [11:03:38] Sock 7.Parse request [11:03:38]Sock 7.Check first char [11:03:38]Sock 7.First char is OK [11:03:38]request: POST /json_proto HTTP/1.0 [11:03:38]Method: POST [11:03:38]URL: /json_proto [11:03:38]Method is POST - this is cgi request [11:03:38]url: /json_proto [11:03:38]query_string will be loaded in cgi processing [11:03:38]execute_cgi json_proto POST (null) [11:03:38]execute_cgi path=json_proto method=POST [11:03:38]POST find Content-Length [11:03:38]Host: 172.17.48.198:8080 [11:03:38]Content-Length: 680 [11:03:38]Content-Type: application/json [11:03:38] [11:03:38]POST finish read [11:03:38]Found Content-Length = 680 [11:03:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184157", "tax_sys" : 0, "items" : [ { "code": "4700452010610", "name": "\u041A\u043E\u0444\u0435 \u043A\u0430\u043F\u0443\u0447\u0438\u043D\u043E 200\u043C\u043B (\u0410\u041A\u0426\u0418\u042F)", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:03:38]execute_script... [11: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 : (3)184157", "tax_sys" : 0, "items" : [ { "code": "4700452010610", "name": "\u041A\u043E\u0444\u0435 \u043A\u0430\u043F\u0443\u0447\u0438\u043D\u043E 200\u043C\u043B (\u0410\u041A\u0426\u0418\u042F)", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:03:38]POST & json_proto [11:03:38]process_json_proto [11:03:38]json parsed OK: [11:03:38]protocol is kg_v1.0 [11:03:38]action value=close_receipt [11:03:38]process_action close_receipt [11:03:38]cmd_close_receipt [11:03:38]MH_GetDate [11:03:38]Write to MH i2c: F0 00 00 9C 46 D1 [11:03:38]Write i2c OK [11:03:38]MH_I2C_Read... [11:03:38]Read from MH i2c: F0 [11:03:38]MH_I2C_Read... [11:03:38]Read from MH i2c: F0 09 00 [11:03:38]MH_I2C_Read... [11:03:38]Read from MH i2c: F0 09 00 9C 46 00 15 59 E4 65 CE C4 D4 65 5C [11:03:38]GetLastDocTimeStamp 1709459867 [11:03:38]current date 1709463829 [11:03:38]FM_GetShiftState [11:03:38]SAM_PROTO_GetShiftState [11:03:38]wFMCommunicate request_size=4 [11:03:38]MH_SAM_APDU [11:03:38]CAPDU: 80 13 01 00 [11:03:38]Write to MH i2c: E2 08 00 9D 46 80 13 01 00 00 00 00 00 60 [11:03:38]Write i2c OK [11:03:38]MH_I2C_Read... [11:03:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:03:38]Read from MH i2c: E2 [11:03:38]MH_I2C_Read... [11:03:38]Read from MH i2c: E2 0E 00 [11:03:38]MH_I2C_Read... [11:03:38]Read from MH i2c: E2 0E 00 9D 46 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 96 [11:03:38]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [11:03:38]wFMCommunicate OK [11:03:38]SAM_PROTO_GetShiftState done [11:03:38]FM_GetShiftState done [11:03:38]opened in 1709425694 [11:03:38]opened+sec_in_day 1709512094 [11:03:38]quantity*price = 10500 [11:03:38]sum+1 = 10501 [11:03:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 105.00 НСП 1% : 0.93 НДС 12% : 11.15 Наличными: 105.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 28 03.03.2024 11:03 Смена: 331 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 ФМ: 0000000000874796 ФД: 45191 ФПД: 194735811509262 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T110349&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45191&fm=194735811509262&tin=02508201610067®Number=0000000000090572&sum=10500 0 [11:03:39]StoreToDocumentArchive [11:03:39]shift 331 fd 45191 [11:03:39]save to /storage/0331/doc_00045191 [11:03:39]save last doc name /storage/0331/doc_00045191 to /storage/kkm_last_doc_name [11:03:39]save OK [11:03:39]Clear old archive folders... [11:03:39]ProcessDocumentItem done err = 0, tmpTLVsize=288 [11:03:39]tlvbuf is 01B41C90 [11:03:39]SAM_PROTO_ClearQueue [11:03:39]wFMCommunicate request_size=4 [11:03:39]MH_SAM_APDU [11:03:39]CAPDU: 80 09 00 00 [11:03:39]Write to MH i2c: E2 08 00 AA 46 80 09 00 00 00 00 00 00 62 [11:03:39]Write i2c OK [11:03:39]MH_I2C_Read... [11:03:39]Read from MH i2c: E2 [11:03:39]MH_I2C_Read... [11:03:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:03:39]Read from MH i2c: E2 03 00 [11:03:39]MH_I2C_Read... [11:03:39]Read from MH i2c: E2 03 00 AA 46 00 90 00 64 [11:03:39]RAPDU: 90 00 [11:03:39]wFMCommunicate OK [11:03:39]SAM_PROTO_ClearQueue done [11:03:39]KKMCreateOFDPacket [11:03:39]OFDProtocolAddRootSTLVToBuf [11:03:39]FM_MakeSignedData [11:03:39]FM_MakeSignedData [11:03:39]SAM_PROTO_SignData [11:03:39]wFMCommunicate request_size=4 [11:03:39]MH_SAM_APDU [11:03:39]CAPDU: 80 0D 01 02 [11:03:39]Write to MH i2c: E2 08 00 AB 46 80 0D 01 02 00 00 00 00 6A [11:03:39]Write i2c OK [11:03:39]MH_I2C_Read... [11:03:39]Read from MH i2c: E2 [11:03:39]MH_I2C_Read... [11:03:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:03:39]Read from MH i2c: E2 03 00 [11:03:39]MH_I2C_Read... [11:03:39]Read from MH i2c: E2 03 00 AB 46 00 90 00 65 [11:03:39]RAPDU: 90 00 [11:03:39]wFMCommunicate OK [11:03:39]wFMCommunicate request_size=255 [11:03:39]MH_SAM_APDU [11:03:39]CAPDU: 80 0D 02 02 FA 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 34 35 32 30 31 30 36 31 30 06 04 2E 00 D0 9A D0 BE D1 84 D0 B5 20 D0 BA D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 32 30 30 D0 BC D0 BB 20 28 D0 90 D0 9A D0 A6 D0 98 D0 AF 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 15 59 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 [11:03:39]Write to MH i2c: E2 02 01 AC 46 80 0D 02 02 FA 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 34 35 32 30 31 30 36 31 30 06 04 2E 00 D0 9A D0 BE D1 84 D0 B5 20 D0 BA D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 32 30 30 D0 BC D0 BB 20 28 D0 90 D0 9A D0 A6 D0 98 D0 AF 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 15 59 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 00 00 4D [11:03:39]Write i2c OK [11:03:39]MH_I2C_Read... [11:03:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:03:39]Read from MH i2c: E2 [11:03:39]MH_I2C_Read... [11:03:39]Read from MH i2c: E2 03 00 [11:03:39]MH_I2C_Read... [11:03:39]Read from MH i2c: E2 03 00 AC 46 00 90 00 66 [11:03:39]RAPDU: 90 00 [11:03:39]wFMCommunicate OK [11:03:39]wFMCommunicate request_size=47 [11:03:39]MH_SAM_APDU [11:03:39]CAPDU: 80 0D 02 02 2A 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 87 B0 00 00 35 04 06 00 B1 1C 76 DE BC 0E [11:03:39]Write to MH i2c: E2 32 00 AD 46 80 0D 02 02 2A 00 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 87 B0 00 00 35 04 06 00 B1 1C 76 DE BC 0E 00 00 56 [11:03:39]Write i2c OK [11:03:39]MH_I2C_Read... [11:03:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:03:39]Read from MH i2c: E2 [11:03:39]MH_I2C_Read... [11:03:39]Read from MH i2c: E2 03 00 [11:03:39]MH_I2C_Read... [11:03:39]Read from MH i2c: E2 03 00 AD 46 00 90 00 67 [11:03:39]RAPDU: 90 00 [11:03:39]wFMCommunicate OK [11:03:39]wFMCommunicate request_size=4 [11:03:39]MH_SAM_APDU [11:03:39]CAPDU: 80 0D 03 02 [11:03:39]Write to MH i2c: E2 08 00 AE 46 80 0D 03 02 00 00 00 00 6F [11:03:39]Write i2c OK [11:03:39]MH_I2C_Read... [11:03:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:03:39]Read from MH i2c: E2 [11:03:39]MH_I2C_Read... [11:03:39]Read from MH i2c: E2 0B 00 [11:03:39]MH_I2C_Read... [11:03:39]Read from MH i2c: E2 0B 00 AE 46 00 E0 68 5D 84 94 20 A0 99 90 00 86 [11:03:39]RAPDU: E0 68 5D 84 94 20 A0 99 90 00 [11:03:39]wFMCommunicate OK [11:03:39]SAM_PROTO_SignData done [11:03:39]FM_MakeSignedData done [11:03:39]CreateOFDProtocolMessage [11:03:39]wFMCommunicate request_size=4 [11:03:39]MH_SAM_APDU [11:03:39]CAPDU: 80 11 00 00 [11:03:39]Write to MH i2c: E2 08 00 AF 46 80 11 00 00 00 00 00 00 6F [11:03:39]Write i2c OK [11:03:39]MH_I2C_Read... [11:03:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:03:39]Read from MH i2c: E2 [11:03:39]MH_I2C_Read... [11:03:39]Read from MH i2c: E2 17 00 [11:03:39]MH_I2C_Read... [11:03:39]Read from MH i2c: E2 17 00 AF 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 CB [11:03:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [11:03:39]wFMCommunicate OK [11:03:39]CreateOFDProtocolMessage done [11:03:39]OFDSenderStorePacket 45191 [11:03:39]StoreOFDPacket docnum=45191 [11:03:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 34 01 00 00 76 48 2C 01 16 28 5A 03 01 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 34 35 32 30 31 30 36 31 30 06 04 2E 00 D0 9A D0 BE D1 84 D0 B5 20 D0 BA D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 32 30 30 D0 BC D0 BB 20 28 D0 90 D0 9A D0 A6 D0 98 D0 AF 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 15 59 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 87 B0 00 00 35 04 06 00 B1 1C 76 DE BC 0E E0 68 5D 84 94 20 A0 99 [11:03:39]CheckFolder [11:03:39]dirname=/storage/ofd_packets [11:03:39]CheckFolder done [11:03:39]ProducePacketName [11:03:39]name=ofd_packets/00045191 [11:03:39]NVStorageSaveData ofd_packets/00045191 [11:03:39]File name is /storage/ofd_packets/00045191 [11:03:39]Write 338 bytes [11:03:39]NVStorageSaveData done [11:03:39]OFDSenderStorePacket done [11:03:39]KKMCreateOFDPacket done [11:03:39]NVStorageSaveData kkm_last_timestamp [11:03:39]File name is /storage/kkm_last_timestamp [11:03:39]Write 4 bytes [11:03:39]NVStorageSaveData done [11:03:39]ExternCall_PrintAddStr [11:03:39]wPrintStart [11:03:39]Write to MH i2c: 01 00 00 B0 46 F6 [11:03:39]Write i2c OK [11:03:39]MH_I2C_Read... [11:03:39]Read from MH i2c: 01 [11:03:39]MH_I2C_Read... [11:03:39]Read from MH i2c: 01 07 00 [11:03:39]MH_I2C_Read... [11:03:39]Read from MH i2c: 01 07 00 B0 46 00 00 00 00 00 FF 0F 0B [11:03:39]RasterBufferAndPrint [11:03:39]line Счет N : (3)184157 [11:03:39]line ИНН: 02508201610067 [11:03:39]line Контрольно-Кассовый Чек [11:03:39]line ПРОДАЖА [11:03:39]line Товар: 4700452010610 [11:03:39]line Кофе капучино 200мл (АКЦИЯ) [11:03:39]line 1.000 * 105.00 [11:03:39]line = 105.00 [11:03:39]line НДС 12% НСП 1% [11:03:39]line > о реализуемом товаре [11:03:39]line ИТОГО: 105.00 [11:03:39]line НСП 1% : 0.93 [11:03:39]line НДС 12% : 11.15 [11:03:39]line Наличными: 105.00 [11:03:39]line Безнал.: 0.00 [11:03:39]line Место: АЗС № 25 "Партнер Нефть" [11:03:39]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [11:03:39]line СНО: Общий режим [11:03:39]line Чек 28 03.03.2024 11:03 [11:03:39]line Смена: 331 ФФД: 1.0 [11:03:39]line ЗНМ: 0300000013 [11:03:39]line РНМ: 0000000000090572 [11:03:39]line Версия ККМ: 001 [11:03:39]line ФМ: 0000000000874796 [11:03:39]line ФД: 45191 [11:03:39]line ФПД: 194735811509262 [11:03:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T110349&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45191&fm=194735811509262&tin=02508201610067®Number=0000000000090572&sum=10500 [11:03:40]line 0 [11:03:40]OFD Sender: Processing packet 45191 [packets to send 17, broken 16] [11:03:40]ProducePacketName [11:03:40]name=ofd_packets/00045191 [11:03:40]OFD Sender: To server: pG, [11:03:40]CommunicateWithHost lk.salyk.kg:30040 [11:03:40]ConnectInit lk.salyk.kg [11:03:40]written 0, free lines is 4095 [11:03:40]Connected sock=10 [11:03:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 34 01 00 00 76 48 2C 01 16 28 5A 03 01 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 34 35 32 30 31 30 36 31 30 06 04 2E 00 D0 9A D0 BE D1 84 D0 B5 20 D0 BA D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 32 30 30 D0 BC D0 BB 20 28 D0 90 D0 9A D0 A6 D0 98 D0 AF 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 15 59 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 87 B0 00 00 35 04 06 00 B1 1C 76 DE BC 0E E0 68 5D 84 94 20 A0 99 [11:03:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 12 DD 47 00 CE 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 87 B0 00 00 F4 03 04 00 DA 04 E4 65 B6 04 01 00 00 FC C4 C3 6A B3 E5 48 4F [11:03:40]CommunicateWithHost err = 0 [11:03:40]CheckOFDResponse [11:03:40]1017 (14) - 77093643461234 [11:03:40]1041 (16) - 0000000000874796 [11:03:40]1040 (4) - 45191 [11:03:40]1012 (4) - 03.03.2024 05:04 [11:03:40]1206 (1) - 0 [11:03:40]OFD Sender: Remove packet 45191 [11:03:40]ProducePacketName [11:03:40]name=ofd_packets/00045191 [11:03:40]NVStorageDeleteData [11:03:40]Write to MH i2c: 01 00 00 D9 46 1F [11:03:40]Write i2c OK [11:03:40]MH_I2C_Read... [11:03:40]Read from MH i2c: 01 [11:03:40]MH_I2C_Read... [11:03:40]Read from MH i2c: 01 07 00 [11:03:40]MH_I2C_Read... [11:03:40]Read from MH i2c: 01 07 00 D9 46 00 00 00 00 00 FB 0C 2D [11:03:40]RasterBufferAndPrint [11:03:40]line [11:03:40]line [11:03:40]line [11:03:40]line [11:03:40]line [11:03:40]written 0, free lines is 3329 [11:03:40]MH_Cut [11:03:40]Write to MH i2c: D1 01 00 E0 46 01 F8 [11:03:40]Write i2c OK [11:03:40]MH_I2C_Read... [11:03:40]Read from MH i2c: D1 [11:03:40]MH_I2C_Read... [11:03:40]Read from MH i2c: D1 01 00 [11:03:40]MH_I2C_Read... [11:03:40]Read from MH i2c: D1 01 00 E0 46 00 F7 [11:03:40]Write to MH i2c: 01 00 00 E1 46 27 [11:03:40]Write i2c OK [11:03:40]MH_I2C_Read... [11:03:41]OFD Sender: No OFD packet to send [11:03:41]*** Cut start [11:03:41]*** Purtial cut [11:03:41]*** Stage 1: CUTSNS_PIN = 1 [11:03:43]Read from MH i2c: 01 [11:03:43]MH_I2C_Read... [11:03:43]*** Stop cut motor [11:03:43]*** Cut end [11:03:43]Read from MH i2c: 01 07 00 [11:03:43]MH_I2C_Read... [11:03:43]Read from MH i2c: 01 07 00 E1 46 00 00 00 00 00 FF 0F 3C [11:03:43]process_action close_receipt done [11:03:43]requested_data is exist [11:03:43]produce_requested_data [11:03:43]requested_item fm.sn is exist - process it [11:03:43]wFMCommunicate request_size=4 [11:03:43]MH_SAM_APDU [11:03:43]CAPDU: 80 11 00 00 [11:03:43]Write to MH i2c: E2 08 00 E2 46 80 11 00 00 00 00 00 00 A2 [11:03:43]Write i2c OK [11:03:43]MH_I2C_Read... [11:03:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:03:43]Read from MH i2c: E2 [11:03:43]MH_I2C_Read... [11:03:43]Read from MH i2c: E2 17 00 [11:03:43]MH_I2C_Read... [11:03:43]Read from MH i2c: E2 17 00 E2 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 FE [11:03:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [11:03:43]wFMCommunicate OK [11:03:43]requested_item fd.num is exist - process it [11:03:43]SAM_PROTO_GetFieldsCounters [11:03:43]wFMCommunicate request_size=4 [11:03:43]MH_SAM_APDU [11:03:43]CAPDU: 80 13 00 00 [11:03:43]Write to MH i2c: E2 08 00 E3 46 80 13 00 00 00 00 00 00 A5 [11:03:43]Write i2c OK [11:03:43]MH_I2C_Read... [11:03:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:03:43]Read from MH i2c: E2 [11:03:43]MH_I2C_Read... [11:03:43]Read from MH i2c: E2 62 00 [11:03:43]MH_I2C_Read... [11:03:43]Read from MH i2c: E2 62 00 E3 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 87 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 A4 [11:03:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 87 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:03:43]wFMCommunicate OK [11:03:43]SAM_PROTO_GetFieldsCounters done [11:03:43]requested_item shift.num is exist - process it [11:03:43]requested_item shift.opened is exist - process it [11:03:43]req_shift_opened [11:03:43]FM_GetShiftState [11:03:43]SAM_PROTO_GetShiftState [11:03:43]wFMCommunicate request_size=4 [11:03:43]MH_SAM_APDU [11:03:43]CAPDU: 80 13 01 00 [11:03:43]Write to MH i2c: E2 08 00 E4 46 80 13 01 00 00 00 00 00 A7 [11:03:43]Write i2c OK [11:03:43]MH_I2C_Read... [11:03:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:03:43]Read from MH i2c: E2 [11:03:43]MH_I2C_Read... [11:03:43]Read from MH i2c: E2 0E 00 [11:03:43]MH_I2C_Read... [11:03:43]Read from MH i2c: E2 0E 00 E4 46 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 DD [11:03:43]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [11:03:43]wFMCommunicate OK [11:03:43]SAM_PROTO_GetShiftState done [11:03:43]FM_GetShiftState done [11:03:43]req_shift_opened done [11:03:43]requested_item shift.open_date is exist - process it [11:03:43]req_shift_open_date [11:03:43]req_shift_open_date done [11:03:43]produce_requested_data done [11:03:43]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45191,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [11:03:43]process_action_free close_receipt [11:03:43]json_value_free [11:03:43]json_value_free done [11:03:43]process_json_proto returns [11:03:43]Send response to host [11:03:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45191,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [11:03:43]free response buf [11:03:43]execute_script done [11:03:43]execute_script returns [11:03:43]free content buf [11:03:43]Sock 7.Close socket [11:03:43]Sock 7.Thread stoped [11:03:46]OFD Sender: No OFD packet to send [11:03:50]accept exits with 9 [11:03:50]New connection [11:03:50]New thread 3067014500 created [11:03:50]Thread 3067157860 joined [11:03:50]Waiting for new connection... [11:03:50] Sock 9.Parse request [11:03:50]Sock 9.Check first char [11:03:50]Sock 9.First char is OK [11:03:50]request: POST /json_proto HTTP/1.0 [11:03:50]Method: POST [11:03:50]URL: /json_proto [11:03:50]Method is POST - this is cgi request [11:03:50]url: /json_proto [11:03:50]query_string will be loaded in cgi processing [11:03:50]execute_cgi json_proto POST (null) [11:03:50]execute_cgi path=json_proto method=POST [11:03:50]POST find Content-Length [11:03:50]Host: 172.17.48.198:8080 [11:03:50]Content-Length: 698 [11:03:50]Content-Type: application/json [11:03:50] [11:03:50]POST finish read [11:03:50]Found Content-Length = 698 [11:03:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184158", "tax_sys" : 0, "items" : [ { "code": "4700000480364", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u044D\u043A\u0437\u043E\u0442\u0438\u043A 0.45 \u0436/\u0431", "price" : 90.00, "quantity" : 2.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 180.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:03:50]execute_script... [11: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 : (3)184158", "tax_sys" : 0, "items" : [ { "code": "4700000480364", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u044D\u043A\u0437\u043E\u0442\u0438\u043A 0.45 \u0436/\u0431", "price" : 90.00, "quantity" : 2.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 180.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:03:50]POST & json_proto [11:03:50]process_json_proto [11:03:50]json parsed OK: [11:03:50]protocol is kg_v1.0 [11:03:50]action value=close_receipt [11:03:50]process_action close_receipt [11:03:50]cmd_close_receipt [11:03:50]MH_GetDate [11:03:50]Write to MH i2c: F0 00 00 E5 46 1A [11:03:50]Write i2c OK [11:03:50]MH_I2C_Read... [11:03:50]Read from MH i2c: F0 [11:03:50]MH_I2C_Read... [11:03:50]Read from MH i2c: F0 09 00 [11:03:50]MH_I2C_Read... [11:03:50]Read from MH i2c: F0 09 00 E5 46 00 21 59 E4 65 CE C4 D4 65 B1 [11:03:50]GetLastDocTimeStamp 1709463829 [11:03:50]current date 1709463841 [11:03:50]FM_GetShiftState [11:03:50]SAM_PROTO_GetShiftState [11:03:50]wFMCommunicate request_size=4 [11:03:50]MH_SAM_APDU [11:03:50]CAPDU: 80 13 01 00 [11:03:50]Write to MH i2c: E2 08 00 E6 46 80 13 01 00 00 00 00 00 A9 [11:03:50]Write i2c OK [11:03:50]MH_I2C_Read... [11:03:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:03:50]Read from MH i2c: E2 [11:03:50]MH_I2C_Read... [11:03:50]Read from MH i2c: E2 0E 00 [11:03:50]MH_I2C_Read... [11:03:50]Read from MH i2c: E2 0E 00 E6 46 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 DF [11:03:50]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [11:03:50]wFMCommunicate OK [11:03:50]SAM_PROTO_GetShiftState done [11:03:50]FM_GetShiftState done [11:03:50]opened in 1709425694 [11:03:50]opened+sec_in_day 1709512094 [11:03:50]quantity*price = 18000 [11:03:50]sum+1 = 18001 [11:03:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 180.00 НСП 1% : 1.59 НДС 12% : 19.11 Наличными: 180.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 29 03.03.2024 11:04 Смена: 331 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 ФМ: 0000000000874796 ФД: 45192 ФПД: 161200155634429 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T110401&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45192&fm=161200155634429&tin=02508201610067®Number=0000000000090572&sum=18000 0 [11:03:51]StoreToDocumentArchive [11:03:51]shift 331 fd 45192 [11:03:51]save to /storage/0331/doc_00045192 [11:03:51]save last doc name /storage/0331/doc_00045192 to /storage/kkm_last_doc_name [11:03:51]save OK [11:03:51]Clear old archive folders... [11:03:51]ProcessDocumentItem done err = 0, tmpTLVsize=299 [11:03:51]tlvbuf is 01B47980 [11:03:51]SAM_PROTO_ClearQueue [11:03:51]wFMCommunicate request_size=4 [11:03:51]MH_SAM_APDU [11:03:51]CAPDU: 80 09 00 00 [11:03:51]Write to MH i2c: E2 08 00 F3 46 80 09 00 00 00 00 00 00 AB [11:03:51]Write i2c OK [11:03:51]MH_I2C_Read... [11:03:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:03:51]Read from MH i2c: E2 [11:03:51]MH_I2C_Read... [11:03:51]Read from MH i2c: E2 03 00 [11:03:51]MH_I2C_Read... [11:03:51]Read from MH i2c: E2 03 00 F3 46 00 90 00 AD [11:03:51]RAPDU: 90 00 [11:03:51]wFMCommunicate OK [11:03:51]SAM_PROTO_ClearQueue done [11:03:51]KKMCreateOFDPacket [11:03:51]OFDProtocolAddRootSTLVToBuf [11:03:51]FM_MakeSignedData [11:03:51]FM_MakeSignedData [11:03:51]SAM_PROTO_SignData [11:03:51]wFMCommunicate request_size=4 [11:03:51]MH_SAM_APDU [11:03:51]CAPDU: 80 0D 01 02 [11:03:51]Write to MH i2c: E2 08 00 F4 46 80 0D 01 02 00 00 00 00 B3 [11:03:51]Write i2c OK [11:03:51]MH_I2C_Read... [11:03:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:03:51]Read from MH i2c: E2 [11:03:51]MH_I2C_Read... [11:03:51]Read from MH i2c: E2 03 00 [11:03:51]MH_I2C_Read... [11:03:51]Read from MH i2c: E2 03 00 F4 46 00 90 00 AE [11:03:51]RAPDU: 90 00 [11:03:51]wFMCommunicate OK [11:03:51]wFMCommunicate request_size=255 [11:03:51]MH_SAM_APDU [11:03:51]CAPDU: 80 0D 02 02 FA 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 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 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 21 59 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 [11:03:51]Write to MH i2c: E2 02 01 F5 46 80 0D 02 02 FA 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 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 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 21 59 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 00 00 DA [11:03:51]Write i2c OK [11:03:51]MH_I2C_Read... [11:03:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:03:51]Read from MH i2c: E2 [11:03:51]MH_I2C_Read... [11:03:51]Read from MH i2c: E2 03 00 [11:03:51]MH_I2C_Read... [11:03:51]Read from MH i2c: E2 03 00 F5 46 00 90 00 AF [11:03:51]RAPDU: 90 00 [11:03:51]wFMCommunicate OK [11:03:51]wFMCommunicate request_size=58 [11:03:51]MH_SAM_APDU [11:03:51]CAPDU: 80 0D 02 02 35 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 88 B0 00 00 35 04 06 00 92 9C 56 03 AA FD [11:03:51]Write to MH i2c: E2 3D 00 F6 46 80 0D 02 02 35 00 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 88 B0 00 00 35 04 06 00 92 9C 56 03 AA FD 00 00 12 [11:03:51]Write i2c OK [11:03:51]MH_I2C_Read... [11:03:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:03:51]Read from MH i2c: E2 [11:03:51]MH_I2C_Read... [11:03:51]Read from MH i2c: E2 03 00 [11:03:51]MH_I2C_Read... [11:03:51]Read from MH i2c: E2 03 00 F6 46 00 90 00 B0 [11:03:51]RAPDU: 90 00 [11:03:51]wFMCommunicate OK [11:03:51]wFMCommunicate request_size=4 [11:03:51]MH_SAM_APDU [11:03:51]CAPDU: 80 0D 03 02 [11:03:51]Write to MH i2c: E2 08 00 F7 46 80 0D 03 02 00 00 00 00 B8 [11:03:51]Write i2c OK [11:03:51]MH_I2C_Read... [11:03:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:03:51]Read from MH i2c: E2 [11:03:51]MH_I2C_Read... [11:03:51]Read from MH i2c: E2 0B 00 [11:03:51]MH_I2C_Read... [11:03:51]Read from MH i2c: E2 0B 00 F7 46 00 61 38 F2 00 72 C0 97 C2 90 00 CF [11:03:51]RAPDU: 61 38 F2 00 72 C0 97 C2 90 00 [11:03:51]wFMCommunicate OK [11:03:51]SAM_PROTO_SignData done [11:03:51]FM_MakeSignedData done [11:03:51]CreateOFDProtocolMessage [11:03:51]wFMCommunicate request_size=4 [11:03:51]MH_SAM_APDU [11:03:51]CAPDU: 80 11 00 00 [11:03:51]Write to MH i2c: E2 08 00 F8 46 80 11 00 00 00 00 00 00 B8 [11:03:51]Write i2c OK [11:03:51]MH_I2C_Read... [11:03:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:03:52]Read from MH i2c: E2 [11:03:52]MH_I2C_Read... [11:03:52]Read from MH i2c: E2 17 00 [11:03:52]MH_I2C_Read... [11:03:52]Read from MH i2c: E2 17 00 F8 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 14 [11:03:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [11:03:52]wFMCommunicate OK [11:03:52]CreateOFDProtocolMessage done [11:03:52]OFDSenderStorePacket 45192 [11:03:52]StoreOFDPacket docnum=45192 [11:03:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 3F 01 00 00 0A ED 37 01 13 31 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 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 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 21 59 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 88 B0 00 00 35 04 06 00 92 9C 56 03 AA FD 61 38 F2 00 72 C0 97 C2 [11:03:52]CheckFolder [11:03:52]dirname=/storage/ofd_packets [11:03:52]CheckFolder done [11:03:52]ProducePacketName [11:03:52]name=ofd_packets/00045192 [11:03:52]NVStorageSaveData ofd_packets/00045192 [11:03:52]File name is /storage/ofd_packets/00045192 [11:03:52]Write 349 bytes [11:03:52]NVStorageSaveData done [11:03:52]OFDSenderStorePacket done [11:03:52]KKMCreateOFDPacket done [11:03:52]NVStorageSaveData kkm_last_timestamp [11:03:52]File name is /storage/kkm_last_timestamp [11:03:52]Write 4 bytes [11:03:52]NVStorageSaveData done [11:03:52]ExternCall_PrintAddStr [11:03:52]wPrintStart [11:03:52]Write to MH i2c: 01 00 00 F9 46 3F [11:03:52]Write i2c OK [11:03:52]MH_I2C_Read... [11:03:52]Read from MH i2c: 01 [11:03:52]MH_I2C_Read... [11:03:52]Read from MH i2c: 01 07 00 [11:03:52]MH_I2C_Read... [11:03:52]Read from MH i2c: 01 07 00 F9 46 00 00 00 00 00 FF 0F 54 [11:03:52]RasterBufferAndPrint [11:03:52]line Счет N : (3)184158 [11:03:52]line ИНН: 02508201610067 [11:03:52]line Контрольно-Кассовый Чек [11:03:52]line ПРОДАЖА [11:03:52]line Товар: 4700000480364 [11:03:52]line Напиток энерг Nitro экзотик 0.45 ж/б [11:03:52]line 2.000 * 90.00 [11:03:52]line = 180.00 [11:03:52]line НДС 12% НСП 1% [11:03:52]line > о реализуемом товаре [11:03:52]line ИТОГО: 180.00 [11:03:52]line НСП 1% : 1.59 [11:03:52]line НДС 12% : 19.11 [11:03:52]line Наличными: 180.00 [11:03:52]line Безнал.: 0.00 [11:03:52]line Место: АЗС № 25 "Партнер Нефть" [11:03:52]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [11:03:52]line СНО: Общий режим [11:03:52]line Чек 29 03.03.2024 11:04 [11:03:52]line Смена: 331 ФФД: 1.0 [11:03:52]line ЗНМ: 0300000013 [11:03:52]line РНМ: 0000000000090572 [11:03:52]line Версия ККМ: 001 [11:03:52]line ФМ: 0000000000874796 [11:03:52]line ФД: 45192 [11:03:52]line ФПД: 161200155634429 [11:03:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T110401&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45192&fm=161200155634429&tin=02508201610067®Number=0000000000090572&sum=18000 [11:03:52]line 0 [11:03:52]written 0, free lines is 4095 [11:03:52]OFD Sender: Processing packet 45192 [packets to send 17, broken 16] [11:03:52]ProducePacketName [11:03:52]name=ofd_packets/00045192 [11:03:52]OFD Sender: To server: pG, [11:03:52]CommunicateWithHost lk.salyk.kg:30040 [11:03:52]ConnectInit lk.salyk.kg [11:03:52]Connected sock=11 [11: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 34 37 39 36 3F 01 00 00 0A ED 37 01 13 31 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 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 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 21 59 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 88 B0 00 00 35 04 06 00 92 9C 56 03 AA FD 61 38 F2 00 72 C0 97 C2 [11:03:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 F7 51 47 00 E8 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 88 B0 00 00 F4 03 04 00 E6 04 E4 65 B6 04 01 00 00 F5 D7 FD E0 AB 0A 3F 13 [11:03:52]CommunicateWithHost err = 0 [11:03:52]CheckOFDResponse [11:03:52]1017 (14) - 77093643461234 [11:03:52]1041 (16) - 0000000000874796 [11:03:52]1040 (4) - 45192 [11:03:52]1012 (4) - 03.03.2024 05:04 [11:03:52]1206 (1) - 0 [11:03:52]OFD Sender: Remove packet 45192 [11:03:52]ProducePacketName [11:03:52]name=ofd_packets/00045192 [11:03:52]NVStorageDeleteData [11:03:52]Write to MH i2c: 01 00 00 22 47 69 [11:03:52]Write i2c OK [11:03:52]MH_I2C_Read... [11:03:52]Read from MH i2c: 01 [11:03:52]MH_I2C_Read... [11:03:52]Read from MH i2c: 01 07 00 [11:03:52]MH_I2C_Read... [11:03:52]Read from MH i2c: 01 07 00 22 47 00 00 00 00 00 08 0D 85 [11:03:52]RasterBufferAndPrint [11:03:52]line [11:03:52]line [11:03:52]line [11:03:52]line [11:03:52]line [11:03:52]written 0, free lines is 3345 [11:03:52]MH_Cut [11:03:52]Write to MH i2c: D1 01 00 29 47 01 42 [11:03:52]Write i2c OK [11:03:52]MH_I2C_Read... [11:03:52]Read from MH i2c: D1 [11:03:52]MH_I2C_Read... [11:03:52]Read from MH i2c: D1 01 00 [11:03:52]MH_I2C_Read... [11:03:52]Read from MH i2c: D1 01 00 29 47 00 41 [11:03:52]Write to MH i2c: 01 00 00 2A 47 71 [11:03:52]Write i2c OK [11:03:52]MH_I2C_Read... [11:03:52]OFD Sender: No OFD packet to send [11:03:53]*** Cut start [11:03:53]*** Purtial cut [11:03:53]*** Stage 1: CUTSNS_PIN = 1 [11:03:55]Read from MH i2c: 01 [11:03:55]MH_I2C_Read... [11:03:55]*** Stop cut motor [11:03:55]*** Cut end [11:03:55]Read from MH i2c: 01 07 00 [11:03:55]MH_I2C_Read... [11:03:55]Read from MH i2c: 01 07 00 2A 47 00 00 00 00 00 FF 0F 86 [11:03:55]process_action close_receipt done [11:03:55]requested_data is exist [11:03:55]produce_requested_data [11:03:55]requested_item fm.sn is exist - process it [11:03:55]wFMCommunicate request_size=4 [11:03:55]MH_SAM_APDU [11:03:55]CAPDU: 80 11 00 00 [11:03:55]Write to MH i2c: E2 08 00 2B 47 80 11 00 00 00 00 00 00 EC [11:03:55]Write i2c OK [11:03:55]MH_I2C_Read... [11:03:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:03:55]Read from MH i2c: E2 [11:03:55]MH_I2C_Read... [11:03:55]Read from MH i2c: E2 17 00 [11:03:55]MH_I2C_Read... [11:03:55]Read from MH i2c: E2 17 00 2B 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 48 [11:03:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [11:03:55]wFMCommunicate OK [11:03:55]requested_item fd.num is exist - process it [11:03:55]SAM_PROTO_GetFieldsCounters [11:03:55]wFMCommunicate request_size=4 [11:03:55]MH_SAM_APDU [11:03:55]CAPDU: 80 13 00 00 [11:03:55]Write to MH i2c: E2 08 00 2C 47 80 13 00 00 00 00 00 00 EF [11:03:55]Write i2c OK [11:03:55]MH_I2C_Read... [11:03:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:03:55]Read from MH i2c: E2 [11:03:55]MH_I2C_Read... [11:03:55]Read from MH i2c: E2 62 00 [11:03:55]MH_I2C_Read... [11:03:55]Read from MH i2c: E2 62 00 2C 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 88 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 F2 [11:03:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 88 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:03:55]wFMCommunicate OK [11:03:55]SAM_PROTO_GetFieldsCounters done [11:03:55]requested_item shift.num is exist - process it [11:03:55]requested_item shift.opened is exist - process it [11:03:55]req_shift_opened [11:03:55]FM_GetShiftState [11:03:55]SAM_PROTO_GetShiftState [11:03:55]wFMCommunicate request_size=4 [11:03:55]MH_SAM_APDU [11:03:55]CAPDU: 80 13 01 00 [11:03:55]Write to MH i2c: E2 08 00 2D 47 80 13 01 00 00 00 00 00 F1 [11:03:55]Write i2c OK [11:03:55]MH_I2C_Read... [11:03:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:03:55]Read from MH i2c: E2 [11:03:55]MH_I2C_Read... [11:03:55]Read from MH i2c: E2 0E 00 [11:03:55]MH_I2C_Read... [11:03:55]Read from MH i2c: E2 0E 00 2D 47 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 27 [11:03:55]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [11:03:55]wFMCommunicate OK [11:03:55]SAM_PROTO_GetShiftState done [11:03:55]FM_GetShiftState done [11:03:55]req_shift_opened done [11:03:55]requested_item shift.open_date is exist - process it [11:03:55]req_shift_open_date [11:03:55]req_shift_open_date done [11:03:55]produce_requested_data done [11:03:55]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45192,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [11:03:55]process_action_free close_receipt [11:03:55]json_value_free [11:03:55]json_value_free done [11:03:55]process_json_proto returns [11:03:55]Send response to host [11:03:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45192,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [11:03:55]free response buf [11:03:55]execute_script done [11:03:55]execute_script returns [11:03:55]free content buf [11:03:55]Sock 9.Close socket [11:03:55]Sock 9.Thread stoped [11:03:57]OFD Sender: No OFD packet to send [11:04:02]OFD Sender: No OFD packet to send [11:04:07]OFD Sender: No OFD packet to send [11:04:12]OFD Sender: No OFD packet to send [11:04:17]OFD Sender: No OFD packet to send [11:04:22]OFD Sender: No OFD packet to send [11:04:27]OFD Sender: No OFD packet to send [11:04:32]OFD Sender: No OFD packet to send [11:04:37]OFD Sender: No OFD packet to send [11:04:42]OFD Sender: No OFD packet to send [11:04:47]OFD Sender: No OFD packet to send [11:04:52]OFD Sender: No OFD packet to send [11:04:57]OFD Sender: No OFD packet to send [11:05:02]OFD Sender: No OFD packet to send [11:05:07]OFD Sender: No OFD packet to send [11:05:12]OFD Sender: No OFD packet to send [11:05:17]OFD Sender: No OFD packet to send [11:05:22]OFD Sender: No OFD packet to send [11:05:27]OFD Sender: No OFD packet to send [11:05:32]OFD Sender: No OFD packet to send [11:05:37]OFD Sender: No OFD packet to send [11:05:42]OFD Sender: No OFD packet to send [11:05:47]OFD Sender: No OFD packet to send [11:05:52]OFD Sender: No OFD packet to send [11:05:57]OFD Sender: No OFD packet to send [11:06:02]OFD Sender: No OFD packet to send [11:06:07]OFD Sender: No OFD packet to send [11:06:12]OFD Sender: No OFD packet to send [11:06:17]OFD Sender: No OFD packet to send [11:06:22]OFD Sender: No OFD packet to send [11:06:27]OFD Sender: No OFD packet to send [11:06:32]OFD Sender: No OFD packet to send [11:06:37]OFD Sender: No OFD packet to send [11:06:42]OFD Sender: No OFD packet to send [11:06:47]OFD Sender: No OFD packet to send [11:06:52]OFD Sender: No OFD packet to send [11:06:57]OFD Sender: No OFD packet to send [11:07:03]OFD Sender: No OFD packet to send [11:07:08]OFD Sender: No OFD packet to send [11:07:13]OFD Sender: No OFD packet to send [11:07:18]OFD Sender: No OFD packet to send [11:07:23]OFD Sender: No OFD packet to send [11:07:28]OFD Sender: No OFD packet to send [11:07:33]OFD Sender: No OFD packet to send [11:07:38]OFD Sender: No OFD packet to send [11:07:43]OFD Sender: No OFD packet to send [11:07:48]OFD Sender: No OFD packet to send [11:07:53]OFD Sender: No OFD packet to send [11:07:58]OFD Sender: No OFD packet to send [11:08:03]OFD Sender: No OFD packet to send [11:08:08]OFD Sender: No OFD packet to send [11:08:13]OFD Sender: No OFD packet to send [11:08:18]OFD Sender: No OFD packet to send [11:08:23]OFD Sender: No OFD packet to send [11:08:28]OFD Sender: No OFD packet to send [11:08:33]OFD Sender: No OFD packet to send [11:08:38]OFD Sender: No OFD packet to send [11:08:43]OFD Sender: No OFD packet to send [11:08:48]OFD Sender: No OFD packet to send [11:08:53]OFD Sender: No OFD packet to send [11:08:58]OFD Sender: No OFD packet to send [11:09:03]OFD Sender: No OFD packet to send [11:09:08]OFD Sender: No OFD packet to send [11:09:13]OFD Sender: No OFD packet to send [11:09:18]OFD Sender: No OFD packet to send [11:09:23]OFD Sender: No OFD packet to send [11:09:26]int [11:09:26]Write to MH i2c: 01 00 00 2E 47 75 [11:09:26]*** FLAG_PRN_PAP1 set [11:09:26]Write i2c OK [11:09:26]MH_I2C_Read... [11:09:26]Read from MH i2c: 01 [11:09:26]MH_I2C_Read... [11:09:26]Read from MH i2c: 01 07 00 [11:09:26]MH_I2C_Read... [11:09:26]Read from MH i2c: 01 07 00 2E 47 00 01 00 00 00 FF 0F 8B [11:09:26]state=0 [11:09:26]No paper [11:09:26]int [11:09:26]Write to MH i2c: 01 00 00 2F 47 76 [11:09:26]*** FLAG_PRN_PAP2 set [11:09:26]Write i2c OK [11:09:26]MH_I2C_Read... [11:09:26]Read from MH i2c: 01 [11:09:26]MH_I2C_Read... [11:09:26]Read from MH i2c: 01 07 00 [11:09:26]MH_I2C_Read... [11:09:26]Read from MH i2c: 01 07 00 2F 47 00 03 00 00 00 FF 0F 8E [11:09:26]state=0 [11:09:26]No paper [11:09:26]Cover opened [11:09:27]int [11:09:27]Write to MH i2c: 01 00 00 30 47 77 [11:09:27]*** FLAG_PRN_PAP2 reset [11:09:27]Write i2c OK [11:09:27]MH_I2C_Read... [11:09:27]Read from MH i2c: 01 [11:09:27]MH_I2C_Read... [11:09:27]Read from MH i2c: 01 07 00 [11:09:27]MH_I2C_Read... [11:09:27]Read from MH i2c: 01 07 00 30 47 00 01 00 00 00 FF 0F 8D [11:09:27]state=3 [11:09:27]No paper [11:09:27]Cover closed [11:09:27]int [11:09:27]Write to MH i2c: 01 00 00 31 47 78 [11:09:27]*** FLAG_PRN_PAP2 set [11:09:27]Write i2c OK [11:09:27]MH_I2C_Read... [11:09:27]Read from MH i2c: 01 [11:09:27]MH_I2C_Read... [11:09:27]Read from MH i2c: 01 07 00 [11:09:27]MH_I2C_Read... [11:09:27]Read from MH i2c: 01 07 00 31 47 00 03 00 00 00 FF 0F 90 [11:09:27]state=0 [11:09:27]No paper [11:09:27]Cover opened [11:09:28]OFD Sender: No OFD packet to send [11:09:32]Write to MH i2c: 01 00 00 32 47 79 [11:09:32]Write i2c OK [11:09:32]MH_I2C_Read... [11:09:33]Read from MH i2c: 01 [11:09:33]MH_I2C_Read... [11:09:33]Read from MH i2c: 01 07 00 [11:09:33]MH_I2C_Read... [11:09:33]Read from MH i2c: 01 07 00 32 47 00 03 00 00 00 FF 0F 91 [11:09:33]state=3 [11:09:33]No paper [11:09:33]Cover opened [11:09:33]OFD Sender: No OFD packet to send [11:09:38]Write to MH i2c: 01 00 00 33 47 7A [11:09:38]Write i2c OK [11:09:38]MH_I2C_Read... [11:09:38]Read from MH i2c: 01 [11:09:38]MH_I2C_Read... [11:09:38]Read from MH i2c: 01 07 00 [11:09:38]MH_I2C_Read... [11:09:38]Read from MH i2c: 01 07 00 33 47 00 03 00 00 00 FF 0F 92 [11:09:38]state=3 [11:09:38]No paper [11:09:38]Cover opened [11:09:38]OFD Sender: No OFD packet to send [11:09:39]int [11:09:39]Write to MH i2c: 01 00 00 34 47 7B [11:09:39]*** FLAG_PRN_PAP2 reset [11:09:39]Write i2c OK [11:09:39]MH_I2C_Read... [11:09:39]Read from MH i2c: 01 [11:09:39]MH_I2C_Read... [11:09:39]Read from MH i2c: 01 07 00 [11:09:39]MH_I2C_Read... [11:09:39]Read from MH i2c: 01 07 00 34 47 00 01 00 00 00 FF 0F 91 [11:09:39]state=3 [11:09:39]No paper [11:09:39]Cover closed [11:09:39]int [11:09:39]Write to MH i2c: 01 00 00 35 47 7C [11:09:39]*** FLAG_PRN_PAP1 reset [11:09:39]Write i2c OK [11:09:39]MH_I2C_Read... [11:09:39]Read from MH i2c: 01 [11:09:39]MH_I2C_Read... [11:09:39]Read from MH i2c: 01 07 00 [11:09:39]MH_I2C_Read... [11:09:39]Read from MH i2c: 01 07 00 35 47 00 00 00 00 00 FF 0F 91 [11:09:39]state=0 [11:09:43]OFD Sender: No OFD packet to send [11:09:44]int [11:09:44]Write to MH i2c: 01 00 00 36 47 7D [11:09:44]*** FLAG_PRN_PAP1 set [11:09:44]Write i2c OK [11:09:44]MH_I2C_Read... [11:09:44]Read from MH i2c: 01 [11:09:44]MH_I2C_Read... [11:09:44]Read from MH i2c: 01 07 00 [11:09:44]MH_I2C_Read... [11:09:44]Read from MH i2c: 01 07 00 36 47 00 01 00 00 00 FF 0F 93 [11:09:44]state=0 [11:09:44]No paper [11:09:45]int [11:09:45]Write to MH i2c: 01 00 00 37 47 7E [11:09:45]*** FLAG_PRN_PAP2 set [11:09:45]Write i2c OK [11:09:45]MH_I2C_Read... [11:09:45]Read from MH i2c: 01 [11:09:45]MH_I2C_Read... [11:09:45]Read from MH i2c: 01 07 00 [11:09:45]MH_I2C_Read... [11:09:45]Read from MH i2c: 01 07 00 37 47 00 03 00 00 00 FF 0F 96 [11:09:45]state=0 [11:09:45]No paper [11:09:45]Cover opened [11:09:45]int [11:09:45]Write to MH i2c: 01 00 00 38 47 7F [11:09:45]Write i2c OK [11:09:45]MH_I2C_Read... [11:09:45]Read from MH i2c: 01 [11:09:45]MH_I2C_Read... [11:09:45]Read from MH i2c: 01 07 00 [11:09:45]MH_I2C_Read... [11:09:45]*** FLAG_PRN_PAP2 reset [11:09:45]*** FLAG_PRN_PAP1 reset [11:09:45]Read from MH i2c: 01 07 00 38 47 00 00 00 00 00 FF 0F 94 [11:09:45]state=3 [11:09:45]Cover closed [11:09:48]OFD Sender: No OFD packet to send [11:09:53]OFD Sender: No OFD packet to send [11:09:58]OFD Sender: No OFD packet to send [11:10:03]OFD Sender: No OFD packet to send [11:10:08]OFD Sender: No OFD packet to send [11:10:13]OFD Sender: No OFD packet to send [11:10:18]OFD Sender: No OFD packet to send [11:10:23]OFD Sender: No OFD packet to send [11:10:28]OFD Sender: No OFD packet to send [11:10:33]OFD Sender: No OFD packet to send [11:10:38]OFD Sender: No OFD packet to send [11:10:43]OFD Sender: No OFD packet to send [11:10:47]accept exits with 7 [11:10:47]New connection [11:10:47]New thread 3067157860 created [11:10:47]Thread 3067014500 joined [11:10:47]Waiting for new connection... [11:10:47] Sock 7.Parse request [11:10:47]Sock 7.Check first char [11:10:47]Sock 7.First char is OK [11:10:47]request: POST /json_proto HTTP/1.0 [11:10:47]Method: POST [11:10:47]URL: /json_proto [11:10:47]Method is POST - this is cgi request [11:10:47]url: /json_proto [11:10:47]query_string will be loaded in cgi processing [11:10:47]execute_cgi json_proto POST (null) [11:10:47]execute_cgi path=json_proto method=POST [11:10:47]POST find Content-Length [11:10:47]Host: 172.17.48.198:8080 [11:10:47]Content-Length: 631 [11:10:47]Content-Type: application/json [11:10:47] [11:10:47]POST finish read [11:10:47]Found Content-Length = 631 [11:10:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184159", "tax_sys" : 0, "items" : [ { "code": "50173822", "name": "\u0420/\u0436 Orbit \u0431/\u0441\u0430\u0445 \u043C\u044F\u0442\u0430 13,6\u0433", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:10:47]execute_script... [11:10:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184159", "tax_sys" : 0, "items" : [ { "code": "50173822", "name": "\u0420/\u0436 Orbit \u0431/\u0441\u0430\u0445 \u043C\u044F\u0442\u0430 13,6\u0433", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:10:47]POST & json_proto [11:10:47]process_json_proto [11:10:47]json parsed OK: [11:10:47]protocol is kg_v1.0 [11:10:47]action value=close_receipt [11:10:47]process_action close_receipt [11:10:47]cmd_close_receipt [11:10:47]MH_GetDate [11:10:47]Write to MH i2c: F0 00 00 39 47 6F [11:10:47]Write i2c OK [11:10:47]MH_I2C_Read... [11:10:47]Read from MH i2c: F0 [11:10:47]MH_I2C_Read... [11:10:47]Read from MH i2c: F0 09 00 [11:10:47]MH_I2C_Read... [11:10:47]Read from MH i2c: F0 09 00 39 47 00 C2 5A E4 65 CE C4 D4 65 A8 [11:10:47]GetLastDocTimeStamp 1709463841 [11:10:47]current date 1709464258 [11:10:47]FM_GetShiftState [11:10:47]SAM_PROTO_GetShiftState [11:10:47]wFMCommunicate request_size=4 [11:10:47]MH_SAM_APDU [11:10:47]CAPDU: 80 13 01 00 [11:10:47]Write to MH i2c: E2 08 00 3A 47 80 13 01 00 00 00 00 00 FE [11:10:47]Write i2c OK [11:10:47]MH_I2C_Read... [11:10:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:10:47]Read from MH i2c: E2 [11:10:47]MH_I2C_Read... [11:10:47]Read from MH i2c: E2 0E 00 [11:10:47]MH_I2C_Read... [11:10:47]Read from MH i2c: E2 0E 00 3A 47 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 34 [11:10:47]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [11:10:47]wFMCommunicate OK [11:10:47]SAM_PROTO_GetShiftState done [11:10:47]FM_GetShiftState done [11:10:47]opened in 1709425694 [11:10:47]opened+sec_in_day 1709512094 [11:10:47]quantity*price = 4000 [11:10:47]sum+1 = 4001 [11:10:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 40.00 НСП 1% : 0.35 НДС 12% : 4.25 Наличными: 40.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 30 03.03.2024 11:10 Смена: 331 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 ФМ: 0000000000874796 ФД: 45193 ФПД: 230991601859431 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T111058&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45193&fm=230991601859431&tin=02508201610067®Number=0000000000090572&sum=4000 0 [11:10:48]StoreToDocumentArchive [11:10:48]shift 331 fd 45193 [11:10:48]save to /storage/0331/doc_00045193 [11:10:48]save last doc name /storage/0331/doc_00045193 to /storage/kkm_last_doc_name [11:10:48]save OK [11:10:48]Clear old archive folders... [11:10:48]ProcessDocumentItem done err = 0, tmpTLVsize=274 [11:10:48]tlvbuf is 01C31F80 [11:10:48]SAM_PROTO_ClearQueue [11:10:48]wFMCommunicate request_size=4 [11:10:48]MH_SAM_APDU [11:10:48]CAPDU: 80 09 00 00 [11:10:48]Write to MH i2c: E2 08 00 47 47 80 09 00 00 00 00 00 00 00 [11:10:48]Write i2c OK [11:10:48]MH_I2C_Read... [11:10:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:10:48]Read from MH i2c: E2 [11:10:48]MH_I2C_Read... [11:10:48]Read from MH i2c: E2 03 00 [11:10:48]MH_I2C_Read... [11:10:48]Read from MH i2c: E2 03 00 47 47 00 90 00 02 [11:10:48]RAPDU: 90 00 [11:10:48]wFMCommunicate OK [11:10:48]SAM_PROTO_ClearQueue done [11:10:48]KKMCreateOFDPacket [11:10:48]OFDProtocolAddRootSTLVToBuf [11:10:48]FM_MakeSignedData [11:10:48]FM_MakeSignedData [11:10:48]SAM_PROTO_SignData [11:10:48]wFMCommunicate request_size=4 [11:10:48]MH_SAM_APDU [11:10:48]CAPDU: 80 0D 01 02 [11:10:48]Write to MH i2c: E2 08 00 48 47 80 0D 01 02 00 00 00 00 08 [11:10:48]Write i2c OK [11:10:48]MH_I2C_Read... [11:10:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:10:48]Read from MH i2c: E2 [11:10:48]MH_I2C_Read... [11:10:48]Read from MH i2c: E2 03 00 [11:10:48]MH_I2C_Read... [11:10:48]Read from MH i2c: E2 03 00 48 47 00 90 00 03 [11:10:48]RAPDU: 90 00 [11:10:48]wFMCommunicate OK [11:10:48]wFMCommunicate request_size=255 [11:10:48]MH_SAM_APDU [11:10:48]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 35 30 31 37 33 38 32 32 06 04 25 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 D0 B1 2F D1 81 D0 B0 D1 85 20 D0 BC D1 8F D1 82 D0 B0 20 31 33 2C 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 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 C2 5A E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 [11:10:48]Write to MH i2c: E2 02 01 49 47 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 35 30 31 37 33 38 32 32 06 04 25 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 D0 B1 2F D1 81 D0 B0 D1 85 20 D0 BC D1 8F D1 82 D0 B0 20 31 33 2C 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 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 C2 5A E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 00 00 F5 [11:10:48]Write i2c OK [11:10:48]MH_I2C_Read... [11:10:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:10:48]Read from MH i2c: E2 [11:10:48]MH_I2C_Read... [11:10:48]Read from MH i2c: E2 03 00 [11:10:48]MH_I2C_Read... [11:10:48]Read from MH i2c: E2 03 00 49 47 00 90 00 04 [11:10:48]RAPDU: 90 00 [11:10:48]wFMCommunicate OK [11:10:48]wFMCommunicate request_size=33 [11:10:48]MH_SAM_APDU [11:10:48]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 34 37 39 36 10 04 04 00 89 B0 00 00 35 04 06 00 D2 15 EC 5F FB 67 [11:10:48]Write to MH i2c: E2 24 00 4A 47 80 0D 02 02 1C 00 30 30 30 30 38 37 34 37 39 36 10 04 04 00 89 B0 00 00 35 04 06 00 D2 15 EC 5F FB 67 00 00 70 [11:10:48]Write i2c OK [11:10:48]MH_I2C_Read... [11:10:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:10:48]Read from MH i2c: E2 [11:10:48]MH_I2C_Read... [11:10:48]Read from MH i2c: E2 03 00 [11:10:48]MH_I2C_Read... [11:10:48]Read from MH i2c: E2 03 00 4A 47 00 90 00 05 [11:10:48]RAPDU: 90 00 [11:10:48]wFMCommunicate OK [11:10:48]wFMCommunicate request_size=4 [11:10:48]MH_SAM_APDU [11:10:48]CAPDU: 80 0D 03 02 [11:10:48]Write to MH i2c: E2 08 00 4B 47 80 0D 03 02 00 00 00 00 0D [11:10:48]Write i2c OK [11:10:48]MH_I2C_Read... [11:10:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:10:48]Read from MH i2c: E2 [11:10:48]MH_I2C_Read... [11:10:48]Read from MH i2c: E2 0B 00 [11:10:48]MH_I2C_Read... [11:10:48]Read from MH i2c: E2 0B 00 4B 47 00 4E E7 05 77 0B A6 A2 A9 90 00 BB [11:10:48]RAPDU: 4E E7 05 77 0B A6 A2 A9 90 00 [11:10:48]wFMCommunicate OK [11:10:48]SAM_PROTO_SignData done [11:10:48]FM_MakeSignedData done [11:10:48]CreateOFDProtocolMessage [11:10:48]wFMCommunicate request_size=4 [11:10:48]MH_SAM_APDU [11:10:48]CAPDU: 80 11 00 00 [11:10:48]Write to MH i2c: E2 08 00 4C 47 80 11 00 00 00 00 00 00 0D [11:10:48]Write i2c OK [11:10:48]MH_I2C_Read... [11:10:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:10:48]Read from MH i2c: E2 [11:10:48]MH_I2C_Read... [11:10:48]Read from MH i2c: E2 17 00 [11:10:48]MH_I2C_Read... [11:10:48]Read from MH i2c: E2 17 00 4C 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 69 [11:10:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [11:10:48]wFMCommunicate OK [11:10:48]CreateOFDProtocolMessage done [11:10:48]OFDSenderStorePacket 45193 [11:10:48]StoreOFDPacket docnum=45193 [11:10:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 26 01 00 00 CA FD 1E 01 D1 C6 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 35 30 31 37 33 38 32 32 06 04 25 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 D0 B1 2F D1 81 D0 B0 D1 85 20 D0 BC D1 8F D1 82 D0 B0 20 31 33 2C 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 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 C2 5A E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 89 B0 00 00 35 04 06 00 D2 15 EC 5F FB 67 4E E7 05 77 0B A6 A2 A9 [11:10:48]CheckFolder [11:10:48]dirname=/storage/ofd_packets [11:10:48]CheckFolder done [11:10:48]ProducePacketName [11:10:48]name=ofd_packets/00045193 [11:10:48]NVStorageSaveData ofd_packets/00045193 [11:10:48]File name is /storage/ofd_packets/00045193 [11:10:48]Write 324 bytes [11:10:48]NVStorageSaveData done [11:10:48]OFDSenderStorePacket done [11:10:48]KKMCreateOFDPacket done [11:10:48]NVStorageSaveData kkm_last_timestamp [11:10:48]File name is /storage/kkm_last_timestamp [11:10:48]Write 4 bytes [11:10:48]NVStorageSaveData done [11:10:48]ExternCall_PrintAddStr [11:10:48]wPrintStart [11:10:48]Write to MH i2c: 01 00 00 4D 47 94 [11:10:48]Write i2c OK [11:10:48]MH_I2C_Read... [11:10:48]Read from MH i2c: 01 [11:10:48]MH_I2C_Read... [11:10:48]Read from MH i2c: 01 07 00 [11:10:48]MH_I2C_Read... [11:10:48]Read from MH i2c: 01 07 00 4D 47 00 00 00 00 00 FF 0F A9 [11:10:48]RasterBufferAndPrint [11:10:48]line Счет N : (3)184159 [11:10:48]line ИНН: 02508201610067 [11:10:48]line Контрольно-Кассовый Чек [11:10:48]line ПРОДАЖА [11:10:48]line Товар: 50173822 [11:10:48]line Р/ж Orbit б/сах мята 13,6г [11:10:48]line 1.000 * 40.00 [11:10:48]line = 40.00 [11:10:48]line НДС 12% НСП 1% [11:10:48]line > о реализуемом товаре [11:10:48]line ИТОГО: 40.00 [11:10:48]line НСП 1% : 0.35 [11:10:48]line НДС 12% : 4.25 [11:10:48]line Наличными: 40.00 [11:10:48]line Безнал.: 0.00 [11:10:48]line Место: АЗС № 25 "Партнер Нефть" [11:10:48]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [11:10:48]line СНО: Общий режим [11:10:48]line Чек 30 03.03.2024 11:10 [11:10:48]line Смена: 331 ФФД: 1.0 [11:10:48]line ЗНМ: 0300000013 [11:10:48]line РНМ: 0000000000090572 [11:10:48]line Версия ККМ: 001 [11:10:48]line ФМ: 0000000000874796 [11:10:48]line ФД: 45193 [11:10:48]line ФПД: 230991601859431 [11:10:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T111058&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45193&fm=230991601859431&tin=02508201610067®Number=0000000000090572&sum=4000 [11:10:49]line 0 [11:10:49]OFD Sender: Processing packet 45193 [packets to send 17, broken 16] [11:10:49]ProducePacketName [11:10:49]name=ofd_packets/00045193 [11:10:49]OFD Sender: To server: pG, [11:10:49]CommunicateWithHost lk.salyk.kg:30040 [11:10:49]ConnectInit lk.salyk.kg [11:10:49]written 0, free lines is 4095 [11:10:49]Connected sock=10 [11:10:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 26 01 00 00 CA FD 1E 01 D1 C6 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 35 30 31 37 33 38 32 32 06 04 25 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 D0 B1 2F D1 81 D0 B0 D1 85 20 D0 BC D1 8F D1 82 D0 B0 20 31 33 2C 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 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 C2 5A E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 89 B0 00 00 35 04 06 00 D2 15 EC 5F FB 67 4E E7 05 77 0B A6 A2 A9 [11:10:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 34 FB 47 00 C9 2E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 89 B0 00 00 F4 03 04 00 87 06 E4 65 B6 04 01 00 00 55 0E 91 E4 4D FF E4 FF [11:10:49]CommunicateWithHost err = 0 [11:10:49]CheckOFDResponse [11:10:49]1017 (14) - 77093643461234 [11:10:49]1041 (16) - 0000000000874796 [11:10:49]1040 (4) - 45193 [11:10:49]1012 (4) - 03.03.2024 05:11 [11:10:49]1206 (1) - 0 [11:10:49]OFD Sender: Remove packet 45193 [11:10:49]ProducePacketName [11:10:49]name=ofd_packets/00045193 [11:10:49]NVStorageDeleteData [11:10:49]Write to MH i2c: 01 00 00 75 47 BC [11:10:49]Write i2c OK [11:10:49]MH_I2C_Read... [11:10:49]Read from MH i2c: 01 [11:10:49]MH_I2C_Read... [11:10:49]Read from MH i2c: 01 07 00 [11:10:49]MH_I2C_Read... [11:10:49]Read from MH i2c: 01 07 00 75 47 00 00 00 00 00 12 0D E2 [11:10:49]RasterBufferAndPrint [11:10:49]line [11:10:49]line [11:10:49]line [11:10:49]line [11:10:49]line [11:10:49]written 0, free lines is 3352 [11:10:49]MH_Cut [11:10:49]Write to MH i2c: D1 01 00 7C 47 01 95 [11:10:49]Write i2c OK [11:10:49]MH_I2C_Read... [11:10:49]Read from MH i2c: D1 [11:10:49]MH_I2C_Read... [11:10:49]Read from MH i2c: D1 01 00 [11:10:49]MH_I2C_Read... [11:10:49]Read from MH i2c: D1 01 00 7C 47 00 94 [11:10:49]Write to MH i2c: 01 00 00 7D 47 C4 [11:10:49]Write i2c OK [11:10:49]MH_I2C_Read... [11:10:50]OFD Sender: No OFD packet to send [11:10:50]*** Cut start [11:10:50]*** Purtial cut [11:10:50]*** Stage 1: CUTSNS_PIN = 1 [11:10:52]Read from MH i2c: 01 [11:10:52]MH_I2C_Read... [11:10:52]*** Stop cut motor [11:10:52]*** Cut end [11:10:52]Read from MH i2c: 01 07 00 [11:10:52]MH_I2C_Read... [11:10:52]Read from MH i2c: 01 07 00 7D 47 00 00 00 00 00 FF 0F D9 [11:10:52]process_action close_receipt done [11:10:52]requested_data is exist [11:10:52]produce_requested_data [11:10:52]requested_item fm.sn is exist - process it [11:10:52]wFMCommunicate request_size=4 [11:10:52]MH_SAM_APDU [11:10:52]CAPDU: 80 11 00 00 [11:10:52]Write to MH i2c: E2 08 00 7E 47 80 11 00 00 00 00 00 00 3F [11:10:52]Write i2c OK [11:10:52]MH_I2C_Read... [11:10:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:10:52]Read from MH i2c: E2 [11:10:52]MH_I2C_Read... [11:10:52]Read from MH i2c: E2 17 00 [11:10:52]MH_I2C_Read... [11:10:52]Read from MH i2c: E2 17 00 7E 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 9B [11:10:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [11:10:52]wFMCommunicate OK [11:10:52]requested_item fd.num is exist - process it [11:10:52]SAM_PROTO_GetFieldsCounters [11:10:52]wFMCommunicate request_size=4 [11:10:52]MH_SAM_APDU [11:10:52]CAPDU: 80 13 00 00 [11:10:52]Write to MH i2c: E2 08 00 7F 47 80 13 00 00 00 00 00 00 42 [11:10:52]Write i2c OK [11:10:52]MH_I2C_Read... [11:10:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:10:52]Read from MH i2c: E2 [11:10:52]MH_I2C_Read... [11:10:52]Read from MH i2c: E2 62 00 [11:10:52]MH_I2C_Read... [11:10:52]Read from MH i2c: E2 62 00 7F 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 89 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 49 [11:10:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 89 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:10:52]wFMCommunicate OK [11:10:52]SAM_PROTO_GetFieldsCounters done [11:10:52]requested_item shift.num is exist - process it [11:10:52]requested_item shift.opened is exist - process it [11:10:52]req_shift_opened [11:10:52]FM_GetShiftState [11:10:52]SAM_PROTO_GetShiftState [11:10:52]wFMCommunicate request_size=4 [11:10:52]MH_SAM_APDU [11:10:52]CAPDU: 80 13 01 00 [11:10:52]Write to MH i2c: E2 08 00 80 47 80 13 01 00 00 00 00 00 44 [11:10:52]Write i2c OK [11:10:52]MH_I2C_Read... [11:10:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:10:52]Read from MH i2c: E2 [11:10:52]MH_I2C_Read... [11:10:52]Read from MH i2c: E2 0E 00 [11:10:52]MH_I2C_Read... [11:10:52]Read from MH i2c: E2 0E 00 80 47 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 7A [11:10:52]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [11:10:52]wFMCommunicate OK [11:10:52]SAM_PROTO_GetShiftState done [11:10:52]FM_GetShiftState done [11:10:52]req_shift_opened done [11:10:52]requested_item shift.open_date is exist - process it [11:10:52]req_shift_open_date [11:10:52]req_shift_open_date done [11:10:52]produce_requested_data done [11:10:52]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45193,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [11:10:52]process_action_free close_receipt [11:10:52]json_value_free [11:10:52]json_value_free done [11:10:52]process_json_proto returns [11:10:52]Send response to host [11:10:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45193,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [11:10:52]free response buf [11:10:52]execute_script done [11:10:52]execute_script returns [11:10:52]free content buf [11:10:52]Sock 7.Close socket [11:10:52]Sock 7.Thread stoped [11:10:55]OFD Sender: No OFD packet to send [11:11:00]OFD Sender: No OFD packet to send [11:11:05]OFD Sender: No OFD packet to send [11:11:10]OFD Sender: No OFD packet to send [11:11:15]OFD Sender: No OFD packet to send [11:11:20]OFD Sender: No OFD packet to send [11:11:25]OFD Sender: No OFD packet to send [11:11:30]OFD Sender: No OFD packet to send [11:11:35]OFD Sender: No OFD packet to send [11:11:40]OFD Sender: No OFD packet to send [11:11:45]OFD Sender: No OFD packet to send [11:11:50]OFD Sender: No OFD packet to send [11:11:55]OFD Sender: No OFD packet to send [11:12:00]OFD Sender: No OFD packet to send [11:12:05]OFD Sender: No OFD packet to send [11:12:10]OFD Sender: No OFD packet to send [11:12:15]OFD Sender: No OFD packet to send [11:12:20]OFD Sender: No OFD packet to send [11:12:25]OFD Sender: No OFD packet to send [11:12:30]OFD Sender: No OFD packet to send [11:12:35]OFD Sender: No OFD packet to send [11:12:40]OFD Sender: No OFD packet to send [11:12:45]OFD Sender: No OFD packet to send [11:12:50]OFD Sender: No OFD packet to send [11:12:55]OFD Sender: No OFD packet to send [11:13:00]OFD Sender: No OFD packet to send [11:13:05]OFD Sender: No OFD packet to send [11:13:10]OFD Sender: No OFD packet to send [11:13:15]OFD Sender: No OFD packet to send [11:13:20]OFD Sender: No OFD packet to send [11:13:25]OFD Sender: No OFD packet to send [11:13:30]OFD Sender: No OFD packet to send [11:13:35]OFD Sender: No OFD packet to send [11:13:40]OFD Sender: No OFD packet to send [11:13:45]OFD Sender: No OFD packet to send [11:13:50]OFD Sender: No OFD packet to send [11:13:55]OFD Sender: No OFD packet to send [11:14:00]OFD Sender: No OFD packet to send [11:14:05]OFD Sender: No OFD packet to send [11:14:10]OFD Sender: No OFD packet to send [11:14:15]OFD Sender: No OFD packet to send [11:14:20]OFD Sender: No OFD packet to send [11:14:25]OFD Sender: No OFD packet to send [11:14:30]OFD Sender: No OFD packet to send [11:14:35]OFD Sender: No OFD packet to send [11:14:40]OFD Sender: No OFD packet to send [11:14:45]OFD Sender: No OFD packet to send [11:14:50]OFD Sender: No OFD packet to send [11:14:55]OFD Sender: No OFD packet to send [11:15:00]OFD Sender: No OFD packet to send [11:15:05]OFD Sender: No OFD packet to send [11:15:10]OFD Sender: No OFD packet to send [11:15:15]OFD Sender: No OFD packet to send [11:15:20]OFD Sender: No OFD packet to send [11:15:25]OFD Sender: No OFD packet to send [11:15:30]OFD Sender: No OFD packet to send [11:15:35]OFD Sender: No OFD packet to send [11:15:40]OFD Sender: No OFD packet to send [11:15:45]OFD Sender: No OFD packet to send [11:15:50]OFD Sender: No OFD packet to send [11:15:55]OFD Sender: No OFD packet to send [11:16:00]OFD Sender: No OFD packet to send [11:16:05]OFD Sender: No OFD packet to send [11:16:10]OFD Sender: No OFD packet to send [11:16:15]OFD Sender: No OFD packet to send [11:16:20]OFD Sender: No OFD packet to send [11:16:25]OFD Sender: No OFD packet to send [11:16:30]OFD Sender: No OFD packet to send [11:16:35]OFD Sender: No OFD packet to send [11:16:40]OFD Sender: No OFD packet to send [11:16:45]OFD Sender: No OFD packet to send [11:16:50]OFD Sender: No OFD packet to send [11:16:55]OFD Sender: No OFD packet to send [11:17:00]OFD Sender: No OFD packet to send [11:17:05]OFD Sender: No OFD packet to send [11:17:10]OFD Sender: No OFD packet to send [11:17:15]OFD Sender: No OFD packet to send [11:17:20]OFD Sender: No OFD packet to send [11:17:25]OFD Sender: No OFD packet to send [11:17:30]OFD Sender: No OFD packet to send [11:17:35]OFD Sender: No OFD packet to send [11:17:40]OFD Sender: No OFD packet to send [11:17:45]OFD Sender: No OFD packet to send [11:17:50]OFD Sender: No OFD packet to send [11:17:55]OFD Sender: No OFD packet to send [11:18:00]OFD Sender: No OFD packet to send [11:18:05]OFD Sender: No OFD packet to send [11:18:10]OFD Sender: No OFD packet to send [11:18:15]accept exits with 9 [11:18:15]New connection [11:18:15]New thread 3067014500 created [11:18:15]Thread 3067157860 joined [11:18:15]Waiting for new connection... [11:18:15] Sock 9.Parse request [11:18:15]Sock 9.Check first char [11:18:15]Sock 9.First char is OK [11:18:15]request: POST /json_proto HTTP/1.0 [11:18:15]Method: POST [11:18:15]URL: /json_proto [11:18:15]Method is POST - this is cgi request [11:18:15]url: /json_proto [11:18:15]query_string will be loaded in cgi processing [11:18:15]execute_cgi json_proto POST (null) [11:18:15]execute_cgi path=json_proto method=POST [11:18:15]POST find Content-Length [11:18:15]Host: 172.17.48.198:8080 [11:18:15]Content-Length: 643 [11:18:15]Content-Type: application/json [11:18:15] [11:18:15]POST finish read [11:18:15]Found Content-Length = 643 [11:18:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184160", "tax_sys" : 0, "items" : [ { "code": "40822426", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 0,5\u043B \u0431/\u0433", "price" : 40.00, "quantity" : 4.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" ] } } [11:18:15]execute_script... [11:18:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184160", "tax_sys" : 0, "items" : [ { "code": "40822426", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 0,5\u043B \u0431/\u0433", "price" : 40.00, "quantity" : 4.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" ] } } [11:18:15]POST & json_proto [11:18:15]process_json_proto [11:18:15]json parsed OK: [11:18:15]protocol is kg_v1.0 [11:18:15]action value=close_receipt [11:18:15]process_action close_receipt [11:18:15]cmd_close_receipt [11:18:15]MH_GetDate [11:18:15]Write to MH i2c: F0 00 00 81 47 B7 [11:18:15]Write i2c OK [11:18:15]MH_I2C_Read... [11:18:15]Read from MH i2c: F0 [11:18:15]MH_I2C_Read... [11:18:15]Read from MH i2c: F0 09 00 [11:18:15]MH_I2C_Read... [11:18:15]Read from MH i2c: F0 09 00 81 47 00 82 5C E4 65 CE C4 D4 65 B2 [11:18:15]GetLastDocTimeStamp 1709464258 [11:18:15]current date 1709464706 [11:18:15]FM_GetShiftState [11:18:15]SAM_PROTO_GetShiftState [11:18:15]wFMCommunicate request_size=4 [11:18:15]MH_SAM_APDU [11:18:15]CAPDU: 80 13 01 00 [11:18:15]Write to MH i2c: E2 08 00 82 47 80 13 01 00 00 00 00 00 46 [11:18:15]Write i2c OK [11:18:15]MH_I2C_Read... [11:18:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:15]Read from MH i2c: E2 [11:18:15]MH_I2C_Read... [11:18:15]Read from MH i2c: E2 0E 00 [11:18:15]MH_I2C_Read... [11:18:15]Read from MH i2c: E2 0E 00 82 47 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 7C [11:18:15]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [11:18:15]wFMCommunicate OK [11:18:15]SAM_PROTO_GetShiftState done [11:18:15]FM_GetShiftState done [11:18:15]opened in 1709425694 [11:18:15]opened+sec_in_day 1709512094 [11:18:15]quantity*price = 16000 [11:18:15]sum+1 = 16001 [11:18:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 160.00 НСП 1% : 1.42 НДС 12% : 16.99 Наличными: 160.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 31 03.03.2024 11:18 Смена: 331 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 ФМ: 0000000000874796 ФД: 45194 ФПД: 54463214674805 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T111826&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45194&fm=54463214674805&tin=02508201610067®Number=0000000000090572&sum=16000 0 [11:18:16]StoreToDocumentArchive [11:18:16]shift 331 fd 45194 [11:18:16]save to /storage/0331/doc_00045194 [11:18:16]save last doc name /storage/0331/doc_00045194 to /storage/kkm_last_doc_name [11:18:16]save OK [11:18:16]Clear old archive folders... [11:18:16]ProcessDocumentItem done err = 0, tmpTLVsize=272 [11:18:16]tlvbuf is 01B04FD0 [11:18:16]SAM_PROTO_ClearQueue [11:18:16]wFMCommunicate request_size=4 [11:18:16]MH_SAM_APDU [11:18:16]CAPDU: 80 09 00 00 [11:18:16]Write to MH i2c: E2 08 00 8F 47 80 09 00 00 00 00 00 00 48 [11:18:16]Write i2c OK [11:18:16]MH_I2C_Read... [11:18:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:18:16]Read from MH i2c: E2 [11:18:16]MH_I2C_Read... [11:18:16]Read from MH i2c: E2 03 00 [11:18:16]MH_I2C_Read... [11:18:16]Read from MH i2c: E2 03 00 8F 47 00 90 00 4A [11:18:16]RAPDU: 90 00 [11:18:16]wFMCommunicate OK [11:18:16]SAM_PROTO_ClearQueue done [11:18:16]KKMCreateOFDPacket [11:18:16]OFDProtocolAddRootSTLVToBuf [11:18:16]FM_MakeSignedData [11:18:16]FM_MakeSignedData [11:18:16]SAM_PROTO_SignData [11:18:16]wFMCommunicate request_size=4 [11:18:16]MH_SAM_APDU [11:18:16]CAPDU: 80 0D 01 02 [11:18:16]Write to MH i2c: E2 08 00 90 47 80 0D 01 02 00 00 00 00 50 [11:18:16]Write i2c OK [11:18:16]MH_I2C_Read... [11:18:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:18:16]Read from MH i2c: E2 [11:18:16]MH_I2C_Read... [11:18:16]Read from MH i2c: E2 03 00 [11:18:16]MH_I2C_Read... [11:18:16]Read from MH i2c: E2 03 00 90 47 00 90 00 4B [11:18:16]RAPDU: 90 00 [11:18:16]wFMCommunicate OK [11:18:16]wFMCommunicate request_size=255 [11:18:16]MH_SAM_APDU [11:18:16]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 30 38 32 32 34 32 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 A0 0F 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 1F 00 00 00 F4 03 04 00 82 5C E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 [11:18:16]Write to MH i2c: E2 02 01 91 47 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 30 38 32 32 34 32 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 A0 0F 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 1F 00 00 00 F4 03 04 00 82 5C E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 00 00 5B [11:18:16]Write i2c OK [11:18:16]MH_I2C_Read... [11:18:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:18:16]Read from MH i2c: E2 [11:18:16]MH_I2C_Read... [11:18:16]Read from MH i2c: E2 03 00 [11:18:16]MH_I2C_Read... [11:18:16]Read from MH i2c: E2 03 00 91 47 00 90 00 4C [11:18:16]RAPDU: 90 00 [11:18:16]wFMCommunicate OK [11:18:16]wFMCommunicate request_size=31 [11:18:16]MH_SAM_APDU [11:18:16]CAPDU: 80 0D 02 02 1A 30 30 38 37 34 37 39 36 10 04 04 00 8A B0 00 00 35 04 06 00 31 88 B4 90 63 75 [11:18:16]Write to MH i2c: E2 22 00 92 47 80 0D 02 02 1A 00 30 30 38 37 34 37 39 36 10 04 04 00 8A B0 00 00 35 04 06 00 31 88 B4 90 63 75 00 00 96 [11:18:16]Write i2c OK [11:18:16]MH_I2C_Read... [11:18:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:18:16]Read from MH i2c: E2 [11:18:16]MH_I2C_Read... [11:18:16]Read from MH i2c: E2 03 00 [11:18:16]MH_I2C_Read... [11:18:16]Read from MH i2c: E2 03 00 92 47 00 90 00 4D [11:18:16]RAPDU: 90 00 [11:18:16]wFMCommunicate OK [11:18:16]wFMCommunicate request_size=4 [11:18:16]MH_SAM_APDU [11:18:16]CAPDU: 80 0D 03 02 [11:18:16]Write to MH i2c: E2 08 00 93 47 80 0D 03 02 00 00 00 00 55 [11:18:16]Write i2c OK [11:18:16]MH_I2C_Read... [11:18:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:18:16]Read from MH i2c: E2 [11:18:16]MH_I2C_Read... [11:18:16]Read from MH i2c: E2 0B 00 [11:18:16]MH_I2C_Read... [11:18:16]Read from MH i2c: E2 0B 00 93 47 00 43 D6 E6 EE 0D 44 A0 1F 90 00 53 [11:18:16]RAPDU: 43 D6 E6 EE 0D 44 A0 1F 90 00 [11:18:16]wFMCommunicate OK [11:18:16]SAM_PROTO_SignData done [11:18:16]FM_MakeSignedData done [11:18:16]CreateOFDProtocolMessage [11:18:16]wFMCommunicate request_size=4 [11:18:16]MH_SAM_APDU [11:18:16]CAPDU: 80 11 00 00 [11:18:16]Write to MH i2c: E2 08 00 94 47 80 11 00 00 00 00 00 00 55 [11:18:16]Write i2c OK [11:18:16]MH_I2C_Read... [11:18:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:16]Read from MH i2c: E2 [11:18:16]MH_I2C_Read... [11:18:16]Read from MH i2c: E2 17 00 [11:18:16]MH_I2C_Read... [11:18:16]Read from MH i2c: E2 17 00 94 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 B1 [11:18:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [11:18:16]wFMCommunicate OK [11:18:16]CreateOFDProtocolMessage done [11:18:16]OFDSenderStorePacket 45194 [11:18:16]StoreOFDPacket docnum=45194 [11:18:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 24 01 00 00 8A 45 1C 01 F1 DA 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 30 38 32 32 34 32 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 A0 0F 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 1F 00 00 00 F4 03 04 00 82 5C E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 8A B0 00 00 35 04 06 00 31 88 B4 90 63 75 43 D6 E6 EE 0D 44 A0 1F [11:18:16]CheckFolder [11:18:16]dirname=/storage/ofd_packets [11:18:16]CheckFolder done [11:18:16]ProducePacketName [11:18:16]name=ofd_packets/00045194 [11:18:16]NVStorageSaveData ofd_packets/00045194 [11:18:16]File name is /storage/ofd_packets/00045194 [11:18:16]Write 322 bytes [11:18:16]NVStorageSaveData done [11:18:16]OFDSenderStorePacket done [11:18:16]KKMCreateOFDPacket done [11:18:16]NVStorageSaveData kkm_last_timestamp [11:18:16]File name is /storage/kkm_last_timestamp [11:18:16]Write 4 bytes [11:18:16]NVStorageSaveData done [11:18:16]ExternCall_PrintAddStr [11:18:16]wPrintStart [11:18:16]Write to MH i2c: 01 00 00 95 47 DC [11:18:16]OFD Sender: Processing packet 45194 [packets to send 17, broken 16] [11:18:16]ProducePacketName [11:18:16]name=ofd_packets/00045194 [11:18:16]OFD Sender: To server: pG, [11:18:16]CommunicateWithHost lk.salyk.kg:30040 [11:18:16]ConnectInit lk.salyk.kg [11:18:16]Write i2c OK [11:18:16]MH_I2C_Read... [11:18:16]Read from MH i2c: 01 [11:18:16]MH_I2C_Read... [11:18:16]Read from MH i2c: 01 07 00 [11:18:16]MH_I2C_Read... [11:18:16]Read from MH i2c: 01 07 00 95 47 00 00 00 00 00 FF 0F F1 [11:18:17]RasterBufferAndPrint [11:18:17]line Счет N : (3)184160 [11:18:17]line ИНН: 02508201610067 [11:18:17]line Контрольно-Кассовый Чек [11:18:17]line ПРОДАЖА [11:18:17]line Товар: 40822426 [11:18:17]line Вода Бонаква 0,5л б/г [11:18:17]line 4.000 * 40.00 [11:18:17]line = 160.00 [11:18:17]line НДС 12% НСП 1% [11:18:17]line > о реализуемом товаре [11:18:17]line ИТОГО: 160.00 [11:18:17]line НСП 1% : 1.42 [11:18:17]line НДС 12% : 16.99 [11:18:17]line Наличными: 160.00 [11:18:17]line Безнал.: 0.00 [11:18:17]line Место: АЗС № 25 "Партнер Нефть" [11:18:17]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [11:18:17]line СНО: Общий режим [11:18:17]line Чек 31 03.03.2024 11:18 [11:18:17]line Смена: 331 ФФД: 1.0 [11:18:17]line ЗНМ: 0300000013 [11:18:17]line РНМ: 0000000000090572 [11:18:17]line Версия ККМ: 001 [11:18:17]line ФМ: 0000000000874796 [11:18:17]line ФД: 45194 [11:18:17]line ФПД: 54463214674805 [11:18:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T111826&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45194&fm=54463214674805&tin=02508201610067®Number=0000000000090572&sum=16000 [11:18:17]line 0 [11:18:17]Connected sock=10 [11:18:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 24 01 00 00 8A 45 1C 01 F1 DA 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 30 38 32 32 34 32 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 A0 0F 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 1F 00 00 00 F4 03 04 00 82 5C E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 8A B0 00 00 35 04 06 00 31 88 B4 90 63 75 43 D6 E6 EE 0D 44 A0 1F [11:18:17]written 0, free lines is 4095 [11:18:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 84 0A 47 00 54 A5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 8A B0 00 00 F4 03 04 00 47 08 E4 65 B6 04 01 00 00 D5 74 1E C1 B2 EE EE 17 [11:18:17]CommunicateWithHost err = 0 [11:18:17]CheckOFDResponse [11:18:17]1017 (14) - 77093643461234 [11:18:17]1041 (16) - 0000000000874796 [11:18:17]1040 (4) - 45194 [11:18:17]1012 (4) - 03.03.2024 05:19 [11:18:17]1206 (1) - 0 [11:18:17]OFD Sender: Remove packet 45194 [11:18:17]ProducePacketName [11:18:17]name=ofd_packets/00045194 [11:18:17]NVStorageDeleteData [11:18:17]Write to MH i2c: 01 00 00 BD 47 04 [11:18:17]Write i2c OK [11:18:17]MH_I2C_Read... [11:18:17]Read from MH i2c: 01 [11:18:17]MH_I2C_Read... [11:18:17]Read from MH i2c: 01 07 00 [11:18:17]MH_I2C_Read... [11:18:17]Read from MH i2c: 01 07 00 BD 47 00 00 00 00 00 08 0D 20 [11:18:17]RasterBufferAndPrint [11:18:17]line [11:18:17]line [11:18:17]line [11:18:17]line [11:18:17]line [11:18:17]written 0, free lines is 3342 [11:18:17]MH_Cut [11:18:17]Write to MH i2c: D1 01 00 C4 47 01 DD [11:18:17]Write i2c OK [11:18:17]MH_I2C_Read... [11:18:17]Read from MH i2c: D1 [11:18:17]MH_I2C_Read... [11:18:17]Read from MH i2c: D1 01 00 [11:18:17]MH_I2C_Read... [11:18:17]Read from MH i2c: D1 01 00 C4 47 00 DC [11:18:17]Write to MH i2c: 01 00 00 C5 47 0C [11:18:17]Write i2c OK [11:18:17]MH_I2C_Read... [11:18:17]OFD Sender: No OFD packet to send [11:18:18]*** Cut start [11:18:18]*** Purtial cut [11:18:18]*** Stage 1: CUTSNS_PIN = 1 [11:18:20]Read from MH i2c: 01 [11:18:20]MH_I2C_Read... [11:18:20]*** Stop cut motor [11:18:20]*** Cut end [11:18:20]Read from MH i2c: 01 07 00 [11:18:20]MH_I2C_Read... [11:18:20]Read from MH i2c: 01 07 00 C5 47 00 00 00 00 00 FF 0F 21 [11:18:20]process_action close_receipt done [11:18:20]requested_data is exist [11:18:20]produce_requested_data [11:18:20]requested_item fm.sn is exist - process it [11:18:20]wFMCommunicate request_size=4 [11:18:20]MH_SAM_APDU [11:18:20]CAPDU: 80 11 00 00 [11:18:20]Write to MH i2c: E2 08 00 C6 47 80 11 00 00 00 00 00 00 87 [11:18:20]Write i2c OK [11:18:20]MH_I2C_Read... [11:18:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:20]Read from MH i2c: E2 [11:18:20]MH_I2C_Read... [11:18:20]Read from MH i2c: E2 17 00 [11:18:20]MH_I2C_Read... [11:18:20]Read from MH i2c: E2 17 00 C6 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 E3 [11:18:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [11:18:20]wFMCommunicate OK [11:18:20]requested_item fd.num is exist - process it [11:18:20]SAM_PROTO_GetFieldsCounters [11:18:20]wFMCommunicate request_size=4 [11:18:20]MH_SAM_APDU [11:18:20]CAPDU: 80 13 00 00 [11:18:20]Write to MH i2c: E2 08 00 C7 47 80 13 00 00 00 00 00 00 8A [11:18:20]Write i2c OK [11:18:20]MH_I2C_Read... [11:18:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:18:20]Read from MH i2c: E2 [11:18:20]MH_I2C_Read... [11:18:20]Read from MH i2c: E2 62 00 [11:18:20]MH_I2C_Read... [11:18:20]Read from MH i2c: E2 62 00 C7 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 8A B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 95 [11:18:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 8A B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:18:20]wFMCommunicate OK [11:18:20]SAM_PROTO_GetFieldsCounters done [11:18:20]requested_item shift.num is exist - process it [11:18:20]requested_item shift.opened is exist - process it [11:18:20]req_shift_opened [11:18:20]FM_GetShiftState [11:18:20]SAM_PROTO_GetShiftState [11:18:20]wFMCommunicate request_size=4 [11:18:20]MH_SAM_APDU [11:18:20]CAPDU: 80 13 01 00 [11:18:20]Write to MH i2c: E2 08 00 C8 47 80 13 01 00 00 00 00 00 8C [11:18:20]Write i2c OK [11:18:20]MH_I2C_Read... [11:18:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:20]Read from MH i2c: E2 [11:18:20]MH_I2C_Read... [11:18:20]Read from MH i2c: E2 0E 00 [11:18:20]MH_I2C_Read... [11:18:20]Read from MH i2c: E2 0E 00 C8 47 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 C2 [11:18:20]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [11:18:20]wFMCommunicate OK [11:18:20]SAM_PROTO_GetShiftState done [11:18:20]FM_GetShiftState done [11:18:20]req_shift_opened done [11:18:20]requested_item shift.open_date is exist - process it [11:18:20]req_shift_open_date [11:18:20]req_shift_open_date done [11:18:20]produce_requested_data done [11:18:20]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45194,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [11:18:20]process_action_free close_receipt [11:18:20]json_value_free [11:18:20]json_value_free done [11:18:20]process_json_proto returns [11:18:20]Send response to host [11:18:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45194,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [11:18:20]free response buf [11:18:20]execute_script done [11:18:20]execute_script returns [11:18:20]free content buf [11:18:20]Sock 9.Close socket [11:18:20]Sock 9.Thread stoped [11:18:23]OFD Sender: No OFD packet to send [11:18:28]OFD Sender: No OFD packet to send [11:18:33]OFD Sender: No OFD packet to send [11:18:38]OFD Sender: No OFD packet to send [11:18:43]OFD Sender: No OFD packet to send [11:18:48]OFD Sender: No OFD packet to send [11:18:53]OFD Sender: No OFD packet to send [11:18:58]OFD Sender: No OFD packet to send [11:19:03]OFD Sender: No OFD packet to send [11:19:08]OFD Sender: No OFD packet to send [11:19:13]OFD Sender: No OFD packet to send [11:19:18]OFD Sender: No OFD packet to send [11:19:23]OFD Sender: No OFD packet to send [11:19:28]OFD Sender: No OFD packet to send [11:19:33]OFD Sender: No OFD packet to send [11:19:38]OFD Sender: No OFD packet to send [11:19:43]OFD Sender: No OFD packet to send [11:19:48]OFD Sender: No OFD packet to send [11:19:53]OFD Sender: No OFD packet to send [11:19:58]OFD Sender: No OFD packet to send [11:20:03]OFD Sender: No OFD packet to send [11:20:08]OFD Sender: No OFD packet to send [11:20:13]OFD Sender: No OFD packet to send [11:20:18]OFD Sender: No OFD packet to send [11:20:23]OFD Sender: No OFD packet to send [11:20:28]OFD Sender: No OFD packet to send [11:20:33]OFD Sender: No OFD packet to send [11:20:38]OFD Sender: No OFD packet to send [11:20:43]OFD Sender: No OFD packet to send [11:20:48]OFD Sender: No OFD packet to send [11:20:53]OFD Sender: No OFD packet to send [11:20:58]OFD Sender: No OFD packet to send [11:21: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: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: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: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: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:48]OFD Sender: No OFD packet to send [11:24:53]OFD Sender: No OFD packet to send [11:24:58]OFD Sender: No OFD packet to send [11:25:03]OFD Sender: No OFD packet to send [11:25:08]OFD Sender: No OFD packet to send [11:25:13]OFD Sender: No OFD packet to send [11:25:18]OFD Sender: No OFD packet to send [11:25:23]OFD Sender: No OFD packet to send [11:25:28]OFD Sender: No OFD packet to send [11:25:33]OFD Sender: No OFD packet to send [11:25:38]OFD Sender: No OFD packet to send [11:25:43]OFD Sender: No OFD packet to send [11:25:48]OFD Sender: No OFD packet to send [11:25:53]OFD Sender: No OFD packet to send [11:25:58]OFD Sender: No OFD packet to send [11:26:03]OFD Sender: No OFD packet to send [11:26:08]OFD Sender: No OFD packet to send [11:26:13]OFD Sender: No OFD packet to send [11:26:18]OFD Sender: No OFD packet to send [11:26:23]OFD Sender: No OFD packet to send [11:26:28]OFD Sender: No OFD packet to send [11:26:33]OFD Sender: No OFD packet to send [11:26:38]OFD Sender: No OFD packet to send [11:26:43]OFD Sender: No OFD packet to send [11:26:48]OFD Sender: No OFD packet to send [11:26:53]OFD Sender: No OFD packet to send [11:26:58]OFD Sender: No OFD packet to send [11:27:03]OFD Sender: No OFD packet to send [11:27:08]OFD Sender: No OFD packet to send [11:27:13]OFD Sender: No OFD packet to send [11:27:18]OFD Sender: No OFD packet to send [11:27:23]OFD Sender: No OFD packet to send [11:27:28]OFD Sender: No OFD packet to send [11:27:33]OFD Sender: No OFD packet to send [11:27:38]OFD Sender: No OFD packet to send [11:27:43]OFD Sender: No OFD packet to send [11:27:48]OFD Sender: No OFD packet to send [11:27:53]OFD Sender: No OFD packet to send [11:27:58]OFD Sender: No OFD packet to send [11:28:03]OFD Sender: No OFD packet to send [11:28:08]OFD Sender: No OFD packet to send [11:28:13]OFD Sender: No OFD packet to send [11:28:18]OFD Sender: No OFD packet to send [11:28:23]OFD Sender: No OFD packet to send [11:28:28]OFD Sender: No OFD packet to send [11:28:33]OFD Sender: No OFD packet to send [11:28:38]OFD Sender: No OFD packet to send [11:28:43]OFD Sender: No OFD packet to send [11:28:48]OFD Sender: No OFD packet to send [11:28:53]OFD Sender: No OFD packet to send [11:28:58]OFD Sender: No OFD packet to send [11:29:03]OFD Sender: No OFD packet to send [11:29:08]OFD Sender: No OFD packet to send [11:29:13]OFD Sender: No OFD packet to send [11:29:18]OFD Sender: No OFD packet to send [11:29:23]OFD Sender: No OFD packet to send [11:29:28]OFD Sender: No OFD packet to send [11:29:33]OFD Sender: No OFD packet to send [11:29:38]OFD Sender: No OFD packet to send [11:29:43]OFD Sender: No OFD packet to send [11:29:48]OFD Sender: No OFD packet to send [11:29:53]OFD Sender: No OFD packet to send [11:29:58]OFD Sender: No OFD packet to send [11:30:03]OFD Sender: No OFD packet to send [11:30:08]OFD Sender: No OFD packet to send [11:30:13]OFD Sender: No OFD packet to send [11:30:18]OFD Sender: No OFD packet to send [11:30:23]OFD Sender: No OFD packet to send [11:30:28]OFD Sender: No OFD packet to send [11:30:33]OFD Sender: No OFD packet to send [11:30:38]OFD Sender: No OFD packet to send [11:30:43]OFD Sender: No OFD packet to send [11:30:48]OFD Sender: No OFD packet to send [11:30:53]OFD Sender: No OFD packet to send [11:30:58]OFD Sender: No OFD packet to send [11:31:03]OFD Sender: No OFD packet to send [11:31:08]OFD Sender: No OFD packet to send [11:31:13]OFD Sender: No OFD packet to send [11:31:18]OFD Sender: No OFD packet to send [11:31:23]OFD Sender: No OFD packet to send [11:31:28]OFD Sender: No OFD packet to send [11:31:33]OFD Sender: No OFD packet to send [11:31:38]OFD Sender: No OFD packet to send [11:31:43]OFD Sender: No OFD packet to send [11:31:48]OFD Sender: No OFD packet to send [11:31:53]OFD Sender: No OFD packet to send [11:31:58]OFD Sender: No OFD packet to send [11:32:03]OFD Sender: No OFD packet to send [11:32:08]OFD Sender: No OFD packet to send [11:32:13]OFD Sender: No OFD packet to send [11:32:18]OFD Sender: No OFD packet to send [11:32:23]OFD Sender: No OFD packet to send [11:32:28]OFD Sender: No OFD packet to send [11:32:33]OFD Sender: No OFD packet to send [11:32:38]OFD Sender: No OFD packet to send [11:32:43]OFD Sender: No OFD packet to send [11:32:48]OFD Sender: No OFD packet to send [11:32:53]OFD Sender: No OFD packet to send [11:32:58]OFD Sender: No OFD packet to send [11:33:03]OFD Sender: No OFD packet to send [11:33:08]OFD Sender: No OFD packet to send [11:33:13]OFD Sender: No OFD packet to send [11:33:18]OFD Sender: No OFD packet to send [11:33:23]OFD Sender: No OFD packet to send [11:33:28]OFD Sender: No OFD packet to send [11:33:33]OFD Sender: No OFD packet to send [11:33:38]OFD Sender: No OFD packet to send [11:33:43]OFD Sender: No OFD packet to send [11:33:48]OFD Sender: No OFD packet to send [11:33:53]OFD Sender: No OFD packet to send [11:33:58]OFD Sender: No OFD packet to send [11:34:03]OFD Sender: No OFD packet to send [11:34:08]OFD Sender: No OFD packet to send [11:34:13]OFD Sender: No OFD packet to send [11:34:18]OFD Sender: No OFD packet to send [11:34:23]OFD Sender: No OFD packet to send [11:34:28]OFD Sender: No OFD packet to send [11:34:33]OFD Sender: No OFD packet to send [11:34:38]OFD Sender: No OFD packet to send [11:34:43]OFD Sender: No OFD packet to send [11:34:48]OFD Sender: No OFD packet to send [11:34:53]OFD Sender: No OFD packet to send [11:34:58]OFD Sender: No OFD packet to send [11:35:03]OFD Sender: No OFD packet to send [11:35:08]OFD Sender: No OFD packet to send [11:35:13]OFD Sender: No OFD packet to send [11:35:18]OFD Sender: No OFD packet to send [11:35:23]OFD Sender: No OFD packet to send [11:35:28]OFD Sender: No OFD packet to send [11:35:33]OFD Sender: No OFD packet to send [11:35:38]OFD Sender: No OFD packet to send [11:35:43]OFD Sender: No OFD packet to send [11:35:48]OFD Sender: No OFD packet to send [11:35:53]OFD Sender: No OFD packet to send [11:35:58]OFD Sender: No OFD packet to send [11:36:03]OFD Sender: No OFD packet to send [11:36:08]OFD Sender: No OFD packet to send [11:36:13]OFD Sender: No OFD packet to send [11:36:18]OFD Sender: No OFD packet to send [11:36:23]OFD Sender: No OFD packet to send [11:36:28]OFD Sender: No OFD packet to send [11:36:33]OFD Sender: No OFD packet to send [11:36:38]OFD Sender: No OFD packet to send [11:36:43]OFD Sender: No OFD packet to send [11:36:48]OFD Sender: No OFD packet to send [11:36:53]OFD Sender: No OFD packet to send [11:36:58]OFD Sender: No OFD packet to send [11:37:03]OFD Sender: No OFD packet to send [11:37:08]OFD Sender: No OFD packet to send [11:37:13]OFD Sender: No OFD packet to send [11:37:18]OFD Sender: No OFD packet to send [11:37:23]OFD Sender: No OFD packet to send [11:37:28]OFD Sender: No OFD packet to send [11:37:33]OFD Sender: No OFD packet to send [11:37:38]OFD Sender: No OFD packet to send [11:37:43]OFD Sender: No OFD packet to send [11:37:48]OFD Sender: No OFD packet to send [11:37:53]OFD Sender: No OFD packet to send [11:37:58]OFD Sender: No OFD packet to send [11:38:03]OFD Sender: No OFD packet to send [11:38:08]OFD Sender: No OFD packet to send [11:38:13]OFD Sender: No OFD packet to send [11:38:18]OFD Sender: No OFD packet to send [11:38:23]OFD Sender: No OFD packet to send [11:38:28]OFD Sender: No OFD packet to send [11:38:30]accept exits with 7 [11:38:30]New connection [11:38:30]New thread 3067157860 created [11:38:30]Thread 3067014500 joined [11:38:30]Waiting for new connection... [11:38:30] Sock 7.Parse request [11:38:30]Sock 7.Check first char [11:38:30]Sock 7.First char is OK [11:38:30]request: POST /json_proto HTTP/1.0 [11:38:30]Method: POST [11:38:30]URL: /json_proto [11:38:30]Method is POST - this is cgi request [11:38:30]url: /json_proto [11:38:30]query_string will be loaded in cgi processing [11:38:30]execute_cgi json_proto POST (null) [11:38:30]execute_cgi path=json_proto method=POST [11:38:30]POST find Content-Length [11:38:30]Host: 172.17.48.198:8080 [11:38:30]Content-Length: 667 [11:38:30]Content-Type: application/json [11:38:30] [11:38:30]POST finish read [11:38:30]Found Content-Length = 667 [11:38:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184161", "tax_sys" : 0, "items" : [ { "code": "4800452010610", "name": "\u041A\u043E\u0444\u0435 \u043A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL (\u0410\u041A\u0426\u0418\u042F)", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:38:30]execute_script... [11:38:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184161", "tax_sys" : 0, "items" : [ { "code": "4800452010610", "name": "\u041A\u043E\u0444\u0435 \u043A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL (\u0410\u041A\u0426\u0418\u042F)", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:38:30]POST & json_proto [11:38:30]process_json_proto [11:38:30]json parsed OK: [11:38:30]protocol is kg_v1.0 [11:38:30]action value=close_receipt [11:38:30]process_action close_receipt [11:38:30]cmd_close_receipt [11:38:30]MH_GetDate [11:38:30]Write to MH i2c: F0 00 00 C9 47 FF [11:38:30]Write i2c OK [11:38:30]MH_I2C_Read... [11:38:30]Read from MH i2c: F0 [11:38:30]MH_I2C_Read... [11:38:30]Read from MH i2c: F0 09 00 [11:38:30]MH_I2C_Read... [11:38:30]Read from MH i2c: F0 09 00 C9 47 00 41 61 E4 65 CE C4 D4 65 BE [11:38:30]GetLastDocTimeStamp 1709464706 [11:38:30]current date 1709465921 [11:38:30]FM_GetShiftState [11:38:30]SAM_PROTO_GetShiftState [11:38:30]wFMCommunicate request_size=4 [11:38:30]MH_SAM_APDU [11:38:30]CAPDU: 80 13 01 00 [11:38:30]Write to MH i2c: E2 08 00 CA 47 80 13 01 00 00 00 00 00 8E [11:38:30]Write i2c OK [11:38:30]MH_I2C_Read... [11:38:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:38:30]Read from MH i2c: E2 [11:38:30]MH_I2C_Read... [11:38:30]Read from MH i2c: E2 0E 00 [11:38:30]MH_I2C_Read... [11:38:30]Read from MH i2c: E2 0E 00 CA 47 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 C4 [11:38:30]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [11:38:30]wFMCommunicate OK [11:38:30]SAM_PROTO_GetShiftState done [11:38:30]FM_GetShiftState done [11:38:30]opened in 1709425694 [11:38:30]opened+sec_in_day 1709512094 [11:38:30]quantity*price = 12000 [11:38:30]sum+1 = 12001 [11:38:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 120.00 НСП 1% : 1.06 НДС 12% : 12.74 Наличными: 120.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 32 03.03.2024 11:38 Смена: 331 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 ФМ: 0000000000874796 ФД: 45195 ФПД: 67333790222560 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T113841&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45195&fm=67333790222560&tin=02508201610067®Number=0000000000090572&sum=12000 0 [11:38:31]StoreToDocumentArchive [11:38:31]shift 331 fd 45195 [11:38:31]save to /storage/0331/doc_00045195 [11:38:31]save last doc name /storage/0331/doc_00045195 to /storage/kkm_last_doc_name [11:38:31]save OK [11:38:31]Clear old archive folders... [11:38:31]ProcessDocumentItem done err = 0, tmpTLVsize=283 [11:38:31]tlvbuf is 01C32910 [11:38:31]SAM_PROTO_ClearQueue [11:38:31]wFMCommunicate request_size=4 [11:38:31]MH_SAM_APDU [11:38:31]CAPDU: 80 09 00 00 [11:38:31]Write to MH i2c: E2 08 00 D7 47 80 09 00 00 00 00 00 00 90 [11:38:31]Write i2c OK [11:38:31]MH_I2C_Read... [11:38:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:38:31]Read from MH i2c: E2 [11:38:31]MH_I2C_Read... [11:38:31]Read from MH i2c: E2 03 00 [11:38:31]MH_I2C_Read... [11:38:31]Read from MH i2c: E2 03 00 D7 47 00 90 00 92 [11:38:31]RAPDU: 90 00 [11:38:31]wFMCommunicate OK [11:38:31]SAM_PROTO_ClearQueue done [11:38:31]KKMCreateOFDPacket [11:38:31]OFDProtocolAddRootSTLVToBuf [11:38:31]FM_MakeSignedData [11:38:31]FM_MakeSignedData [11:38:31]SAM_PROTO_SignData [11:38:31]wFMCommunicate request_size=4 [11:38:31]MH_SAM_APDU [11:38:31]CAPDU: 80 0D 01 02 [11:38:31]Write to MH i2c: E2 08 00 D8 47 80 0D 01 02 00 00 00 00 98 [11:38:31]Write i2c OK [11:38:31]MH_I2C_Read... [11:38:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:38:31]Read from MH i2c: E2 [11:38:31]MH_I2C_Read... [11:38:31]Read from MH i2c: E2 03 00 [11:38:31]MH_I2C_Read... [11:38:31]Read from MH i2c: E2 03 00 D8 47 00 90 00 93 [11:38:31]RAPDU: 90 00 [11:38:31]wFMCommunicate OK [11:38:31]wFMCommunicate request_size=255 [11:38:31]MH_SAM_APDU [11:38:31]CAPDU: 80 0D 02 02 FA 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 38 30 30 34 35 32 30 31 30 36 31 30 06 04 29 00 D0 9A D0 BE D1 84 D0 B5 20 D0 BA D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 20 28 D0 90 D0 9A D0 A6 D0 98 D0 AF 29 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 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 41 61 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 [11:38:31]Write to MH i2c: E2 02 01 D9 47 80 0D 02 02 FA 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 38 30 30 34 35 32 30 31 30 36 31 30 06 04 29 00 D0 9A D0 BE D1 84 D0 B5 20 D0 BA D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 20 28 D0 90 D0 9A D0 A6 D0 98 D0 AF 29 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 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 41 61 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 00 00 AF [11:38:31]Write i2c OK [11:38:31]MH_I2C_Read... [11:38:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:38:31]Read from MH i2c: E2 [11:38:31]MH_I2C_Read... [11:38:31]Read from MH i2c: E2 03 00 [11:38:31]MH_I2C_Read... [11:38:31]Read from MH i2c: E2 03 00 D9 47 00 90 00 94 [11:38:31]RAPDU: 90 00 [11:38:31]wFMCommunicate OK [11:38:31]wFMCommunicate request_size=42 [11:38:31]MH_SAM_APDU [11:38:31]CAPDU: 80 0D 02 02 25 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 8B B0 00 00 35 04 06 00 3D 3D 5E A5 C8 E0 [11:38:31]Write to MH i2c: E2 2D 00 DA 47 80 0D 02 02 25 00 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 8B B0 00 00 35 04 06 00 3D 3D 5E A5 C8 E0 00 00 D9 [11:38:31]Write i2c OK [11:38:31]MH_I2C_Read... [11:38:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:38:31]Read from MH i2c: E2 [11:38:31]MH_I2C_Read... [11:38:31]Read from MH i2c: E2 03 00 [11:38:31]MH_I2C_Read... [11:38:31]Read from MH i2c: E2 03 00 DA 47 00 90 00 95 [11:38:31]RAPDU: 90 00 [11:38:31]wFMCommunicate OK [11:38:31]wFMCommunicate request_size=4 [11:38:31]MH_SAM_APDU [11:38:31]CAPDU: 80 0D 03 02 [11:38:31]Write to MH i2c: E2 08 00 DB 47 80 0D 03 02 00 00 00 00 9D [11:38:31]Write i2c OK [11:38:31]MH_I2C_Read... [11:38:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:38:31]Read from MH i2c: E2 [11:38:31]MH_I2C_Read... [11:38:31]Read from MH i2c: E2 0B 00 [11:38:31]MH_I2C_Read... [11:38:31]Read from MH i2c: E2 0B 00 DB 47 00 10 E5 22 F6 30 82 02 D3 90 00 32 [11:38:31]RAPDU: 10 E5 22 F6 30 82 02 D3 90 00 [11:38:31]wFMCommunicate OK [11:38:31]SAM_PROTO_SignData done [11:38:31]FM_MakeSignedData done [11:38:31]CreateOFDProtocolMessage [11:38:31]wFMCommunicate request_size=4 [11:38:31]MH_SAM_APDU [11:38:31]CAPDU: 80 11 00 00 [11:38:31]Write to MH i2c: E2 08 00 DC 47 80 11 00 00 00 00 00 00 9D [11:38:31]Write i2c OK [11:38:31]MH_I2C_Read... [11:38:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:31]Read from MH i2c: E2 [11:38:31]MH_I2C_Read... [11:38:31]Read from MH i2c: E2 17 00 [11:38:31]MH_I2C_Read... [11:38:31]Read from MH i2c: E2 17 00 DC 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 F9 [11:38:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [11:38:31]wFMCommunicate OK [11:38:31]CreateOFDProtocolMessage done [11:38:31]OFDSenderStorePacket 45195 [11:38:31]StoreOFDPacket docnum=45195 [11:38:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 2F 01 00 00 F5 BC 27 01 EB 29 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 38 30 30 34 35 32 30 31 30 36 31 30 06 04 29 00 D0 9A D0 BE D1 84 D0 B5 20 D0 BA D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 20 28 D0 90 D0 9A D0 A6 D0 98 D0 AF 29 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 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 41 61 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 8B B0 00 00 35 04 06 00 3D 3D 5E A5 C8 E0 10 E5 22 F6 30 82 02 D3 [11:38:31]CheckFolder [11:38:31]dirname=/storage/ofd_packets [11:38:31]CheckFolder done [11:38:31]ProducePacketName [11:38:31]name=ofd_packets/00045195 [11:38:31]NVStorageSaveData ofd_packets/00045195 [11:38:31]File name is /storage/ofd_packets/00045195 [11:38:31]Write 333 bytes [11:38:31]NVStorageSaveData done [11:38:31]OFDSenderStorePacket done [11:38:31]KKMCreateOFDPacket done [11:38:31]NVStorageSaveData kkm_last_timestamp [11:38:31]File name is /storage/kkm_last_timestamp [11:38:31]Write 4 bytes [11:38:31]NVStorageSaveData done [11:38:31]ExternCall_PrintAddStr [11:38:31]wPrintStart [11:38:31]Write to MH i2c: 01 00 00 DD 47 24 [11:38:31]Write i2c OK [11:38:31]MH_I2C_Read... [11:38:31]Read from MH i2c: 01 [11:38:31]MH_I2C_Read... [11:38:31]Read from MH i2c: 01 07 00 [11:38:31]MH_I2C_Read... [11:38:31]Read from MH i2c: 01 07 00 DD 47 00 00 00 00 00 FF 0F 39 [11:38:31]RasterBufferAndPrint [11:38:31]line Счет N : (3)184161 [11:38:31]line ИНН: 02508201610067 [11:38:31]line Контрольно-Кассовый Чек [11:38:31]line ПРОДАЖА [11:38:31]line Товар: 4800452010610 [11:38:31]line Кофе капучино XL (АКЦИЯ) [11:38:31]line 1.000 * 120.00 [11:38:31]line = 120.00 [11:38:31]line НДС 12% НСП 1% [11:38:31]line > о реализуемом товаре [11:38:31]line ИТОГО: 120.00 [11:38:31]line НСП 1% : 1.06 [11:38:31]line НДС 12% : 12.74 [11:38:31]line Наличными: 120.00 [11:38:31]line Безнал.: 0.00 [11:38:31]line Место: АЗС № 25 "Партнер Нефть" [11:38:31]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [11:38:31]line СНО: Общий режим [11:38:31]line Чек 32 03.03.2024 11:38 [11:38:31]line Смена: 331 ФФД: 1.0 [11:38:31]line ЗНМ: 0300000013 [11:38:31]line РНМ: 0000000000090572 [11:38:31]line Версия ККМ: 001 [11:38:31]line ФМ: 0000000000874796 [11:38:31]line ФД: 45195 [11:38:31]line ФПД: 67333790222560 [11:38:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T113841&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45195&fm=67333790222560&tin=02508201610067®Number=0000000000090572&sum=12000 [11:38:32]line 0 [11:38:32]OFD Sender: Processing packet 45195 [packets to send 17, broken 16] [11:38:32]ProducePacketName [11:38:32]name=ofd_packets/00045195 [11:38:32]OFD Sender: To server: pG, [11:38:32]CommunicateWithHost lk.salyk.kg:30040 [11:38:32]ConnectInit lk.salyk.kg [11:38:32]written 0, free lines is 4095 [11:38:32]Connected sock=10 [11:38:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 2F 01 00 00 F5 BC 27 01 EB 29 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 38 30 30 34 35 32 30 31 30 36 31 30 06 04 29 00 D0 9A D0 BE D1 84 D0 B5 20 D0 BA D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 20 28 D0 90 D0 9A D0 A6 D0 98 D0 AF 29 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 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 41 61 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 8B B0 00 00 35 04 06 00 3D 3D 5E A5 C8 E0 10 E5 22 F6 30 82 02 D3 [11:38:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 A3 93 47 00 D5 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 8B B0 00 00 F4 03 04 00 06 0D E4 65 B6 04 01 00 00 46 86 8D 66 F7 BA 49 46 [11:38:32]CommunicateWithHost err = 0 [11:38:32]CheckOFDResponse [11:38:32]1017 (14) - 77093643461234 [11:38:32]1041 (16) - 0000000000874796 [11:38:32]1040 (4) - 45195 [11:38:32]1012 (4) - 03.03.2024 05:39 [11:38:32]1206 (1) - 0 [11:38:32]OFD Sender: Remove packet 45195 [11:38:32]ProducePacketName [11:38:32]name=ofd_packets/00045195 [11:38:32]NVStorageDeleteData [11:38:32]Write to MH i2c: 01 00 00 05 48 4D [11:38:32]Write i2c OK [11:38:32]MH_I2C_Read... [11:38:32]Read from MH i2c: 01 [11:38:32]MH_I2C_Read... [11:38:32]Read from MH i2c: 01 07 00 [11:38:32]MH_I2C_Read... [11:38:32]Read from MH i2c: 01 07 00 05 48 00 00 00 00 00 18 0D 79 [11:38:32]RasterBufferAndPrint [11:38:32]line [11:38:32]line [11:38:32]line [11:38:32]line [11:38:32]line [11:38:32]written 0, free lines is 3359 [11:38:32]MH_Cut [11:38:32]Write to MH i2c: D1 01 00 0C 48 01 26 [11:38:32]Write i2c OK [11:38:32]MH_I2C_Read... [11:38:32]Read from MH i2c: D1 [11:38:32]MH_I2C_Read... [11:38:32]Read from MH i2c: D1 01 00 [11:38:32]MH_I2C_Read... [11:38:32]Read from MH i2c: D1 01 00 0C 48 00 25 [11:38:32]Write to MH i2c: 01 00 00 0D 48 55 [11:38:32]Write i2c OK [11:38:32]MH_I2C_Read... [11:38:33]OFD Sender: No OFD packet to send [11:38:33]*** Cut start [11:38:33]*** Purtial cut [11:38:33]*** Stage 1: CUTSNS_PIN = 1 [11:38:35]Read from MH i2c: 01 [11:38:35]MH_I2C_Read... [11:38:35]*** Stop cut motor [11:38:35]*** Cut end [11:38:35]Read from MH i2c: 01 07 00 [11:38:35]MH_I2C_Read... [11:38:35]Read from MH i2c: 01 07 00 0D 48 00 00 00 00 00 FF 0F 6A [11:38:35]process_action close_receipt done [11:38:35]requested_data is exist [11:38:35]produce_requested_data [11:38:35]requested_item fm.sn is exist - process it [11:38:35]wFMCommunicate request_size=4 [11:38:35]MH_SAM_APDU [11:38:35]CAPDU: 80 11 00 00 [11:38:35]Write to MH i2c: E2 08 00 0E 48 80 11 00 00 00 00 00 00 D0 [11:38:35]Write i2c OK [11:38:35]MH_I2C_Read... [11:38:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:35]Read from MH i2c: E2 [11:38:35]MH_I2C_Read... [11:38:35]Read from MH i2c: E2 17 00 [11:38:35]MH_I2C_Read... [11:38:35]Read from MH i2c: E2 17 00 0E 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 2C [11:38:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [11:38:35]wFMCommunicate OK [11:38:35]requested_item fd.num is exist - process it [11:38:35]SAM_PROTO_GetFieldsCounters [11:38:35]wFMCommunicate request_size=4 [11:38:35]MH_SAM_APDU [11:38:35]CAPDU: 80 13 00 00 [11:38:35]Write to MH i2c: E2 08 00 0F 48 80 13 00 00 00 00 00 00 D3 [11:38:35]Write i2c OK [11:38:35]MH_I2C_Read... [11:38:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:38:35]Read from MH i2c: E2 [11:38:35]MH_I2C_Read... [11:38:35]Read from MH i2c: E2 62 00 [11:38:35]MH_I2C_Read... [11:38:35]Read from MH i2c: E2 62 00 0F 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 8B B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [11:38:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 8B B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:38:35]wFMCommunicate OK [11:38:35]SAM_PROTO_GetFieldsCounters done [11:38:35]requested_item shift.num is exist - process it [11:38:35]requested_item shift.opened is exist - process it [11:38:35]req_shift_opened [11:38:35]FM_GetShiftState [11:38:35]SAM_PROTO_GetShiftState [11:38:35]wFMCommunicate request_size=4 [11:38:35]MH_SAM_APDU [11:38:35]CAPDU: 80 13 01 00 [11:38:35]Write to MH i2c: E2 08 00 10 48 80 13 01 00 00 00 00 00 D5 [11:38:35]Write i2c OK [11:38:35]MH_I2C_Read... [11:38:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:38:35]Read from MH i2c: E2 [11:38:35]MH_I2C_Read... [11:38:35]Read from MH i2c: E2 0E 00 [11:38:35]MH_I2C_Read... [11:38:35]Read from MH i2c: E2 0E 00 10 48 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 0B [11:38:35]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [11:38:35]wFMCommunicate OK [11:38:35]SAM_PROTO_GetShiftState done [11:38:35]FM_GetShiftState done [11:38:35]req_shift_opened done [11:38:35]requested_item shift.open_date is exist - process it [11:38:35]req_shift_open_date [11:38:35]req_shift_open_date done [11:38:35]produce_requested_data done [11:38:35]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45195,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [11:38:35]process_action_free close_receipt [11:38:35]json_value_free [11:38:35]json_value_free done [11:38:35]process_json_proto returns [11:38:35]Send response to host [11:38:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45195,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [11:38:35]free response buf [11:38:35]execute_script done [11:38:35]execute_script returns [11:38:35]free content buf [11:38:35]Sock 7.Close socket [11:38:35]Sock 7.Thread stoped [11:38:38]OFD Sender: No OFD packet to send [11:38:43]OFD Sender: No OFD packet to send [11:38:48]OFD Sender: No OFD packet to send [11:38:53]OFD Sender: No OFD packet to send [11:38:58]OFD Sender: No OFD packet to send [11:39:03]OFD Sender: No OFD packet to send [11:39:08]OFD Sender: No OFD packet to send [11:39:13]OFD Sender: No OFD packet to send [11:39:18]OFD Sender: No OFD packet to send [11:39:23]OFD Sender: No OFD packet to send [11:39:28]OFD Sender: No OFD packet to send [11:39:33]OFD Sender: No OFD packet to send [11:39:38]OFD Sender: No OFD packet to send [11:39:43]OFD Sender: No OFD packet to send [11:39:48]OFD Sender: No OFD packet to send [11:39:53]OFD Sender: No OFD packet to send [11:39:58]OFD Sender: No OFD packet to send [11:40:03]OFD Sender: No OFD packet to send [11:40:08]OFD Sender: No OFD packet to send [11:40:13]OFD Sender: No OFD packet to send [11:40:18]OFD Sender: No OFD packet to send [11:40:23]OFD Sender: No OFD packet to send [11:40:28]OFD Sender: No OFD packet to send [11:40:33]OFD Sender: No OFD packet to send [11:40:38]OFD Sender: No OFD packet to send [11:40:43]OFD Sender: No OFD packet to send [11:40:48]OFD Sender: No OFD packet to send [11:40:53]OFD Sender: No OFD packet to send [11:40:58]OFD Sender: No OFD packet to send [11:41:03]OFD Sender: No OFD packet to send [11:41:08]OFD Sender: No OFD packet to send [11:41:13]OFD Sender: No OFD packet to send [11:41:18]OFD Sender: No OFD packet to send [11:41:23]OFD Sender: No OFD packet to send [11:41:28]OFD Sender: No OFD packet to send [11:41:33]OFD Sender: No OFD packet to send [11:41:38]OFD Sender: No OFD packet to send [11:41:43]OFD Sender: No OFD packet to send [11:41:48]OFD Sender: No OFD packet to send [11:41:53]OFD Sender: No OFD packet to send [11:41:58]OFD Sender: No OFD packet to send [11:42:03]OFD Sender: No OFD packet to send [11:42:08]OFD Sender: No OFD packet to send [11:42:13]OFD Sender: No OFD packet to send [11:42:18]OFD Sender: No OFD packet to send [11:42:23]OFD Sender: No OFD packet to send [11:42:28]OFD Sender: No OFD packet to send [11:42:33]OFD Sender: No OFD packet to send [11:42:38]OFD Sender: No OFD packet to send [11:42:43]OFD Sender: No OFD packet to send [11:42:48]OFD Sender: No OFD packet to send [11:42:53]OFD Sender: No OFD packet to send [11:42:58]OFD Sender: No OFD packet to send [11:43:03]OFD Sender: No OFD packet to send [11:43:08]OFD Sender: No OFD packet to send [11:43:13]OFD Sender: No OFD packet to send [11:43:18]OFD Sender: No OFD packet to send [11:43:23]OFD Sender: No OFD packet to send [11:43:28]OFD Sender: No OFD packet to send [11:43:33]OFD Sender: No OFD packet to send [11:43:38]OFD Sender: No OFD packet to send [11:43:43]OFD Sender: No OFD packet to send [11:43:48]OFD Sender: No OFD packet to send [11:43:53]OFD Sender: No OFD packet to send [11:43:58]OFD Sender: No OFD packet to send [11:44:03]OFD Sender: No OFD packet to send [11:44:08]OFD Sender: No OFD packet to send [11:44:13]OFD Sender: No OFD packet to send [11:44:18]OFD Sender: No OFD packet to send [11:44:23]OFD Sender: No OFD packet to send [11:44:28]OFD Sender: No OFD packet to send [11:44:33]OFD Sender: No OFD packet to send [11:44:38]OFD Sender: No OFD packet to send [11:44:43]OFD Sender: No OFD packet to send [11:44:48]OFD Sender: No OFD packet to send [11:44:53]OFD Sender: No OFD packet to send [11:44:58]OFD Sender: No OFD packet to send [11:45:03]OFD Sender: No OFD packet to send [11:45:08]OFD Sender: No OFD packet to send [11:45:13]OFD Sender: No OFD packet to send [11:45:18]OFD Sender: No OFD packet to send [11:45:23]OFD Sender: No OFD packet to send [11:45:28]OFD Sender: No OFD packet to send [11:45:33]OFD Sender: No OFD packet to send [11:45:38]OFD Sender: No OFD packet to send [11:45:43]OFD Sender: No OFD packet to send [11:45:48]OFD Sender: No OFD packet to send [11:45:53]OFD Sender: No OFD packet to send [11:45:58]OFD Sender: No OFD packet to send [11:46:03]OFD Sender: No OFD packet to send [11:46:08]OFD Sender: No OFD packet to send [11:46:13]OFD Sender: No OFD packet to send [11:46:18]OFD Sender: No OFD packet to send [11:46:23]OFD Sender: No OFD packet to send [11:46:28]OFD Sender: No OFD packet to send [11:46:33]OFD Sender: No OFD packet to send [11:46:38]OFD Sender: No OFD packet to send [11:46:43]OFD Sender: No OFD packet to send [11:46:48]OFD Sender: No OFD packet to send [11:46:53]OFD Sender: No OFD packet to send [11:46:58]OFD Sender: No OFD packet to send [11:47:03]OFD Sender: No OFD packet to send [11:47:08]OFD Sender: No OFD packet to send [11:47:13]OFD Sender: No OFD packet to send [11:47:14]accept exits with 9 [11:47:14]New connection [11:47:14]New thread 3067014500 created [11:47:14]Thread 3067157860 joined [11:47:14]Waiting for new connection... [11:47:14] Sock 9.Parse request [11:47:14]Sock 9.Check first char [11:47:14]Sock 9.First char is OK [11:47:14]request: POST /json_proto HTTP/1.0 [11:47:14]Method: POST [11:47:14]URL: /json_proto [11:47:14]Method is POST - this is cgi request [11:47:14]url: /json_proto [11:47:14]query_string will be loaded in cgi processing [11:47:14]execute_cgi json_proto POST (null) [11:47:14]execute_cgi path=json_proto method=POST [11:47:14]POST find Content-Length [11:47:14]Host: 172.17.48.198:8080 [11:47:14]Content-Length: 680 [11:47:14]Content-Type: application/json [11:47:14] [11:47:14]POST finish read [11:47:14]Found Content-Length = 680 [11:47:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184162", "tax_sys" : 0, "items" : [ { "code": "4700452010610", "name": "\u041A\u043E\u0444\u0435 \u043A\u0430\u043F\u0443\u0447\u0438\u043D\u043E 200\u043C\u043B (\u0410\u041A\u0426\u0418\u042F)", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:47:14]execute_script... [11:47:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184162", "tax_sys" : 0, "items" : [ { "code": "4700452010610", "name": "\u041A\u043E\u0444\u0435 \u043A\u0430\u043F\u0443\u0447\u0438\u043D\u043E 200\u043C\u043B (\u0410\u041A\u0426\u0418\u042F)", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:47:14]POST & json_proto [11:47:14]process_json_proto [11:47:14]json parsed OK: [11:47:14]protocol is kg_v1.0 [11:47:14]action value=close_receipt [11:47:14]process_action close_receipt [11:47:14]cmd_close_receipt [11:47:14]MH_GetDate [11:47:14]Write to MH i2c: F0 00 00 11 48 48 [11:47:14]Write i2c OK [11:47:14]MH_I2C_Read... [11:47:14]Read from MH i2c: F0 [11:47:14]MH_I2C_Read... [11:47:14]Read from MH i2c: F0 09 00 [11:47:14]MH_I2C_Read... [11:47:14]Read from MH i2c: F0 09 00 11 48 00 4D 63 E4 65 CE C4 D4 65 15 [11:47:14]GetLastDocTimeStamp 1709465921 [11:47:14]current date 1709466445 [11:47:14]FM_GetShiftState [11:47:14]SAM_PROTO_GetShiftState [11:47:14]wFMCommunicate request_size=4 [11:47:14]MH_SAM_APDU [11:47:14]CAPDU: 80 13 01 00 [11:47:14]Write to MH i2c: E2 08 00 12 48 80 13 01 00 00 00 00 00 D7 [11:47:14]Write i2c OK [11:47:14]MH_I2C_Read... [11:47:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:47:14]Read from MH i2c: E2 [11:47:14]MH_I2C_Read... [11:47:14]Read from MH i2c: E2 0E 00 [11:47:14]MH_I2C_Read... [11:47:14]Read from MH i2c: E2 0E 00 12 48 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 0D [11:47:14]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [11:47:14]wFMCommunicate OK [11:47:14]SAM_PROTO_GetShiftState done [11:47:14]FM_GetShiftState done [11:47:14]opened in 1709425694 [11:47:14]opened+sec_in_day 1709512094 [11:47:14]quantity*price = 10500 [11:47:14]sum+1 = 10501 [11:47:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 105.00 НСП 1% : 0.93 НДС 12% : 11.15 Наличными: 105.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 33 03.03.2024 11:47 Смена: 331 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 ФМ: 0000000000874796 ФД: 45196 ФПД: 132038154876026 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T114725&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45196&fm=132038154876026&tin=02508201610067®Number=0000000000090572&sum=10500 0 [11:47:15]StoreToDocumentArchive [11:47:15]shift 331 fd 45196 [11:47:15]save to /storage/0331/doc_00045196 [11:47:15]save last doc name /storage/0331/doc_00045196 to /storage/kkm_last_doc_name [11:47:15]save OK [11:47:15]Clear old archive folders... [11:47:15]ProcessDocumentItem done err = 0, tmpTLVsize=288 [11:47:15]tlvbuf is 01BA1450 [11:47:15]SAM_PROTO_ClearQueue [11:47:15]wFMCommunicate request_size=4 [11:47:15]MH_SAM_APDU [11:47:15]CAPDU: 80 09 00 00 [11:47:15]Write to MH i2c: E2 08 00 1F 48 80 09 00 00 00 00 00 00 D9 [11:47:15]Write i2c OK [11:47:15]MH_I2C_Read... [11:47:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:47:15]Read from MH i2c: E2 [11:47:15]MH_I2C_Read... [11:47:15]Read from MH i2c: E2 03 00 [11:47:15]MH_I2C_Read... [11:47:15]Read from MH i2c: E2 03 00 1F 48 00 90 00 DB [11:47:15]RAPDU: 90 00 [11:47:15]wFMCommunicate OK [11:47:15]SAM_PROTO_ClearQueue done [11:47:15]KKMCreateOFDPacket [11:47:15]OFDProtocolAddRootSTLVToBuf [11:47:15]FM_MakeSignedData [11:47:15]FM_MakeSignedData [11:47:15]SAM_PROTO_SignData [11:47:15]wFMCommunicate request_size=4 [11:47:15]MH_SAM_APDU [11:47:15]CAPDU: 80 0D 01 02 [11:47:15]Write to MH i2c: E2 08 00 20 48 80 0D 01 02 00 00 00 00 E1 [11:47:15]Write i2c OK [11:47:15]MH_I2C_Read... [11:47:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:47:15]Read from MH i2c: E2 [11:47:15]MH_I2C_Read... [11:47:15]Read from MH i2c: E2 03 00 [11:47:15]MH_I2C_Read... [11:47:15]Read from MH i2c: E2 03 00 20 48 00 90 00 DC [11:47:15]RAPDU: 90 00 [11:47:15]wFMCommunicate OK [11:47:15]wFMCommunicate request_size=255 [11:47:15]MH_SAM_APDU [11:47:15]CAPDU: 80 0D 02 02 FA 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 34 35 32 30 31 30 36 31 30 06 04 2E 00 D0 9A D0 BE D1 84 D0 B5 20 D0 BA D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 32 30 30 D0 BC D0 BB 20 28 D0 90 D0 9A D0 A6 D0 98 D0 AF 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 4D 63 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 [11:47:15]Write to MH i2c: E2 02 01 21 48 80 0D 02 02 FA 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 34 35 32 30 31 30 36 31 30 06 04 2E 00 D0 9A D0 BE D1 84 D0 B5 20 D0 BA D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 32 30 30 D0 BC D0 BB 20 28 D0 90 D0 9A D0 A6 D0 98 D0 AF 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 4D 63 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 00 00 0B [11:47:15]Write i2c OK [11:47:15]MH_I2C_Read... [11:47:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:47:15]Read from MH i2c: E2 [11:47:15]MH_I2C_Read... [11:47:15]Read from MH i2c: E2 03 00 [11:47:15]MH_I2C_Read... [11:47:15]Read from MH i2c: E2 03 00 21 48 00 90 00 DD [11:47:15]RAPDU: 90 00 [11:47:15]wFMCommunicate OK [11:47:15]wFMCommunicate request_size=47 [11:47:15]MH_SAM_APDU [11:47:15]CAPDU: 80 0D 02 02 2A 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 8C B0 00 00 35 04 06 00 78 16 87 51 74 7A [11:47:15]Write to MH i2c: E2 32 00 22 48 80 0D 02 02 2A 00 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 8C B0 00 00 35 04 06 00 78 16 87 51 74 7A 00 00 3B [11:47:15]Write i2c OK [11:47:15]MH_I2C_Read... [11:47:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:47:15]Read from MH i2c: E2 [11:47:15]MH_I2C_Read... [11:47:15]Read from MH i2c: E2 03 00 [11:47:15]MH_I2C_Read... [11:47:15]Read from MH i2c: E2 03 00 22 48 00 90 00 DE [11:47:15]RAPDU: 90 00 [11:47:15]wFMCommunicate OK [11:47:15]wFMCommunicate request_size=4 [11:47:15]MH_SAM_APDU [11:47:15]CAPDU: 80 0D 03 02 [11:47:15]Write to MH i2c: E2 08 00 23 48 80 0D 03 02 00 00 00 00 E6 [11:47:15]Write i2c OK [11:47:15]MH_I2C_Read... [11:47:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:47:15]Read from MH i2c: E2 [11:47:15]MH_I2C_Read... [11:47:15]Read from MH i2c: E2 0B 00 [11:47:15]MH_I2C_Read... [11:47:15]Read from MH i2c: E2 0B 00 23 48 00 B6 74 16 1B 67 BD B2 07 90 00 1F [11:47:15]RAPDU: B6 74 16 1B 67 BD B2 07 90 00 [11:47:15]wFMCommunicate OK [11:47:15]SAM_PROTO_SignData done [11:47:15]FM_MakeSignedData done [11:47:15]CreateOFDProtocolMessage [11:47:15]wFMCommunicate request_size=4 [11:47:15]MH_SAM_APDU [11:47:15]CAPDU: 80 11 00 00 [11:47:15]Write to MH i2c: E2 08 00 24 48 80 11 00 00 00 00 00 00 E6 [11:47:15]Write i2c OK [11:47:15]MH_I2C_Read... [11:47:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:47:16]Read from MH i2c: E2 [11:47:16]MH_I2C_Read... [11:47:16]Read from MH i2c: E2 17 00 [11:47:16]MH_I2C_Read... [11:47:16]Read from MH i2c: E2 17 00 24 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 42 [11:47:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [11:47:16]wFMCommunicate OK [11:47:16]CreateOFDProtocolMessage done [11:47:16]OFDSenderStorePacket 45196 [11:47:16]StoreOFDPacket docnum=45196 [11:47:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 34 01 00 00 D4 23 2C 01 B4 E4 5A 03 01 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 34 35 32 30 31 30 36 31 30 06 04 2E 00 D0 9A D0 BE D1 84 D0 B5 20 D0 BA D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 32 30 30 D0 BC D0 BB 20 28 D0 90 D0 9A D0 A6 D0 98 D0 AF 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 4D 63 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 8C B0 00 00 35 04 06 00 78 16 87 51 74 7A B6 74 16 1B 67 BD B2 07 [11:47:16]CheckFolder [11:47:16]dirname=/storage/ofd_packets [11:47:16]CheckFolder done [11:47:16]ProducePacketName [11:47:16]name=ofd_packets/00045196 [11:47:16]NVStorageSaveData ofd_packets/00045196 [11:47:16]File name is /storage/ofd_packets/00045196 [11:47:16]Write 338 bytes [11:47:16]NVStorageSaveData done [11:47:16]OFDSenderStorePacket done [11:47:16]KKMCreateOFDPacket done [11:47:16]NVStorageSaveData kkm_last_timestamp [11:47:16]File name is /storage/kkm_last_timestamp [11:47:16]Write 4 bytes [11:47:16]NVStorageSaveData done [11:47:16]ExternCall_PrintAddStr [11:47:16]wPrintStart [11:47:16]Write to MH i2c: 01 00 00 25 48 6D [11:47:16]Write i2c OK [11:47:16]MH_I2C_Read... [11:47:16]Read from MH i2c: 01 [11:47:16]MH_I2C_Read... [11:47:16]Read from MH i2c: 01 07 00 [11:47:16]MH_I2C_Read... [11:47:16]Read from MH i2c: 01 07 00 25 48 00 00 00 00 00 FF 0F 82 [11:47:16]RasterBufferAndPrint [11:47:16]line Счет N : (3)184162 [11:47:16]line ИНН: 02508201610067 [11:47:16]line Контрольно-Кассовый Чек [11:47:16]line ПРОДАЖА [11:47:16]line Товар: 4700452010610 [11:47:16]line Кофе капучино 200мл (АКЦИЯ) [11:47:16]line 1.000 * 105.00 [11:47:16]line = 105.00 [11:47:16]line НДС 12% НСП 1% [11:47:16]line > о реализуемом товаре [11:47:16]line ИТОГО: 105.00 [11:47:16]line НСП 1% : 0.93 [11:47:16]line НДС 12% : 11.15 [11:47:16]line Наличными: 105.00 [11:47:16]line Безнал.: 0.00 [11:47:16]line Место: АЗС № 25 "Партнер Нефть" [11:47:16]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [11:47:16]line СНО: Общий режим [11:47:16]line Чек 33 03.03.2024 11:47 [11:47:16]line Смена: 331 ФФД: 1.0 [11:47:16]line ЗНМ: 0300000013 [11:47:16]line РНМ: 0000000000090572 [11:47:16]line Версия ККМ: 001 [11:47:16]line ФМ: 0000000000874796 [11:47:16]line ФД: 45196 [11:47:16]line ФПД: 132038154876026 [11:47:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T114725&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45196&fm=132038154876026&tin=02508201610067®Number=0000000000090572&sum=10500 [11:47:16]line 0 [11:47:16]OFD Sender: Processing packet 45196 [packets to send 17, broken 16] [11:47:16]ProducePacketName [11:47:16]name=ofd_packets/00045196 [11:47:16]OFD Sender: To server: pG, [11:47:16]CommunicateWithHost lk.salyk.kg:30040 [11:47:16]ConnectInit lk.salyk.kg [11:47:16]written 0, free lines is 4095 [11:47:16]Connected sock=10 [11:47:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 34 01 00 00 D4 23 2C 01 B4 E4 5A 03 01 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 34 35 32 30 31 30 36 31 30 06 04 2E 00 D0 9A D0 BE D1 84 D0 B5 20 D0 BA D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 32 30 30 D0 BC D0 BB 20 28 D0 90 D0 9A D0 A6 D0 98 D0 AF 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 4D 63 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 8C B0 00 00 35 04 06 00 78 16 87 51 74 7A B6 74 16 1B 67 BD B2 07 [11:47:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 B2 EB 47 00 AF 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 34 37 39 36 10 04 04 00 8C B0 00 00 F4 03 04 00 12 0F E4 65 B6 04 01 00 00 87 30 78 16 25 07 EF 44 [11:47:16]CommunicateWithHost err = 0 [11:47:16]CheckOFDResponse [11:47:16]1017 (14) - 77093643461234 [11:47:16]1041 (16) - 0000000000874796 [11:47:16]1040 (4) - 45196 [11:47:16]1012 (4) - 03.03.2024 05:48 [11:47:16]1206 (1) - 0 [11:47:16]OFD Sender: Remove packet 45196 [11:47:16]ProducePacketName [11:47:16]name=ofd_packets/00045196 [11:47:16]NVStorageDeleteData [11:47:16]Write to MH i2c: 01 00 00 4E 48 96 [11:47:16]Write i2c OK [11:47:16]MH_I2C_Read... [11:47:16]Read from MH i2c: 01 [11:47:16]MH_I2C_Read... [11:47:16]Read from MH i2c: 01 07 00 [11:47:16]MH_I2C_Read... [11:47:16]Read from MH i2c: 01 07 00 4E 48 00 00 00 00 00 09 0D B3 [11:47:16]RasterBufferAndPrint [11:47:16]line [11:47:16]line [11:47:16]line [11:47:16]line [11:47:16]line [11:47:16]written 0, free lines is 3343 [11:47:16]MH_Cut [11:47:16]Write to MH i2c: D1 01 00 55 48 01 6F [11:47:16]Write i2c OK [11:47:16]MH_I2C_Read... [11:47:16]Read from MH i2c: D1 [11:47:16]MH_I2C_Read... [11:47:16]Read from MH i2c: D1 01 00 [11:47:16]MH_I2C_Read... [11:47:16]Read from MH i2c: D1 01 00 55 48 00 6E [11:47:16]Write to MH i2c: 01 00 00 56 48 9E [11:47:16]Write i2c OK [11:47:16]MH_I2C_Read... [11:47:17]OFD Sender: No OFD packet to send [11:47:17]*** Cut start [11:47:17]*** Purtial cut [11:47:17]*** Stage 1: CUTSNS_PIN = 1 [11:47:19]Read from MH i2c: 01 [11:47:19]MH_I2C_Read... [11:47:19]*** Stop cut motor [11:47:19]*** Cut end [11:47:19]Read from MH i2c: 01 07 00 [11:47:19]MH_I2C_Read... [11:47:19]Read from MH i2c: 01 07 00 56 48 00 00 00 00 00 FF 0F B3 [11:47:19]process_action close_receipt done [11:47:19]requested_data is exist [11:47:19]produce_requested_data [11:47:19]requested_item fm.sn is exist - process it [11:47:19]wFMCommunicate request_size=4 [11:47:19]MH_SAM_APDU [11:47:19]CAPDU: 80 11 00 00 [11:47:19]Write to MH i2c: E2 08 00 57 48 80 11 00 00 00 00 00 00 19 [11:47:19]Write i2c OK [11:47:19]MH_I2C_Read... [11:47:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:47:19]Read from MH i2c: E2 [11:47:19]MH_I2C_Read... [11:47:19]Read from MH i2c: E2 17 00 [11:47:19]MH_I2C_Read... [11:47:19]Read from MH i2c: E2 17 00 57 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 75 [11:47:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [11:47:19]wFMCommunicate OK [11:47:19]requested_item fd.num is exist - process it [11:47:19]SAM_PROTO_GetFieldsCounters [11:47:19]wFMCommunicate request_size=4 [11:47:19]MH_SAM_APDU [11:47:19]CAPDU: 80 13 00 00 [11:47:19]Write to MH i2c: E2 08 00 58 48 80 13 00 00 00 00 00 00 1C [11:47:19]Write i2c OK [11:47:19]MH_I2C_Read... [11:47:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:47:19]Read from MH i2c: E2 [11:47:19]MH_I2C_Read... [11:47:19]Read from MH i2c: E2 62 00 [11:47:19]MH_I2C_Read... [11:47:19]Read from MH i2c: E2 62 00 58 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 8C B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 2F [11:47:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 8C B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:47:19]wFMCommunicate OK [11:47:19]SAM_PROTO_GetFieldsCounters done [11:47:19]requested_item shift.num is exist - process it [11:47:19]requested_item shift.opened is exist - process it [11:47:19]req_shift_opened [11:47:19]FM_GetShiftState [11:47:19]SAM_PROTO_GetShiftState [11:47:19]wFMCommunicate request_size=4 [11:47:19]MH_SAM_APDU [11:47:19]CAPDU: 80 13 01 00 [11:47:19]Write to MH i2c: E2 08 00 59 48 80 13 01 00 00 00 00 00 1E [11:47:19]Write i2c OK [11:47:19]MH_I2C_Read... [11:47:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:47:19]Read from MH i2c: E2 [11:47:19]MH_I2C_Read... [11:47:19]Read from MH i2c: E2 0E 00 [11:47:19]MH_I2C_Read... [11:47:19]Read from MH i2c: E2 0E 00 59 48 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 54 [11:47:19]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [11:47:19]wFMCommunicate OK [11:47:19]SAM_PROTO_GetShiftState done [11:47:19]FM_GetShiftState done [11:47:19]req_shift_opened done [11:47:19]requested_item shift.open_date is exist - process it [11:47:19]req_shift_open_date [11:47:19]req_shift_open_date done [11:47:19]produce_requested_data done [11:47:19]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45196,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [11:47:19]process_action_free close_receipt [11:47:19]json_value_free [11:47:19]json_value_free done [11:47:19]process_json_proto returns [11:47:19]Send response to host [11:47:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45196,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [11:47:19]free response buf [11:47:19]execute_script done [11:47:19]execute_script returns [11:47:19]free content buf [11:47:19]Sock 9.Close socket [11:47:19]Sock 9.Thread stoped [11:47:22]OFD Sender: No OFD packet to send [11:47:27]OFD Sender: No OFD packet to send [11:47:32]OFD Sender: No OFD packet to send [11:47:37]OFD Sender: No OFD packet to send [11:47:42]OFD Sender: No OFD packet to send [11:47:47]OFD Sender: No OFD packet to send [11:47:52]OFD Sender: No OFD packet to send [11:47:57]OFD Sender: No OFD packet to send [11:48:02]OFD Sender: No OFD packet to send [11:48:07]OFD Sender: No OFD packet to send [11:48:12]OFD Sender: No OFD packet to send [11:48:17]OFD Sender: No OFD packet to send [11:48:22]OFD Sender: No OFD packet to send [11:48:27]OFD Sender: No OFD packet to send [11:48:32]OFD Sender: No OFD packet to send [11:48:37]OFD Sender: No OFD packet to send [11:48:42]OFD Sender: No OFD packet to send [11:48:43]accept exits with 7 [11:48:43]New connection [11:48:43]New thread 3067157860 created [11:48:43]Thread 3067014500 joined [11:48:43]Waiting for new connection... [11:48:43] Sock 7.Parse request [11:48:43]Sock 7.Check first char [11:48:43]Sock 7.First char is OK [11:48:43]request: POST /json_proto HTTP/1.0 [11:48:43]Method: POST [11:48:43]URL: /json_proto [11:48:43]Method is POST - this is cgi request [11:48:43]url: /json_proto [11:48:43]query_string will be loaded in cgi processing [11:48:43]execute_cgi json_proto POST (null) [11:48:43]execute_cgi path=json_proto method=POST [11:48:43]POST find Content-Length [11:48:43]Host: 172.17.48.198:8080 [11:48:43]Content-Length: 909 [11:48:43]Content-Type: application/json [11:48:43] [11:48:43]POST finish read [11:48:43]Found Content-Length = 909 [11:48:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184163", "tax_sys" : 0, "items" : [ { "code": "4800452010610", "name": "\u041A\u043E\u0444\u0435 \u043A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL (\u0410\u041A\u0426\u0418\u042F)", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4640030092499", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE SENSE Himalaya", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 258.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:43]execute_script... [11: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 : (3)184163", "tax_sys" : 0, "items" : [ { "code": "4800452010610", "name": "\u041A\u043E\u0444\u0435 \u043A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL (\u0410\u041A\u0426\u0418\u042F)", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4640030092499", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE SENSE Himalaya", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 258.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:43]POST & json_proto [11:48:43]process_json_proto [11:48:43]json parsed OK: [11:48:43]protocol is kg_v1.0 [11:48:43]action value=close_receipt [11:48:43]process_action close_receipt [11:48:43]cmd_close_receipt [11:48:43]MH_GetDate [11:48:43]Write to MH i2c: F0 00 00 5A 48 91 [11:48:43]Write i2c OK [11:48:43]MH_I2C_Read... [11:48:43]Read from MH i2c: F0 [11:48:43]MH_I2C_Read... [11:48:43]Read from MH i2c: F0 09 00 [11:48:43]MH_I2C_Read... [11:48:43]Read from MH i2c: F0 09 00 5A 48 00 A6 63 E4 65 CE C4 D4 65 B7 [11:48:43]GetLastDocTimeStamp 1709466445 [11:48:43]current date 1709466534 [11:48:43]FM_GetShiftState [11:48:43]SAM_PROTO_GetShiftState [11:48:43]wFMCommunicate request_size=4 [11:48:43]MH_SAM_APDU [11:48:43]CAPDU: 80 13 01 00 [11:48:43]Write to MH i2c: E2 08 00 5B 48 80 13 01 00 00 00 00 00 20 [11:48:43]Write i2c OK [11:48:43]MH_I2C_Read... [11:48:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:43]Read from MH i2c: E2 [11:48:43]MH_I2C_Read... [11:48:43]Read from MH i2c: E2 0E 00 [11:48:43]MH_I2C_Read... [11:48:43]Read from MH i2c: E2 0E 00 5B 48 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 56 [11:48:43]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [11:48:43]wFMCommunicate OK [11:48:43]SAM_PROTO_GetShiftState done [11:48:43]FM_GetShiftState done [11:48:43]opened in 1709425694 [11:48:43]opened+sec_in_day 1709512094 [11:48:43]quantity*price = 12000 [11:48:43]sum+1 = 12001 [11:48:43]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4640030092499 Сигареты ESSE SENSE Himalaya 1.000 * 138.00 = 138.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 258.00 НСП 1% : 2.28 НДС 12% : 27.39 Наличными: 258.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 34 03.03.2024 11:48 Смена: 331 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 ФМ: 0000000000874796 ФД: 45197 ФПД: 163832273864698 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T114854&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45197&fm=163832273864698&tin=02508201610067®Number=0000000000090572&sum=25800 0 [11:48:44]StoreToDocumentArchive [11:48:44]shift 331 fd 45197 [11:48:44]save to /storage/0331/doc_00045197 [11:48:44]save last doc name /storage/0331/doc_00045197 to /storage/kkm_last_doc_name [11:48:44]save OK [11:48:44]Clear old archive folders... [11:48:44]ProcessDocumentItem done err = 0, tmpTLVsize=391 [11:48:44]tlvbuf is 01BD0860 [11:48:44]SAM_PROTO_ClearQueue [11:48:44]wFMCommunicate request_size=4 [11:48:44]MH_SAM_APDU [11:48:44]CAPDU: 80 09 00 00 [11:48:44]Write to MH i2c: E2 08 00 68 48 80 09 00 00 00 00 00 00 22 [11:48:44]Write i2c OK [11:48:44]MH_I2C_Read... [11:48:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:48:44]Read from MH i2c: E2 [11:48:44]MH_I2C_Read... [11:48:44]Read from MH i2c: E2 03 00 [11:48:44]MH_I2C_Read... [11:48:44]Read from MH i2c: E2 03 00 68 48 00 90 00 24 [11:48:44]RAPDU: 90 00 [11:48:44]wFMCommunicate OK [11:48:44]SAM_PROTO_ClearQueue done [11:48:44]KKMCreateOFDPacket [11:48:44]OFDProtocolAddRootSTLVToBuf [11:48:44]FM_MakeSignedData [11:48:44]FM_MakeSignedData [11:48:44]SAM_PROTO_SignData [11:48:44]wFMCommunicate request_size=4 [11:48:44]MH_SAM_APDU [11:48:44]CAPDU: 80 0D 01 02 [11:48:44]Write to MH i2c: E2 08 00 69 48 80 0D 01 02 00 00 00 00 2A [11:48:44]Write i2c OK [11:48:44]MH_I2C_Read... [11:48:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:48:44]Read from MH i2c: E2 [11:48:44]MH_I2C_Read... [11:48:44]Read from MH i2c: E2 03 00 [11:48:44]MH_I2C_Read... [11:48:44]Read from MH i2c: E2 03 00 69 48 00 90 00 25 [11:48:44]RAPDU: 90 00 [11:48:44]wFMCommunicate OK [11:48:44]wFMCommunicate request_size=255 [11:48:44]MH_SAM_APDU [11:48:44]CAPDU: 80 0D 02 02 FA 03 00 87 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 38 30 30 34 35 32 30 31 30 36 31 30 06 04 29 00 D0 9A D0 BE D1 84 D0 B5 20 D0 BA D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 20 28 D0 90 D0 9A D0 A6 D0 98 D0 AF 29 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 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 C8 64 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 [11:48:44]Write to MH i2c: E2 02 01 6A 48 80 0D 02 02 FA 00 03 00 87 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 38 30 30 34 35 32 30 31 30 36 31 30 06 04 29 00 D0 9A D0 BE D1 84 D0 B5 20 D0 BA D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 20 28 D0 90 D0 9A D0 A6 D0 98 D0 AF 29 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 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 C8 64 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 00 00 4F [11:48:44]Write i2c OK [11:48:44]MH_I2C_Read... [11:48:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:44]Read from MH i2c: E2 [11:48:44]MH_I2C_Read... [11:48:44]Read from MH i2c: E2 03 00 [11:48:44]MH_I2C_Read... [11:48:44]Read from MH i2c: E2 03 00 6A 48 00 90 00 26 [11:48:44]RAPDU: 90 00 [11:48:44]wFMCommunicate OK [11:48:44]wFMCommunicate request_size=150 [11:48:44]MH_SAM_APDU [11:48:44]CAPDU: 80 0D 02 02 91 01 00 01 F7 03 06 00 E4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B3 0A 00 00 00 00 07 04 06 00 C8 64 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 A6 63 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 8D B0 00 00 35 04 06 00 95 01 2C 7C 87 FA [11:48:44]Write to MH i2c: E2 99 00 6B 48 80 0D 02 02 91 00 01 00 01 F7 03 06 00 E4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B3 0A 00 00 00 00 07 04 06 00 C8 64 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 A6 63 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 8D B0 00 00 35 04 06 00 95 01 2C 7C 87 FA 00 00 0E [11:48:44]Write i2c OK [11:48:44]MH_I2C_Read... [11:48:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:45]Read from MH i2c: E2 [11:48:45]MH_I2C_Read... [11:48:45]Read from MH i2c: E2 03 00 [11:48:45]MH_I2C_Read... [11:48:45]Read from MH i2c: E2 03 00 6B 48 00 90 00 27 [11:48:45]RAPDU: 90 00 [11:48:45]wFMCommunicate OK [11:48:45]wFMCommunicate request_size=4 [11:48:45]MH_SAM_APDU [11:48:45]CAPDU: 80 0D 03 02 [11:48:45]Write to MH i2c: E2 08 00 6C 48 80 0D 03 02 00 00 00 00 2F [11:48:45]Write i2c OK [11:48:45]MH_I2C_Read... [11:48:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:48:45]Read from MH i2c: E2 [11:48:45]MH_I2C_Read... [11:48:45]Read from MH i2c: E2 0B 00 [11:48:45]MH_I2C_Read... [11:48:45]Read from MH i2c: E2 0B 00 6C 48 00 89 E7 72 1F 9D 1A F9 57 90 00 38 [11:48:45]RAPDU: 89 E7 72 1F 9D 1A F9 57 90 00 [11:48:45]wFMCommunicate OK [11:48:45]SAM_PROTO_SignData done [11:48:45]FM_MakeSignedData done [11:48:45]CreateOFDProtocolMessage [11:48:45]wFMCommunicate request_size=4 [11:48:45]MH_SAM_APDU [11:48:45]CAPDU: 80 11 00 00 [11:48:45]Write to MH i2c: E2 08 00 6D 48 80 11 00 00 00 00 00 00 2F [11:48:45]Write i2c OK [11:48:45]MH_I2C_Read... [11:48:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:45]Read from MH i2c: E2 [11:48:45]MH_I2C_Read... [11:48:45]Read from MH i2c: E2 17 00 [11:48:45]MH_I2C_Read... [11:48:45]Read from MH i2c: E2 17 00 6D 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 8B [11:48:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [11:48:45]wFMCommunicate OK [11:48:45]CreateOFDProtocolMessage done [11:48:45]OFDSenderStorePacket 45197 [11:48:45]StoreOFDPacket docnum=45197 [11:48:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 9B 01 00 00 52 4D 93 01 F4 69 5A 03 01 00 03 00 87 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 38 30 30 34 35 32 30 31 30 36 31 30 06 04 29 00 D0 9A D0 BE D1 84 D0 B5 20 D0 BA D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 20 28 D0 90 D0 9A D0 A6 D0 98 D0 AF 29 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 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 C8 64 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B3 0A 00 00 00 00 07 04 06 00 C8 64 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 A6 63 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 8D B0 00 00 35 04 06 00 95 01 2C 7C 87 FA 89 E7 72 1F 9D 1A F9 57 [11:48:45]CheckFolder [11:48:45]dirname=/storage/ofd_packets [11:48:45]CheckFolder done [11:48:45]ProducePacketName [11:48:45]name=ofd_packets/00045197 [11:48:45]NVStorageSaveData ofd_packets/00045197 [11:48:45]File name is /storage/ofd_packets/00045197 [11:48:45]Write 441 bytes [11:48:45]NVStorageSaveData done [11:48:45]OFDSenderStorePacket done [11:48:45]KKMCreateOFDPacket done [11:48:45]NVStorageSaveData kkm_last_timestamp [11:48:45]File name is /storage/kkm_last_timestamp [11:48:45]Write 4 bytes [11:48:45]NVStorageSaveData done [11:48:45]ExternCall_PrintAddStr [11:48:45]wPrintStart [11:48:45]Write to MH i2c: 01 00 00 6E 48 B6 [11:48:45]Write i2c OK [11:48:45]MH_I2C_Read... [11:48:45]Read from MH i2c: 01 [11:48:45]MH_I2C_Read... [11:48:45]Read from MH i2c: 01 07 00 [11:48:45]MH_I2C_Read... [11:48:45]Read from MH i2c: 01 07 00 6E 48 00 00 00 00 00 FF 0F CB [11:48:45]RasterBufferAndPrint [11:48:45]line Счет N : (3)184163 [11:48:45]line ИНН: 02508201610067 [11:48:45]line Контрольно-Кассовый Чек [11:48:45]line ПРОДАЖА [11:48:45]line Товар: 4800452010610 [11:48:45]line Кофе капучино XL (АКЦИЯ) [11:48:45]line 1.000 * 120.00 [11:48:45]line = 120.00 [11:48:45]line НДС 12% НСП 1% [11:48:45]line > о реализуемом товаре [11:48:45]line Товар: 4640030092499 [11:48:45]line Сигареты ESSE SENSE Himalaya [11:48:45]line 1.000 * 138.00 [11:48:45]line = 138.00 [11:48:45]line НДС 12% НСП 1% [11:48:45]line > о реализуемом товаре [11:48:45]line ИТОГО: 258.00 [11:48:45]line НСП 1% : 2.28 [11:48:45]line НДС 12% : 27.39 [11:48:45]line Наличными: 258.00 [11:48:45]line Безнал.: 0.00 [11:48:45]line Место: АЗС № 25 "Партнер Нефть" [11:48:45]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [11:48:45]line СНО: Общий режим [11:48:45]line Чек 34 03.03.2024 11:48 [11:48:45]line Смена: 331 ФФД: 1.0 [11:48:45]line ЗНМ: 0300000013 [11:48:45]line РНМ: 0000000000090572 [11:48:45]line Версия ККМ: 001 [11:48:45]line ФМ: 0000000000874796 [11:48:45]line ФД: 45197 [11:48:45]line ФПД: 163832273864698 [11:48:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T114854&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45197&fm=163832273864698&tin=02508201610067®Number=0000000000090572&sum=25800 [11:48:45]OFD Sender: Processing packet 45197 [packets to send 17, broken 16] [11:48:45]ProducePacketName [11:48:45]name=ofd_packets/00045197 [11:48:45]OFD Sender: To server: pG, [11:48:45]CommunicateWithHost lk.salyk.kg:30040 [11:48:45]ConnectInit lk.salyk.kg [11:48:45]line 0 [11:48:45]written 0, free lines is 4095 [11:48:45]Connected sock=10 [11:48:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 9B 01 00 00 52 4D 93 01 F4 69 5A 03 01 00 03 00 87 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 38 30 30 34 35 32 30 31 30 36 31 30 06 04 29 00 D0 9A D0 BE D1 84 D0 B5 20 D0 BA D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 20 28 D0 90 D0 9A D0 A6 D0 98 D0 AF 29 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 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 C8 64 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B3 0A 00 00 00 00 07 04 06 00 C8 64 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 A6 63 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 8D B0 00 00 35 04 06 00 95 01 2C 7C 87 FA 89 E7 72 1F 9D 1A F9 57 [11:48:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 89 A4 47 00 51 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 34 37 39 36 10 04 04 00 8D B0 00 00 F4 03 04 00 6B 0F E4 65 B6 04 01 00 00 99 75 92 1D C6 78 CB D4 [11:48:45]CommunicateWithHost err = 0 [11:48:45]CheckOFDResponse [11:48:45]1017 (14) - 77093643461234 [11:48:45]1041 (16) - 0000000000874796 [11:48:45]1040 (4) - 45197 [11:48:45]1012 (4) - 03.03.2024 05:49 [11:48:45]1206 (1) - 0 [11:48:45]OFD Sender: Remove packet 45197 [11:48:45]ProducePacketName [11:48:45]name=ofd_packets/00045197 [11:48:45]NVStorageDeleteData [11:48:46]Write to MH i2c: 01 00 00 9D 48 E5 [11:48:46]Write i2c OK [11:48:46]MH_I2C_Read... [11:48:46]Read from MH i2c: 01 [11:48:46]MH_I2C_Read... [11:48:46]Read from MH i2c: 01 07 00 [11:48:46]MH_I2C_Read... [11:48:46]Read from MH i2c: 01 07 00 9D 48 00 00 00 00 00 BD 0C B5 [11:48:46]RasterBufferAndPrint [11:48:46]line [11:48:46]line [11:48:46]line [11:48:46]line [11:48:46]line [11:48:46]written 0, free lines is 3271 [11:48:46]MH_Cut [11:48:46]Write to MH i2c: D1 01 00 A4 48 01 BE [11:48:46]Write i2c OK [11:48:46]MH_I2C_Read... [11:48:46]Read from MH i2c: D1 [11:48:46]MH_I2C_Read... [11:48:46]Read from MH i2c: D1 01 00 [11:48:46]MH_I2C_Read... [11:48:46]Read from MH i2c: D1 01 00 A4 48 00 BD [11:48:46]Write to MH i2c: 01 00 00 A5 48 ED [11:48:46]Write i2c OK [11:48:46]MH_I2C_Read... [11:48:46]OFD Sender: No OFD packet to send [11:48:46]*** Cut start [11:48:46]*** Purtial cut [11:48:46]*** Stage 1: CUTSNS_PIN = 1 [11:48:48]Read from MH i2c: 01 [11:48:48]MH_I2C_Read... [11:48:48]*** Stop cut motor [11:48:48]*** Cut end [11:48:48]Read from MH i2c: 01 07 00 [11:48:48]MH_I2C_Read... [11:48:48]Read from MH i2c: 01 07 00 A5 48 00 00 00 00 00 FF 0F 02 [11:48:48]process_action close_receipt done [11:48:48]requested_data is exist [11:48:48]produce_requested_data [11:48:48]requested_item fm.sn is exist - process it [11:48:48]wFMCommunicate request_size=4 [11:48:48]MH_SAM_APDU [11:48:48]CAPDU: 80 11 00 00 [11:48:48]Write to MH i2c: E2 08 00 A6 48 80 11 00 00 00 00 00 00 68 [11:48:48]Write i2c OK [11:48:48]MH_I2C_Read... [11:48:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:48]Read from MH i2c: E2 [11:48:48]MH_I2C_Read... [11:48:48]Read from MH i2c: E2 17 00 [11:48:48]MH_I2C_Read... [11:48:48]Read from MH i2c: E2 17 00 A6 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 C4 [11:48:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [11:48:48]wFMCommunicate OK [11:48:48]requested_item fd.num is exist - process it [11:48:48]SAM_PROTO_GetFieldsCounters [11:48:48]wFMCommunicate request_size=4 [11:48:48]MH_SAM_APDU [11:48:48]CAPDU: 80 13 00 00 [11:48:48]Write to MH i2c: E2 08 00 A7 48 80 13 00 00 00 00 00 00 6B [11:48:48]Write i2c OK [11:48:48]MH_I2C_Read... [11:48:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:48:48]Read from MH i2c: E2 [11:48:48]MH_I2C_Read... [11:48:48]Read from MH i2c: E2 62 00 [11:48:48]MH_I2C_Read... [11:48:48]Read from MH i2c: E2 62 00 A7 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 8D B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 82 [11:48:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 8D B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:48:48]wFMCommunicate OK [11:48:48]SAM_PROTO_GetFieldsCounters done [11:48:48]requested_item shift.num is exist - process it [11:48:48]requested_item shift.opened is exist - process it [11:48:48]req_shift_opened [11:48:48]FM_GetShiftState [11:48:48]SAM_PROTO_GetShiftState [11:48:48]wFMCommunicate request_size=4 [11:48:48]MH_SAM_APDU [11:48:48]CAPDU: 80 13 01 00 [11:48:48]Write to MH i2c: E2 08 00 A8 48 80 13 01 00 00 00 00 00 6D [11:48:48]Write i2c OK [11:48:48]MH_I2C_Read... [11:48:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:49]Read from MH i2c: E2 [11:48:49]MH_I2C_Read... [11:48:49]Read from MH i2c: E2 0E 00 [11:48:49]MH_I2C_Read... [11:48:49]Read from MH i2c: E2 0E 00 A8 48 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 A3 [11:48:49]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [11:48:49]wFMCommunicate OK [11:48:49]SAM_PROTO_GetShiftState done [11:48:49]FM_GetShiftState done [11:48:49]req_shift_opened done [11:48:49]requested_item shift.open_date is exist - process it [11:48:49]req_shift_open_date [11:48:49]req_shift_open_date done [11:48:49]produce_requested_data done [11:48:49]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45197,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [11:48:49]process_action_free close_receipt [11:48:49]json_value_free [11:48:49]json_value_free done [11:48:49]process_json_proto returns [11:48:49]Send response to host [11:48:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45197,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [11:48:49]free response buf [11:48:49]execute_script done [11:48:49]execute_script returns [11:48:49]free content buf [11:48:49]Sock 7.Close socket [11:48:49]Sock 7.Thread stoped [11:48:51]OFD Sender: No OFD packet to send [11:48:56]OFD Sender: No OFD packet to send [11:49:01]OFD Sender: No OFD packet to send [11:49:06]OFD Sender: No OFD packet to send [11:49:11]OFD Sender: No OFD packet to send [11:49:16]OFD Sender: No OFD packet to send [11:49:21]OFD Sender: No OFD packet to send [11:49:26]OFD Sender: No OFD packet to send [11:49:31]OFD Sender: No OFD packet to send [11:49:36]OFD Sender: No OFD packet to send [11:49:41]OFD Sender: No OFD packet to send [11:49:46]OFD Sender: No OFD packet to send [11:49:50]accept exits with 9 [11:49:50]New connection [11:49:50]New thread 3067014500 created [11:49:50]Thread 3067157860 joined [11:49:50]Waiting for new connection... [11:49:50] Sock 9.Parse request [11:49:50]Sock 9.Check first char [11:49:50]Sock 9.First char is OK [11:49:50]request: POST /json_proto HTTP/1.0 [11:49:50]Method: POST [11:49:50]URL: /json_proto [11:49:50]Method is POST - this is cgi request [11:49:50]url: /json_proto [11:49:50]query_string will be loaded in cgi processing [11:49:50]execute_cgi json_proto POST (null) [11:49:50]execute_cgi path=json_proto method=POST [11:49:50]POST find Content-Length [11:49:50]Host: 172.17.48.198:8080 [11:49:50]Content-Length: 683 [11:49:50]Content-Type: application/json [11:49:50] [11:49:50]POST finish read [11:49:50]Found Content-Length = 683 [11:49:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106149", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 16.160, "sum" : 1000.30, "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:49:50]execute_script... [11:49: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)1106149", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 16.160, "sum" : 1000.30, "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:49:50]POST & json_proto [11:49:50]process_json_proto [11:49:50]json parsed OK: [11:49:50]protocol is kg_v1.0 [11:49:50]action value=close_receipt [11:49:50]process_action close_receipt [11:49:50]cmd_close_receipt [11:49:50]MH_GetDate [11:49:50]Write to MH i2c: F0 00 00 A9 48 E0 [11:49:50]Write i2c OK [11:49:50]MH_I2C_Read... [11:49:50]Read from MH i2c: F0 [11:49:50]MH_I2C_Read... [11:49:50]Read from MH i2c: F0 09 00 [11:49:50]MH_I2C_Read... [11:49:50]Read from MH i2c: F0 09 00 A9 48 00 E9 63 E4 65 CE C4 D4 65 49 [11:49:50]GetLastDocTimeStamp 1709466534 [11:49:50]current date 1709466601 [11:49:50]FM_GetShiftState [11:49:50]SAM_PROTO_GetShiftState [11:49:50]wFMCommunicate request_size=4 [11:49:50]MH_SAM_APDU [11:49:50]CAPDU: 80 13 01 00 [11:49:50]Write to MH i2c: E2 08 00 AA 48 80 13 01 00 00 00 00 00 6F [11:49:50]Write i2c OK [11:49:50]MH_I2C_Read... [11:49:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:49:50]Read from MH i2c: E2 [11:49:50]MH_I2C_Read... [11:49:50]Read from MH i2c: E2 0E 00 [11:49:50]MH_I2C_Read... [11:49:50]Read from MH i2c: E2 0E 00 AA 48 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 A5 [11:49:50]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [11:49:50]wFMCommunicate OK [11:49:50]SAM_PROTO_GetShiftState done [11:49:50]FM_GetShiftState done [11:49:50]opened in 1709425694 [11:49:50]opened+sec_in_day 1709512094 [11:49:50]quantity*price = 100030 [11:49:50]sum+1 = 100031 [11:49:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 35 03.03.2024 11:50 Смена: 331 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 ФМ: 0000000000874796 ФД: 45198 ФПД: 106495426786275 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T115001&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45198&fm=106495426786275&tin=02508201610067®Number=0000000000090572&sum=100000 [11:49:51]StoreToDocumentArchive [11:49:51]shift 331 fd 45198 [11:49:51]save to /storage/0331/doc_00045198 [11:49:51]save last doc name /storage/0331/doc_00045198 to /storage/kkm_last_doc_name [11:49:51]save OK [11:49:51]Clear old archive folders... [11:49:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:49:51]tlvbuf is 01B9B260 [11:49:51]SAM_PROTO_ClearQueue [11:49:51]wFMCommunicate request_size=4 [11:49:51]MH_SAM_APDU [11:49:51]CAPDU: 80 09 00 00 [11:49:51]Write to MH i2c: E2 08 00 B7 48 80 09 00 00 00 00 00 00 71 [11:49:51]Write i2c OK [11:49:51]MH_I2C_Read... [11:49:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:49:51]Read from MH i2c: E2 [11:49:51]MH_I2C_Read... [11:49:51]Read from MH i2c: E2 03 00 [11:49:51]MH_I2C_Read... [11:49:51]Read from MH i2c: E2 03 00 B7 48 00 90 00 73 [11:49:51]RAPDU: 90 00 [11:49:51]wFMCommunicate OK [11:49:51]SAM_PROTO_ClearQueue done [11:49:51]KKMCreateOFDPacket [11:49:51]OFDProtocolAddRootSTLVToBuf [11:49:51]FM_MakeSignedData [11:49:51]FM_MakeSignedData [11:49:51]SAM_PROTO_SignData [11:49:51]wFMCommunicate request_size=4 [11:49:51]MH_SAM_APDU [11:49:51]CAPDU: 80 0D 01 02 [11:49:51]Write to MH i2c: E2 08 00 B8 48 80 0D 01 02 00 00 00 00 79 [11:49:51]Write i2c OK [11:49:51]MH_I2C_Read... [11:49:51]OFD Sender: No OFD packet to send [11:49:51]Read from MH i2c: E2 [11:49:51]MH_I2C_Read... [11:49:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:49:51]Read from MH i2c: E2 03 00 [11:49:51]MH_I2C_Read... [11:49:51]Read from MH i2c: E2 03 00 B8 48 00 90 00 74 [11:49:51]RAPDU: 90 00 [11:49:51]wFMCommunicate OK [11:49:51]wFMCommunicate request_size=255 [11:49:51]MH_SAM_APDU [11:49:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 E9 63 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 8E B0 00 00 35 04 06 00 60 [11:49:51]Write to MH i2c: E2 02 01 B9 48 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 E9 63 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 8E B0 00 00 35 04 06 00 60 00 00 84 [11:49:51]Write i2c OK [11:49:51]MH_I2C_Read... [11:49:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:49:51]Read from MH i2c: E2 [11:49:51]MH_I2C_Read... [11:49:51]Read from MH i2c: E2 03 00 [11:49:51]MH_I2C_Read... [11:49:51]Read from MH i2c: E2 03 00 B9 48 00 90 00 75 [11:49:51]RAPDU: 90 00 [11:49:51]wFMCommunicate OK [11:49:51]wFMCommunicate request_size=10 [11:49:51]MH_SAM_APDU [11:49:51]CAPDU: 80 0D 02 02 05 DB 66 15 73 E3 [11:49:51]Write to MH i2c: E2 0D 00 BA 48 80 0D 02 02 05 00 DB 66 15 73 E3 00 00 32 [11:49:51]Write i2c OK [11:49:51]MH_I2C_Read... [11:49:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:49:51]Read from MH i2c: E2 [11:49:51]MH_I2C_Read... [11:49:51]Read from MH i2c: E2 03 00 [11:49:51]MH_I2C_Read... [11:49:51]Read from MH i2c: E2 03 00 BA 48 00 90 00 76 [11:49:51]RAPDU: 90 00 [11:49:51]wFMCommunicate OK [11:49:51]wFMCommunicate request_size=4 [11:49:51]MH_SAM_APDU [11:49:51]CAPDU: 80 0D 03 02 [11:49:51]Write to MH i2c: E2 08 00 BB 48 80 0D 03 02 00 00 00 00 7E [11:49:51]Write i2c OK [11:49:51]MH_I2C_Read... [11:49:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:49:51]Read from MH i2c: E2 [11:49:51]MH_I2C_Read... [11:49:51]Read from MH i2c: E2 0B 00 [11:49:51]MH_I2C_Read... [11:49:51]Read from MH i2c: E2 0B 00 BB 48 00 B3 13 54 40 BA 99 7F 60 90 00 0B [11:49:51]RAPDU: B3 13 54 40 BA 99 7F 60 90 00 [11:49:51]wFMCommunicate OK [11:49:51]SAM_PROTO_SignData done [11:49:51]FM_MakeSignedData done [11:49:51]CreateOFDProtocolMessage [11:49:51]wFMCommunicate request_size=4 [11:49:51]MH_SAM_APDU [11:49:51]CAPDU: 80 11 00 00 [11:49:51]Write to MH i2c: E2 08 00 BC 48 80 11 00 00 00 00 00 00 7E [11:49:51]Write i2c OK [11:49:51]MH_I2C_Read... [11:49:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:49:51]Read from MH i2c: E2 [11:49:51]MH_I2C_Read... [11:49:51]Read from MH i2c: E2 17 00 [11:49:51]MH_I2C_Read... [11:49:51]Read from MH i2c: E2 17 00 BC 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 DA [11:49:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [11:49:51]wFMCommunicate OK [11:49:51]CreateOFDProtocolMessage done [11:49:51]OFDSenderStorePacket 45198 [11:49:51]StoreOFDPacket docnum=45198 [11:49:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0F 01 00 00 E0 F8 07 01 22 DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 E9 63 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 8E B0 00 00 35 04 06 00 60 DB 66 15 73 E3 B3 13 54 40 BA 99 7F 60 [11:49:51]CheckFolder [11:49:51]dirname=/storage/ofd_packets [11:49:51]CheckFolder done [11:49:51]ProducePacketName [11:49:51]name=ofd_packets/00045198 [11:49:51]NVStorageSaveData ofd_packets/00045198 [11:49:51]File name is /storage/ofd_packets/00045198 [11:49:51]Write 301 bytes [11:49:51]NVStorageSaveData done [11:49:51]OFDSenderStorePacket done [11:49:51]KKMCreateOFDPacket done [11:49:51]NVStorageSaveData kkm_last_timestamp [11:49:51]File name is /storage/kkm_last_timestamp [11:49:51]Write 4 bytes [11:49:51]NVStorageSaveData done [11:49:51]ExternCall_PrintAddStr [11:49:51]wPrintStart [11:49:51]Write to MH i2c: 01 00 00 BD 48 05 [11:49:51]Write i2c OK [11:49:51]MH_I2C_Read... [11:49:51]Read from MH i2c: 01 [11:49:51]MH_I2C_Read... [11:49:51]Read from MH i2c: 01 07 00 [11:49:51]MH_I2C_Read... [11:49:51]Read from MH i2c: 01 07 00 BD 48 00 00 00 00 00 FF 0F 1A [11:49:51]RasterBufferAndPrint [11:49:51]line Счет N : (1)1106149 [11:49:51]line ИНН: 02508201610067 [11:49:51]line Контрольно-Кассовый Чек [11:49:51]line ПРОДАЖА [11:49:51]line ТРК (МРК, ГНК) : 11 [11:49:51]line Товар: 2710124130 [11:49:51]line Аи-92-К-5 [11:49:51]line 16.160 * 61.90 [11:49:51]line = 1000.30 [11:49:51]line НДС 12% НСП 1% [11:49:51]line > о реализуемом товаре [11:49:51]line ОКРУГЛЕНИЕ: -0.30 [11:49:51]line ИТОГО: 1000.00 [11:49:51]line Внесено: 1000.00 [11:49:51]line СДАЧА: 0.00 [11:49:51]line НСП 1% : 8.85 [11:49:51]line НДС 12% : 106.23 [11:49:51]line Наличными: 1000.00 [11:49:51]line Безнал.: 0.00 [11:49:51]line Место: АЗС № 25 "Партнер Нефть" [11:49:51]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [11:49:51]line СНО: Общий режим [11:49:51]line Чек 35 03.03.2024 11:50 [11:49:51]line Смена: 331 ФФД: 1.0 [11:49:51]line ЗНМ: 0300000013 [11:49:51]line РНМ: 0000000000090572 [11:49:51]line Версия ККМ: 001 [11:49:51]line ФМ: 0000000000874796 [11:49:51]line ФД: 45198 [11:49:51]line ФПД: 106495426786275 [11:49:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T115001&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45198&fm=106495426786275&tin=02508201610067®Number=0000000000090572&sum=100000 [11:49:52]OFD Sender: Processing packet 45198 [packets to send 17, broken 16] [11:49:52]ProducePacketName [11:49:52]name=ofd_packets/00045198 [11:49:52]OFD Sender: To server: pG, [11:49:52]CommunicateWithHost lk.salyk.kg:30040 [11:49:52]ConnectInit lk.salyk.kg [11:49:52]written 0, free lines is 4095 [11:49:52]Connected sock=10 [11:49:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0F 01 00 00 E0 F8 07 01 22 DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 E9 63 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 8E B0 00 00 35 04 06 00 60 DB 66 15 73 E3 B3 13 54 40 BA 99 7F 60 [11:49:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 D9 C4 47 00 2C 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 34 37 39 36 10 04 04 00 8E B0 00 00 F4 03 04 00 AE 0F E4 65 B6 04 01 00 00 05 F6 DE 85 6D E6 18 71 [11:49:52]CommunicateWithHost err = 0 [11:49:52]CheckOFDResponse [11:49:52]1017 (14) - 77093643461234 [11:49:52]1041 (16) - 0000000000874796 [11:49:52]1040 (4) - 45198 [11:49:52]1012 (4) - 03.03.2024 05:50 [11:49:52]1206 (1) - 0 [11:49:52]OFD Sender: Remove packet 45198 [11:49:52]ProducePacketName [11:49:52]name=ofd_packets/00045198 [11:49:52]NVStorageDeleteData [11:49:52]Write to MH i2c: 01 00 00 E8 48 30 [11:49:52]Write i2c OK [11:49:52]MH_I2C_Read... [11:49:52]Read from MH i2c: 01 [11:49:52]MH_I2C_Read... [11:49:52]Read from MH i2c: 01 07 00 [11:49:52]MH_I2C_Read... [11:49:52]Read from MH i2c: 01 07 00 E8 48 00 00 00 00 00 ED 0C 30 [11:49:52]RasterBufferAndPrint [11:49:52]line [11:49:52]line [11:49:52]line [11:49:52]line [11:49:52]line [11:49:52]written 0, free lines is 3318 [11:49:52]MH_Cut [11:49:52]Write to MH i2c: D1 01 00 EF 48 01 09 [11:49:52]Write i2c OK [11:49:52]MH_I2C_Read... [11:49:52]Read from MH i2c: D1 [11:49:52]MH_I2C_Read... [11:49:52]Read from MH i2c: D1 01 00 [11:49:52]MH_I2C_Read... [11:49:52]Read from MH i2c: D1 01 00 EF 48 00 08 [11:49:52]Write to MH i2c: 01 00 00 F0 48 38 [11:49:52]Write i2c OK [11:49:52]MH_I2C_Read... [11:49:52]OFD Sender: No OFD packet to send [11:49:53]*** Cut start [11:49:53]*** Purtial cut [11:49:53]*** Stage 1: CUTSNS_PIN = 1 [11:49:55]Read from MH i2c: 01 [11:49:55]MH_I2C_Read... [11:49:55]*** Stop cut motor [11:49:55]*** Cut end [11:49:55]Read from MH i2c: 01 07 00 [11:49:55]MH_I2C_Read... [11:49:55]Read from MH i2c: 01 07 00 F0 48 00 00 00 00 00 FF 0F 4D [11:49:55]process_action close_receipt done [11:49:55]requested_data is exist [11:49:55]produce_requested_data [11:49:55]requested_item fm.sn is exist - process it [11:49:55]wFMCommunicate request_size=4 [11:49:55]MH_SAM_APDU [11:49:55]CAPDU: 80 11 00 00 [11:49:55]Write to MH i2c: E2 08 00 F1 48 80 11 00 00 00 00 00 00 B3 [11:49:55]Write i2c OK [11:49:55]MH_I2C_Read... [11:49:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:49:55]Read from MH i2c: E2 [11:49:55]MH_I2C_Read... [11:49:55]Read from MH i2c: E2 17 00 [11:49:55]MH_I2C_Read... [11:49:55]Read from MH i2c: E2 17 00 F1 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 0F [11:49:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [11:49:55]wFMCommunicate OK [11:49:55]requested_item fd.num is exist - process it [11:49:55]SAM_PROTO_GetFieldsCounters [11:49:55]wFMCommunicate request_size=4 [11:49:55]MH_SAM_APDU [11:49:55]CAPDU: 80 13 00 00 [11:49:55]Write to MH i2c: E2 08 00 F2 48 80 13 00 00 00 00 00 00 B6 [11:49:55]Write i2c OK [11:49:55]MH_I2C_Read... [11:49:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:49:55]Read from MH i2c: E2 [11:49:55]MH_I2C_Read... [11:49:55]Read from MH i2c: E2 62 00 [11:49:55]MH_I2C_Read... [11:49:55]Read from MH i2c: E2 62 00 F2 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 8E B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 D1 [11:49:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 8E B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:49:55]wFMCommunicate OK [11:49:55]SAM_PROTO_GetFieldsCounters done [11:49:55]requested_item shift.num is exist - process it [11:49:55]requested_item shift.opened is exist - process it [11:49:55]req_shift_opened [11:49:55]FM_GetShiftState [11:49:55]SAM_PROTO_GetShiftState [11:49:55]wFMCommunicate request_size=4 [11:49:55]MH_SAM_APDU [11:49:55]CAPDU: 80 13 01 00 [11:49:55]Write to MH i2c: E2 08 00 F3 48 80 13 01 00 00 00 00 00 B8 [11:49:55]Write i2c OK [11:49:55]MH_I2C_Read... [11:49:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:49:55]Read from MH i2c: E2 [11:49:55]MH_I2C_Read... [11:49:55]Read from MH i2c: E2 0E 00 [11:49:55]MH_I2C_Read... [11:49:55]Read from MH i2c: E2 0E 00 F3 48 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 EE [11:49:55]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [11:49:55]wFMCommunicate OK [11:49:55]SAM_PROTO_GetShiftState done [11:49:55]FM_GetShiftState done [11:49:55]req_shift_opened done [11:49:55]requested_item shift.open_date is exist - process it [11:49:55]req_shift_open_date [11:49:55]req_shift_open_date done [11:49:55]produce_requested_data done [11:49:55]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45198,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [11:49:55]process_action_free close_receipt [11:49:55]json_value_free [11:49:55]json_value_free done [11:49:55]process_json_proto returns [11:49:55]Send response to host [11:49:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45198,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [11:49:55]free response buf [11:49:55]execute_script done [11:49:55]execute_script returns [11:49:55]free content buf [11:49:55]Sock 9.Close socket [11:49:55]Sock 9.Thread stoped [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:43]OFD Sender: No OFD packet to send [11:51:48]OFD Sender: No OFD packet to send [11:51:53]OFD Sender: No OFD packet to send [11:51:58]OFD Sender: No OFD packet to send [11:52:03]OFD Sender: No OFD packet to send [11:52:08]OFD Sender: No OFD packet to send [11:52:13]OFD Sender: No OFD packet to send [11:52:18]OFD Sender: No OFD packet to send [11:52:23]OFD Sender: No OFD packet to send [11:52:28]OFD Sender: No OFD packet to send [11:52:33]OFD Sender: No OFD packet to send [11:52:38]OFD Sender: No OFD packet to send [11:52:43]OFD Sender: No OFD packet to send [11:52:48]OFD Sender: No OFD packet to send [11:52:53]OFD Sender: No OFD packet to send [11:52:58]OFD Sender: No OFD packet to send [11:53:03]OFD Sender: No OFD packet to send [11:53:08]OFD Sender: No OFD packet to send [11:53:13]OFD Sender: No OFD packet to send [11:53:18]OFD Sender: No OFD packet to send [11:53:23]OFD Sender: No OFD packet to send [11:53:28]OFD Sender: No OFD packet to send [11:53:33]OFD Sender: No OFD packet to send [11:53:38]OFD Sender: No OFD packet to send [11:53:43]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:58]OFD Sender: No OFD packet to send [12:04:03]OFD Sender: No OFD packet to send [12:04:08]OFD Sender: No OFD packet to send [12:04:13]OFD Sender: No OFD packet to send [12:04:18]OFD Sender: No OFD packet to send [12:04:23]OFD Sender: No OFD packet to send [12:04:28]OFD Sender: No OFD packet to send [12:04:33]OFD Sender: No OFD packet to send [12:04:38]OFD Sender: No OFD packet to send [12:04:43]OFD Sender: No OFD packet to send [12:04:48]OFD Sender: No OFD packet to send [12:04:53]OFD Sender: No OFD packet to send [12:04:58]OFD Sender: No OFD packet to send [12:05:03]OFD Sender: No OFD packet to send [12:05:08]OFD Sender: No OFD packet to send [12:05:13]OFD Sender: No OFD packet to send [12:05:18]OFD Sender: No OFD packet to send [12:05:23]OFD Sender: No OFD packet to send [12:05:28]OFD Sender: No OFD packet to send [12:05:33]OFD Sender: No OFD packet to send [12:05:38]OFD Sender: No OFD packet to send [12:05:43]OFD Sender: No OFD packet to send [12:05:48]OFD Sender: No OFD packet to send [12:05:53]OFD Sender: No OFD packet to send [12:05:58]OFD Sender: No OFD packet to send [12:06:03]OFD Sender: No OFD packet to send [12:06:08]OFD Sender: No OFD packet to send [12:06:13]OFD Sender: No OFD packet to send [12:06:18]OFD Sender: No OFD packet to send [12:06:23]OFD Sender: No OFD packet to send [12:06:28]OFD Sender: No OFD packet to send [12:06:33]OFD Sender: No OFD packet to send [12:06:38]OFD Sender: No OFD packet to send [12:06:43]OFD Sender: No OFD packet to send [12:06:48]OFD Sender: No OFD packet to send [12:06:53]OFD Sender: No OFD packet to send [12:06:58]OFD Sender: No OFD packet to send [12:07:03]OFD Sender: No OFD packet to send [12:07:08]OFD Sender: No OFD packet to send [12:07:13]OFD Sender: No OFD packet to send [12:07:18]OFD Sender: No OFD packet to send [12:07:23]OFD Sender: No OFD packet to send [12:07:28]OFD Sender: No OFD packet to send [12:07:33]OFD Sender: No OFD packet to send [12:07:38]OFD Sender: No OFD packet to send [12:07:43]OFD Sender: No OFD packet to send [12:07:48]OFD Sender: No OFD packet to send [12:07:53]OFD Sender: No OFD packet to send [12:07:58]OFD Sender: No OFD packet to send [12:08:03]OFD Sender: No OFD packet to send [12:08:08]OFD Sender: No OFD packet to send [12:08:13]OFD Sender: No OFD packet to send [12:08:18]OFD Sender: No OFD packet to send [12:08:23]OFD Sender: No OFD packet to send [12:08:28]OFD Sender: No OFD packet to send [12:08:33]OFD Sender: No OFD packet to send [12:08:38]OFD Sender: No OFD packet to send [12:08:43]OFD Sender: No OFD packet to send [12:08:48]OFD Sender: No OFD packet to send [12:08:53]OFD Sender: No OFD packet to send [12:08:58]OFD Sender: No OFD packet to send [12:09:03]OFD Sender: No OFD packet to send [12:09:08]OFD Sender: No OFD packet to send [12:09:13]OFD Sender: No OFD packet to send [12:09:18]OFD Sender: No OFD packet to send [12:09:23]OFD Sender: No OFD packet to send [12:09:28]OFD Sender: No OFD packet to send [12:09:33]OFD Sender: No OFD packet to send [12:09:38]OFD Sender: No OFD packet to send [12:09:43]OFD Sender: No OFD packet to send [12:09:48]OFD Sender: No OFD packet to send [12:09:53]OFD Sender: No OFD packet to send [12:09:58]OFD Sender: No OFD packet to send [12:10:03]OFD Sender: No OFD packet to send [12:10:08]OFD Sender: No OFD packet to send [12:10:13]OFD Sender: No OFD packet to send [12:10:18]OFD Sender: No OFD packet to send [12:10:23]OFD Sender: No OFD packet to send [12:10:28]OFD Sender: No OFD packet to send [12:10:33]OFD Sender: No OFD packet to send [12:10:38]OFD Sender: No OFD packet to send [12:10:43]OFD Sender: No OFD packet to send [12:10:48]OFD Sender: No OFD packet to send [12:10:53]OFD Sender: No OFD packet to send [12:10:58]OFD Sender: No OFD packet to send [12:11:03]OFD Sender: No OFD packet to send [12:11:08]OFD Sender: No OFD packet to send [12:11:13]OFD Sender: No OFD packet to send [12:11:18]OFD Sender: No OFD packet to send [12:11:23]OFD Sender: No OFD packet to send [12:11:28]OFD Sender: No OFD packet to send [12:11:33]OFD Sender: No OFD packet to send [12:11:38]OFD Sender: No OFD packet to send [12:11:43]OFD Sender: No OFD packet to send [12:11:48]OFD Sender: No OFD packet to send [12:11:53]OFD Sender: No OFD packet to send [12:11:58]OFD Sender: No OFD packet to send [12:12:03]OFD Sender: No OFD packet to send [12:12:08]OFD Sender: No OFD packet to send [12:12:13]OFD Sender: No OFD packet to send [12:12:18]OFD Sender: No OFD packet to send [12:12:24]OFD Sender: No OFD packet to send [12:12:29]OFD Sender: No OFD packet to send [12:12:34]OFD Sender: No OFD packet to send [12:12:39]OFD Sender: No OFD packet to send [12:12:44]OFD Sender: No OFD packet to send [12:12:49]OFD Sender: No OFD packet to send [12:12:54]OFD Sender: No OFD packet to send [12:12:59]OFD Sender: No OFD packet to send [12:13:04]OFD Sender: No OFD packet to send [12:13:09]OFD Sender: No OFD packet to send [12:13:14]OFD Sender: No OFD packet to send [12:13:19]OFD Sender: No OFD packet to send [12:13:24]OFD Sender: No OFD packet to send [12:13:29]OFD Sender: No OFD packet to send [12:13:34]OFD Sender: No OFD packet to send [12:13:39]OFD Sender: No OFD packet to send [12:13:44]OFD Sender: No OFD packet to send [12:13:49]OFD Sender: No OFD packet to send [12:13:54]OFD Sender: No OFD packet to send [12:13:59]OFD Sender: No OFD packet to send [12:14:04]OFD Sender: No OFD packet to send [12:14:09]OFD Sender: No OFD packet to send [12:14:14]OFD Sender: No OFD packet to send [12:14:19]OFD Sender: No OFD packet to send [12:14:24]OFD Sender: No OFD packet to send [12:14:29]OFD Sender: No OFD packet to send [12:14:34]OFD Sender: No OFD packet to send [12:14:39]OFD Sender: No OFD packet to send [12:14:44]OFD Sender: No OFD packet to send [12:14:49]OFD Sender: No OFD packet to send [12:14:54]OFD Sender: No OFD packet to send [12:14:59]OFD Sender: No OFD packet to send [12:15:04]OFD Sender: No OFD packet to send [12:15:09]OFD Sender: No OFD packet to send [12:15:14]OFD Sender: No OFD packet to send [12:15:19]OFD Sender: No OFD packet to send [12:15:24]OFD Sender: No OFD packet to send [12:15:29]OFD Sender: No OFD packet to send [12:15:34]OFD Sender: No OFD packet to send [12:15:39]OFD Sender: No OFD packet to send [12:15:44]OFD Sender: No OFD packet to send [12:15:48]accept exits with 7 [12:15:48]New connection [12:15:48]New thread 3067157860 created [12:15:48]Thread 3067014500 joined [12:15:48]Waiting for new connection... [12:15:48] Sock 7.Parse request [12:15:48]Sock 7.Check first char [12:15:48]Sock 7.First char is OK [12:15:48]request: POST /json_proto HTTP/1.0 [12:15:48]Method: POST [12:15:48]URL: /json_proto [12:15:48]Method is POST - this is cgi request [12:15:48]url: /json_proto [12:15:48]query_string will be loaded in cgi processing [12:15:48]execute_cgi json_proto POST (null) [12:15:48]execute_cgi path=json_proto method=POST [12:15:48]POST find Content-Length [12:15:48]Host: 172.17.48.198:8080 [12:15:48]Content-Length: 779 [12:15:48]Content-Type: application/json [12:15:48] [12:15:48]POST finish read [12:15:48]Found Content-Length = 779 [12:15:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184164", "tax_sys" : 0, "items" : [ { "code": "47803152", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Mevius Revo", "price" : 150.00, "quantity" : 2.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:15:48]execute_script... [12:15:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184164", "tax_sys" : 0, "items" : [ { "code": "47803152", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Mevius Revo", "price" : 150.00, "quantity" : 2.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:15:48]POST & json_proto [12:15:48]process_json_proto [12:15:48]json parsed OK: [12:15:48]protocol is kg_v1.0 [12:15:48]action value=close_receipt [12:15:48]process_action close_receipt [12:15:48]cmd_close_receipt [12:15:48]MH_GetDate [12:15:48]Write to MH i2c: F0 00 00 F4 48 2B [12:15:48]Write i2c OK [12:15:48]MH_I2C_Read... [12:15:48]Read from MH i2c: F0 [12:15:48]MH_I2C_Read... [12:15:48]Read from MH i2c: F0 09 00 [12:15:48]MH_I2C_Read... [12:15:48]Read from MH i2c: F0 09 00 F4 48 00 FF 69 E4 65 CE C4 D4 65 B0 [12:15:48]GetLastDocTimeStamp 1709466601 [12:15:48]current date 1709468159 [12:15:48]FM_GetShiftState [12:15:48]SAM_PROTO_GetShiftState [12:15:48]wFMCommunicate request_size=4 [12:15:48]MH_SAM_APDU [12:15:48]CAPDU: 80 13 01 00 [12:15:48]Write to MH i2c: E2 08 00 F5 48 80 13 01 00 00 00 00 00 BA [12:15:48]Write i2c OK [12:15:48]MH_I2C_Read... [12:15:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:15:48]Read from MH i2c: E2 [12:15:48]MH_I2C_Read... [12:15:48]Read from MH i2c: E2 0E 00 [12:15:48]MH_I2C_Read... [12:15:48]Read from MH i2c: E2 0E 00 F5 48 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 F0 [12:15:48]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [12:15:48]wFMCommunicate OK [12:15:48]SAM_PROTO_GetShiftState done [12:15:48]FM_GetShiftState done [12:15:48]opened in 1709425694 [12:15:48]opened+sec_in_day 1709512094 [12:15:48]quantity*price = 30000 [12:15:48]sum+1 = 30001 [12:15:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 0.00 Безнал.: 300.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 36 03.03.2024 12:15 Смена: 331 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874796 ФД: 45199 ФПД: 259406046410070 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T121559&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45199&fm=259406046410070&tin=02508201610067®Number=0000000000090572&sum=30000 0 [12:15:49]StoreToDocumentArchive [12:15:49]shift 331 fd 45199 [12:15:49]save to /storage/0331/doc_00045199 [12:15:49]save last doc name /storage/0331/doc_00045199 to /storage/kkm_last_doc_name [12:15:49]save OK [12:15:49]Clear old archive folders... [12:15:49]ProcessDocumentItem done err = 0, tmpTLVsize=265 [12:15:49]tlvbuf is 01B242C0 [12:15:49]SAM_PROTO_ClearQueue [12:15:49]wFMCommunicate request_size=4 [12:15:49]MH_SAM_APDU [12:15:49]CAPDU: 80 09 00 00 [12:15:49]Write to MH i2c: E2 08 00 02 49 80 09 00 00 00 00 00 00 BD [12:15:49]Write i2c OK [12:15:49]MH_I2C_Read... [12:15:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:15:49]Read from MH i2c: E2 [12:15:49]MH_I2C_Read... [12:15:49]Read from MH i2c: E2 03 00 [12:15:49]MH_I2C_Read... [12:15:49]Read from MH i2c: E2 03 00 02 49 00 90 00 BF [12:15:49]RAPDU: 90 00 [12:15:49]wFMCommunicate OK [12:15:49]SAM_PROTO_ClearQueue done [12:15:49]KKMCreateOFDPacket [12:15:49]OFDProtocolAddRootSTLVToBuf [12:15:49]FM_MakeSignedData [12:15:49]FM_MakeSignedData [12:15:49]SAM_PROTO_SignData [12:15:49]wFMCommunicate request_size=4 [12:15:49]MH_SAM_APDU [12:15:49]CAPDU: 80 0D 01 02 [12:15:49]Write to MH i2c: E2 08 00 03 49 80 0D 01 02 00 00 00 00 C5 [12:15:49]Write i2c OK [12:15:49]MH_I2C_Read... [12:15:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:15:49]Read from MH i2c: E2 [12:15:49]MH_I2C_Read... [12:15:49]Read from MH i2c: E2 03 00 [12:15:49]MH_I2C_Read... [12:15:49]Read from MH i2c: E2 03 00 03 49 00 90 00 C0 [12:15:49]RAPDU: 90 00 [12:15:49]wFMCommunicate OK [12:15:49]wFMCommunicate request_size=255 [12:15:49]MH_SAM_APDU [12:15:49]CAPDU: 80 0D 02 02 FA 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 FF 69 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 [12:15:49]Write to MH i2c: E2 02 01 04 49 80 0D 02 02 FA 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 FF 69 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 00 00 BB [12:15:49]Write i2c OK [12:15:49]MH_I2C_Read... [12:15:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:15:49]Read from MH i2c: E2 [12:15:49]MH_I2C_Read... [12:15:49]Read from MH i2c: E2 03 00 [12:15:49]MH_I2C_Read... [12:15:49]Read from MH i2c: E2 03 00 04 49 00 90 00 C1 [12:15:49]RAPDU: 90 00 [12:15:49]wFMCommunicate OK [12:15:49]wFMCommunicate request_size=24 [12:15:49]MH_SAM_APDU [12:15:49]CAPDU: 80 0D 02 02 13 36 10 04 04 00 8F B0 00 00 35 04 06 00 EB ED AD 3F B5 56 [12:15:49]Write to MH i2c: E2 1B 00 05 49 80 0D 02 02 13 00 36 10 04 04 00 8F B0 00 00 35 04 06 00 EB ED AD 3F B5 56 00 00 89 [12:15:49]Write i2c OK [12:15:49]MH_I2C_Read... [12:15:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:15:49]Read from MH i2c: E2 [12:15:49]MH_I2C_Read... [12:15:49]Read from MH i2c: E2 03 00 [12:15:49]MH_I2C_Read... [12:15:49]Read from MH i2c: E2 03 00 05 49 00 90 00 C2 [12:15:49]RAPDU: 90 00 [12:15:49]wFMCommunicate OK [12:15:49]wFMCommunicate request_size=4 [12:15:49]MH_SAM_APDU [12:15:49]CAPDU: 80 0D 03 02 [12:15:49]Write to MH i2c: E2 08 00 06 49 80 0D 03 02 00 00 00 00 CA [12:15:49]Write i2c OK [12:15:49]MH_I2C_Read... [12:15:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:15:49]Read from MH i2c: E2 [12:15:49]MH_I2C_Read... [12:15:49]Read from MH i2c: E2 0B 00 [12:15:49]MH_I2C_Read... [12:15:49]Read from MH i2c: E2 0B 00 06 49 00 02 67 FE DC C6 42 73 42 90 00 CB [12:15:49]RAPDU: 02 67 FE DC C6 42 73 42 90 00 [12:15:49]wFMCommunicate OK [12:15:49]SAM_PROTO_SignData done [12:15:49]FM_MakeSignedData done [12:15:49]CreateOFDProtocolMessage [12:15:49]wFMCommunicate request_size=4 [12:15:49]MH_SAM_APDU [12:15:49]CAPDU: 80 11 00 00 [12:15:49]Write to MH i2c: E2 08 00 07 49 80 11 00 00 00 00 00 00 CA [12:15:49]Write i2c OK [12:15:49]MH_I2C_Read... [12:15:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:15:49]Read from MH i2c: E2 [12:15:49]MH_I2C_Read... [12:15:49]Read from MH i2c: E2 17 00 [12:15:49]MH_I2C_Read... [12:15:49]Read from MH i2c: E2 17 00 07 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 26 [12:15:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [12:15:49]wFMCommunicate OK [12:15:49]CreateOFDProtocolMessage done [12:15:49]OFDSenderStorePacket 45199 [12:15:49]StoreOFDPacket docnum=45199 [12:15:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 1D 01 00 00 AE 13 15 01 0C D9 5A 03 01 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 FF 69 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 8F B0 00 00 35 04 06 00 EB ED AD 3F B5 56 02 67 FE DC C6 42 73 42 [12:15:49]CheckFolder [12:15:49]dirname=/storage/ofd_packets [12:15:49]CheckFolder done [12:15:49]ProducePacketName [12:15:49]name=ofd_packets/00045199 [12:15:49]NVStorageSaveData ofd_packets/00045199 [12:15:49]File name is /storage/ofd_packets/00045199 [12:15:49]Write 315 bytes [12:15:49]NVStorageSaveData done [12:15:49]OFDSenderStorePacket done [12:15:49]KKMCreateOFDPacket done [12:15:49]NVStorageSaveData kkm_last_timestamp [12:15:49]File name is /storage/kkm_last_timestamp [12:15:49]Write 4 bytes [12:15:49]NVStorageSaveData done [12:15:49]ExternCall_PrintAddStr [12:15:49]wPrintStart [12:15:49]Write to MH i2c: 01 00 00 08 49 51 [12:15:49]Write i2c OK [12:15:49]MH_I2C_Read... [12:15:49]Read from MH i2c: 01 [12:15:49]MH_I2C_Read... [12:15:49]Read from MH i2c: 01 07 00 [12:15:49]MH_I2C_Read... [12:15:49]Read from MH i2c: 01 07 00 08 49 00 00 00 00 00 FF 0F 66 [12:15:49]RasterBufferAndPrint [12:15:49]line Счет N : (3)184164 [12:15:49]line ИНН: 02508201610067 [12:15:49]line Контрольно-Кассовый Чек [12:15:49]line ПРОДАЖА [12:15:49]line Товар: 47803152 [12:15:49]line Сигареты Mevius Revo [12:15:49]line 2.000 * 150.00 [12:15:49]line = 300.00 [12:15:49]line НДС 12% НСП 1% [12:15:49]line > о реализуемом товаре [12:15:49]line ИТОГО: 300.00 [12:15:49]line НСП 1% : 2.65 [12:15:49]line НДС 12% : 31.86 [12:15:49]line Наличными: 0.00 [12:15:49]line Безнал.: 300.00 [12:15:49]line Место: АЗС № 25 "Партнер Нефть" [12:15:49]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [12:15:49]line СНО: Общий режим [12:15:49]line Чек 36 03.03.2024 12:15 [12:15:49]line Смена: 331 ФФД: 1.0 [12:15:49]line ЗНМ: 0300000013 [12:15:49]line РНМ: 0000000000090572 [12:15:49]line Версия ККМ: 001 [12:15:49]line Платежная система: О! деньги [12:15:49]line ФМ: 0000000000874796 [12:15:49]line ФД: 45199 [12:15:49]line ФПД: 259406046410070 [12:15:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T121559&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45199&fm=259406046410070&tin=02508201610067®Number=0000000000090572&sum=30000 [12:15:50]line 0 [12:15:50]OFD Sender: Processing packet 45199 [packets to send 17, broken 16] [12:15:50]ProducePacketName [12:15:50]name=ofd_packets/00045199 [12:15:50]OFD Sender: To server: pG, [12:15:50]CommunicateWithHost lk.salyk.kg:30040 [12:15:50]ConnectInit lk.salyk.kg [12:15:50]written 0, free lines is 4095 [12:15:50]Connected sock=10 [12:15:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 1D 01 00 00 AE 13 15 01 0C D9 5A 03 01 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 FF 69 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 8F B0 00 00 35 04 06 00 EB ED AD 3F B5 56 02 67 FE DC C6 42 73 42 [12:15:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 0F C3 47 00 36 F2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 8F B0 00 00 F4 03 04 00 C4 15 E4 65 B6 04 01 00 00 C5 FA F0 85 C7 42 92 87 [12:15:50]CommunicateWithHost err = 0 [12:15:50]CheckOFDResponse [12:15:50]1017 (14) - 77093643461234 [12:15:50]1041 (16) - 0000000000874796 [12:15:50]1040 (4) - 45199 [12:15:50]1012 (4) - 03.03.2024 06:16 [12:15:50]1206 (1) - 0 [12:15:50]OFD Sender: Remove packet 45199 [12:15:50]ProducePacketName [12:15:50]name=ofd_packets/00045199 [12:15:50]NVStorageDeleteData [12:15:50]Write to MH i2c: 01 00 00 32 49 7B [12:15:50]Write i2c OK [12:15:50]MH_I2C_Read... [12:15:50]Read from MH i2c: 01 [12:15:50]MH_I2C_Read... [12:15:50]Read from MH i2c: 01 07 00 [12:15:50]MH_I2C_Read... [12:15:50]Read from MH i2c: 01 07 00 32 49 00 00 00 00 00 E9 0C 77 [12:15:50]RasterBufferAndPrint [12:15:50]line [12:15:50]line [12:15:50]line [12:15:50]line [12:15:50]line [12:15:50]written 0, free lines is 3311 [12:15:50]MH_Cut [12:15:50]Write to MH i2c: D1 01 00 39 49 01 54 [12:15:50]Write i2c OK [12:15:50]MH_I2C_Read... [12:15:50]Read from MH i2c: D1 [12:15:50]MH_I2C_Read... [12:15:50]Read from MH i2c: D1 01 00 [12:15:50]MH_I2C_Read... [12:15:50]Read from MH i2c: D1 01 00 39 49 00 53 [12:15:50]Write to MH i2c: 01 00 00 3A 49 83 [12:15:50]Write i2c OK [12:15:50]MH_I2C_Read... [12:15:50]OFD Sender: No OFD packet to send [12:15:51]*** Cut start [12:15:51]*** Purtial cut [12:15:51]*** Stage 1: CUTSNS_PIN = 1 [12:15:53]Read from MH i2c: 01 [12:15:53]MH_I2C_Read... [12:15:53]*** Stop cut motor [12:15:53]*** Cut end [12:15:53]Read from MH i2c: 01 07 00 [12:15:53]MH_I2C_Read... [12:15:53]Read from MH i2c: 01 07 00 3A 49 00 00 00 00 00 FF 0F 98 [12:15:53]process_action close_receipt done [12:15:53]requested_data is exist [12:15:53]produce_requested_data [12:15:53]requested_item fm.sn is exist - process it [12:15:53]wFMCommunicate request_size=4 [12:15:53]MH_SAM_APDU [12:15:53]CAPDU: 80 11 00 00 [12:15:53]Write to MH i2c: E2 08 00 3B 49 80 11 00 00 00 00 00 00 FE [12:15:53]Write i2c OK [12:15:53]MH_I2C_Read... [12:15:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:15:53]Read from MH i2c: E2 [12:15:53]MH_I2C_Read... [12:15:53]Read from MH i2c: E2 17 00 [12:15:53]MH_I2C_Read... [12:15:53]Read from MH i2c: E2 17 00 3B 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 5A [12:15:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [12:15:53]wFMCommunicate OK [12:15:53]requested_item fd.num is exist - process it [12:15:53]SAM_PROTO_GetFieldsCounters [12:15:53]wFMCommunicate request_size=4 [12:15:53]MH_SAM_APDU [12:15:53]CAPDU: 80 13 00 00 [12:15:53]Write to MH i2c: E2 08 00 3C 49 80 13 00 00 00 00 00 00 01 [12:15:53]Write i2c OK [12:15:53]MH_I2C_Read... [12:15:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:15:53]Read from MH i2c: E2 [12:15:53]MH_I2C_Read... [12:15:53]Read from MH i2c: E2 62 00 [12:15:53]MH_I2C_Read... [12:15:53]Read from MH i2c: E2 62 00 3C 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 8F B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 20 [12:15:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 8F B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:15:53]wFMCommunicate OK [12:15:53]SAM_PROTO_GetFieldsCounters done [12:15:53]requested_item shift.num is exist - process it [12:15:53]requested_item shift.opened is exist - process it [12:15:53]req_shift_opened [12:15:53]FM_GetShiftState [12:15:53]SAM_PROTO_GetShiftState [12:15:53]wFMCommunicate request_size=4 [12:15:53]MH_SAM_APDU [12:15:53]CAPDU: 80 13 01 00 [12:15:53]Write to MH i2c: E2 08 00 3D 49 80 13 01 00 00 00 00 00 03 [12:15:53]Write i2c OK [12:15:53]MH_I2C_Read... [12:15:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:15:53]Read from MH i2c: E2 [12:15:53]MH_I2C_Read... [12:15:53]Read from MH i2c: E2 0E 00 [12:15:53]MH_I2C_Read... [12:15:53]Read from MH i2c: E2 0E 00 3D 49 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 39 [12:15:53]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [12:15:53]wFMCommunicate OK [12:15:53]SAM_PROTO_GetShiftState done [12:15:53]FM_GetShiftState done [12:15:53]req_shift_opened done [12:15:53]requested_item shift.open_date is exist - process it [12:15:53]req_shift_open_date [12:15:53]req_shift_open_date done [12:15:53]produce_requested_data done [12:15:53]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45199,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [12:15:53]process_action_free close_receipt [12:15:53]json_value_free [12:15:53]json_value_free done [12:15:53]process_json_proto returns [12:15:53]Send response to host [12:15:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45199,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [12:15:53]free response buf [12:15:53]execute_script done [12:15:53]execute_script returns [12:15:53]free content buf [12:15:53]Sock 7.Close socket [12:15:53]Sock 7.Thread stoped [12:15:55]OFD Sender: No OFD packet to send [12:16:00]OFD Sender: No OFD packet to send [12:16:05]OFD Sender: No OFD packet to send [12:16:10]OFD Sender: No OFD packet to send [12:16:15]OFD Sender: No OFD packet to send [12:16:20]OFD Sender: No OFD packet to send [12:16:25]OFD Sender: No OFD packet to send [12:16:30]OFD Sender: No OFD packet to send [12:16:35]OFD Sender: No OFD packet to send [12:16:40]OFD Sender: No OFD packet to send [12:16:45]OFD Sender: No OFD packet to send [12:16:50]OFD Sender: No OFD packet to send [12:16:55]OFD Sender: No OFD packet to send [12:17:00]OFD Sender: No OFD packet to send [12:17:05]OFD Sender: No OFD packet to send [12:17:10]OFD Sender: No OFD packet to send [12:17:15]OFD Sender: No OFD packet to send [12:17:20]OFD Sender: No OFD packet to send [12:17:25]OFD Sender: No OFD packet to send [12:17:30]OFD Sender: No OFD packet to send [12:17:35]OFD Sender: No OFD packet to send [12:17:40]OFD Sender: No OFD packet to send [12:17:45]OFD Sender: No OFD packet to send [12:17:50]OFD Sender: No OFD packet to send [12:17:55]OFD Sender: No OFD packet to send [12:18:00]OFD Sender: No OFD packet to send [12:18:05]OFD Sender: No OFD packet to send [12:18:10]OFD Sender: No OFD packet to send [12:18:15]OFD Sender: No OFD packet to send [12:18:20]OFD Sender: No OFD packet to send [12:18:25]OFD Sender: No OFD packet to send [12:18:30]OFD Sender: No OFD packet to send [12:18:35]OFD Sender: No OFD packet to send [12:18:40]OFD Sender: No OFD packet to send [12:18:45]OFD Sender: No OFD packet to send [12:18:50]OFD Sender: No OFD packet to send [12:18:55]OFD Sender: No OFD packet to send [12:19:00]OFD Sender: No OFD packet to send [12:19:05]OFD Sender: No OFD packet to send [12:19:10]OFD Sender: No OFD packet to send [12:19:15]OFD Sender: No OFD packet to send [12:19:20]OFD Sender: No OFD packet to send [12:19:26]OFD Sender: No OFD packet to send [12:19:31]OFD Sender: No OFD packet to send [12:19:36]OFD Sender: No OFD packet to send [12:19:41]OFD Sender: No OFD packet to send [12:19:46]OFD Sender: No OFD packet to send [12:19:51]OFD Sender: No OFD packet to send [12:19:56]OFD Sender: No OFD packet to send [12:20:01]OFD Sender: No OFD packet to send [12:20:06]OFD Sender: No OFD packet to send [12:20:11]OFD Sender: No OFD packet to send [12:20:16]OFD Sender: No OFD packet to send [12:20:21]OFD Sender: No OFD packet to send [12:20:26]OFD Sender: No OFD packet to send [12:20:31]OFD Sender: No OFD packet to send [12:20:36]OFD Sender: No OFD packet to send [12:20:41]OFD Sender: No OFD packet to send [12:20:46]OFD Sender: No OFD packet to send [12:20:51]OFD Sender: No OFD packet to send [12:20:56]OFD Sender: No OFD packet to send [12:21:01]OFD Sender: No OFD packet to send [12:21:06]OFD Sender: No OFD packet to send [12:21:11]OFD Sender: No OFD packet to send [12:21:16]OFD Sender: No OFD packet to send [12:21:21]OFD Sender: No OFD packet to send [12:21:26]OFD Sender: No OFD packet to send [12:21:31]OFD Sender: No OFD packet to send [12:21:36]OFD Sender: No OFD packet to send [12:21:41]OFD Sender: No OFD packet to send [12:21:46]OFD Sender: No OFD packet to send [12:21:51]OFD Sender: No OFD packet to send [12:21:56]OFD Sender: No OFD packet to send [12:22:01]OFD Sender: No OFD packet to send [12:22:06]OFD Sender: No OFD packet to send [12:22:11]OFD Sender: No OFD packet to send [12:22:16]OFD Sender: No OFD packet to send [12:22:21]OFD Sender: No OFD packet to send [12:22:26]OFD Sender: No OFD packet to send [12:22:31]OFD Sender: No OFD packet to send [12:22:36]OFD Sender: No OFD packet to send [12:22:41]OFD Sender: No OFD packet to send [12:22:46]OFD Sender: No OFD packet to send [12:22:51]OFD Sender: No OFD packet to send [12:22:56]OFD Sender: No OFD packet to send [12:23:01]OFD Sender: No OFD packet to send [12:23:06]OFD Sender: No OFD packet to send [12:23:11]OFD Sender: No OFD packet to send [12:23:16]OFD Sender: No OFD packet to send [12:23:21]OFD Sender: No OFD packet to send [12:23:26]OFD Sender: No OFD packet to send [12:23:31]OFD Sender: No OFD packet to send [12:23:36]OFD Sender: No OFD packet to send [12:23:41]OFD Sender: No OFD packet to send [12:23:46]OFD Sender: No OFD packet to send [12:23:51]OFD Sender: No OFD packet to send [12:23:56]OFD Sender: No OFD packet to send [12:24:01]OFD Sender: No OFD packet to send [12:24:06]OFD Sender: No OFD packet to send [12:24:11]OFD Sender: No OFD packet to send [12:24:16]OFD Sender: No OFD packet to send [12:24:21]OFD Sender: No OFD packet to send [12:24:26]OFD Sender: No OFD packet to send [12:24:31]OFD Sender: No OFD packet to send [12:24:36]OFD Sender: No OFD packet to send [12:24:41]OFD Sender: No OFD packet to send [12:24:46]OFD Sender: No OFD packet to send [12:24:51]OFD Sender: No OFD packet to send [12:24:56]OFD Sender: No OFD packet to send [12:25:01]OFD Sender: No OFD packet to send [12:25:06]OFD Sender: No OFD packet to send [12:25:11]OFD Sender: No OFD packet to send [12:25:16]OFD Sender: No OFD packet to send [12:25:21]OFD Sender: No OFD packet to send [12:25:26]OFD Sender: No OFD packet to send [12:25:31]OFD Sender: No OFD packet to send [12:25:36]OFD Sender: No OFD packet to send [12:25:41]OFD Sender: No OFD packet to send [12:25:46]OFD Sender: No OFD packet to send [12:25:51]OFD Sender: No OFD packet to send [12:25:56]OFD Sender: No OFD packet to send [12:26:01]OFD Sender: No OFD packet to send [12:26:06]OFD Sender: No OFD packet to send [12:26:11]OFD Sender: No OFD packet to send [12:26:16]OFD Sender: No OFD packet to send [12:26:21]OFD Sender: No OFD packet to send [12:26:26]OFD Sender: No OFD packet to send [12:26:31]OFD Sender: No OFD packet to send [12:26:36]OFD Sender: No OFD packet to send [12:26:41]OFD Sender: No OFD packet to send [12:26:46]OFD Sender: No OFD packet to send [12:26:51]OFD Sender: No OFD packet to send [12:26:56]OFD Sender: No OFD packet to send [12:27:01]OFD Sender: No OFD packet to send [12:27:06]OFD Sender: No OFD packet to send [12:27:11]OFD Sender: No OFD packet to send [12:27:16]OFD Sender: No OFD packet to send [12:27:21]OFD Sender: No OFD packet to send [12:27:26]OFD Sender: No OFD packet to send [12:27:31]OFD Sender: No OFD packet to send [12:27:36]OFD Sender: No OFD packet to send [12:27:41]OFD Sender: No OFD packet to send [12:27:46]OFD Sender: No OFD packet to send [12:27:51]OFD Sender: No OFD packet to send [12:27:56]OFD Sender: No OFD packet to send [12:28:01]OFD Sender: No OFD packet to send [12:28:06]OFD Sender: No OFD packet to send [12:28:11]OFD Sender: No OFD packet to send [12:28:16]OFD Sender: No OFD packet to send [12:28:21]OFD Sender: No OFD packet to send [12:28:26]OFD Sender: No OFD packet to send [12:28:31]OFD Sender: No OFD packet to send [12:28:36]OFD Sender: No OFD packet to send [12:28:41]OFD Sender: No OFD packet to send [12:28:46]OFD Sender: No OFD packet to send [12:28:51]OFD Sender: No OFD packet to send [12:28:56]OFD Sender: No OFD packet to send [12:29:01]OFD Sender: No OFD packet to send [12:29:06]OFD Sender: No OFD packet to send [12:29:11]OFD Sender: No OFD packet to send [12:29:16]OFD Sender: No OFD packet to send [12:29:21]OFD Sender: No OFD packet to send [12:29:26]OFD Sender: No OFD packet to send [12:29:31]OFD Sender: No OFD packet to send [12:29:36]OFD Sender: No OFD packet to send [12:29:41]OFD Sender: No OFD packet to send [12:29:46]OFD Sender: No OFD packet to send [12:29:51]OFD Sender: No OFD packet to send [12:29:56]OFD Sender: No OFD packet to send [12:30:01]OFD Sender: No OFD packet to send [12:30:06]OFD Sender: No OFD packet to send [12:30:11]OFD Sender: No OFD packet to send [12:30:16]OFD Sender: No OFD packet to send [12:30:21]OFD Sender: No OFD packet to send [12:30:25]accept exits with 9 [12:30:25]New connection [12:30:25]New thread 3067014500 created [12:30:25]Thread 3067157860 joined [12:30:25]Waiting for new connection... [12:30:25] Sock 9.Parse request [12:30:25]Sock 9.Check first char [12:30:25]Sock 9.First char is OK [12:30:25]request: POST /json_proto HTTP/1.0 [12:30:25]Method: POST [12:30:25]URL: /json_proto [12:30:25]Method is POST - this is cgi request [12:30:25]url: /json_proto [12:30:25]query_string will be loaded in cgi processing [12:30:25]execute_cgi json_proto POST (null) [12:30:25]execute_cgi path=json_proto method=POST [12:30:25]POST find Content-Length [12:30:25]Host: 172.17.48.198:8080 [12:30:25]Content-Length: 901 [12:30:25]Content-Type: application/json [12:30:25] [12:30:25]POST finish read [12:30:25]Found Content-Length = 901 [12:30:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184165", "tax_sys" : 0, "items" : [ { "code": "8901086040022", "name": "\u0416\u0438\u0434\u043A\u043E\u0441\u0442\u044C \u0441\u0442\u0435\u043A\u043B\u043E\u043E\u043C\u044B\u0432\u0430\u044E\u0449\u0430\u044F \u041F\u041D -20 4,5\u043B", "price" : 257.00, "quantity" : 1.000, "sum" : 257.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 257.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:30:25]execute_script... [12: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 : (3)184165", "tax_sys" : 0, "items" : [ { "code": "8901086040022", "name": "\u0416\u0438\u0434\u043A\u043E\u0441\u0442\u044C \u0441\u0442\u0435\u043A\u043B\u043E\u043E\u043C\u044B\u0432\u0430\u044E\u0449\u0430\u044F \u041F\u041D -20 4,5\u043B", "price" : 257.00, "quantity" : 1.000, "sum" : 257.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 257.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:30:25]POST & json_proto [12:30:25]process_json_proto [12:30:25]json parsed OK: [12:30:25]protocol is kg_v1.0 [12:30:25]action value=close_receipt [12:30:25]process_action close_receipt [12:30:25]cmd_close_receipt [12:30:25]MH_GetDate [12:30:25]Write to MH i2c: F0 00 00 3E 49 76 [12:30:25]Write i2c OK [12:30:25]MH_I2C_Read... [12:30:25]Read from MH i2c: F0 [12:30:25]MH_I2C_Read... [12:30:25]Read from MH i2c: F0 09 00 [12:30:25]MH_I2C_Read... [12:30:25]Read from MH i2c: F0 09 00 3E 49 00 6C 6D E4 65 CE C4 D4 65 6C [12:30:25]GetLastDocTimeStamp 1709468159 [12:30:25]current date 1709469036 [12:30:25]FM_GetShiftState [12:30:25]SAM_PROTO_GetShiftState [12:30:25]wFMCommunicate request_size=4 [12:30:25]MH_SAM_APDU [12:30:25]CAPDU: 80 13 01 00 [12:30:25]Write to MH i2c: E2 08 00 3F 49 80 13 01 00 00 00 00 00 05 [12:30:25]Write i2c OK [12:30:25]MH_I2C_Read... [12:30:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:30:25]Read from MH i2c: E2 [12:30:25]MH_I2C_Read... [12:30:25]Read from MH i2c: E2 0E 00 [12:30:25]MH_I2C_Read... [12:30:25]Read from MH i2c: E2 0E 00 3F 49 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 3B [12:30:25]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [12:30:25]wFMCommunicate OK [12:30:25]SAM_PROTO_GetShiftState done [12:30:25]FM_GetShiftState done [12:30:25]opened in 1709425694 [12:30:25]opened+sec_in_day 1709512094 [12:30:25]quantity*price = 25700 [12:30:25]sum+1 = 25701 [12:30:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 257.00 НСП 1% : 2.27 НДС 12% : 27.29 Наличными: 0.00 Безнал.: 257.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 37 03.03.2024 12:30 Смена: 331 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874796 ФД: 45200 ФПД: 186263558491265 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T123036&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45200&fm=186263558491265&tin=02508201610067®Number=0000000000090572&sum=25700 0 [12:30:26]StoreToDocumentArchive [12:30:26]shift 331 fd 45200 [12:30:26]save to /storage/0331/doc_00045200 [12:30:26]save last doc name /storage/0331/doc_00045200 to /storage/kkm_last_doc_name [12:30:26]save OK [12:30:26]Clear old archive folders... [12:30:26]ProcessDocumentItem done err = 0, tmpTLVsize=304 [12:30:26]tlvbuf is 01AFCDF0 [12:30:26]SAM_PROTO_ClearQueue [12:30:26]wFMCommunicate request_size=4 [12:30:26]MH_SAM_APDU [12:30:26]CAPDU: 80 09 00 00 [12:30:26]Write to MH i2c: E2 08 00 4C 49 80 09 00 00 00 00 00 00 07 [12:30:26]Write i2c OK [12:30:26]MH_I2C_Read... [12:30:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:30:26]Read from MH i2c: E2 [12:30:26]MH_I2C_Read... [12:30:26]Read from MH i2c: E2 03 00 [12:30:26]MH_I2C_Read... [12:30:26]Read from MH i2c: E2 03 00 4C 49 00 90 00 09 [12:30:26]RAPDU: 90 00 [12:30:26]wFMCommunicate OK [12:30:26]SAM_PROTO_ClearQueue done [12:30:26]KKMCreateOFDPacket [12:30:26]OFDProtocolAddRootSTLVToBuf [12:30:26]FM_MakeSignedData [12:30:26]FM_MakeSignedData [12:30:26]SAM_PROTO_SignData [12:30:26]wFMCommunicate request_size=4 [12:30:26]MH_SAM_APDU [12:30:26]CAPDU: 80 0D 01 02 [12:30:26]Write to MH i2c: E2 08 00 4D 49 80 0D 01 02 00 00 00 00 0F [12:30:26]Write i2c OK [12:30:26]MH_I2C_Read... [12:30:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:30:26]Read from MH i2c: E2 [12:30:26]MH_I2C_Read... [12:30:26]Read from MH i2c: E2 03 00 [12:30:26]MH_I2C_Read... [12:30:26]Read from MH i2c: E2 03 00 4D 49 00 90 00 0A [12:30:26]RAPDU: 90 00 [12:30:26]wFMCommunicate OK [12:30:26]wFMCommunicate request_size=255 [12:30:26]MH_SAM_APDU [12:30:26]CAPDU: 80 0D 02 02 FA 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 32 32 06 04 3E 00 D0 96 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE D0 BE D0 BC D1 8B D0 B2 D0 B0 D1 8E D1 89 D0 B0 D1 8F 20 D0 9F D0 9D 20 2D 32 30 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 64 00 00 00 00 13 04 06 00 64 64 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 64 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 64 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 6C 6D E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 [12:30:26]Write to MH i2c: E2 02 01 4E 49 80 0D 02 02 FA 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 32 32 06 04 3E 00 D0 96 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE D0 BE D0 BC D1 8B D0 B2 D0 B0 D1 8E D1 89 D0 B0 D1 8F 20 D0 9F D0 9D 20 2D 32 30 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 64 00 00 00 00 13 04 06 00 64 64 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 64 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 64 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 6C 6D E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 00 00 B6 [12:30:26]Write i2c OK [12:30:26]MH_I2C_Read... [12:30:26]OFD Sender: No OFD packet to send [12:30:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:30:26]Read from MH i2c: E2 [12:30:26]MH_I2C_Read... [12:30:26]Read from MH i2c: E2 03 00 [12:30:26]MH_I2C_Read... [12:30:26]Read from MH i2c: E2 03 00 4E 49 00 90 00 0B [12:30:26]RAPDU: 90 00 [12:30:26]wFMCommunicate OK [12:30:26]wFMCommunicate request_size=63 [12:30:26]MH_SAM_APDU [12:30:26]CAPDU: 80 0D 02 02 3A 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 90 B0 00 00 35 04 06 00 A9 67 DD 3D 0C 81 [12:30:26]Write to MH i2c: E2 42 00 4F 49 80 0D 02 02 3A 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 90 B0 00 00 35 04 06 00 A9 67 DD 3D 0C 81 00 00 5A [12:30:26]Write i2c OK [12:30:26]MH_I2C_Read... [12:30:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:30:26]Read from MH i2c: E2 [12:30:26]MH_I2C_Read... [12:30:26]Read from MH i2c: E2 03 00 [12:30:26]MH_I2C_Read... [12:30:26]Read from MH i2c: E2 03 00 4F 49 00 90 00 0C [12:30:26]RAPDU: 90 00 [12:30:26]wFMCommunicate OK [12:30:26]wFMCommunicate request_size=4 [12:30:26]MH_SAM_APDU [12:30:26]CAPDU: 80 0D 03 02 [12:30:26]Write to MH i2c: E2 08 00 50 49 80 0D 03 02 00 00 00 00 14 [12:30:26]Write i2c OK [12:30:26]MH_I2C_Read... [12:30:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:30:26]Read from MH i2c: E2 [12:30:26]MH_I2C_Read... [12:30:26]Read from MH i2c: E2 0B 00 [12:30:26]MH_I2C_Read... [12:30:26]Read from MH i2c: E2 0B 00 50 49 00 35 21 57 D2 4E 30 39 75 90 00 C0 [12:30:26]RAPDU: 35 21 57 D2 4E 30 39 75 90 00 [12:30:26]wFMCommunicate OK [12:30:26]SAM_PROTO_SignData done [12:30:26]FM_MakeSignedData done [12:30:26]CreateOFDProtocolMessage [12:30:26]wFMCommunicate request_size=4 [12:30:26]MH_SAM_APDU [12:30:26]CAPDU: 80 11 00 00 [12:30:26]Write to MH i2c: E2 08 00 51 49 80 11 00 00 00 00 00 00 14 [12:30:26]Write i2c OK [12:30:26]MH_I2C_Read... [12:30:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:30:26]Read from MH i2c: E2 [12:30:26]MH_I2C_Read... [12:30:26]Read from MH i2c: E2 17 00 [12:30:26]MH_I2C_Read... [12:30:26]Read from MH i2c: E2 17 00 51 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 70 [12:30:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [12:30:26]wFMCommunicate OK [12:30:26]CreateOFDProtocolMessage done [12:30:26]OFDSenderStorePacket 45200 [12:30:26]StoreOFDPacket docnum=45200 [12:30:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 44 01 00 00 B0 CE 3C 01 A2 B8 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 32 32 06 04 3E 00 D0 96 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE D0 BE D0 BC D1 8B D0 B2 D0 B0 D1 8E D1 89 D0 B0 D1 8F 20 D0 9F D0 9D 20 2D 32 30 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 64 00 00 00 00 13 04 06 00 64 64 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 64 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 64 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 6C 6D E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 90 B0 00 00 35 04 06 00 A9 67 DD 3D 0C 81 35 21 57 D2 4E 30 39 75 [12:30:26]CheckFolder [12:30:26]dirname=/storage/ofd_packets [12:30:26]CheckFolder done [12:30:26]ProducePacketName [12:30:26]name=ofd_packets/00045200 [12:30:26]NVStorageSaveData ofd_packets/00045200 [12:30:26]File name is /storage/ofd_packets/00045200 [12:30:26]Write 354 bytes [12:30:26]NVStorageSaveData done [12:30:26]OFDSenderStorePacket done [12:30:26]KKMCreateOFDPacket done [12:30:26]NVStorageSaveData kkm_last_timestamp [12:30:26]File name is /storage/kkm_last_timestamp [12:30:26]Write 4 bytes [12:30:26]NVStorageSaveData done [12:30:26]ExternCall_PrintAddStr [12:30:26]wPrintStart [12:30:26]Write to MH i2c: 01 00 00 52 49 9B [12:30:26]Write i2c OK [12:30:26]MH_I2C_Read... [12:30:26]Read from MH i2c: 01 [12:30:26]MH_I2C_Read... [12:30:26]Read from MH i2c: 01 07 00 [12:30:26]MH_I2C_Read... [12:30:26]Read from MH i2c: 01 07 00 52 49 00 00 00 00 00 FF 0F B0 [12:30:26]RasterBufferAndPrint [12:30:26]line Счет N : (3)184165 [12:30:26]line ИНН: 02508201610067 [12:30:26]line Контрольно-Кассовый Чек [12:30:26]line ПРОДАЖА [12:30:26]line Товар: 8901086040022 [12:30:26]line Жидкость стеклоомывающая ПН -20 4,5л [12:30:26]line 1.000 * 257.00 [12:30:26]line = 257.00 [12:30:26]line НДС 12% НСП 1% [12:30:26]line > о реализуемом товаре [12:30:26]line ИТОГО: 257.00 [12:30:26]line НСП 1% : 2.27 [12:30:26]line НДС 12% : 27.29 [12:30:26]line Наличными: 0.00 [12:30:26]line Безнал.: 257.00 [12:30:26]line Место: АЗС № 25 "Партнер Нефть" [12:30:26]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [12:30:26]line СНО: Общий режим [12:30:26]line Чек 37 03.03.2024 12:30 [12:30:26]line Смена: 331 ФФД: 1.0 [12:30:26]line ЗНМ: 0300000013 [12:30:26]line РНМ: 0000000000090572 [12:30:26]line Версия ККМ: 001 [12:30:26]line Платежная система: Бакай Банк [12:30:26]line ФМ: 0000000000874796 [12:30:26]line ФД: 45200 [12:30:27]line ФПД: 186263558491265 [12:30:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T123036&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45200&fm=186263558491265&tin=02508201610067®Number=0000000000090572&sum=25700 [12:30:27]line 0 [12:30:27]OFD Sender: Processing packet 45200 [packets to send 17, broken 16] [12:30:27]ProducePacketName [12:30:27]name=ofd_packets/00045200 [12:30:27]OFD Sender: To server: pG, [12:30:27]CommunicateWithHost lk.salyk.kg:30040 [12:30:27]ConnectInit lk.salyk.kg [12:30:27]written 0, free lines is 4095 [12:30:27]Connected sock=10 [12:30:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 44 01 00 00 B0 CE 3C 01 A2 B8 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 32 32 06 04 3E 00 D0 96 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE D0 BE D0 BC D1 8B D0 B2 D0 B0 D1 8E D1 89 D0 B0 D1 8F 20 D0 9F D0 9D 20 2D 32 30 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 64 00 00 00 00 13 04 06 00 64 64 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 64 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 64 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 6C 6D E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 90 B0 00 00 35 04 06 00 A9 67 DD 3D 0C 81 35 21 57 D2 4E 30 39 75 [12:30:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 16 8A 47 00 08 E8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 90 B0 00 00 F4 03 04 00 31 19 E4 65 B6 04 01 00 00 04 BD 90 BF 40 33 64 55 [12:30:27]CommunicateWithHost err = 0 [12:30:27]CheckOFDResponse [12:30:27]1017 (14) - 77093643461234 [12:30:27]1041 (16) - 0000000000874796 [12:30:27]1040 (4) - 45200 [12:30:27]1012 (4) - 03.03.2024 06:31 [12:30:27]1206 (1) - 0 [12:30:27]OFD Sender: Remove packet 45200 [12:30:27]ProducePacketName [12:30:27]name=ofd_packets/00045200 [12:30:27]NVStorageDeleteData [12:30:27]Write to MH i2c: 01 00 00 7D 49 C6 [12:30:27]Write i2c OK [12:30:27]MH_I2C_Read... [12:30:27]Read from MH i2c: 01 [12:30:27]MH_I2C_Read... [12:30:27]Read from MH i2c: 01 07 00 [12:30:27]MH_I2C_Read... [12:30:27]Read from MH i2c: 01 07 00 7D 49 00 00 00 00 00 DD 0C B6 [12:30:27]RasterBufferAndPrint [12:30:27]line [12:30:27]line [12:30:27]line [12:30:27]line [12:30:27]line [12:30:27]written 0, free lines is 3300 [12:30:27]MH_Cut [12:30:27]Write to MH i2c: D1 01 00 84 49 01 9F [12:30:27]Write i2c OK [12:30:27]MH_I2C_Read... [12:30:27]Read from MH i2c: D1 [12:30:27]MH_I2C_Read... [12:30:27]Read from MH i2c: D1 01 00 [12:30:27]MH_I2C_Read... [12:30:27]Read from MH i2c: D1 01 00 84 49 00 9E [12:30:27]Write to MH i2c: 01 00 00 85 49 CE [12:30:27]Write i2c OK [12:30:27]MH_I2C_Read... [12:30:27]OFD Sender: No OFD packet to send [12:30:28]*** Cut start [12:30:28]*** Purtial cut [12:30:28]*** Stage 1: CUTSNS_PIN = 1 [12:30:30]Read from MH i2c: 01 [12:30:30]MH_I2C_Read... [12:30:30]*** Stop cut motor [12:30:30]*** Cut end [12:30:30]Read from MH i2c: 01 07 00 [12:30:30]MH_I2C_Read... [12:30:30]Read from MH i2c: 01 07 00 85 49 00 00 00 00 00 FF 0F E3 [12:30:30]process_action close_receipt done [12:30:30]requested_data is exist [12:30:30]produce_requested_data [12:30:30]requested_item fm.sn is exist - process it [12:30:30]wFMCommunicate request_size=4 [12:30:30]MH_SAM_APDU [12:30:30]CAPDU: 80 11 00 00 [12:30:30]Write to MH i2c: E2 08 00 86 49 80 11 00 00 00 00 00 00 49 [12:30:30]Write i2c OK [12:30:30]MH_I2C_Read... [12:30:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:30:30]Read from MH i2c: E2 [12:30:30]MH_I2C_Read... [12:30:30]Read from MH i2c: E2 17 00 [12:30:30]MH_I2C_Read... [12:30:30]Read from MH i2c: E2 17 00 86 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 A5 [12:30:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [12:30:30]wFMCommunicate OK [12:30:30]requested_item fd.num is exist - process it [12:30:30]SAM_PROTO_GetFieldsCounters [12:30:30]wFMCommunicate request_size=4 [12:30:30]MH_SAM_APDU [12:30:30]CAPDU: 80 13 00 00 [12:30:30]Write to MH i2c: E2 08 00 87 49 80 13 00 00 00 00 00 00 4C [12:30:30]Write i2c OK [12:30:30]MH_I2C_Read... [12:30:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:30:30]Read from MH i2c: E2 [12:30:30]MH_I2C_Read... [12:30:30]Read from MH i2c: E2 62 00 [12:30:30]MH_I2C_Read... [12:30:30]Read from MH i2c: E2 62 00 87 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 90 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 6F [12:30:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 90 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:30:30]wFMCommunicate OK [12:30:30]SAM_PROTO_GetFieldsCounters done [12:30:30]requested_item shift.num is exist - process it [12:30:30]requested_item shift.opened is exist - process it [12:30:30]req_shift_opened [12:30:30]FM_GetShiftState [12:30:30]SAM_PROTO_GetShiftState [12:30:30]wFMCommunicate request_size=4 [12:30:30]MH_SAM_APDU [12:30:30]CAPDU: 80 13 01 00 [12:30:30]Write to MH i2c: E2 08 00 88 49 80 13 01 00 00 00 00 00 4E [12:30:30]Write i2c OK [12:30:30]MH_I2C_Read... [12:30:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:30:30]Read from MH i2c: E2 [12:30:30]MH_I2C_Read... [12:30:30]Read from MH i2c: E2 0E 00 [12:30:30]MH_I2C_Read... [12:30:30]Read from MH i2c: E2 0E 00 88 49 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 84 [12:30:30]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [12:30:30]wFMCommunicate OK [12:30:30]SAM_PROTO_GetShiftState done [12:30:30]FM_GetShiftState done [12:30:30]req_shift_opened done [12:30:30]requested_item shift.open_date is exist - process it [12:30:30]req_shift_open_date [12:30:30]req_shift_open_date done [12:30:30]produce_requested_data done [12:30:30]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45200,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [12:30:30]process_action_free close_receipt [12:30:30]json_value_free [12:30:30]json_value_free done [12:30:30]process_json_proto returns [12:30:30]Send response to host [12:30:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45200,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [12:30:30]free response buf [12:30:30]execute_script done [12:30:30]execute_script returns [12:30:30]free content buf [12:30:30]Sock 9.Close socket [12:30:30]Sock 9.Thread stoped [12:30:32]OFD Sender: No OFD packet to send [12:30:37]OFD Sender: No OFD packet to send [12:30:42]OFD Sender: No OFD packet to send [12:30:47]OFD Sender: No OFD packet to send [12:30:52]OFD Sender: No OFD packet to send [12:30:57]OFD Sender: No OFD packet to send [12:31:02]OFD Sender: No OFD packet to send [12:31:07]OFD Sender: No OFD packet to send [12:31:12]OFD Sender: No OFD packet to send [12:31:18]OFD Sender: No OFD packet to send [12:31:23]OFD Sender: No OFD packet to send [12:31:28]OFD Sender: No OFD packet to send [12:31:33]OFD Sender: No OFD packet to send [12:31:38]OFD Sender: No OFD packet to send [12:31:43]OFD Sender: No OFD packet to send [12:31:48]OFD Sender: No OFD packet to send [12:31:53]OFD Sender: No OFD packet to send [12:31:58]OFD Sender: No OFD packet to send [12:32:03]OFD Sender: No OFD packet to send [12:32:08]OFD Sender: No OFD packet to send [12:32:13]OFD Sender: No OFD packet to send [12:32:18]OFD Sender: No OFD packet to send [12:32:23]OFD Sender: No OFD packet to send [12:32:28]OFD Sender: No OFD packet to send [12:32:33]OFD Sender: No OFD packet to send [12:32:38]OFD Sender: No OFD packet to send [12:32:43]OFD Sender: No OFD packet to send [12:32:48]OFD Sender: No OFD packet to send [12:32:53]OFD Sender: No OFD packet to send [12:32:58]OFD Sender: No OFD packet to send [12:33:03]OFD Sender: No OFD packet to send [12:33: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: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:08]OFD Sender: No OFD packet to send [12:36:13]OFD Sender: No OFD packet to send [12:36:18]OFD Sender: No OFD packet to send [12:36:23]OFD Sender: No OFD packet to send [12:36:28]OFD Sender: No OFD packet to send [12:36:33]OFD Sender: No OFD packet to send [12:36:38]OFD Sender: No OFD packet to send [12:36:43]OFD Sender: No OFD packet to send [12:36:48]OFD Sender: No OFD packet to send [12:36:53]OFD Sender: No OFD packet to send [12:36:58]OFD Sender: No OFD packet to send [12:37:03]OFD Sender: No OFD packet to send [12:37:08]OFD Sender: No OFD packet to send [12:37:13]OFD Sender: No OFD packet to send [12:37:18]OFD Sender: No OFD packet to send [12:37:23]OFD Sender: No OFD packet to send [12:37:28]OFD Sender: No OFD packet to send [12:37:33]OFD Sender: No OFD packet to send [12:37:38]OFD Sender: No OFD packet to send [12:37:43]OFD Sender: No OFD packet to send [12:37:48]OFD Sender: No OFD packet to send [12:37:53]OFD Sender: No OFD packet to send [12:37:58]OFD Sender: No OFD packet to send [12:38:03]OFD Sender: No OFD packet to send [12:38:08]OFD Sender: No OFD packet to send [12:38:13]OFD Sender: No OFD packet to send [12:38:18]OFD Sender: No OFD packet to send [12:38:23]OFD Sender: No OFD packet to send [12:38:28]OFD Sender: No OFD packet to send [12:38:33]OFD Sender: No OFD packet to send [12:38:38]OFD Sender: No OFD packet to send [12:38:43]OFD Sender: No OFD packet to send [12:38:48]OFD Sender: No OFD packet to send [12:38:53]OFD Sender: No OFD packet to send [12:38:58]OFD Sender: No OFD packet to send [12:39:03]OFD Sender: No OFD packet to send [12:39:08]OFD Sender: No OFD packet to send [12:39:13]OFD Sender: No OFD packet to send [12:39:18]OFD Sender: No OFD packet to send [12:39:23]OFD Sender: No OFD packet to send [12:39:28]OFD Sender: No OFD packet to send [12:39:33]OFD Sender: No OFD packet to send [12:39:38]OFD Sender: No OFD packet to send [12:39:43]OFD Sender: No OFD packet to send [12:39:48]OFD Sender: No OFD packet to send [12:39:53]OFD Sender: No OFD packet to send [12:39:58]OFD Sender: No OFD packet to send [12:40:01]accept exits with 7 [12:40:01]New connection [12:40:01]New thread 3067157860 created [12:40:01]Thread 3067014500 joined [12:40:01]Waiting for new connection... [12:40:01] Sock 7.Parse request [12:40:01]Sock 7.Check first char [12:40:01]Sock 7.First char is OK [12:40:01]request: POST /json_proto HTTP/1.0 [12:40:01]Method: POST [12:40:01]URL: /json_proto [12:40:01]Method is POST - this is cgi request [12:40:01]url: /json_proto [12:40:01]query_string will be loaded in cgi processing [12:40:01]execute_cgi json_proto POST (null) [12:40:01]execute_cgi path=json_proto method=POST [12:40:01]POST find Content-Length [12:40:01]Host: 172.17.48.198:8080 [12:40:01]Content-Length: 796 [12:40:01]Content-Type: application/json [12:40:01] [12:40:01]POST finish read [12:40:01]Found Content-Length = 796 [12:40:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184166", "tax_sys" : 0, "items" : [ { "code": "4640030091546", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Esse Menthol", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 138.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:40:01]execute_script... [12:40:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184166", "tax_sys" : 0, "items" : [ { "code": "4640030091546", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Esse Menthol", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 138.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:40:01]POST & json_proto [12:40:01]process_json_proto [12:40:01]json parsed OK: [12:40:01]protocol is kg_v1.0 [12:40:01]action value=close_receipt [12:40:01]process_action close_receipt [12:40:01]cmd_close_receipt [12:40:01]MH_GetDate [12:40:01]Write to MH i2c: F0 00 00 89 49 C1 [12:40:01]Write i2c OK [12:40:01]MH_I2C_Read... [12:40:01]Read from MH i2c: F0 [12:40:01]MH_I2C_Read... [12:40:01]Read from MH i2c: F0 09 00 [12:40:01]MH_I2C_Read... [12:40:01]Read from MH i2c: F0 09 00 89 49 00 AC 6F E4 65 CE C4 D4 65 F9 [12:40:01]GetLastDocTimeStamp 1709469036 [12:40:01]current date 1709469612 [12:40:01]FM_GetShiftState [12:40:01]SAM_PROTO_GetShiftState [12:40:01]wFMCommunicate request_size=4 [12:40:01]MH_SAM_APDU [12:40:01]CAPDU: 80 13 01 00 [12:40:01]Write to MH i2c: E2 08 00 8A 49 80 13 01 00 00 00 00 00 50 [12:40:01]Write i2c OK [12:40:01]MH_I2C_Read... [12:40:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:40:01]Read from MH i2c: E2 [12:40:01]MH_I2C_Read... [12:40:01]Read from MH i2c: E2 0E 00 [12:40:01]MH_I2C_Read... [12:40:01]Read from MH i2c: E2 0E 00 8A 49 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 86 [12:40:01]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [12:40:01]wFMCommunicate OK [12:40:01]SAM_PROTO_GetShiftState done [12:40:01]FM_GetShiftState done [12:40:01]opened in 1709425694 [12:40:01]opened+sec_in_day 1709512094 [12:40:01]quantity*price = 13800 [12:40:01]sum+1 = 13801 [12:40:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 138.00 НСП 1% : 1.22 НДС 12% : 14.65 Наличными: 0.00 Безнал.: 138.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 38 03.03.2024 12:40 Смена: 331 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874796 ФД: 45201 ФПД: 76565695719700 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T124012&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45201&fm=76565695719700&tin=02508201610067®Number=0000000000090572&sum=13800 0 [12:40:02]StoreToDocumentArchive [12:40:02]shift 331 fd 45201 [12:40:02]save to /storage/0331/doc_00045201 [12:40:02]save last doc name /storage/0331/doc_00045201 to /storage/kkm_last_doc_name [12:40:02]save OK [12:40:02]Clear old archive folders... [12:40:02]ProcessDocumentItem done err = 0, tmpTLVsize=271 [12:40:02]tlvbuf is 01C32540 [12:40:02]SAM_PROTO_ClearQueue [12:40:02]wFMCommunicate request_size=4 [12:40:02]MH_SAM_APDU [12:40:02]CAPDU: 80 09 00 00 [12:40:02]Write to MH i2c: E2 08 00 97 49 80 09 00 00 00 00 00 00 52 [12:40:02]Write i2c OK [12:40:02]MH_I2C_Read... [12:40:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:40:02]Read from MH i2c: E2 [12:40:02]MH_I2C_Read... [12:40:02]Read from MH i2c: E2 03 00 [12:40:02]MH_I2C_Read... [12:40:02]Read from MH i2c: E2 03 00 97 49 00 90 00 54 [12:40:02]RAPDU: 90 00 [12:40:02]wFMCommunicate OK [12:40:02]SAM_PROTO_ClearQueue done [12:40:02]KKMCreateOFDPacket [12:40:02]OFDProtocolAddRootSTLVToBuf [12:40:02]FM_MakeSignedData [12:40:02]FM_MakeSignedData [12:40:02]SAM_PROTO_SignData [12:40:02]wFMCommunicate request_size=4 [12:40:02]MH_SAM_APDU [12:40:02]CAPDU: 80 0D 01 02 [12:40:02]Write to MH i2c: E2 08 00 98 49 80 0D 01 02 00 00 00 00 5A [12:40:02]Write i2c OK [12:40:02]MH_I2C_Read... [12:40:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:40:02]Read from MH i2c: E2 [12:40:02]MH_I2C_Read... [12:40:02]Read from MH i2c: E2 03 00 [12:40:02]MH_I2C_Read... [12:40:02]Read from MH i2c: E2 03 00 98 49 00 90 00 55 [12:40:02]RAPDU: 90 00 [12:40:02]wFMCommunicate OK [12:40:02]wFMCommunicate request_size=255 [12:40:02]MH_SAM_APDU [12:40:02]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 35 34 36 06 04 1D 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 4D 65 6E 74 68 6F 6C 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 00 00 00 00 00 00 39 04 06 00 E8 35 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 AC 6F E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 [12:40:02]Write to MH i2c: E2 02 01 99 49 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 35 34 36 06 04 1D 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 4D 65 6E 74 68 6F 6C 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 00 00 00 00 00 00 39 04 06 00 E8 35 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 AC 6F E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 99 [12:40:02]Write i2c OK [12:40:02]MH_I2C_Read... [12:40:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:40:02]Read from MH i2c: E2 [12:40:02]MH_I2C_Read... [12:40:02]Read from MH i2c: E2 03 00 [12:40:02]MH_I2C_Read... [12:40:02]Read from MH i2c: E2 03 00 99 49 00 90 00 56 [12:40:02]RAPDU: 90 00 [12:40:02]wFMCommunicate OK [12:40:02]wFMCommunicate request_size=30 [12:40:02]MH_SAM_APDU [12:40:02]CAPDU: 80 0D 02 02 19 30 38 37 34 37 39 36 10 04 04 00 91 B0 00 00 35 04 06 00 45 A2 D7 18 69 14 [12:40:02]Write to MH i2c: E2 21 00 9A 49 80 0D 02 02 19 00 30 38 37 34 37 39 36 10 04 04 00 91 B0 00 00 35 04 06 00 45 A2 D7 18 69 14 00 00 F3 [12:40:02]Write i2c OK [12:40:02]MH_I2C_Read... [12:40:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:40:02]Read from MH i2c: E2 [12:40:02]MH_I2C_Read... [12:40:02]Read from MH i2c: E2 03 00 [12:40:02]MH_I2C_Read... [12:40:02]Read from MH i2c: E2 03 00 9A 49 00 90 00 57 [12:40:02]RAPDU: 90 00 [12:40:02]wFMCommunicate OK [12:40:02]wFMCommunicate request_size=4 [12:40:02]MH_SAM_APDU [12:40:02]CAPDU: 80 0D 03 02 [12:40:02]Write to MH i2c: E2 08 00 9B 49 80 0D 03 02 00 00 00 00 5F [12:40:02]Write i2c OK [12:40:02]MH_I2C_Read... [12:40:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:40:02]Read from MH i2c: E2 [12:40:02]MH_I2C_Read... [12:40:02]Read from MH i2c: E2 0B 00 [12:40:02]MH_I2C_Read... [12:40:02]Read from MH i2c: E2 0B 00 9B 49 00 39 5D E7 C3 39 49 EF C4 90 00 D5 [12:40:02]RAPDU: 39 5D E7 C3 39 49 EF C4 90 00 [12:40:02]wFMCommunicate OK [12:40:02]SAM_PROTO_SignData done [12:40:02]FM_MakeSignedData done [12:40:02]CreateOFDProtocolMessage [12:40:02]wFMCommunicate request_size=4 [12:40:02]MH_SAM_APDU [12:40:02]CAPDU: 80 11 00 00 [12:40:02]Write to MH i2c: E2 08 00 9C 49 80 11 00 00 00 00 00 00 5F [12:40:02]Write i2c OK [12:40:02]MH_I2C_Read... [12:40:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:40:02]Read from MH i2c: E2 [12:40:02]MH_I2C_Read... [12:40:02]Read from MH i2c: E2 17 00 [12:40:02]MH_I2C_Read... [12:40:02]Read from MH i2c: E2 17 00 9C 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 BB [12:40:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [12:40:02]wFMCommunicate OK [12:40:02]CreateOFDProtocolMessage done [12:40:02]OFDSenderStorePacket 45201 [12:40:02]StoreOFDPacket docnum=45201 [12:40:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 23 01 00 00 7C 44 1B 01 CF E5 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 35 34 36 06 04 1D 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 4D 65 6E 74 68 6F 6C 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 00 00 00 00 00 00 39 04 06 00 E8 35 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 AC 6F E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 91 B0 00 00 35 04 06 00 45 A2 D7 18 69 14 39 5D E7 C3 39 49 EF C4 [12:40:02]CheckFolder [12:40:02]dirname=/storage/ofd_packets [12:40:02]CheckFolder done [12:40:02]ProducePacketName [12:40:02]name=ofd_packets/00045201 [12:40:02]NVStorageSaveData ofd_packets/00045201 [12:40:02]File name is /storage/ofd_packets/00045201 [12:40:02]Write 321 bytes [12:40:02]NVStorageSaveData done [12:40:02]OFDSenderStorePacket done [12:40:02]KKMCreateOFDPacket done [12:40:02]NVStorageSaveData kkm_last_timestamp [12:40:02]File name is /storage/kkm_last_timestamp [12:40:02]Write 4 bytes [12:40:02]NVStorageSaveData done [12:40:02]ExternCall_PrintAddStr [12:40:02]wPrintStart [12:40:02]Write to MH i2c: 01 00 00 9D 49 E6 [12:40:02]Write i2c OK [12:40:02]MH_I2C_Read... [12:40:02]Read from MH i2c: 01 [12:40:02]MH_I2C_Read... [12:40:02]Read from MH i2c: 01 07 00 [12:40:02]MH_I2C_Read... [12:40:02]Read from MH i2c: 01 07 00 9D 49 00 00 00 00 00 FF 0F FB [12:40:02]RasterBufferAndPrint [12:40:02]line Счет N : (3)184166 [12:40:02]line ИНН: 02508201610067 [12:40:02]line Контрольно-Кассовый Чек [12:40:02]line ПРОДАЖА [12:40:02]line Товар: 4640030091546 [12:40:02]line Сигареты Esse Menthol [12:40:02]line 1.000 * 138.00 [12:40:02]line = 138.00 [12:40:02]line НДС 12% НСП 1% [12:40:02]line > о реализуемом товаре [12:40:02]line ИТОГО: 138.00 [12:40:02]line НСП 1% : 1.22 [12:40:02]line НДС 12% : 14.65 [12:40:02]line Наличными: 0.00 [12:40:02]line Безнал.: 138.00 [12:40:02]line Место: АЗС № 25 "Партнер Нефть" [12:40:02]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [12:40:02]line СНО: Общий режим [12:40:02]line Чек 38 03.03.2024 12:40 [12:40:02]line Смена: 331 ФФД: 1.0 [12:40:02]line ЗНМ: 0300000013 [12:40:02]line РНМ: 0000000000090572 [12:40:02]line Версия ККМ: 001 [12:40:02]line Платежная система: Бакай Банк [12:40:02]line ФМ: 0000000000874796 [12:40:02]line ФД: 45201 [12:40:02]line ФПД: 76565695719700 [12:40:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T124012&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45201&fm=76565695719700&tin=02508201610067®Number=0000000000090572&sum=13800 [12:40:03]line 0 [12:40:03]OFD Sender: Processing packet 45201 [packets to send 17, broken 16] [12:40:03]ProducePacketName [12:40:03]name=ofd_packets/00045201 [12:40:03]OFD Sender: To server: pG, [12:40:03]CommunicateWithHost lk.salyk.kg:30040 [12:40:03]ConnectInit lk.salyk.kg [12:40:03]written 0, free lines is 4095 [12:40:03]Connected sock=10 [12:40:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 23 01 00 00 7C 44 1B 01 CF E5 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 35 34 36 06 04 1D 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 4D 65 6E 74 68 6F 6C 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 00 00 00 00 00 00 39 04 06 00 E8 35 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 AC 6F E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 91 B0 00 00 35 04 06 00 45 A2 D7 18 69 14 39 5D E7 C3 39 49 EF C4 [12:40:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 CE 40 47 00 D9 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 34 37 39 36 10 04 04 00 91 B0 00 00 F4 03 04 00 71 1B E4 65 B6 04 01 00 00 A4 6D EF D9 37 A3 51 19 [12:40:03]CommunicateWithHost err = 0 [12:40:03]CheckOFDResponse [12:40:03]1017 (14) - 77093643461234 [12:40:03]1041 (16) - 0000000000874796 [12:40:03]1040 (4) - 45201 [12:40:03]1012 (4) - 03.03.2024 06:40 [12:40:03]1206 (1) - 0 [12:40:03]OFD Sender: Remove packet 45201 [12:40:03]ProducePacketName [12:40:03]name=ofd_packets/00045201 [12:40:03]NVStorageDeleteData [12:40:03]Write to MH i2c: 01 00 00 C7 49 10 [12:40:03]Write i2c OK [12:40:03]MH_I2C_Read... [12:40:03]Read from MH i2c: 01 [12:40:03]MH_I2C_Read... [12:40:03]Read from MH i2c: 01 07 00 [12:40:03]MH_I2C_Read... [12:40:03]Read from MH i2c: 01 07 00 C7 49 00 00 00 00 00 F1 0C 14 [12:40:03]RasterBufferAndPrint [12:40:03]line [12:40:03]line [12:40:03]line [12:40:03]line [12:40:03]line [12:40:03]written 0, free lines is 3320 [12:40:03]MH_Cut [12:40:03]Write to MH i2c: D1 01 00 CE 49 01 E9 [12:40:03]Write i2c OK [12:40:03]MH_I2C_Read... [12:40:03]Read from MH i2c: D1 [12:40:03]MH_I2C_Read... [12:40:03]Read from MH i2c: D1 01 00 [12:40:03]MH_I2C_Read... [12:40:03]Read from MH i2c: D1 01 00 CE 49 00 E8 [12:40:03]Write to MH i2c: 01 00 00 CF 49 18 [12:40:03]Write i2c OK [12:40:03]MH_I2C_Read... [12:40:03]OFD Sender: No OFD packet to send [12:40:04]*** Cut start [12:40:04]*** Purtial cut [12:40:04]*** Stage 1: CUTSNS_PIN = 1 [12:40:06]Read from MH i2c: 01 [12:40:06]MH_I2C_Read... [12:40:06]*** Stop cut motor [12:40:06]*** Cut end [12:40:06]Read from MH i2c: 01 07 00 [12:40:06]MH_I2C_Read... [12:40:06]Read from MH i2c: 01 07 00 CF 49 00 00 00 00 00 FF 0F 2D [12:40:06]process_action close_receipt done [12:40:06]requested_data is exist [12:40:06]produce_requested_data [12:40:06]requested_item fm.sn is exist - process it [12:40:06]wFMCommunicate request_size=4 [12:40:06]MH_SAM_APDU [12:40:06]CAPDU: 80 11 00 00 [12:40:06]Write to MH i2c: E2 08 00 D0 49 80 11 00 00 00 00 00 00 93 [12:40:06]Write i2c OK [12:40:06]MH_I2C_Read... [12:40:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:40:06]Read from MH i2c: E2 [12:40:06]MH_I2C_Read... [12:40:06]Read from MH i2c: E2 17 00 [12:40:06]MH_I2C_Read... [12:40:06]Read from MH i2c: E2 17 00 D0 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 EF [12:40:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [12:40:06]wFMCommunicate OK [12:40:06]requested_item fd.num is exist - process it [12:40:06]SAM_PROTO_GetFieldsCounters [12:40:06]wFMCommunicate request_size=4 [12:40:06]MH_SAM_APDU [12:40:06]CAPDU: 80 13 00 00 [12:40:06]Write to MH i2c: E2 08 00 D1 49 80 13 00 00 00 00 00 00 96 [12:40:06]Write i2c OK [12:40:06]MH_I2C_Read... [12:40:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:40:06]Read from MH i2c: E2 [12:40:06]MH_I2C_Read... [12:40:06]Read from MH i2c: E2 62 00 [12:40:06]MH_I2C_Read... [12:40:06]Read from MH i2c: E2 62 00 D1 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 91 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 BD [12:40:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 91 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:40:06]wFMCommunicate OK [12:40:06]SAM_PROTO_GetFieldsCounters done [12:40:06]requested_item shift.num is exist - process it [12:40:06]requested_item shift.opened is exist - process it [12:40:06]req_shift_opened [12:40:06]FM_GetShiftState [12:40:06]SAM_PROTO_GetShiftState [12:40:06]wFMCommunicate request_size=4 [12:40:06]MH_SAM_APDU [12:40:06]CAPDU: 80 13 01 00 [12:40:06]Write to MH i2c: E2 08 00 D2 49 80 13 01 00 00 00 00 00 98 [12:40:06]Write i2c OK [12:40:06]MH_I2C_Read... [12:40:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:40:06]Read from MH i2c: E2 [12:40:06]MH_I2C_Read... [12:40:06]Read from MH i2c: E2 0E 00 [12:40:06]MH_I2C_Read... [12:40:06]Read from MH i2c: E2 0E 00 D2 49 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 CE [12:40:06]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [12:40:06]wFMCommunicate OK [12:40:06]SAM_PROTO_GetShiftState done [12:40:06]FM_GetShiftState done [12:40:06]req_shift_opened done [12:40:06]requested_item shift.open_date is exist - process it [12:40:06]req_shift_open_date [12:40:06]req_shift_open_date done [12:40:06]produce_requested_data done [12:40:06]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45201,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [12:40:06]process_action_free close_receipt [12:40:06]json_value_free [12:40:06]json_value_free done [12:40:06]process_json_proto returns [12:40:06]Send response to host [12:40:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45201,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [12:40:06]free response buf [12:40:06]execute_script done [12:40:06]execute_script returns [12:40:06]free content buf [12:40:06]Sock 7.Close socket [12:40:06]Sock 7.Thread stoped [12:40:08]OFD Sender: No OFD packet to send [12:40:13]OFD Sender: No OFD packet to send [12:40:18]OFD Sender: No OFD packet to send [12:40:23]OFD Sender: No OFD packet to send [12:40:28]OFD Sender: No OFD packet to send [12:40:33]OFD Sender: No OFD packet to send [12:40:38]OFD Sender: No OFD packet to send [12:40:43]OFD Sender: No OFD packet to send [12:40:48]OFD Sender: No OFD packet to send [12:40:53]OFD Sender: No OFD packet to send [12:40:58]OFD Sender: No OFD packet to send [12:41:03]OFD Sender: No OFD packet to send [12:41:08]OFD Sender: No OFD packet to send [12:41:13]OFD Sender: No OFD packet to send [12:41:18]OFD Sender: No OFD packet to send [12:41:23]OFD Sender: No OFD packet to send [12:41:28]OFD Sender: No OFD packet to send [12:41:33]OFD Sender: No OFD packet to send [12:41:38]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:54]OFD Sender: No OFD packet to send [12:41:59]OFD Sender: No OFD packet to send [12:42:04]OFD Sender: No OFD packet to send [12:42:09]OFD Sender: No OFD packet to send [12:42:14]OFD Sender: No OFD packet to send [12:42:19]OFD Sender: No OFD packet to send [12:42:24]OFD Sender: No OFD packet to send [12:42:29]OFD Sender: No OFD packet to send [12:42:34]OFD Sender: No OFD packet to send [12:42:39]OFD Sender: No OFD packet to send [12:42:44]OFD Sender: No OFD packet to send [12:42:49]OFD Sender: No OFD packet to send [12:42:54]OFD Sender: No OFD packet to send [12:42:59]OFD Sender: No OFD packet to send [12:43:04]OFD Sender: No OFD packet to send [12:43:09]OFD Sender: No OFD packet to send [12:43:14]OFD Sender: No OFD packet to send [12:43:18]accept exits with 9 [12:43:18]New connection [12:43:18]New thread 3067014500 created [12:43:18]Thread 3067157860 joined [12:43:18]Waiting for new connection... [12:43:18] Sock 9.Parse request [12:43:18]Sock 9.Check first char [12:43:18]Sock 9.First char is OK [12:43:18]request: POST /json_proto HTTP/1.0 [12:43:18]Method: POST [12:43:18]URL: /json_proto [12:43:18]Method is POST - this is cgi request [12:43:18]url: /json_proto [12:43:18]query_string will be loaded in cgi processing [12:43:18]execute_cgi json_proto POST (null) [12:43:18]execute_cgi path=json_proto method=POST [12:43:18]POST find Content-Length [12:43:18]Host: 172.17.48.198:8080 [12:43:18]Content-Length: 857 [12:43:18]Content-Type: application/json [12:43:18] [12:43:18]POST finish read [12:43:18]Found Content-Length = 857 [12:43:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184167", "tax_sys" : 0, "items" : [ { "code": "4700452010610", "name": "\u041A\u043E\u0444\u0435 \u043A\u0430\u043F\u0443\u0447\u0438\u043D\u043E 200\u043C\u043B (\u0410\u041A\u0426\u0418\u042F)", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:43:18]execute_script... [12:43:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184167", "tax_sys" : 0, "items" : [ { "code": "4700452010610", "name": "\u041A\u043E\u0444\u0435 \u043A\u0430\u043F\u0443\u0447\u0438\u043D\u043E 200\u043C\u043B (\u0410\u041A\u0426\u0418\u042F)", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:43:18]POST & json_proto [12:43:18]process_json_proto [12:43:18]json parsed OK: [12:43:18]protocol is kg_v1.0 [12:43:18]action value=close_receipt [12:43:18]process_action close_receipt [12:43:18]cmd_close_receipt [12:43:18]MH_GetDate [12:43:18]Write to MH i2c: F0 00 00 D3 49 0B [12:43:18]Write i2c OK [12:43:18]MH_I2C_Read... [12:43:18]Read from MH i2c: F0 [12:43:18]MH_I2C_Read... [12:43:18]Read from MH i2c: F0 09 00 [12:43:18]MH_I2C_Read... [12:43:18]Read from MH i2c: F0 09 00 D3 49 00 71 70 E4 65 CE C4 D4 65 09 [12:43:18]GetLastDocTimeStamp 1709469612 [12:43:18]current date 1709469809 [12:43:18]FM_GetShiftState [12:43:18]SAM_PROTO_GetShiftState [12:43:18]wFMCommunicate request_size=4 [12:43:18]MH_SAM_APDU [12:43:18]CAPDU: 80 13 01 00 [12:43:18]Write to MH i2c: E2 08 00 D4 49 80 13 01 00 00 00 00 00 9A [12:43:18]Write i2c OK [12:43:18]MH_I2C_Read... [12:43:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:43:18]Read from MH i2c: E2 [12:43:18]MH_I2C_Read... [12:43:18]Read from MH i2c: E2 0E 00 [12:43:18]MH_I2C_Read... [12:43:18]Read from MH i2c: E2 0E 00 D4 49 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 D0 [12:43:18]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [12:43:18]wFMCommunicate OK [12:43:18]SAM_PROTO_GetShiftState done [12:43:18]FM_GetShiftState done [12:43:18]opened in 1709425694 [12:43:18]opened+sec_in_day 1709512094 [12:43:18]quantity*price = 10500 [12:43:18]sum+1 = 10501 [12:43:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 105.00 НСП 1% : 0.93 НДС 12% : 11.15 Наличными: 0.00 Безнал.: 105.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 39 03.03.2024 12:43 Смена: 331 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874796 ФД: 45202 ФПД: 113430581263381 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T124329&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45202&fm=113430581263381&tin=02508201610067®Number=0000000000090572&sum=10500 0 [12:43:19]StoreToDocumentArchive [12:43:19]shift 331 fd 45202 [12:43:19]save to /storage/0331/doc_00045202 [12:43:19]save last doc name /storage/0331/doc_00045202 to /storage/kkm_last_doc_name [12:43:19]save OK [12:43:19]Clear old archive folders... [12:43:19]ProcessDocumentItem done err = 0, tmpTLVsize=288 [12:43:19]tlvbuf is 01B52A50 [12:43:19]SAM_PROTO_ClearQueue [12:43:19]wFMCommunicate request_size=4 [12:43:19]MH_SAM_APDU [12:43:19]CAPDU: 80 09 00 00 [12:43:19]Write to MH i2c: E2 08 00 E1 49 80 09 00 00 00 00 00 00 9C [12:43:19]Write i2c OK [12:43:19]MH_I2C_Read... [12:43:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:43:19]Read from MH i2c: E2 [12:43:19]MH_I2C_Read... [12:43:19]Read from MH i2c: E2 03 00 [12:43:19]MH_I2C_Read... [12:43:19]Read from MH i2c: E2 03 00 E1 49 00 90 00 9E [12:43:19]RAPDU: 90 00 [12:43:19]wFMCommunicate OK [12:43:19]SAM_PROTO_ClearQueue done [12:43:19]KKMCreateOFDPacket [12:43:19]OFDProtocolAddRootSTLVToBuf [12:43:19]FM_MakeSignedData [12:43:19]FM_MakeSignedData [12:43:19]SAM_PROTO_SignData [12:43:19]wFMCommunicate request_size=4 [12:43:19]MH_SAM_APDU [12:43:19]CAPDU: 80 0D 01 02 [12:43:19]Write to MH i2c: E2 08 00 E2 49 80 0D 01 02 00 00 00 00 A4 [12:43:19]Write i2c OK [12:43:19]MH_I2C_Read... [12:43:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:43:19]Read from MH i2c: E2 [12:43:19]MH_I2C_Read... [12:43:19]Read from MH i2c: E2 03 00 [12:43:19]MH_I2C_Read... [12:43:19]Read from MH i2c: E2 03 00 E2 49 00 90 00 9F [12:43:19]RAPDU: 90 00 [12:43:19]wFMCommunicate OK [12:43:19]wFMCommunicate request_size=255 [12:43:19]MH_SAM_APDU [12:43:19]CAPDU: 80 0D 02 02 FA 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 34 35 32 30 31 30 36 31 30 06 04 2E 00 D0 9A D0 BE D1 84 D0 B5 20 D0 BA D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 32 30 30 D0 BC D0 BB 20 28 D0 90 D0 9A D0 A6 D0 98 D0 AF 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 04 29 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 71 70 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 [12:43:19]Write to MH i2c: E2 02 01 E3 49 80 0D 02 02 FA 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 34 35 32 30 31 30 36 31 30 06 04 2E 00 D0 9A D0 BE D1 84 D0 B5 20 D0 BA D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 32 30 30 D0 BC D0 BB 20 28 D0 90 D0 9A D0 A6 D0 98 D0 AF 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 04 29 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 71 70 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 00 00 05 [12:43:19]Write i2c OK [12:43:19]MH_I2C_Read... [12:43:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:43:19]Read from MH i2c: E2 [12:43:19]MH_I2C_Read... [12:43:19]Read from MH i2c: E2 03 00 [12:43:19]MH_I2C_Read... [12:43:19]Read from MH i2c: E2 03 00 E3 49 00 90 00 A0 [12:43:19]RAPDU: 90 00 [12:43:19]wFMCommunicate OK [12:43:19]wFMCommunicate request_size=47 [12:43:19]MH_SAM_APDU [12:43:19]CAPDU: 80 0D 02 02 2A 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 92 B0 00 00 35 04 06 00 67 2A 1D 80 BC 15 [12:43:19]Write to MH i2c: E2 32 00 E4 49 80 0D 02 02 2A 00 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 92 B0 00 00 35 04 06 00 67 2A 1D 80 BC 15 00 00 AF [12:43:19]Write i2c OK [12:43:19]MH_I2C_Read... [12:43:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:43:19]Read from MH i2c: E2 [12:43:19]MH_I2C_Read... [12:43:19]Read from MH i2c: E2 03 00 [12:43:19]MH_I2C_Read... [12:43:19]Read from MH i2c: E2 03 00 E4 49 00 90 00 A1 [12:43:19]RAPDU: 90 00 [12:43:19]wFMCommunicate OK [12:43:19]wFMCommunicate request_size=4 [12:43:19]MH_SAM_APDU [12:43:19]CAPDU: 80 0D 03 02 [12:43:19]Write to MH i2c: E2 08 00 E5 49 80 0D 03 02 00 00 00 00 A9 [12:43:19]Write i2c OK [12:43:19]MH_I2C_Read... [12:43:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:43:19]Read from MH i2c: E2 [12:43:19]MH_I2C_Read... [12:43:19]Read from MH i2c: E2 0B 00 [12:43:19]MH_I2C_Read... [12:43:19]Read from MH i2c: E2 0B 00 E5 49 00 09 80 A4 72 79 B4 29 AC 90 00 4B [12:43:19]RAPDU: 09 80 A4 72 79 B4 29 AC 90 00 [12:43:19]wFMCommunicate OK [12:43:19]SAM_PROTO_SignData done [12:43:19]FM_MakeSignedData done [12:43:19]CreateOFDProtocolMessage [12:43:19]wFMCommunicate request_size=4 [12:43:19]MH_SAM_APDU [12:43:19]CAPDU: 80 11 00 00 [12:43:19]Write to MH i2c: E2 08 00 E6 49 80 11 00 00 00 00 00 00 A9 [12:43:19]Write i2c OK [12:43:19]MH_I2C_Read... [12:43:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:43:19]Read from MH i2c: E2 [12:43:19]MH_I2C_Read... [12:43:19]Read from MH i2c: E2 17 00 [12:43:19]MH_I2C_Read... [12:43:19]Read from MH i2c: E2 17 00 E6 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 05 [12:43:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [12:43:19]wFMCommunicate OK [12:43:19]CreateOFDProtocolMessage done [12:43:19]OFDSenderStorePacket 45202 [12:43:19]StoreOFDPacket docnum=45202 [12:43:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 34 01 00 00 3B BD 2C 01 27 5B 5A 03 01 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 34 35 32 30 31 30 36 31 30 06 04 2E 00 D0 9A D0 BE D1 84 D0 B5 20 D0 BA D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 32 30 30 D0 BC D0 BB 20 28 D0 90 D0 9A D0 A6 D0 98 D0 AF 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 04 29 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 71 70 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 92 B0 00 00 35 04 06 00 67 2A 1D 80 BC 15 09 80 A4 72 79 B4 29 AC [12:43:19]CheckFolder [12:43:19]dirname=/storage/ofd_packets [12:43:19]CheckFolder done [12:43:19]ProducePacketName [12:43:19]name=ofd_packets/00045202 [12:43:19]NVStorageSaveData ofd_packets/00045202 [12:43:19]File name is /storage/ofd_packets/00045202 [12:43:19]Write 338 bytes [12:43:19]NVStorageSaveData done [12:43:19]OFDSenderStorePacket done [12:43:19]KKMCreateOFDPacket done [12:43:19]NVStorageSaveData kkm_last_timestamp [12:43:19]File name is /storage/kkm_last_timestamp [12:43:19]Write 4 bytes [12:43:19]NVStorageSaveData done [12:43:19]ExternCall_PrintAddStr [12:43:19]wPrintStart [12:43:19]Write to MH i2c: 01 00 00 E7 49 30 [12:43:19]Write i2c OK [12:43:19]MH_I2C_Read... [12:43:19]Read from MH i2c: 01 [12:43:19]MH_I2C_Read... [12:43:19]Read from MH i2c: 01 07 00 [12:43:19]MH_I2C_Read... [12:43:19]Read from MH i2c: 01 07 00 E7 49 00 00 00 00 00 FF 0F 45 [12:43:19]RasterBufferAndPrint [12:43:19]line Счет N : (3)184167 [12:43:19]line ИНН: 02508201610067 [12:43:19]line Контрольно-Кассовый Чек [12:43:19]line ПРОДАЖА [12:43:19]line Товар: 4700452010610 [12:43:19]line Кофе капучино 200мл (АКЦИЯ) [12:43:19]line 1.000 * 105.00 [12:43:19]line = 105.00 [12:43:19]line НДС 12% НСП 1% [12:43:19]line > о реализуемом товаре [12:43:19]line ИТОГО: 105.00 [12:43:19]line НСП 1% : 0.93 [12:43:19]line НДС 12% : 11.15 [12:43:19]line Наличными: 0.00 [12:43:19]line Безнал.: 105.00 [12:43:19]line Место: АЗС № 25 "Партнер Нефть" [12:43:19]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [12:43:19]line СНО: Общий режим [12:43:19]line Чек 39 03.03.2024 12:43 [12:43:19]line Смена: 331 ФФД: 1.0 [12:43:19]line ЗНМ: 0300000013 [12:43:19]line РНМ: 0000000000090572 [12:43:19]line Версия ККМ: 001 [12:43:19]line Платежная система: Бакай Банк [12:43:19]line ФМ: 0000000000874796 [12:43:19]line ФД: 45202 [12:43:19]line ФПД: 113430581263381 [12:43:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T124329&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45202&fm=113430581263381&tin=02508201610067®Number=0000000000090572&sum=10500 [12:43:20]line 0 [12:43:20]OFD Sender: Processing packet 45202 [packets to send 17, broken 16] [12:43:20]ProducePacketName [12:43:20]name=ofd_packets/00045202 [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:20]written 0, free lines is 4095 [12:43:20]Connected sock=10 [12:43:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 34 01 00 00 3B BD 2C 01 27 5B 5A 03 01 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 34 35 32 30 31 30 36 31 30 06 04 2E 00 D0 9A D0 BE D1 84 D0 B5 20 D0 BA D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 32 30 30 D0 BC D0 BB 20 28 D0 90 D0 9A D0 A6 D0 98 D0 AF 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 04 29 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 71 70 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 92 B0 00 00 35 04 06 00 67 2A 1D 80 BC 15 09 80 A4 72 79 B4 29 AC [12:43:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 BD 8E 47 00 3B 71 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 92 B0 00 00 F4 03 04 00 36 1C E4 65 B6 04 01 00 00 58 F4 05 36 E4 23 41 97 [12:43:20]CommunicateWithHost err = 0 [12:43:20]CheckOFDResponse [12:43:20]1017 (14) - 77093643461234 [12:43:20]1041 (16) - 0000000000874796 [12:43:20]1040 (4) - 45202 [12:43:20]1012 (4) - 03.03.2024 06:44 [12:43:20]1206 (1) - 0 [12:43:20]OFD Sender: Remove packet 45202 [12:43:20]ProducePacketName [12:43:20]name=ofd_packets/00045202 [12:43:20]NVStorageDeleteData [12:43:20]Write to MH i2c: 01 00 00 12 4A 5C [12:43:20]Write i2c OK [12:43:20]MH_I2C_Read... [12:43:20]Read from MH i2c: 01 [12:43:20]MH_I2C_Read... [12:43:20]Read from MH i2c: 01 07 00 [12:43:20]MH_I2C_Read... [12:43:20]Read from MH i2c: 01 07 00 12 4A 00 00 00 00 00 DE 0C 4D [12:43:20]RasterBufferAndPrint [12:43:20]line [12:43:20]line [12:43:20]line [12:43:20]line [12:43:20]line [12:43:20]written 0, free lines is 3300 [12:43:20]MH_Cut [12:43:20]Write to MH i2c: D1 01 00 19 4A 01 35 [12:43:20]Write i2c OK [12:43:20]MH_I2C_Read... [12:43:20]Read from MH i2c: D1 [12:43:20]MH_I2C_Read... [12:43:20]Read from MH i2c: D1 01 00 [12:43:20]MH_I2C_Read... [12:43:20]Read from MH i2c: D1 01 00 19 4A 00 34 [12:43:20]Write to MH i2c: 01 00 00 1A 4A 64 [12:43:20]Write i2c OK [12:43:20]MH_I2C_Read... [12:43:20]OFD Sender: No OFD packet to send [12:43:21]*** Cut start [12:43:21]*** Purtial cut [12:43:21]*** Stage 1: CUTSNS_PIN = 1 [12:43:23]Read from MH i2c: 01 [12:43:23]MH_I2C_Read... [12:43:23]*** Stop cut motor [12:43:23]*** Cut end [12:43:23]Read from MH i2c: 01 07 00 [12:43:23]MH_I2C_Read... [12:43:23]Read from MH i2c: 01 07 00 1A 4A 00 00 00 00 00 FF 0F 79 [12:43:23]process_action close_receipt done [12:43:23]requested_data is exist [12:43:23]produce_requested_data [12:43:23]requested_item fm.sn is exist - process it [12:43:23]wFMCommunicate request_size=4 [12:43:23]MH_SAM_APDU [12:43:23]CAPDU: 80 11 00 00 [12:43:23]Write to MH i2c: E2 08 00 1B 4A 80 11 00 00 00 00 00 00 DF [12:43:23]Write i2c OK [12:43:23]MH_I2C_Read... [12:43:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:43:23]Read from MH i2c: E2 [12:43:23]MH_I2C_Read... [12:43:23]Read from MH i2c: E2 17 00 [12:43:23]MH_I2C_Read... [12:43:23]Read from MH i2c: E2 17 00 1B 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 3B [12:43:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [12:43:23]wFMCommunicate OK [12:43:23]requested_item fd.num is exist - process it [12:43:23]SAM_PROTO_GetFieldsCounters [12:43:23]wFMCommunicate request_size=4 [12:43:23]MH_SAM_APDU [12:43:23]CAPDU: 80 13 00 00 [12:43:23]Write to MH i2c: E2 08 00 1C 4A 80 13 00 00 00 00 00 00 E2 [12:43:23]Write i2c OK [12:43:23]MH_I2C_Read... [12:43:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:43:23]Read from MH i2c: E2 [12:43:23]MH_I2C_Read... [12:43:23]Read from MH i2c: E2 62 00 [12:43:23]MH_I2C_Read... [12:43:23]Read from MH i2c: E2 62 00 1C 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 92 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 0D [12:43:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 92 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:43:23]wFMCommunicate OK [12:43:23]SAM_PROTO_GetFieldsCounters done [12:43:23]requested_item shift.num is exist - process it [12:43:23]requested_item shift.opened is exist - process it [12:43:23]req_shift_opened [12:43:23]FM_GetShiftState [12:43:23]SAM_PROTO_GetShiftState [12:43:23]wFMCommunicate request_size=4 [12:43:23]MH_SAM_APDU [12:43:23]CAPDU: 80 13 01 00 [12:43:23]Write to MH i2c: E2 08 00 1D 4A 80 13 01 00 00 00 00 00 E4 [12:43:23]Write i2c OK [12:43:23]MH_I2C_Read... [12:43:23]Read from MH i2c: E2 [12:43:23]MH_I2C_Read... [12:43:23]Read from MH i2c: E2 0E 00 [12:43:23]MH_I2C_Read... [12:43:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:43:23]Read from MH i2c: E2 0E 00 1D 4A 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 1A [12:43:23]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [12:43:23]wFMCommunicate OK [12:43:23]SAM_PROTO_GetShiftState done [12:43:23]FM_GetShiftState done [12:43:23]req_shift_opened done [12:43:23]requested_item shift.open_date is exist - process it [12:43:23]req_shift_open_date [12:43:23]req_shift_open_date done [12:43:23]produce_requested_data done [12:43:23]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45202,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [12:43:23]process_action_free close_receipt [12:43:23]json_value_free [12:43:23]json_value_free done [12:43:23]process_json_proto returns [12:43:23]Send response to host [12:43:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45202,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [12:43:23]free response buf [12:43:23]execute_script done [12:43:23]execute_script returns [12:43:23]free content buf [12:43:23]Sock 9.Close socket [12:43:23]Sock 9.Thread stoped [12:43:25]OFD Sender: No OFD packet to send [12:43:30]OFD Sender: No OFD packet to send [12:43:35]OFD Sender: No OFD packet to send [12:43:40]OFD Sender: No OFD packet to send [12:43:45]OFD Sender: No OFD packet to send [12:43:50]OFD Sender: No OFD packet to send [12:43:55]OFD Sender: No OFD packet to send [12:44:00]OFD Sender: No OFD packet to send [12:44:05]OFD Sender: No OFD packet to send [12:44:10]OFD Sender: No OFD packet to send [12:44:15]OFD Sender: No OFD packet to send [12:44:20]OFD Sender: No OFD packet to send [12:44:25]OFD Sender: No OFD packet to send [12:44:30]OFD Sender: No OFD packet to send [12:44:35]OFD Sender: No OFD packet to send [12:44:40]OFD Sender: No OFD packet to send [12:44:45]OFD Sender: No OFD packet to send [12:44:50]OFD Sender: No OFD packet to send [12:44:55]OFD Sender: No OFD packet to send [12:45:00]OFD Sender: No OFD packet to send [12:45:05]OFD Sender: No OFD packet to send [12:45:10]OFD Sender: No OFD packet to send [12:45:15]OFD Sender: No OFD packet to send [12:45:20]OFD Sender: No OFD packet to send [12:45:25]OFD Sender: No OFD packet to send [12:45:30]OFD Sender: No OFD packet to send [12:45:35]OFD Sender: No OFD packet to send [12:45:40]OFD Sender: No OFD packet to send [12:45:45]OFD Sender: No OFD packet to send [12:45:50]OFD Sender: No OFD packet to send [12:45:55]OFD Sender: No OFD packet to send [12:46:00]OFD Sender: No OFD packet to send [12:46:05]OFD Sender: No OFD packet to send [12:46:09]accept exits with 7 [12:46:09]New connection [12:46:09]New thread 3067157860 created [12:46:09]Thread 3067014500 joined [12:46:09]Waiting for new connection... [12:46:09] Sock 7.Parse request [12:46:09]Sock 7.Check first char [12:46:09]Sock 7.First char is OK [12:46:09]request: POST /json_proto HTTP/1.0 [12:46:09]Method: POST [12:46:09]URL: /json_proto [12:46:09]Method is POST - this is cgi request [12:46:09]url: /json_proto [12:46:09]query_string will be loaded in cgi processing [12:46:09]execute_cgi json_proto POST (null) [12:46:09]execute_cgi path=json_proto method=POST [12:46:09]POST find Content-Length [12:46:09]Host: 172.17.48.198:8080 [12:46:09]Content-Length: 668 [12:46:09]Content-Type: application/json [12:46:09] [12:46:09]POST finish read [12:46:09]Found Content-Length = 668 [12:46:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184168", "tax_sys" : 0, "items" : [ { "code": "4670003190013", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 SIBIRIA ANTIFREEZE \u041E\u0416-40 \u0436\u0435\u043B 1\u043B", "price" : 225.00, "quantity" : 1.000, "sum" : 225.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 225.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:46:09]execute_script... [12:46:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184168", "tax_sys" : 0, "items" : [ { "code": "4670003190013", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 SIBIRIA ANTIFREEZE \u041E\u0416-40 \u0436\u0435\u043B 1\u043B", "price" : 225.00, "quantity" : 1.000, "sum" : 225.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 225.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:46:09]POST & json_proto [12:46:09]process_json_proto [12:46:09]json parsed OK: [12:46:09]protocol is kg_v1.0 [12:46:09]action value=close_receipt [12:46:09]process_action close_receipt [12:46:09]cmd_close_receipt [12:46:09]MH_GetDate [12:46:09]Write to MH i2c: F0 00 00 1E 4A 57 [12:46:09]Write i2c OK [12:46:09]MH_I2C_Read... [12:46:09]Read from MH i2c: F0 [12:46:09]MH_I2C_Read... [12:46:09]Read from MH i2c: F0 09 00 [12:46:09]MH_I2C_Read... [12:46:09]Read from MH i2c: F0 09 00 1E 4A 00 1C 71 E4 65 CE C4 D4 65 01 [12:46:09]GetLastDocTimeStamp 1709469809 [12:46:09]current date 1709469980 [12:46:09]FM_GetShiftState [12:46:09]SAM_PROTO_GetShiftState [12:46:09]wFMCommunicate request_size=4 [12:46:09]MH_SAM_APDU [12:46:09]CAPDU: 80 13 01 00 [12:46:09]Write to MH i2c: E2 08 00 1F 4A 80 13 01 00 00 00 00 00 E6 [12:46:09]Write i2c OK [12:46:09]MH_I2C_Read... [12:46:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:09]Read from MH i2c: E2 [12:46:09]MH_I2C_Read... [12:46:09]Read from MH i2c: E2 0E 00 [12:46:09]MH_I2C_Read... [12:46:09]Read from MH i2c: E2 0E 00 1F 4A 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 1C [12:46:09]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [12:46:09]wFMCommunicate OK [12:46:09]SAM_PROTO_GetShiftState done [12:46:09]FM_GetShiftState done [12:46:09]opened in 1709425694 [12:46:09]opened+sec_in_day 1709512094 [12:46:09]quantity*price = 22500 [12:46:09]sum+1 = 22501 [12:46:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 225.00 НСП 1% : 1.99 НДС 12% : 23.89 Наличными: 225.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 40 03.03.2024 12:46 Смена: 331 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 ФМ: 0000000000874796 ФД: 45203 ФПД: 188473404752918 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T124620&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45203&fm=188473404752918&tin=02508201610067®Number=0000000000090572&sum=22500 0 [12:46:10]StoreToDocumentArchive [12:46:10]shift 331 fd 45203 [12:46:10]save to /storage/0331/doc_00045203 [12:46:10]save last doc name /storage/0331/doc_00045203 to /storage/kkm_last_doc_name [12:46:10]save OK [12:46:10]Clear old archive folders... [12:46:10]ProcessDocumentItem done err = 0, tmpTLVsize=296 [12:46:10]tlvbuf is B6F873C0 [12:46:10]SAM_PROTO_ClearQueue [12:46:10]wFMCommunicate request_size=4 [12:46:10]MH_SAM_APDU [12:46:10]CAPDU: 80 09 00 00 [12:46:10]Write to MH i2c: E2 08 00 2C 4A 80 09 00 00 00 00 00 00 E8 [12:46:10]Write i2c OK [12:46:10]MH_I2C_Read... [12:46:10]Read from MH i2c: E2 [12:46:10]MH_I2C_Read... [12:46:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:46:10]Read from MH i2c: E2 03 00 [12:46:10]MH_I2C_Read... [12:46:10]Read from MH i2c: E2 03 00 2C 4A 00 90 00 EA [12:46:10]RAPDU: 90 00 [12:46:10]wFMCommunicate OK [12:46:10]SAM_PROTO_ClearQueue done [12:46:10]KKMCreateOFDPacket [12:46:10]OFDProtocolAddRootSTLVToBuf [12:46:10]FM_MakeSignedData [12:46:10]FM_MakeSignedData [12:46:10]SAM_PROTO_SignData [12:46:10]wFMCommunicate request_size=4 [12:46:10]MH_SAM_APDU [12:46:10]CAPDU: 80 0D 01 02 [12:46:10]Write to MH i2c: E2 08 00 2D 4A 80 0D 01 02 00 00 00 00 F0 [12:46:10]Write i2c OK [12:46:10]MH_I2C_Read... [12:46:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:46:10]Read from MH i2c: E2 [12:46:10]MH_I2C_Read... [12:46:10]Read from MH i2c: E2 03 00 [12:46:10]MH_I2C_Read... [12:46:10]Read from MH i2c: E2 03 00 2D 4A 00 90 00 EB [12:46:10]RAPDU: 90 00 [12:46:10]wFMCommunicate OK [12:46:10]wFMCommunicate request_size=255 [12:46:10]MH_SAM_APDU [12:46:10]CAPDU: 80 0D 02 02 FA 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 31 33 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B6 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 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 1C 71 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 [12:46:10]Write to MH i2c: E2 02 01 2E 4A 80 0D 02 02 FA 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 31 33 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B6 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 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 1C 71 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 00 00 BB [12:46:10]Write i2c OK [12:46:10]MH_I2C_Read... [12:46:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:46:10]Read from MH i2c: E2 [12:46:10]MH_I2C_Read... [12:46:10]Read from MH i2c: E2 03 00 [12:46:10]MH_I2C_Read... [12:46:10]Read from MH i2c: E2 03 00 2E 4A 00 90 00 EC [12:46:10]RAPDU: 90 00 [12:46:10]wFMCommunicate OK [12:46:10]wFMCommunicate request_size=55 [12:46:10]MH_SAM_APDU [12:46:10]CAPDU: 80 0D 02 02 32 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 93 B0 00 00 35 04 06 00 AB 6A 62 57 04 16 [12:46:10]Write to MH i2c: E2 3A 00 2F 4A 80 0D 02 02 32 00 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 93 B0 00 00 35 04 06 00 AB 6A 62 57 04 16 00 00 7E [12:46:10]Write i2c OK [12:46:10]MH_I2C_Read... [12:46:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:46:10]Read from MH i2c: E2 [12:46:10]MH_I2C_Read... [12:46:10]Read from MH i2c: E2 03 00 [12:46:10]MH_I2C_Read... [12:46:10]Read from MH i2c: E2 03 00 2F 4A 00 90 00 ED [12:46:10]RAPDU: 90 00 [12:46:10]wFMCommunicate OK [12:46:10]wFMCommunicate request_size=4 [12:46:10]MH_SAM_APDU [12:46:10]CAPDU: 80 0D 03 02 [12:46:10]Write to MH i2c: E2 08 00 30 4A 80 0D 03 02 00 00 00 00 F5 [12:46:10]Write i2c OK [12:46:10]MH_I2C_Read... [12:46:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:46:10]Read from MH i2c: E2 [12:46:10]MH_I2C_Read... [12:46:10]Read from MH i2c: E2 0B 00 [12:46:10]MH_I2C_Read... [12:46:10]Read from MH i2c: E2 0B 00 30 4A 00 BD AC FE C5 B6 D3 B4 A0 90 00 FF [12:46:10]RAPDU: BD AC FE C5 B6 D3 B4 A0 90 00 [12:46:10]wFMCommunicate OK [12:46:10]SAM_PROTO_SignData done [12:46:10]FM_MakeSignedData done [12:46:10]CreateOFDProtocolMessage [12:46:10]wFMCommunicate request_size=4 [12:46:10]MH_SAM_APDU [12:46:10]CAPDU: 80 11 00 00 [12:46:10]Write to MH i2c: E2 08 00 31 4A 80 11 00 00 00 00 00 00 F5 [12:46:10]Write i2c OK [12:46:10]MH_I2C_Read... [12:46:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:10]Read from MH i2c: E2 [12:46:10]MH_I2C_Read... [12:46:10]Read from MH i2c: E2 17 00 [12:46:10]MH_I2C_Read... [12:46:10]Read from MH i2c: E2 17 00 31 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 51 [12:46:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [12:46:10]wFMCommunicate OK [12:46:10]CreateOFDProtocolMessage done [12:46:10]OFDSenderStorePacket 45203 [12:46:10]StoreOFDPacket docnum=45203 [12:46:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 3C 01 00 00 49 1A 34 01 B8 EB 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 31 33 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B6 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 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 1C 71 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 93 B0 00 00 35 04 06 00 AB 6A 62 57 04 16 BD AC FE C5 B6 D3 B4 A0 [12:46:10]CheckFolder [12:46:10]dirname=/storage/ofd_packets [12:46:10]CheckFolder done [12:46:10]ProducePacketName [12:46:10]name=ofd_packets/00045203 [12:46:10]NVStorageSaveData ofd_packets/00045203 [12:46:10]File name is /storage/ofd_packets/00045203 [12:46:10]Write 346 bytes [12:46:10]NVStorageSaveData done [12:46:10]OFDSenderStorePacket done [12:46:10]KKMCreateOFDPacket done [12:46:10]NVStorageSaveData kkm_last_timestamp [12:46:10]File name is /storage/kkm_last_timestamp [12:46:10]Write 4 bytes [12:46:10]NVStorageSaveData done [12:46:10]ExternCall_PrintAddStr [12:46:10]wPrintStart [12:46:10]Write to MH i2c: 01 00 00 32 4A 7C [12:46:10]Write i2c OK [12:46:10]MH_I2C_Read... [12:46:10]Read from MH i2c: 01 [12:46:10]MH_I2C_Read... [12:46:10]Read from MH i2c: 01 07 00 [12:46:10]MH_I2C_Read... [12:46:10]OFD Sender: Processing packet 45203 [packets to send 17, broken 16] [12:46:10]ProducePacketName [12:46:10]name=ofd_packets/00045203 [12:46:10]OFD Sender: To server: pG, [12:46:10]CommunicateWithHost lk.salyk.kg:30040 [12:46:10]ConnectInit lk.salyk.kg [12:46:10]Read from MH i2c: 01 07 00 32 4A 00 00 00 00 00 FF 0F 91 [12:46:10]RasterBufferAndPrint [12:46:10]line Счет N : (3)184168 [12:46:10]line ИНН: 02508201610067 [12:46:10]line Контрольно-Кассовый Чек [12:46:10]line ПРОДАЖА [12:46:10]line Товар: 4670003190013 [12:46:10]line Антифриз SIBIRIA ANTIFREEZE ОЖ-40 жел 1л [12:46:10]line 1.000 * 225.00 [12:46:10]line = 225.00 [12:46:10]line НДС 12% НСП 1% [12:46:10]line > о реализуемом товаре [12:46:10]line ИТОГО: 225.00 [12:46:10]line НСП 1% : 1.99 [12:46:10]line НДС 12% : 23.89 [12:46:10]line Наличными: 225.00 [12:46:10]line Безнал.: 0.00 [12:46:10]line Место: АЗС № 25 "Партнер Нефть" [12:46:10]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [12:46:10]line СНО: Общий режим [12:46:10]line Чек 40 03.03.2024 12:46 [12:46:10]line Смена: 331 ФФД: 1.0 [12:46:10]line ЗНМ: 0300000013 [12:46:10]line РНМ: 0000000000090572 [12:46:10]line Версия ККМ: 001 [12:46:10]line ФМ: 0000000000874796 [12:46:10]line ФД: 45203 [12:46:10]line ФПД: 188473404752918 [12:46:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T124620&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45203&fm=188473404752918&tin=02508201610067®Number=0000000000090572&sum=22500 [12:46:10]line 0 [12:46:10]written 0, free lines is 4095 [12:46:11]Connected sock=10 [12:46:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 3C 01 00 00 49 1A 34 01 B8 EB 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 31 33 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B6 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 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 1C 71 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 93 B0 00 00 35 04 06 00 AB 6A 62 57 04 16 BD AC FE C5 B6 D3 B4 A0 [12:46:11]Write to MH i2c: 01 00 00 5B 4A A5 [12:46:11]Write i2c OK [12:46:11]MH_I2C_Read... [12:46:11]Read from MH i2c: 01 [12:46:11]MH_I2C_Read... [12:46:11]Read from MH i2c: 01 07 00 [12:46:11]MH_I2C_Read... [12:46:11]Read from MH i2c: 01 07 00 5B 4A 00 00 00 00 00 07 0D C0 [12:46:11]RasterBufferAndPrint [12:46:11]line [12:46:11]line [12:46:11]line [12:46:11]line [12:46:11]line [12:46:11]written 0, free lines is 3341 [12:46:11]MH_Cut [12:46:11]Write to MH i2c: D1 01 00 62 4A 01 7E [12:46:11]Write i2c OK [12:46:11]MH_I2C_Read... [12:46:11]Read from MH i2c: D1 [12:46:11]MH_I2C_Read... [12:46:11]Read from MH i2c: D1 01 00 [12:46:11]MH_I2C_Read... [12:46:11]Read from MH i2c: D1 01 00 62 4A 00 7D [12:46:11]Write to MH i2c: 01 00 00 63 4A AD [12:46:11]Write i2c OK [12:46:11]MH_I2C_Read... [12:46:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 64 EC 47 00 F3 04 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 93 B0 00 00 F4 03 04 00 E1 1C E4 65 B6 04 01 00 00 13 F9 F5 05 DC 73 5B 2A [12:46:11]CommunicateWithHost err = 0 [12:46:11]CheckOFDResponse [12:46:11]1017 (14) - 77093643461234 [12:46:11]1041 (16) - 0000000000874796 [12:46:11]1040 (4) - 45203 [12:46:11]1012 (4) - 03.03.2024 06:46 [12:46:11]1206 (1) - 0 [12:46:11]OFD Sender: Remove packet 45203 [12:46:11]ProducePacketName [12:46:11]name=ofd_packets/00045203 [12:46:11]NVStorageDeleteData [12:46:11]OFD Sender: No OFD packet to send [12:46:12]*** Cut start [12:46:12]*** Purtial cut [12:46:12]*** Stage 1: CUTSNS_PIN = 1 [12:46:14]Read from MH i2c: 01 [12:46:14]MH_I2C_Read... [12:46:14]*** Stop cut motor [12:46:14]*** Cut end [12:46:14]Read from MH i2c: 01 07 00 [12:46:14]MH_I2C_Read... [12:46:14]Read from MH i2c: 01 07 00 63 4A 00 00 00 00 00 FF 0F C2 [12:46:14]process_action close_receipt done [12:46:14]requested_data is exist [12:46:14]produce_requested_data [12:46:14]requested_item fm.sn is exist - process it [12:46:14]wFMCommunicate request_size=4 [12:46:14]MH_SAM_APDU [12:46:14]CAPDU: 80 11 00 00 [12:46:14]Write to MH i2c: E2 08 00 64 4A 80 11 00 00 00 00 00 00 28 [12:46:14]Write i2c OK [12:46:14]MH_I2C_Read... [12:46:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:14]Read from MH i2c: E2 [12:46:14]MH_I2C_Read... [12:46:14]Read from MH i2c: E2 17 00 [12:46:14]MH_I2C_Read... [12:46:14]Read from MH i2c: E2 17 00 64 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 84 [12:46:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [12:46:14]wFMCommunicate OK [12:46:14]requested_item fd.num is exist - process it [12:46:14]SAM_PROTO_GetFieldsCounters [12:46:14]wFMCommunicate request_size=4 [12:46:14]MH_SAM_APDU [12:46:14]CAPDU: 80 13 00 00 [12:46:14]Write to MH i2c: E2 08 00 65 4A 80 13 00 00 00 00 00 00 2B [12:46:14]Write i2c OK [12:46:14]MH_I2C_Read... [12:46:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:46:14]Read from MH i2c: E2 [12:46:14]MH_I2C_Read... [12:46:14]Read from MH i2c: E2 62 00 [12:46:14]MH_I2C_Read... [12:46:14]Read from MH i2c: E2 62 00 65 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 93 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 5A [12:46:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 93 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:46:14]wFMCommunicate OK [12:46:14]SAM_PROTO_GetFieldsCounters done [12:46:14]requested_item shift.num is exist - process it [12:46:14]requested_item shift.opened is exist - process it [12:46:14]req_shift_opened [12:46:14]FM_GetShiftState [12:46:14]SAM_PROTO_GetShiftState [12:46:14]wFMCommunicate request_size=4 [12:46:14]MH_SAM_APDU [12:46:14]CAPDU: 80 13 01 00 [12:46:14]Write to MH i2c: E2 08 00 66 4A 80 13 01 00 00 00 00 00 2D [12:46:14]Write i2c OK [12:46:14]MH_I2C_Read... [12:46:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:14]Read from MH i2c: E2 [12:46:14]MH_I2C_Read... [12:46:14]Read from MH i2c: E2 0E 00 [12:46:14]MH_I2C_Read... [12:46:14]Read from MH i2c: E2 0E 00 66 4A 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 63 [12:46:14]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [12:46:14]wFMCommunicate OK [12:46:14]SAM_PROTO_GetShiftState done [12:46:14]FM_GetShiftState done [12:46:14]req_shift_opened done [12:46:14]requested_item shift.open_date is exist - process it [12:46:14]req_shift_open_date [12:46:14]req_shift_open_date done [12:46:14]produce_requested_data done [12:46:14]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45203,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [12:46:14]process_action_free close_receipt [12:46:14]json_value_free [12:46:14]json_value_free done [12:46:14]process_json_proto returns [12:46:14]Send response to host [12:46:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45203,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [12:46:14]free response buf [12:46:14]execute_script done [12:46:14]execute_script returns [12:46:14]free content buf [12:46:14]Sock 7.Close socket [12:46:14]Sock 7.Thread stoped [12:46:17]OFD Sender: No OFD packet to send [12:46:22]OFD Sender: No OFD packet to send [12:46:27]OFD Sender: No OFD packet to send [12:46:32]OFD Sender: No OFD packet to send [12:46:37]OFD Sender: No OFD packet to send [12:46:42]OFD Sender: No OFD packet to send [12:46:47]OFD Sender: No OFD packet to send [12:46:52]OFD Sender: No OFD packet to send [12:46:57]OFD Sender: No OFD packet to send [12:47:02]OFD Sender: No OFD packet to send [12:47:07]OFD Sender: No OFD packet to send [12:47:12]OFD Sender: No OFD packet to send [12:47:17]OFD Sender: No OFD packet to send [12:47:22]OFD Sender: No OFD packet to send [12:47:27]OFD Sender: No OFD packet to send [12:47:32]OFD Sender: No OFD packet to send [12:47:37]OFD Sender: No OFD packet to send [12:47:42]OFD Sender: No OFD packet to send [12:47:47]OFD Sender: No OFD packet to send [12:47:52]OFD Sender: No OFD packet to send [12:47:57]OFD Sender: No OFD packet to send [12:48:02]OFD Sender: No OFD packet to send [12:48:07]OFD Sender: No OFD packet to send [12:48:12]OFD Sender: No OFD packet to send [12:48:17]OFD Sender: No OFD packet to send [12:48:22]OFD Sender: No OFD packet to send [12:48:27]OFD Sender: No OFD packet to send [12:48:32]OFD Sender: No OFD packet to send [12:48:37]OFD Sender: No OFD packet to send [12:48:42]OFD Sender: No OFD packet to send [12:48:47]OFD Sender: No OFD packet to send [12:48:52]OFD Sender: No OFD packet to send [12:48:57]OFD Sender: No OFD packet to send [12:49:02]OFD Sender: No OFD packet to send [12:49:07]OFD Sender: No OFD packet to send [12:49:12]OFD Sender: No OFD packet to send [12:49:17]OFD Sender: No OFD packet to send [12:49:22]OFD Sender: No OFD packet to send [12:49:27]OFD Sender: No OFD packet to send [12:49:32]OFD Sender: No OFD packet to send [12:49:37]OFD Sender: No OFD packet to send [12:49:42]OFD Sender: No OFD packet to send [12:49:47]OFD Sender: No OFD packet to send [12:49:52]OFD Sender: No OFD packet to send [12:49:57]OFD Sender: No OFD packet to send [12:50:02]OFD Sender: No OFD packet to send [12:50:07]OFD Sender: No OFD packet to send [12:50:12]OFD Sender: No OFD packet to send [12:50:17]OFD Sender: No OFD packet to send [12:50:22]OFD Sender: No OFD packet to send [12:50:27]OFD Sender: No OFD packet to send [12:50:32]OFD Sender: No OFD packet to send [12:50:37]OFD Sender: No OFD packet to send [12:50:42]OFD Sender: No OFD packet to send [12:50:47]OFD Sender: No OFD packet to send [12:50:52]OFD Sender: No OFD packet to send [12:50:57]OFD Sender: No OFD packet to send [12:51:02]OFD Sender: No OFD packet to send [12:51:07]OFD Sender: No OFD packet to send [12:51:12]OFD Sender: No OFD packet to send [12:51:17]OFD Sender: No OFD packet to send [12:51:22]OFD Sender: No OFD packet to send [12:51:27]OFD Sender: No OFD packet to send [12:51:32]OFD Sender: No OFD packet to send [12:51:37]OFD Sender: No OFD packet to send [12:51:42]OFD Sender: No OFD packet to send [12:51:47]OFD Sender: No OFD packet to send [12:51:52]OFD Sender: No OFD packet to send [12:51:57]OFD Sender: No OFD packet to send [12:52:02]OFD Sender: No OFD packet to send [12:52:07]OFD Sender: No OFD packet to send [12:52:12]OFD Sender: No OFD packet to send [12:52:17]OFD Sender: No OFD packet to send [12:52:22]OFD Sender: No OFD packet to send [12:52:27]OFD Sender: No OFD packet to send [12:52:32]OFD Sender: No OFD packet to send [12:52:37]OFD Sender: No OFD packet to send [12:52:42]OFD Sender: No OFD packet to send [12:52:47]OFD Sender: No OFD packet to send [12:52:52]OFD Sender: No OFD packet to send [12:52:57]OFD Sender: No OFD packet to send [12:53:02]OFD Sender: No OFD packet to send [12:53:07]OFD Sender: No OFD packet to send [12:53:12]OFD Sender: No OFD packet to send [12:53:17]OFD Sender: No OFD packet to send [12:53:22]OFD Sender: No OFD packet to send [12:53:27]OFD Sender: No OFD packet to send [12:53:32]OFD Sender: No OFD packet to send [12:53:37]OFD Sender: No OFD packet to send [12:53:42]OFD Sender: No OFD packet to send [12:53:47]OFD Sender: No OFD packet to send [12:53:52]OFD Sender: No OFD packet to send [12:53:57]OFD Sender: No OFD packet to send [12:54:02]OFD Sender: No OFD packet to send [12:54:07]OFD Sender: No OFD packet to send [12:54:12]OFD Sender: No OFD packet to send [12:54:17]OFD Sender: No OFD packet to send [12:54:22]OFD Sender: No OFD packet to send [12:54:27]OFD Sender: No OFD packet to send [12:54:32]OFD Sender: No OFD packet to send [12:54:37]OFD Sender: No OFD packet to send [12:54:42]OFD Sender: No OFD packet to send [12:54:47]OFD Sender: No OFD packet to send [12:54:52]OFD Sender: No OFD packet to send [12:54:57]OFD Sender: No OFD packet to send [12:55:02]OFD Sender: No OFD packet to send [12:55:07]OFD Sender: No OFD packet to send [12:55:12]OFD Sender: No OFD packet to send [12:55:17]OFD Sender: No OFD packet to send [12:55:22]OFD Sender: No OFD packet to send [12:55:27]OFD Sender: No OFD packet to send [12:55:32]OFD Sender: No OFD packet to send [12:55:37]OFD Sender: No OFD packet to send [12:55:42]OFD Sender: No OFD packet to send [12:55:47]OFD Sender: No OFD packet to send [12:55:52]OFD Sender: No OFD packet to send [12:55:57]OFD Sender: No OFD packet to send [12:56:02]OFD Sender: No OFD packet to send [12:56:07]OFD Sender: No OFD packet to send [12:56:12]OFD Sender: No OFD packet to send [12:56:17]OFD Sender: No OFD packet to send [12:56:22]OFD Sender: No OFD packet to send [12:56:27]OFD Sender: No OFD packet to send [12:56:32]OFD Sender: No OFD packet to send [12:56:37]OFD Sender: No OFD packet to send [12:56:42]OFD Sender: No OFD packet to send [12:56:47]OFD Sender: No OFD packet to send [12:56:52]OFD Sender: No OFD packet to send [12:56:57]OFD Sender: No OFD packet to send [12:57:02]OFD Sender: No OFD packet to send [12:57:07]OFD Sender: No OFD packet to send [12:57:12]OFD Sender: No OFD packet to send [12:57:17]OFD Sender: No OFD packet to send [12:57:22]OFD Sender: No OFD packet to send [12:57:27]OFD Sender: No OFD packet to send [12:57:32]OFD Sender: No OFD packet to send [12:57:37]OFD Sender: No OFD packet to send [12:57:42]OFD Sender: No OFD packet to send [12:57:47]OFD Sender: No OFD packet to send [12:57:52]OFD Sender: No OFD packet to send [12:57:57]OFD Sender: No OFD packet to send [12:58:02]OFD Sender: No OFD packet to send [12:58:07]OFD Sender: No OFD packet to send [12:58:12]OFD Sender: No OFD packet to send [12:58:17]OFD Sender: No OFD packet to send [12:58:22]OFD Sender: No OFD packet to send [12:58:27]OFD Sender: No OFD packet to send [12:58:32]OFD Sender: No OFD packet to send [12:58:37]OFD Sender: No OFD packet to send [12:58:42]OFD Sender: No OFD packet to send [12:58:47]OFD Sender: No OFD packet to send [12:58:52]OFD Sender: No OFD packet to send [12:58:57]OFD Sender: No OFD packet to send [12:59:02]OFD Sender: No OFD packet to send [12:59:07]OFD Sender: No OFD packet to send [12:59:12]OFD Sender: No OFD packet to send [12:59:17]OFD Sender: No OFD packet to send [12:59:22]OFD Sender: No OFD packet to send [12:59:27]OFD Sender: No OFD packet to send [12:59:32]OFD Sender: No OFD packet to send [12:59:37]OFD Sender: No OFD packet to send [12:59:42]OFD Sender: No OFD packet to send [12:59:47]OFD Sender: No OFD packet to send [12:59:52]OFD Sender: No OFD packet to send [12:59:57]OFD Sender: No OFD packet to send [13:00:02]OFD Sender: No OFD packet to send [13:00:07]OFD Sender: No OFD packet to send [13:00:12]OFD Sender: No OFD packet to send [13:00:17]OFD Sender: No OFD packet to send [13:00:22]OFD Sender: No OFD packet to send [13:00:27]OFD Sender: No OFD packet to send [13:00:32]OFD Sender: No OFD packet to send [13:00:37]OFD Sender: No OFD packet to send [13:00:42]OFD Sender: No OFD packet to send [13:00:47]OFD Sender: No OFD packet to send [13:00:52]OFD Sender: No OFD packet to send [13:00:57]OFD Sender: No OFD packet to send [13:01:02]OFD Sender: No OFD packet to send [13:01:07]OFD Sender: No OFD packet to send [13:01:12]OFD Sender: No OFD packet to send [13:01:17]OFD Sender: No OFD packet to send [13:01:22]OFD Sender: No OFD packet to send [13:01:27]OFD Sender: No OFD packet to send [13:01:32]OFD Sender: No OFD packet to send [13:01:37]OFD Sender: No OFD packet to send [13:01:42]OFD Sender: No OFD packet to send [13:01:47]OFD Sender: No OFD packet to send [13:01:52]OFD Sender: No OFD packet to send [13:01:57]OFD Sender: No OFD packet to send [13:02:02]OFD Sender: No OFD packet to send [13:02:07]OFD Sender: No OFD packet to send [13:02:12]OFD Sender: No OFD packet to send [13:02:17]OFD Sender: No OFD packet to send [13:02:22]OFD Sender: No OFD packet to send [13:02:27]OFD Sender: No OFD packet to send [13:02:32]OFD Sender: No OFD packet to send [13:02:37]OFD Sender: No OFD packet to send [13:02:42]OFD Sender: No OFD packet to send [13:02:47]OFD Sender: No OFD packet to send [13:02:52]OFD Sender: No OFD packet to send [13:02:57]OFD Sender: No OFD packet to send [13:03:02]OFD Sender: No OFD packet to send [13:03:07]OFD Sender: No OFD packet to send [13:03:12]OFD Sender: No OFD packet to send [13:03:17]OFD Sender: No OFD packet to send [13:03:22]OFD Sender: No OFD packet to send [13:03:27]OFD Sender: No OFD packet to send [13:03:32]OFD Sender: No OFD packet to send [13:03:37]OFD Sender: No OFD packet to send [13:03:39]accept exits with 9 [13:03:39]New connection [13:03:39]New thread 3067014500 created [13:03:39]Thread 3067157860 joined [13:03:39]Waiting for new connection... [13:03:39] Sock 9.Parse request [13:03:39]Sock 9.Check first char [13:03:39]Sock 9.First char is OK [13:03:39]request: POST /json_proto HTTP/1.0 [13:03:39]Method: POST [13:03:39]URL: /json_proto [13:03:39]Method is POST - this is cgi request [13:03:39]url: /json_proto [13:03:39]query_string will be loaded in cgi processing [13:03:39]execute_cgi json_proto POST (null) [13:03:39]execute_cgi path=json_proto method=POST [13:03:39]POST find Content-Length [13:03:39]Host: 172.17.48.198:8080 [13:03:39]Content-Length: 695 [13:03:39]Content-Type: application/json [13:03:39] [13:03:39]POST finish read [13:03:39]Found Content-Length = 695 [13:03:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184169", "tax_sys" : 0, "items" : [ { "code": "2000039210050", "name": "\u0410\u041A\u0426\u0418\u042F \u0424\u0440\u0435\u043D\u0447-\u0434\u043E\u0433 Sib \u0433\u043E\u0432\u044F\u0436\u044C\u044F 180\u0433", "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" ] } } [13:03:39]execute_script... [13:03:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184169", "tax_sys" : 0, "items" : [ { "code": "2000039210050", "name": "\u0410\u041A\u0426\u0418\u042F \u0424\u0440\u0435\u043D\u0447-\u0434\u043E\u0433 Sib \u0433\u043E\u0432\u044F\u0436\u044C\u044F 180\u0433", "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" ] } } [13:03:39]POST & json_proto [13:03:39]process_json_proto [13:03:39]json parsed OK: [13:03:39]protocol is kg_v1.0 [13:03:39]action value=close_receipt [13:03:39]process_action close_receipt [13:03:39]cmd_close_receipt [13:03:39]MH_GetDate [13:03:39]Write to MH i2c: F0 00 00 67 4A A0 [13:03:39]Write i2c OK [13:03:39]MH_I2C_Read... [13:03:39]Read from MH i2c: F0 [13:03:39]MH_I2C_Read... [13:03:39]Read from MH i2c: F0 09 00 [13:03:39]MH_I2C_Read... [13:03:39]Read from MH i2c: F0 09 00 67 4A 00 36 75 E4 65 CE C4 D4 65 68 [13:03:39]GetLastDocTimeStamp 1709469980 [13:03:39]current date 1709471030 [13:03:39]FM_GetShiftState [13:03:39]SAM_PROTO_GetShiftState [13:03:39]wFMCommunicate request_size=4 [13:03:39]MH_SAM_APDU [13:03:39]CAPDU: 80 13 01 00 [13:03:39]Write to MH i2c: E2 08 00 68 4A 80 13 01 00 00 00 00 00 2F [13:03:39]Write i2c OK [13:03:39]MH_I2C_Read... [13:03:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:03:39]Read from MH i2c: E2 [13:03:39]MH_I2C_Read... [13:03:39]Read from MH i2c: E2 0E 00 [13:03:39]MH_I2C_Read... [13:03:39]Read from MH i2c: E2 0E 00 68 4A 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 65 [13:03:39]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [13:03:39]wFMCommunicate OK [13:03:39]SAM_PROTO_GetShiftState done [13:03:39]FM_GetShiftState done [13:03:39]opened in 1709425694 [13:03:39]opened+sec_in_day 1709512094 [13:03:39]quantity*price = 13000 [13:03:39]sum+1 = 13001 [13:03:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 41 03.03.2024 13:03 Смена: 331 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 ФМ: 0000000000874796 ФД: 45204 ФПД: 28021053142619 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T130350&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45204&fm=28021053142619&tin=02508201610067®Number=0000000000090572&sum=13000 0 [13:03:40]StoreToDocumentArchive [13:03:40]shift 331 fd 45204 [13:03:40]save to /storage/0331/doc_00045204 [13:03:40]save last doc name /storage/0331/doc_00045204 to /storage/kkm_last_doc_name [13:03:40]save OK [13:03:40]Clear old archive folders... [13:03:40]ProcessDocumentItem done err = 0, tmpTLVsize=295 [13:03:40]tlvbuf is 01B15880 [13:03:40]SAM_PROTO_ClearQueue [13:03:40]wFMCommunicate request_size=4 [13:03:40]MH_SAM_APDU [13:03:40]CAPDU: 80 09 00 00 [13:03:40]Write to MH i2c: E2 08 00 75 4A 80 09 00 00 00 00 00 00 31 [13:03:40]Write i2c OK [13:03:40]MH_I2C_Read... [13:03:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:03:40]Read from MH i2c: E2 [13:03:40]MH_I2C_Read... [13:03:40]Read from MH i2c: E2 03 00 [13:03:40]MH_I2C_Read... [13:03:40]Read from MH i2c: E2 03 00 75 4A 00 90 00 33 [13:03:40]RAPDU: 90 00 [13:03:40]wFMCommunicate OK [13:03:40]SAM_PROTO_ClearQueue done [13:03:40]KKMCreateOFDPacket [13:03:40]OFDProtocolAddRootSTLVToBuf [13:03:40]FM_MakeSignedData [13:03:40]FM_MakeSignedData [13:03:40]SAM_PROTO_SignData [13:03:40]wFMCommunicate request_size=4 [13:03:40]MH_SAM_APDU [13:03:40]CAPDU: 80 0D 01 02 [13:03:40]Write to MH i2c: E2 08 00 76 4A 80 0D 01 02 00 00 00 00 39 [13:03:40]Write i2c OK [13:03:40]MH_I2C_Read... [13:03:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:03:40]Read from MH i2c: E2 [13:03:40]MH_I2C_Read... [13:03:40]Read from MH i2c: E2 03 00 [13:03:40]MH_I2C_Read... [13:03:40]Read from MH i2c: E2 03 00 76 4A 00 90 00 34 [13:03:40]RAPDU: 90 00 [13:03:40]wFMCommunicate OK [13:03:40]wFMCommunicate request_size=255 [13:03:40]MH_SAM_APDU [13:03:40]CAPDU: 80 0D 02 02 FA 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 32 30 30 30 30 33 39 32 31 30 30 35 30 06 04 35 00 D0 90 D0 9A D0 A6 D0 98 D0 AF 20 D0 A4 D1 80 D0 B5 D0 BD D1 87 2D D0 B4 D0 BE D0 B3 20 53 69 62 20 D0 B3 D0 BE D0 B2 D1 8F D0 B6 D1 8C D1 8F 20 31 38 30 D0 B3 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 29 00 00 00 F4 03 04 00 36 75 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 [13:03:40]Write to MH i2c: E2 02 01 77 4A 80 0D 02 02 FA 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 32 30 30 30 30 33 39 32 31 30 30 35 30 06 04 35 00 D0 90 D0 9A D0 A6 D0 98 D0 AF 20 D0 A4 D1 80 D0 B5 D0 BD D1 87 2D D0 B4 D0 BE D0 B3 20 53 69 62 20 D0 B3 D0 BE D0 B2 D1 8F D0 B6 D1 8C D1 8F 20 31 38 30 D0 B3 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 29 00 00 00 F4 03 04 00 36 75 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 00 00 3B [13:03:40]Write i2c OK [13:03:40]MH_I2C_Read... [13:03:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:03:40]Read from MH i2c: E2 [13:03:40]MH_I2C_Read... [13:03:40]Read from MH i2c: E2 03 00 [13:03:40]MH_I2C_Read... [13:03:40]Read from MH i2c: E2 03 00 77 4A 00 90 00 35 [13:03:40]RAPDU: 90 00 [13:03:40]wFMCommunicate OK [13:03:40]wFMCommunicate request_size=54 [13:03:40]MH_SAM_APDU [13:03:40]CAPDU: 80 0D 02 02 31 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 94 B0 00 00 35 04 06 00 19 7C 28 EB 36 5B [13:03:40]Write to MH i2c: E2 39 00 78 4A 80 0D 02 02 31 00 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 94 B0 00 00 35 04 06 00 19 7C 28 EB 36 5B 00 00 E7 [13:03:40]Write i2c OK [13:03:40]MH_I2C_Read... [13:03:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:03:40]Read from MH i2c: E2 [13:03:40]MH_I2C_Read... [13:03:40]Read from MH i2c: E2 03 00 [13:03:40]MH_I2C_Read... [13:03:40]Read from MH i2c: E2 03 00 78 4A 00 90 00 36 [13:03:40]RAPDU: 90 00 [13:03:40]wFMCommunicate OK [13:03:40]wFMCommunicate request_size=4 [13:03:40]MH_SAM_APDU [13:03:40]CAPDU: 80 0D 03 02 [13:03:40]Write to MH i2c: E2 08 00 79 4A 80 0D 03 02 00 00 00 00 3E [13:03:40]Write i2c OK [13:03:40]MH_I2C_Read... [13:03:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:03:40]Read from MH i2c: E2 [13:03:40]MH_I2C_Read... [13:03:40]Read from MH i2c: E2 0B 00 [13:03:40]MH_I2C_Read... [13:03:40]Read from MH i2c: E2 0B 00 79 4A 00 CC 4F 3F 88 6D A5 2B BF 90 00 1D [13:03:40]RAPDU: CC 4F 3F 88 6D A5 2B BF 90 00 [13:03:40]wFMCommunicate OK [13:03:40]SAM_PROTO_SignData done [13:03:40]FM_MakeSignedData done [13:03:40]CreateOFDProtocolMessage [13:03:40]wFMCommunicate request_size=4 [13:03:40]MH_SAM_APDU [13:03:40]CAPDU: 80 11 00 00 [13:03:40]Write to MH i2c: E2 08 00 7A 4A 80 11 00 00 00 00 00 00 3E [13:03:40]Write i2c OK [13:03:40]MH_I2C_Read... [13:03:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:03:40]Read from MH i2c: E2 [13:03:40]MH_I2C_Read... [13:03:40]Read from MH i2c: E2 17 00 [13:03:40]MH_I2C_Read... [13:03:40]Read from MH i2c: E2 17 00 7A 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 9A [13:03:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [13:03:40]wFMCommunicate OK [13:03:40]CreateOFDProtocolMessage done [13:03:40]OFDSenderStorePacket 45204 [13:03:40]StoreOFDPacket docnum=45204 [13:03:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 3B 01 00 00 9B 44 33 01 89 FE 5A 03 01 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 32 30 30 30 30 33 39 32 31 30 30 35 30 06 04 35 00 D0 90 D0 9A D0 A6 D0 98 D0 AF 20 D0 A4 D1 80 D0 B5 D0 BD D1 87 2D D0 B4 D0 BE D0 B3 20 53 69 62 20 D0 B3 D0 BE D0 B2 D1 8F D0 B6 D1 8C D1 8F 20 31 38 30 D0 B3 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 29 00 00 00 F4 03 04 00 36 75 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 94 B0 00 00 35 04 06 00 19 7C 28 EB 36 5B CC 4F 3F 88 6D A5 2B BF [13:03:40]CheckFolder [13:03:40]dirname=/storage/ofd_packets [13:03:40]CheckFolder done [13:03:40]ProducePacketName [13:03:40]name=ofd_packets/00045204 [13:03:40]NVStorageSaveData ofd_packets/00045204 [13:03:40]File name is /storage/ofd_packets/00045204 [13:03:40]Write 345 bytes [13:03:40]NVStorageSaveData done [13:03:40]OFDSenderStorePacket done [13:03:40]KKMCreateOFDPacket done [13:03:40]NVStorageSaveData kkm_last_timestamp [13:03:40]File name is /storage/kkm_last_timestamp [13:03:40]Write 4 bytes [13:03:40]NVStorageSaveData done [13:03:40]ExternCall_PrintAddStr [13:03:40]wPrintStart [13:03:40]Write to MH i2c: 01 00 00 7B 4A C5 [13:03:40]Write i2c OK [13:03:40]MH_I2C_Read... [13:03:40]Read from MH i2c: 01 [13:03:40]MH_I2C_Read... [13:03:40]Read from MH i2c: 01 07 00 [13:03:40]MH_I2C_Read... [13:03:40]Read from MH i2c: 01 07 00 7B 4A 00 00 00 00 00 FF 0F DA [13:03:40]RasterBufferAndPrint [13:03:40]line Счет N : (3)184169 [13:03:40]line ИНН: 02508201610067 [13:03:40]line Контрольно-Кассовый Чек [13:03:40]line ПРОДАЖА [13:03:40]line Товар: 2000039210050 [13:03:40]line АКЦИЯ Френч-дог Sib говяжья 180г [13:03:40]line 1.000 * 130.00 [13:03:40]line = 130.00 [13:03:40]line НДС 12% НСП 1% [13:03:40]line > о реализуемом товаре [13:03:40]line ИТОГО: 130.00 [13:03:40]line НСП 1% : 1.15 [13:03:40]line НДС 12% : 13.80 [13:03:40]line Наличными: 130.00 [13:03:40]line Безнал.: 0.00 [13:03:40]line Место: АЗС № 25 "Партнер Нефть" [13:03:40]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [13:03:40]line СНО: Общий режим [13:03:40]line Чек 41 03.03.2024 13:03 [13:03:40]line Смена: 331 ФФД: 1.0 [13:03:40]line ЗНМ: 0300000013 [13:03:40]line РНМ: 0000000000090572 [13:03:40]line Версия ККМ: 001 [13:03:40]line ФМ: 0000000000874796 [13:03:40]line ФД: 45204 [13:03:40]line ФПД: 28021053142619 [13:03:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T130350&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45204&fm=28021053142619&tin=02508201610067®Number=0000000000090572&sum=13000 [13:03:41]line 0 [13:03:41]OFD Sender: Processing packet 45204 [packets to send 17, broken 16] [13:03:41]ProducePacketName [13:03:41]name=ofd_packets/00045204 [13:03:41]OFD Sender: To server: pG, [13:03:41]CommunicateWithHost lk.salyk.kg:30040 [13:03:41]ConnectInit lk.salyk.kg [13:03:41]written 0, free lines is 4095 [13:03:41]Connected sock=10 [13: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 34 37 39 36 3B 01 00 00 9B 44 33 01 89 FE 5A 03 01 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 32 30 30 30 30 33 39 32 31 30 30 35 30 06 04 35 00 D0 90 D0 9A D0 A6 D0 98 D0 AF 20 D0 A4 D1 80 D0 B5 D0 BD D1 87 2D D0 B4 D0 BE D0 B3 20 53 69 62 20 D0 B3 D0 BE D0 B2 D1 8F D0 B6 D1 8C D1 8F 20 31 38 30 D0 B3 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 29 00 00 00 F4 03 04 00 36 75 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 94 B0 00 00 35 04 06 00 19 7C 28 EB 36 5B CC 4F 3F 88 6D A5 2B BF [13:03:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 E1 2D 47 00 B0 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 34 37 39 36 10 04 04 00 94 B0 00 00 F4 03 04 00 FB 20 E4 65 B6 04 01 00 00 15 56 DC 81 3F 84 C2 C0 [13:03:41]CommunicateWithHost err = 0 [13:03:41]CheckOFDResponse [13:03:41]1017 (14) - 77093643461234 [13:03:41]1041 (16) - 0000000000874796 [13:03:41]1040 (4) - 45204 [13:03:41]1012 (4) - 03.03.2024 07:04 [13:03:41]1206 (1) - 0 [13:03:41]OFD Sender: Remove packet 45204 [13:03:41]ProducePacketName [13:03:41]name=ofd_packets/00045204 [13:03:41]NVStorageDeleteData [13:03:41]Write to MH i2c: 01 00 00 A4 4A EE [13:03:41]Write i2c OK [13:03:41]MH_I2C_Read... [13:03:41]Read from MH i2c: 01 [13:03:41]MH_I2C_Read... [13:03:41]Read from MH i2c: 01 07 00 [13:03:41]MH_I2C_Read... [13:03:41]Read from MH i2c: 01 07 00 A4 4A 00 00 00 00 00 F7 0C F8 [13:03:41]RasterBufferAndPrint [13:03:41]line [13:03:41]line [13:03:41]line [13:03:41]line [13:03:41]line [13:03:41]written 0, free lines is 3325 [13:03:41]MH_Cut [13:03:41]Write to MH i2c: D1 01 00 AB 4A 01 C7 [13:03:41]Write i2c OK [13:03:41]MH_I2C_Read... [13:03:41]Read from MH i2c: D1 [13:03:41]MH_I2C_Read... [13:03:41]Read from MH i2c: D1 01 00 [13:03:41]MH_I2C_Read... [13:03:41]Read from MH i2c: D1 01 00 AB 4A 00 C6 [13:03:41]Write to MH i2c: 01 00 00 AC 4A F6 [13:03:41]Write i2c OK [13:03:41]MH_I2C_Read... [13:03:41]OFD Sender: No OFD packet to send [13:03:42]*** Cut start [13:03:42]*** Purtial cut [13:03:42]*** Stage 1: CUTSNS_PIN = 1 [13:03:44]Read from MH i2c: 01 [13:03:44]MH_I2C_Read... [13:03:44]*** Stop cut motor [13:03:44]*** Cut end [13:03:44]Read from MH i2c: 01 07 00 [13:03:44]MH_I2C_Read... [13:03:44]Read from MH i2c: 01 07 00 AC 4A 00 00 00 00 00 FF 0F 0B [13:03:44]process_action close_receipt done [13:03:44]requested_data is exist [13:03:44]produce_requested_data [13:03:44]requested_item fm.sn is exist - process it [13:03:44]wFMCommunicate request_size=4 [13:03:44]MH_SAM_APDU [13:03:44]CAPDU: 80 11 00 00 [13:03:44]Write to MH i2c: E2 08 00 AD 4A 80 11 00 00 00 00 00 00 71 [13:03:44]Write i2c OK [13:03:44]MH_I2C_Read... [13:03:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:03:44]Read from MH i2c: E2 [13:03:44]MH_I2C_Read... [13:03:44]Read from MH i2c: E2 17 00 [13:03:44]MH_I2C_Read... [13:03:44]Read from MH i2c: E2 17 00 AD 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 CD [13:03:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [13:03:44]wFMCommunicate OK [13:03:44]requested_item fd.num is exist - process it [13:03:44]SAM_PROTO_GetFieldsCounters [13:03:44]wFMCommunicate request_size=4 [13:03:44]MH_SAM_APDU [13:03:44]CAPDU: 80 13 00 00 [13:03:44]Write to MH i2c: E2 08 00 AE 4A 80 13 00 00 00 00 00 00 74 [13:03:44]Write i2c OK [13:03:44]MH_I2C_Read... [13:03:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:03:44]Read from MH i2c: E2 [13:03:44]MH_I2C_Read... [13:03:44]Read from MH i2c: E2 62 00 [13:03:44]MH_I2C_Read... [13:03:44]Read from MH i2c: E2 62 00 AE 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 94 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 A7 [13:03:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 94 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:03:44]wFMCommunicate OK [13:03:44]SAM_PROTO_GetFieldsCounters done [13:03:44]requested_item shift.num is exist - process it [13:03:44]requested_item shift.opened is exist - process it [13:03:44]req_shift_opened [13:03:44]FM_GetShiftState [13:03:44]SAM_PROTO_GetShiftState [13:03:44]wFMCommunicate request_size=4 [13:03:44]MH_SAM_APDU [13:03:44]CAPDU: 80 13 01 00 [13:03:44]Write to MH i2c: E2 08 00 AF 4A 80 13 01 00 00 00 00 00 76 [13:03:44]Write i2c OK [13:03:44]MH_I2C_Read... [13:03:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:03:44]Read from MH i2c: E2 [13:03:44]MH_I2C_Read... [13:03:44]Read from MH i2c: E2 0E 00 [13:03:44]MH_I2C_Read... [13:03:44]Read from MH i2c: E2 0E 00 AF 4A 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 AC [13:03:44]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [13:03:44]wFMCommunicate OK [13:03:44]SAM_PROTO_GetShiftState done [13:03:44]FM_GetShiftState done [13:03:44]req_shift_opened done [13:03:44]requested_item shift.open_date is exist - process it [13:03:44]req_shift_open_date [13:03:44]req_shift_open_date done [13:03:44]produce_requested_data done [13:03:44]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45204,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [13:03:44]process_action_free close_receipt [13:03:44]json_value_free [13:03:44]json_value_free done [13:03:44]process_json_proto returns [13:03:44]Send response to host [13:03:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45204,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [13:03:44]free response buf [13:03:44]execute_script done [13:03:44]execute_script returns [13:03:44]free content buf [13:03:44]Sock 9.Close socket [13:03:44]Sock 9.Thread stoped [13:03:46]OFD Sender: No OFD packet to send [13:03:51]OFD Sender: No OFD packet to send [13:03:56]OFD Sender: No OFD packet to send [13:04:01]OFD Sender: No OFD packet to send [13:04:06]OFD Sender: No OFD packet to send [13:04:11]OFD Sender: No OFD packet to send [13:04:16]OFD Sender: No OFD packet to send [13:04:21]OFD Sender: No OFD packet to send [13:04:26]OFD Sender: No OFD packet to send [13:04:31]OFD Sender: No OFD packet to send [13:04:36]OFD Sender: No OFD packet to send [13:04:41]OFD Sender: No OFD packet to send [13:04:46]OFD Sender: No OFD packet to send [13:04:51]OFD Sender: No OFD packet to send [13:04:57]OFD Sender: No OFD packet to send [13:05:02]OFD Sender: No OFD packet to send [13:05:07]OFD Sender: No OFD packet to send [13:05:12]OFD Sender: No OFD packet to send [13:05:17]OFD Sender: No OFD packet to send [13:05:22]OFD Sender: No OFD packet to send [13:05:27]OFD Sender: No OFD packet to send [13:05:32]OFD Sender: No OFD packet to send [13:05:37]OFD Sender: No OFD packet to send [13:05:42]OFD Sender: No OFD packet to send [13:05:47]OFD Sender: No OFD packet to send [13:05:52]OFD Sender: No OFD packet to send [13:05:57]OFD Sender: No OFD packet to send [13:06:02]OFD Sender: No OFD packet to send [13:06:07]OFD Sender: No OFD packet to send [13:06:12]OFD Sender: No OFD packet to send [13:06:17]OFD Sender: No OFD packet to send [13:06:22]OFD Sender: No OFD packet to send [13:06:27]OFD Sender: No OFD packet to send [13:06:32]OFD Sender: No OFD packet to send [13:06:37]OFD Sender: No OFD packet to send [13:06:42]OFD Sender: No OFD packet to send [13:06:47]OFD Sender: No OFD packet to send [13:06:52]OFD Sender: No OFD packet to send [13:06:57]OFD Sender: No OFD packet to send [13:07:02]OFD Sender: No OFD packet to send [13:07:07]OFD Sender: No OFD packet to send [13:07:12]OFD Sender: No OFD packet to send [13:07:17]OFD Sender: No OFD packet to send [13:07:22]OFD Sender: No OFD packet to send [13:07:27]OFD Sender: No OFD packet to send [13:07:32]OFD Sender: No OFD packet to send [13:07:37]OFD Sender: No OFD packet to send [13:07:42]OFD Sender: No OFD packet to send [13:07:47]OFD Sender: No OFD packet to send [13:07:52]OFD Sender: No OFD packet to send [13:07:57]OFD Sender: No OFD packet to send [13:08:02]OFD Sender: No OFD packet to send [13:08:07]OFD Sender: No OFD packet to send [13:08:12]OFD Sender: No OFD packet to send [13:08:17]OFD Sender: No OFD packet to send [13:08:22]OFD Sender: No OFD packet to send [13:08:27]OFD Sender: No OFD packet to send [13:08:32]OFD Sender: No OFD packet to send [13:08:37]OFD Sender: No OFD packet to send [13:08:42]OFD Sender: No OFD packet to send [13:08:47]OFD Sender: No OFD packet to send [13:08:52]OFD Sender: No OFD packet to send [13:08:57]OFD Sender: No OFD packet to send [13:09:02]OFD Sender: No OFD packet to send [13:09:07]OFD Sender: No OFD packet to send [13:09:12]OFD Sender: No OFD packet to send [13:09:17]OFD Sender: No OFD packet to send [13:09:22]OFD Sender: No OFD packet to send [13:09:27]OFD Sender: No OFD packet to send [13:09:32]OFD Sender: No OFD packet to send [13:09:37]OFD Sender: No OFD packet to send [13:09:42]OFD Sender: No OFD packet to send [13:09:47]OFD Sender: No OFD packet to send [13:09:52]OFD Sender: No OFD packet to send [13:09:57]OFD Sender: No OFD packet to send [13:10:02]OFD Sender: No OFD packet to send [13:10:07]OFD Sender: No OFD packet to send [13:10:12]OFD Sender: No OFD packet to send [13:10:17]OFD Sender: No OFD packet to send [13:10:22]OFD Sender: No OFD packet to send [13:10:27]OFD Sender: No OFD packet to send [13:10:32]OFD Sender: No OFD packet to send [13:10:37]OFD Sender: No OFD packet to send [13:10:42]OFD Sender: No OFD packet to send [13:10:47]OFD Sender: No OFD packet to send [13:10:52]OFD Sender: No OFD packet to send [13:10:57]OFD Sender: No OFD packet to send [13:11:02]OFD Sender: No OFD packet to send [13:11:07]OFD Sender: No OFD packet to send [13:11:12]OFD Sender: No OFD packet to send [13:11:17]OFD Sender: No OFD packet to send [13:11:22]OFD Sender: No OFD packet to send [13:11:27]OFD Sender: No OFD packet to send [13:11:32]OFD Sender: No OFD packet to send [13:11:37]OFD Sender: No OFD packet to send [13:11:42]OFD Sender: No OFD packet to send [13:11:47]OFD Sender: No OFD packet to send [13:11:52]OFD Sender: No OFD packet to send [13:11:57]OFD Sender: No OFD packet to send [13:12:02]OFD Sender: No OFD packet to send [13:12:07]OFD Sender: No OFD packet to send [13:12:12]OFD Sender: No OFD packet to send [13:12:17]OFD Sender: No OFD packet to send [13:12:22]OFD Sender: No OFD packet to send [13:12:27]OFD Sender: No OFD packet to send [13:12:32]OFD Sender: No OFD packet to send [13:12:37]accept exits with 7 [13:12:37]New connection [13:12:37]New thread 3067157860 created [13:12:37]Thread 3067014500 joined [13:12:37]Waiting for new connection... [13:12:37] Sock 7.Parse request [13:12:37]Sock 7.Check first char [13:12:37]Sock 7.First char is OK [13:12:37]request: POST /json_proto HTTP/1.0 [13:12:37]Method: POST [13:12:37]URL: /json_proto [13:12:37]Method is POST - this is cgi request [13:12:37]url: /json_proto [13:12:37]query_string will be loaded in cgi processing [13:12:37]execute_cgi json_proto POST (null) [13:12:37]execute_cgi path=json_proto method=POST [13:12:37]POST find Content-Length [13:12:37]Host: 172.17.48.198:8080 [13:12:37]Content-Length: 838 [13:12:37]Content-Type: application/json [13:12:37] [13:12:37]POST finish read [13:12:37]Found Content-Length = 838 [13:12:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184170", "tax_sys" : 0, "items" : [ { "code": "6931280300549", "name": "\u0417\u0430\u0436\u0438\u0433\u0430\u043B\u043A\u0430 Cricket \u041F\u041D \u043F\u044C\u0435\u0437\u043E", "price" : 67.00, "quantity" : 1.000, "sum" : 67.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 67.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:12:37]execute_script... [13:12:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184170", "tax_sys" : 0, "items" : [ { "code": "6931280300549", "name": "\u0417\u0430\u0436\u0438\u0433\u0430\u043B\u043A\u0430 Cricket \u041F\u041D \u043F\u044C\u0435\u0437\u043E", "price" : 67.00, "quantity" : 1.000, "sum" : 67.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 67.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:12:37]POST & json_proto [13:12:37]process_json_proto [13:12:37]json parsed OK: [13:12:37]protocol is kg_v1.0 [13:12:37]action value=close_receipt [13:12:37]process_action close_receipt [13:12:37]cmd_close_receipt [13:12:37]MH_GetDate [13:12:37]Write to MH i2c: F0 00 00 B0 4A E9 [13:12:37]Write i2c OK [13:12:37]MH_I2C_Read... [13:12:37]Read from MH i2c: F0 [13:12:37]MH_I2C_Read... [13:12:37]Read from MH i2c: F0 09 00 [13:12:37]MH_I2C_Read... [13:12:37]Read from MH i2c: F0 09 00 B0 4A 00 50 77 E4 65 CE C4 D4 65 CD [13:12:37]GetLastDocTimeStamp 1709471030 [13:12:37]current date 1709471568 [13:12:37]FM_GetShiftState [13:12:37]SAM_PROTO_GetShiftState [13:12:37]wFMCommunicate request_size=4 [13:12:37]MH_SAM_APDU [13:12:37]CAPDU: 80 13 01 00 [13:12:37]Write to MH i2c: E2 08 00 B1 4A 80 13 01 00 00 00 00 00 78 [13:12:37]Write i2c OK [13:12:37]MH_I2C_Read... [13:12:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:37]Read from MH i2c: E2 [13:12:37]MH_I2C_Read... [13:12:37]Read from MH i2c: E2 0E 00 [13:12:37]MH_I2C_Read... [13:12:37]Read from MH i2c: E2 0E 00 B1 4A 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 AE [13:12:37]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [13:12:37]wFMCommunicate OK [13:12:37]SAM_PROTO_GetShiftState done [13:12:37]FM_GetShiftState done [13:12:37]opened in 1709425694 [13:12:37]opened+sec_in_day 1709512094 [13:12:37]quantity*price = 6700 [13:12:37]sum+1 = 6701 [13:12:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 67.00 НСП 1% : 0.59 НДС 12% : 7.11 Наличными: 0.00 Безнал.: 67.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 42 03.03.2024 13:12 Смена: 331 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874796 ФД: 45205 ФПД: 124413139584714 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T131248&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45205&fm=124413139584714&tin=02508201610067®Number=0000000000090572&sum=6700 0 [13:12:38]StoreToDocumentArchive [13:12:38]shift 331 fd 45205 [13:12:38]save to /storage/0331/doc_00045205 [13:12:38]save last doc name /storage/0331/doc_00045205 to /storage/kkm_last_doc_name [13:12:38]save OK [13:12:38]Clear old archive folders... [13:12:38]ProcessDocumentItem done err = 0, tmpTLVsize=284 [13:12:38]tlvbuf is 01B2FC70 [13:12:38]SAM_PROTO_ClearQueue [13:12:38]wFMCommunicate request_size=4 [13:12:38]MH_SAM_APDU [13:12:38]CAPDU: 80 09 00 00 [13:12:38]Write to MH i2c: E2 08 00 BE 4A 80 09 00 00 00 00 00 00 7A [13:12:38]Write i2c OK [13:12:38]MH_I2C_Read... [13:12:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:12:38]Read from MH i2c: E2 [13:12:38]MH_I2C_Read... [13:12:38]Read from MH i2c: E2 03 00 [13:12:38]MH_I2C_Read... [13:12:38]Read from MH i2c: E2 03 00 BE 4A 00 90 00 7C [13:12:38]RAPDU: 90 00 [13:12:38]wFMCommunicate OK [13:12:38]SAM_PROTO_ClearQueue done [13:12:38]KKMCreateOFDPacket [13:12:38]OFDProtocolAddRootSTLVToBuf [13:12:38]FM_MakeSignedData [13:12:38]FM_MakeSignedData [13:12:38]SAM_PROTO_SignData [13:12:38]wFMCommunicate request_size=4 [13:12:38]MH_SAM_APDU [13:12:38]CAPDU: 80 0D 01 02 [13:12:38]Write to MH i2c: E2 08 00 BF 4A 80 0D 01 02 00 00 00 00 82 [13:12:38]Write i2c OK [13:12:38]MH_I2C_Read... [13:12:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:12:38]Read from MH i2c: E2 [13:12:38]MH_I2C_Read... [13:12:38]Read from MH i2c: E2 03 00 [13:12:38]MH_I2C_Read... [13:12:38]Read from MH i2c: E2 03 00 BF 4A 00 90 00 7D [13:12:38]RAPDU: 90 00 [13:12:38]wFMCommunicate OK [13:12:38]wFMCommunicate request_size=255 [13:12:38]MH_SAM_APDU [13:12:38]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 1A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 50 77 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 [13:12:38]Write to MH i2c: E2 02 01 C0 4A 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 1A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 50 77 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 00 00 27 [13:12:38]Write i2c OK [13:12:38]MH_I2C_Read... [13:12:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:12:38]Read from MH i2c: E2 [13:12:38]MH_I2C_Read... [13:12:38]Read from MH i2c: E2 03 00 [13:12:38]MH_I2C_Read... [13:12:38]Read from MH i2c: E2 03 00 C0 4A 00 90 00 7E [13:12:38]RAPDU: 90 00 [13:12:38]wFMCommunicate OK [13:12:38]wFMCommunicate request_size=43 [13:12:38]MH_SAM_APDU [13:12:38]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 95 B0 00 00 35 04 06 00 71 27 30 FD 86 CA [13:12:38]Write to MH i2c: E2 2E 00 C1 4A 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 95 B0 00 00 35 04 06 00 71 27 30 FD 86 CA 00 00 D0 [13:12:38]Write i2c OK [13:12:38]MH_I2C_Read... [13:12:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:12:38]Read from MH i2c: E2 [13:12:38]MH_I2C_Read... [13:12:38]Read from MH i2c: E2 03 00 [13:12:38]MH_I2C_Read... [13:12:38]Read from MH i2c: E2 03 00 C1 4A 00 90 00 7F [13:12:38]RAPDU: 90 00 [13:12:38]wFMCommunicate OK [13:12:38]wFMCommunicate request_size=4 [13:12:38]MH_SAM_APDU [13:12:38]CAPDU: 80 0D 03 02 [13:12:38]Write to MH i2c: E2 08 00 C2 4A 80 0D 03 02 00 00 00 00 87 [13:12:38]Write i2c OK [13:12:38]MH_I2C_Read... [13:12:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:12:38]Read from MH i2c: E2 [13:12:38]MH_I2C_Read... [13:12:38]Read from MH i2c: E2 0B 00 [13:12:38]MH_I2C_Read... [13:12:38]Read from MH i2c: E2 0B 00 C2 4A 00 09 0C 0A 5C FB 85 27 8F 90 00 39 [13:12:38]RAPDU: 09 0C 0A 5C FB 85 27 8F 90 00 [13:12:38]wFMCommunicate OK [13:12:38]SAM_PROTO_SignData done [13:12:38]FM_MakeSignedData done [13:12:38]CreateOFDProtocolMessage [13:12:38]wFMCommunicate request_size=4 [13:12:38]MH_SAM_APDU [13:12:38]CAPDU: 80 11 00 00 [13:12:38]Write to MH i2c: E2 08 00 C3 4A 80 11 00 00 00 00 00 00 87 [13:12:38]Write i2c OK [13:12:38]MH_I2C_Read... [13:12:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:12:38]Read from MH i2c: E2 [13:12:38]MH_I2C_Read... [13:12:38]Read from MH i2c: E2 17 00 [13:12:38]MH_I2C_Read... [13:12:38]Read from MH i2c: E2 17 00 C3 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 E3 [13:12:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [13:12:38]wFMCommunicate OK [13:12:38]CreateOFDProtocolMessage done [13:12:38]OFDSenderStorePacket 45205 [13:12:38]StoreOFDPacket docnum=45205 [13:12:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 30 01 00 00 1D 78 28 01 AD E5 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 1A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 50 77 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 95 B0 00 00 35 04 06 00 71 27 30 FD 86 CA 09 0C 0A 5C FB 85 27 8F [13:12:38]CheckFolder [13:12:38]dirname=/storage/ofd_packets [13:12:38]CheckFolder done [13:12:38]ProducePacketName [13:12:38]name=ofd_packets/00045205 [13:12:38]NVStorageSaveData ofd_packets/00045205 [13:12:38]File name is /storage/ofd_packets/00045205 [13:12:38]Write 334 bytes [13:12:38]NVStorageSaveData done [13:12:38]OFDSenderStorePacket done [13:12:38]KKMCreateOFDPacket done [13:12:38]NVStorageSaveData kkm_last_timestamp [13:12:38]File name is /storage/kkm_last_timestamp [13:12:38]Write 4 bytes [13:12:38]NVStorageSaveData done [13:12:38]ExternCall_PrintAddStr [13:12:38]wPrintStart [13:12:38]Write to MH i2c: 01 00 00 C4 4A 0E [13:12:38]OFD Sender: Processing packet 45205 [packets to send 17, broken 16] [13:12:38]ProducePacketName [13:12:38]name=ofd_packets/00045205 [13:12:38]OFD Sender: To server: pG, [13:12:38]CommunicateWithHost lk.salyk.kg:30040 [13:12:38]ConnectInit lk.salyk.kg [13:12:38]Write i2c OK [13:12:38]MH_I2C_Read... [13:12:38]Read from MH i2c: 01 [13:12:38]MH_I2C_Read... [13:12:38]Read from MH i2c: 01 07 00 [13:12:38]MH_I2C_Read... [13:12:38]Read from MH i2c: 01 07 00 C4 4A 00 00 00 00 00 FF 0F 23 [13:12:38]RasterBufferAndPrint [13:12:38]line Счет N : (3)184170 [13:12:38]line ИНН: 02508201610067 [13:12:38]line Контрольно-Кассовый Чек [13:12:38]line ПРОДАЖА [13:12:38]line Товар: 6931280300549 [13:12:38]line Зажигалка Cricket ПН пьезо [13:12:38]line 1.000 * 67.00 [13:12:38]line = 67.00 [13:12:38]line НДС 12% НСП 1% [13:12:38]line > о реализуемом товаре [13:12:38]line ИТОГО: 67.00 [13:12:38]line НСП 1% : 0.59 [13:12:38]line НДС 12% : 7.11 [13:12:38]line Наличными: 0.00 [13:12:38]line Безнал.: 67.00 [13:12:38]line Место: АЗС № 25 "Партнер Нефть" [13:12:38]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [13:12:38]line СНО: Общий режим [13:12:38]line Чек 42 03.03.2024 13:12 [13:12:38]line Смена: 331 ФФД: 1.0 [13:12:38]line ЗНМ: 0300000013 [13:12:38]line РНМ: 0000000000090572 [13:12:38]line Версия ККМ: 001 [13:12:38]line Платежная система: Бакай Банк [13:12:38]line ФМ: 0000000000874796 [13:12:38]line ФД: 45205 [13:12:38]line ФПД: 124413139584714 [13:12:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T131248&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45205&fm=124413139584714&tin=02508201610067®Number=0000000000090572&sum=6700 [13:12:39]line 0 [13:12:39]written 0, free lines is 4095 [13:12:39]Write to MH i2c: 01 00 00 EE 4A 38 [13:12:39]Write i2c OK [13:12:39]MH_I2C_Read... [13:12:39]Read from MH i2c: 01 [13:12:39]MH_I2C_Read... [13:12:39]Read from MH i2c: 01 07 00 [13:12:39]MH_I2C_Read... [13:12:39]Read from MH i2c: 01 07 00 EE 4A 00 00 00 00 00 EC 0C 37 [13:12:39]RasterBufferAndPrint [13:12:39]line [13:12:39]line [13:12:39]line [13:12:39]line [13:12:39]line [13:12:39]written 0, free lines is 3313 [13:12:39]MH_Cut [13:12:39]Write to MH i2c: D1 01 00 F5 4A 01 11 [13:12:39]Write i2c OK [13:12:39]MH_I2C_Read... [13:12:39]Read from MH i2c: D1 [13:12:39]MH_I2C_Read... [13:12:39]Read from MH i2c: D1 01 00 [13:12:39]MH_I2C_Read... [13:12:39]Read from MH i2c: D1 01 00 F5 4A 00 10 [13:12:39]Write to MH i2c: 01 00 00 F6 4A 40 [13:12:39]Write i2c OK [13:12:39]MH_I2C_Read... [13:12:40]*** Cut start [13:12:40]*** Purtial cut [13:12:40]*** Stage 1: CUTSNS_PIN = 1 [13:12:42]Read from MH i2c: 01 [13:12:42]MH_I2C_Read... [13:12:42]*** Stop cut motor [13:12:42]*** Cut end [13:12:42]Read from MH i2c: 01 07 00 [13:12:42]MH_I2C_Read... [13:12:42]Read from MH i2c: 01 07 00 F6 4A 00 00 00 00 00 FF 0F 55 [13:12:42]process_action close_receipt done [13:12:42]requested_data is exist [13:12:42]produce_requested_data [13:12:42]requested_item fm.sn is exist - process it [13:12:42]wFMCommunicate request_size=4 [13:12:42]MH_SAM_APDU [13:12:42]CAPDU: 80 11 00 00 [13:12:42]Write to MH i2c: E2 08 00 F7 4A 80 11 00 00 00 00 00 00 BB [13:12:42]Write i2c OK [13:12:42]MH_I2C_Read... [13:12:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:12:42]Read from MH i2c: E2 [13:12:42]MH_I2C_Read... [13:12:42]Read from MH i2c: E2 17 00 [13:12:42]MH_I2C_Read... [13:12:42]Read from MH i2c: E2 17 00 F7 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 17 [13:12:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [13:12:42]wFMCommunicate OK [13:12:42]requested_item fd.num is exist - process it [13:12:42]SAM_PROTO_GetFieldsCounters [13:12:42]wFMCommunicate request_size=4 [13:12:42]MH_SAM_APDU [13:12:42]CAPDU: 80 13 00 00 [13:12:42]Write to MH i2c: E2 08 00 F8 4A 80 13 00 00 00 00 00 00 BE [13:12:42]Write i2c OK [13:12:42]MH_I2C_Read... [13:12:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:12:42]Read from MH i2c: E2 [13:12:42]MH_I2C_Read... [13:12:42]Read from MH i2c: E2 62 00 [13:12:42]MH_I2C_Read... [13:12:42]Read from MH i2c: E2 62 00 F8 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 95 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 F5 [13:12:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 95 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:12:42]wFMCommunicate OK [13:12:42]SAM_PROTO_GetFieldsCounters done [13:12:42]requested_item shift.num is exist - process it [13:12:42]requested_item shift.opened is exist - process it [13:12:42]req_shift_opened [13:12:42]FM_GetShiftState [13:12:42]SAM_PROTO_GetShiftState [13:12:42]wFMCommunicate request_size=4 [13:12:42]MH_SAM_APDU [13:12:42]CAPDU: 80 13 01 00 [13:12:42]Write to MH i2c: E2 08 00 F9 4A 80 13 01 00 00 00 00 00 C0 [13:12:42]Write i2c OK [13:12:42]MH_I2C_Read... [13:12:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:42]Read from MH i2c: E2 [13:12:42]MH_I2C_Read... [13:12:42]Read from MH i2c: E2 0E 00 [13:12:42]MH_I2C_Read... [13:12:42]Read from MH i2c: E2 0E 00 F9 4A 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 F6 [13:12:42]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [13:12:42]wFMCommunicate OK [13:12:42]SAM_PROTO_GetShiftState done [13:12:42]FM_GetShiftState done [13:12:42]req_shift_opened done [13:12:42]requested_item shift.open_date is exist - process it [13:12:42]req_shift_open_date [13:12:42]req_shift_open_date done [13:12:42]produce_requested_data done [13:12:42]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45205,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [13:12:42]process_action_free close_receipt [13:12:42]json_value_free [13:12:42]json_value_free done [13:12:42]process_json_proto returns [13:12:42]Send response to host [13:12:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45205,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [13:12:42]free response buf [13:12:42]execute_script done [13:12:42]execute_script returns [13:12:42]free content buf [13:12:42]Sock 7.Close socket [13:12:42]Sock 7.Thread stoped [13:12:59]accept exits with 9 [13:12:59]New connection [13:12:59]New thread 3067014500 created [13:12:59]Thread 3067157860 joined [13:12:59]Waiting for new connection... [13:12:59] Sock 9.Parse request [13:12:59]Sock 9.Check first char [13:12:59]Sock 9.First char is OK [13:12:59]request: POST /json_proto HTTP/1.0 [13:12:59]Method: POST [13:12:59]URL: /json_proto [13:12:59]Method is POST - this is cgi request [13:12:59]url: /json_proto [13:12:59]query_string will be loaded in cgi processing [13:12:59]execute_cgi json_proto POST (null) [13:12:59]execute_cgi path=json_proto method=POST [13:12:59]POST find Content-Length [13:12:59]Host: 172.17.48.198:8080 [13:12:59]Content-Length: 622 [13:12:59]Content-Type: application/json [13:12:59] [13:12:59]POST finish read [13:12:59]Found Content-Length = 622 [13:12:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184171", "tax_sys" : 0, "items" : [ { "code": "4640030091669", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange S", "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" ] } } [13:12:59]execute_script... [13:12:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184171", "tax_sys" : 0, "items" : [ { "code": "4640030091669", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange S", "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" ] } } [13:12:59]POST & json_proto [13:12:59]process_json_proto [13:12:59]json parsed OK: [13:12:59]protocol is kg_v1.0 [13:12:59]action value=close_receipt [13:12:59]process_action close_receipt [13:12:59]cmd_close_receipt [13:12:59]MH_GetDate [13:12:59]Write to MH i2c: F0 00 00 FA 4A 33 [13:12:59]Write i2c OK [13:12:59]MH_I2C_Read... [13:12:59]Read from MH i2c: F0 [13:12:59]MH_I2C_Read... [13:12:59]Read from MH i2c: F0 09 00 [13:12:59]MH_I2C_Read... [13:12:59]Read from MH i2c: F0 09 00 FA 4A 00 67 77 E4 65 CE C4 D4 65 2E [13:12:59]GetLastDocTimeStamp 1709471568 [13:12:59]current date 1709471591 [13:12:59]FM_GetShiftState [13:12:59]SAM_PROTO_GetShiftState [13:12:59]wFMCommunicate request_size=4 [13:12:59]MH_SAM_APDU [13:12:59]CAPDU: 80 13 01 00 [13:12:59]Write to MH i2c: E2 08 00 FB 4A 80 13 01 00 00 00 00 00 C2 [13:12:59]Write i2c OK [13:12:59]MH_I2C_Read... [13:13:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:13:00]Read from MH i2c: E2 [13:13:00]MH_I2C_Read... [13:13:00]Read from MH i2c: E2 0E 00 [13:13:00]MH_I2C_Read... [13:13:00]Read from MH i2c: E2 0E 00 FB 4A 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 F8 [13:13:00]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [13:13:00]wFMCommunicate OK [13:13:00]SAM_PROTO_GetShiftState done [13:13:00]FM_GetShiftState done [13:13:00]opened in 1709425694 [13:13:00]opened+sec_in_day 1709512094 [13:13:00]quantity*price = 13800 [13:13:00]sum+1 = 13801 [13:13:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 138.00 НСП 1% : 1.22 НДС 12% : 14.65 Наличными: 138.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 43 03.03.2024 13:13 Смена: 331 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 ФМ: 0000000000874796 ФД: 45206 ФПД: 85815322416215 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T131311&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45206&fm=85815322416215&tin=02508201610067®Number=0000000000090572&sum=13800 0 [13:13:01]StoreToDocumentArchive [13:13:01]shift 331 fd 45206 [13:13:01]save to /storage/0331/doc_00045206 [13:13:01]save last doc name /storage/0331/doc_00045206 to /storage/kkm_last_doc_name [13:13:01]save OK [13:13:01]Clear old archive folders... [13:13:01]ProcessDocumentItem done err = 0, tmpTLVsize=274 [13:13:01]tlvbuf is 01C443D0 [13:13:01]SAM_PROTO_ClearQueue [13:13:01]wFMCommunicate request_size=4 [13:13:01]MH_SAM_APDU [13:13:01]CAPDU: 80 09 00 00 [13:13:01]Write to MH i2c: E2 08 00 08 4B 80 09 00 00 00 00 00 00 C5 [13:13:01]Write i2c OK [13:13:01]MH_I2C_Read... [13:13:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:13:01]Read from MH i2c: E2 [13:13:01]MH_I2C_Read... [13:13:01]Read from MH i2c: E2 03 00 [13:13:01]MH_I2C_Read... [13:13:01]Read from MH i2c: E2 03 00 08 4B 00 90 00 C7 [13:13:01]RAPDU: 90 00 [13:13:01]wFMCommunicate OK [13:13:01]SAM_PROTO_ClearQueue done [13:13:01]KKMCreateOFDPacket [13:13:01]OFDProtocolAddRootSTLVToBuf [13:13:01]FM_MakeSignedData [13:13:01]FM_MakeSignedData [13:13:01]SAM_PROTO_SignData [13:13:01]wFMCommunicate request_size=4 [13:13:01]MH_SAM_APDU [13:13:01]CAPDU: 80 0D 01 02 [13:13:01]Write to MH i2c: E2 08 00 09 4B 80 0D 01 02 00 00 00 00 CD [13:13:01]Write i2c OK [13:13:01]MH_I2C_Read... [13:13:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:13:01]Read from MH i2c: E2 [13:13:01]MH_I2C_Read... [13:13:01]Read from MH i2c: E2 03 00 [13:13:01]MH_I2C_Read... [13:13:01]Read from MH i2c: E2 03 00 09 4B 00 90 00 C8 [13:13:01]RAPDU: 90 00 [13:13:01]wFMCommunicate OK [13:13:01]wFMCommunicate request_size=255 [13:13:01]MH_SAM_APDU [13:13:01]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 36 39 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 53 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 2B 00 00 00 F4 03 04 00 67 77 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 [13:13:01]Write to MH i2c: E2 02 01 0A 4B 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 36 39 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 53 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 2B 00 00 00 F4 03 04 00 67 77 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 00 00 B2 [13:13:01]Write i2c OK [13:13:01]MH_I2C_Read... [13:13:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:13:01]Read from MH i2c: E2 [13:13:01]MH_I2C_Read... [13:13:01]Read from MH i2c: E2 03 00 [13:13:01]MH_I2C_Read... [13:13:01]Read from MH i2c: E2 03 00 0A 4B 00 90 00 C9 [13:13:01]RAPDU: 90 00 [13:13:01]wFMCommunicate OK [13:13:01]wFMCommunicate request_size=33 [13:13:01]MH_SAM_APDU [13:13:01]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 34 37 39 36 10 04 04 00 96 B0 00 00 35 04 06 00 4E 0C 6F CF 14 57 [13:13:01]Write to MH i2c: E2 24 00 0B 4B 80 0D 02 02 1C 00 30 30 30 30 38 37 34 37 39 36 10 04 04 00 96 B0 00 00 35 04 06 00 4E 0C 6F CF 14 57 00 00 B1 [13:13:01]Write i2c OK [13:13:01]MH_I2C_Read... [13:13:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:13:01]Read from MH i2c: E2 [13:13:01]MH_I2C_Read... [13:13:01]Read from MH i2c: E2 03 00 [13:13:01]MH_I2C_Read... [13:13:01]Read from MH i2c: E2 03 00 0B 4B 00 90 00 CA [13:13:01]RAPDU: 90 00 [13:13:01]wFMCommunicate OK [13:13:01]wFMCommunicate request_size=4 [13:13:01]MH_SAM_APDU [13:13:01]CAPDU: 80 0D 03 02 [13:13:01]Write to MH i2c: E2 08 00 0C 4B 80 0D 03 02 00 00 00 00 D2 [13:13:01]Write i2c OK [13:13:01]MH_I2C_Read... [13:13:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:13:01]Read from MH i2c: E2 [13:13:01]MH_I2C_Read... [13:13:01]Read from MH i2c: E2 0B 00 [13:13:01]MH_I2C_Read... [13:13:01]Read from MH i2c: E2 0B 00 0C 4B 00 67 AC F4 68 24 0C 3D 69 90 00 18 [13:13:01]RAPDU: 67 AC F4 68 24 0C 3D 69 90 00 [13:13:01]wFMCommunicate OK [13:13:01]SAM_PROTO_SignData done [13:13:01]FM_MakeSignedData done [13:13:01]CreateOFDProtocolMessage [13:13:01]wFMCommunicate request_size=4 [13:13:01]MH_SAM_APDU [13:13:01]CAPDU: 80 11 00 00 [13:13:01]Write to MH i2c: E2 08 00 0D 4B 80 11 00 00 00 00 00 00 D2 [13:13:01]Write i2c OK [13:13:01]MH_I2C_Read... [13:13:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:13:01]Read from MH i2c: E2 [13:13:01]MH_I2C_Read... [13:13:01]Read from MH i2c: E2 17 00 [13:13:01]MH_I2C_Read... [13:13:01]Read from MH i2c: E2 17 00 0D 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 2E [13:13:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [13:13:01]wFMCommunicate OK [13:13:01]CreateOFDProtocolMessage done [13:13:01]OFDSenderStorePacket 45206 [13:13:01]StoreOFDPacket docnum=45206 [13:13:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 26 01 00 00 1C 3C 1E 01 95 8E 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 36 39 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 53 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 2B 00 00 00 F4 03 04 00 67 77 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 96 B0 00 00 35 04 06 00 4E 0C 6F CF 14 57 67 AC F4 68 24 0C 3D 69 [13:13:01]CheckFolder [13:13:01]dirname=/storage/ofd_packets [13:13:01]CheckFolder done [13:13:01]ProducePacketName [13:13:01]name=ofd_packets/00045206 [13:13:01]NVStorageSaveData ofd_packets/00045206 [13:13:01]File name is /storage/ofd_packets/00045206 [13:13:01]Write 324 bytes [13:13:01]NVStorageSaveData done [13:13:01]OFDSenderStorePacket done [13:13:01]KKMCreateOFDPacket done [13:13:01]NVStorageSaveData kkm_last_timestamp [13:13:01]File name is /storage/kkm_last_timestamp [13:13:01]Write 4 bytes [13:13:01]NVStorageSaveData done [13:13:01]ExternCall_PrintAddStr [13:13:01]wPrintStart [13:13:01]Write to MH i2c: 01 00 00 0E 4B 59 [13:13:01]Write i2c OK [13:13:01]MH_I2C_Read... [13:13:01]Read from MH i2c: 01 [13:13:01]MH_I2C_Read... [13:13:01]Read from MH i2c: 01 07 00 [13:13:01]MH_I2C_Read... [13:13:01]Read from MH i2c: 01 07 00 0E 4B 00 00 00 00 00 FF 0F 6E [13:13:01]RasterBufferAndPrint [13:13:01]line Счет N : (3)184171 [13:13:01]line ИНН: 02508201610067 [13:13:01]line Контрольно-Кассовый Чек [13:13:01]line ПРОДАЖА [13:13:01]line Товар: 4640030091669 [13:13:01]line Сигареты ESSE Exchange S [13:13:01]line 1.000 * 138.00 [13:13:01]line = 138.00 [13:13:01]line НДС 12% НСП 1% [13:13:01]line > о реализуемом товаре [13:13:01]line ИТОГО: 138.00 [13:13:01]line НСП 1% : 1.22 [13:13:01]line НДС 12% : 14.65 [13:13:01]line Наличными: 138.00 [13:13:01]line Безнал.: 0.00 [13:13:01]line Место: АЗС № 25 "Партнер Нефть" [13:13:01]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [13:13:01]line СНО: Общий режим [13:13:01]line Чек 43 03.03.2024 13:13 [13:13:01]line Смена: 331 ФФД: 1.0 [13:13:01]line ЗНМ: 0300000013 [13:13:01]line РНМ: 0000000000090572 [13:13:01]line Версия ККМ: 001 [13:13:01]line ФМ: 0000000000874796 [13:13:01]line ФД: 45206 [13:13:01]line ФПД: 85815322416215 [13:13:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T131311&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45206&fm=85815322416215&tin=02508201610067®Number=0000000000090572&sum=13800 [13:13:02]line 0 [13:13:02]written 0, free lines is 4095 [13:13:02]Write to MH i2c: 01 00 00 36 4B 81 [13:13:02]Write i2c OK [13:13:02]MH_I2C_Read... [13:13:02]Read from MH i2c: 01 [13:13:02]MH_I2C_Read... [13:13:02]Read from MH i2c: 01 07 00 [13:13:02]MH_I2C_Read... [13:13:02]Read from MH i2c: 01 07 00 36 4B 00 00 00 00 00 04 0D 99 [13:13:02]RasterBufferAndPrint [13:13:02]line [13:13:02]line [13:13:02]line [13:13:02]line [13:13:02]line [13:13:02]written 0, free lines is 3340 [13:13:02]MH_Cut [13:13:02]Write to MH i2c: D1 01 00 3D 4B 01 5A [13:13:02]Write i2c OK [13:13:02]MH_I2C_Read... [13:13:02]Read from MH i2c: D1 [13:13:02]MH_I2C_Read... [13:13:02]Read from MH i2c: D1 01 00 [13:13:02]MH_I2C_Read... [13:13:02]Read from MH i2c: D1 01 00 3D 4B 00 59 [13:13:02]Write to MH i2c: 01 00 00 3E 4B 89 [13:13:02]Write i2c OK [13:13:02]MH_I2C_Read... [13:13:03]*** Cut start [13:13:03]*** Purtial cut [13:13:03]*** Stage 1: CUTSNS_PIN = 1 [13:13:05]Read from MH i2c: 01 [13:13:05]MH_I2C_Read... [13:13:05]*** Stop cut motor [13:13:05]*** Cut end [13:13:05]Read from MH i2c: 01 07 00 [13:13:05]MH_I2C_Read... [13:13:05]Read from MH i2c: 01 07 00 3E 4B 00 00 00 00 00 FF 0F 9E [13:13:05]process_action close_receipt done [13:13:05]requested_data is exist [13:13:05]produce_requested_data [13:13:05]requested_item fm.sn is exist - process it [13:13:05]wFMCommunicate request_size=4 [13:13:05]MH_SAM_APDU [13:13:05]CAPDU: 80 11 00 00 [13:13:05]Write to MH i2c: E2 08 00 3F 4B 80 11 00 00 00 00 00 00 04 [13:13:05]Write i2c OK [13:13:05]MH_I2C_Read... [13:13:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:13:05]Read from MH i2c: E2 [13:13:05]MH_I2C_Read... [13:13:05]Read from MH i2c: E2 17 00 [13:13:05]MH_I2C_Read... [13:13:05]Read from MH i2c: E2 17 00 3F 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 60 [13:13:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [13:13:05]wFMCommunicate OK [13:13:05]requested_item fd.num is exist - process it [13:13:05]SAM_PROTO_GetFieldsCounters [13:13:05]wFMCommunicate request_size=4 [13:13:05]MH_SAM_APDU [13:13:05]CAPDU: 80 13 00 00 [13:13:05]Write to MH i2c: E2 08 00 40 4B 80 13 00 00 00 00 00 00 07 [13:13:05]Write i2c OK [13:13:05]MH_I2C_Read... [13:13:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:13:05]Read from MH i2c: E2 [13:13:05]MH_I2C_Read... [13:13:05]Read from MH i2c: E2 62 00 [13:13:05]MH_I2C_Read... [13:13:05]Read from MH i2c: E2 62 00 40 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 96 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 42 [13:13:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 96 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:13:05]wFMCommunicate OK [13:13:05]SAM_PROTO_GetFieldsCounters done [13:13:05]requested_item shift.num is exist - process it [13:13:05]requested_item shift.opened is exist - process it [13:13:05]req_shift_opened [13:13:05]FM_GetShiftState [13:13:05]SAM_PROTO_GetShiftState [13:13:05]wFMCommunicate request_size=4 [13:13:05]MH_SAM_APDU [13:13:05]CAPDU: 80 13 01 00 [13:13:05]Write to MH i2c: E2 08 00 41 4B 80 13 01 00 00 00 00 00 09 [13:13:05]Write i2c OK [13:13:05]MH_I2C_Read... [13:13:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:13:05]Read from MH i2c: E2 [13:13:05]MH_I2C_Read... [13:13:05]Read from MH i2c: E2 0E 00 [13:13:05]MH_I2C_Read... [13:13:05]Read from MH i2c: E2 0E 00 41 4B 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 3F [13:13:05]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [13:13:05]wFMCommunicate OK [13:13:05]SAM_PROTO_GetShiftState done [13:13:05]FM_GetShiftState done [13:13:05]req_shift_opened done [13:13:05]requested_item shift.open_date is exist - process it [13:13:05]req_shift_open_date [13:13:05]req_shift_open_date done [13:13:05]produce_requested_data done [13:13:05]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45206,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [13:13:05]process_action_free close_receipt [13:13:05]json_value_free [13:13:05]json_value_free done [13:13:05]process_json_proto returns [13:13:05]Send response to host [13:13:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45206,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [13:13:05]free response buf [13:13:05]execute_script done [13:13:05]execute_script returns [13:13:05]free content buf [13:13:05]Sock 9.Close socket [13:13:05]Sock 9.Thread stoped [13:14:48]ConnectInit Can't connect to host [13:14:48]CommunicateWithHost connect error [13:14:48]CommunicateWithHost err = -1 [13:14:48]OFD Sender: Server communicate error [13:14:48]OFD Sender: Processing packet 45205 [packets to send 18, broken 16] [13:14:48]ProducePacketName [13:14:48]name=ofd_packets/00045205 [13:14:48]OFD Sender: To server: pG, [13:14:48]CommunicateWithHost lk.salyk.kg:30040 [13:14:48]ConnectInit lk.salyk.kg [13:14:48]Connected sock=9 [13:14:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 30 01 00 00 1D 78 28 01 AD E5 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 1A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 50 77 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 95 B0 00 00 35 04 06 00 71 27 30 FD 86 CA 09 0C 0A 5C FB 85 27 8F [13:14:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 AA 87 47 00 E0 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 95 B0 00 00 F4 03 04 00 96 23 E4 65 B6 04 01 00 00 10 CE 24 58 13 F0 5E 1B [13:14:48]CommunicateWithHost err = 0 [13:14:48]CheckOFDResponse [13:14:48]1017 (14) - 77093643461234 [13:14:48]1041 (16) - 0000000000874796 [13:14:48]1040 (4) - 45205 [13:14:48]1012 (4) - 03.03.2024 07:15 [13:14:48]1206 (1) - 0 [13:14:48]OFD Sender: Remove packet 45205 [13:14:48]ProducePacketName [13:14:48]name=ofd_packets/00045205 [13:14:48]NVStorageDeleteData [13:14:49]OFD Sender: Processing packet 45206 [packets to send 17, broken 16] [13:14:49]ProducePacketName [13:14:49]name=ofd_packets/00045206 [13:14:49]OFD Sender: To server: pG, [13:14:49]CommunicateWithHost lk.salyk.kg:30040 [13:14:49]ConnectInit lk.salyk.kg [13:14:49]Connected sock=9 [13:14:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 26 01 00 00 1C 3C 1E 01 95 8E 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 36 39 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 53 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 2B 00 00 00 F4 03 04 00 67 77 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 96 B0 00 00 35 04 06 00 4E 0C 6F CF 14 57 67 AC F4 68 24 0C 3D 69 [13:14:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 3A 41 47 00 20 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 96 B0 00 00 F4 03 04 00 97 23 E4 65 B6 04 01 00 00 36 B2 E3 E8 32 85 45 E7 [13:14:49]CommunicateWithHost err = 0 [13:14:49]CheckOFDResponse [13:14:49]1017 (14) - 77093643461234 [13:14:49]1041 (16) - 0000000000874796 [13:14:49]1040 (4) - 45206 [13:14:49]1012 (4) - 03.03.2024 07:15 [13:14:49]1206 (1) - 0 [13:14:49]OFD Sender: Remove packet 45206 [13:14:49]ProducePacketName [13:14:49]name=ofd_packets/00045206 [13:14:49]NVStorageDeleteData [13:14:50]OFD Sender: No OFD packet to send [13:14:55]OFD Sender: No OFD packet to send [13:15:00]OFD Sender: No OFD packet to send [13:15:05]OFD Sender: No OFD packet to send [13:15:10]OFD Sender: No OFD packet to send [13:15:15]OFD Sender: No OFD packet to send [13:15:20]OFD Sender: No OFD packet to send [13:15:25]OFD Sender: No OFD packet to send [13:15:30]OFD Sender: No OFD packet to send [13:15:35]OFD Sender: No OFD packet to send [13:15:40]OFD Sender: No OFD packet to send [13:15:45]OFD Sender: No OFD packet to send [13:15:50]OFD Sender: No OFD packet to send [13:15:55]OFD Sender: No OFD packet to send [13:16:00]OFD Sender: No OFD packet to send [13:16:05]OFD Sender: No OFD packet to send [13:16:10]OFD Sender: No OFD packet to send [13:16:15]OFD Sender: No OFD packet to send [13:16:20]OFD Sender: No OFD packet to send [13:16:25]OFD Sender: No OFD packet to send [13:16:30]OFD Sender: No OFD packet to send [13:16:35]OFD Sender: No OFD packet to send [13:16:40]OFD Sender: No OFD packet to send [13:16:45]OFD Sender: No OFD packet to send [13:16:50]OFD Sender: No OFD packet to send [13:16:55]OFD Sender: No OFD packet to send [13:17:00]OFD Sender: No OFD packet to send [13:17:05]OFD Sender: No OFD packet to send [13:17:10]OFD Sender: No OFD packet to send [13:17:15]OFD Sender: No OFD packet to send [13:17:20]OFD Sender: No OFD packet to send [13:17:25]OFD Sender: No OFD packet to send [13:17:30]OFD Sender: No OFD packet to send [13:17:35]OFD Sender: No OFD packet to send [13:17:40]OFD Sender: No OFD packet to send [13:17:45]OFD Sender: No OFD packet to send [13:17:50]OFD Sender: No OFD packet to send [13:17:55]OFD Sender: No OFD packet to send [13:18:00]OFD Sender: No OFD packet to send [13:18:05]OFD Sender: No OFD packet to send [13:18:10]OFD Sender: No OFD packet to send [13:18:15]OFD Sender: No OFD packet to send [13:18:20]OFD Sender: No OFD packet to send [13:18:25]OFD Sender: No OFD packet to send [13:18:30]OFD Sender: No OFD packet to send [13:18:35]OFD Sender: No OFD packet to send [13:18:40]OFD Sender: No OFD packet to send [13:18:45]OFD Sender: No OFD packet to send [13:18:50]OFD Sender: No OFD packet to send [13:18:55]OFD Sender: No OFD packet to send [13:19:00]OFD Sender: No OFD packet to send [13:19:05]OFD Sender: No OFD packet to send [13:19:10]OFD Sender: No OFD packet to send [13:19:15]OFD Sender: No OFD packet to send [13:19:20]OFD Sender: No OFD packet to send [13:19:25]OFD Sender: No OFD packet to send [13:19:30]OFD Sender: No OFD packet to send [13:19:35]OFD Sender: No OFD packet to send [13:19:40]OFD Sender: No OFD packet to send [13:19:45]OFD Sender: No OFD packet to send [13:19:50]OFD Sender: No OFD packet to send [13:19:55]OFD Sender: No OFD packet to send [13:20:00]OFD Sender: No OFD packet to send [13:20:05]OFD Sender: No OFD packet to send [13:20:10]OFD Sender: No OFD packet to send [13:20:15]OFD Sender: No OFD packet to send [13:20:20]OFD Sender: No OFD packet to send [13:20:25]OFD Sender: No OFD packet to send [13:20:30]OFD Sender: No OFD packet to send [13:20:35]OFD Sender: No OFD packet to send [13:20:40]OFD Sender: No OFD packet to send [13:20:45]OFD Sender: No OFD packet to send [13:20:50]OFD Sender: No OFD packet to send [13:20:55]OFD Sender: No OFD packet to send [13:21:00]OFD Sender: No OFD packet to send [13:21:05]OFD Sender: No OFD packet to send [13:21:10]OFD Sender: No OFD packet to send [13:21:15]OFD Sender: No OFD packet to send [13:21:20]OFD Sender: No OFD packet to send [13:21:25]OFD Sender: No OFD packet to send [13:21:30]OFD Sender: No OFD packet to send [13:21:35]OFD Sender: No OFD packet to send [13:21:40]OFD Sender: No OFD packet to send [13:21:45]OFD Sender: No OFD packet to send [13:21:50]OFD Sender: No OFD packet to send [13:21:55]OFD Sender: No OFD packet to send [13:22:00]OFD Sender: No OFD packet to send [13:22:05]OFD Sender: No OFD packet to send [13:22:10]OFD Sender: No OFD packet to send [13:22:15]OFD Sender: No OFD packet to send [13:22:20]OFD Sender: No OFD packet to send [13:22:25]OFD Sender: No OFD packet to send [13:22:30]OFD Sender: No OFD packet to send [13:22:35]OFD Sender: No OFD packet to send [13:22:40]OFD Sender: No OFD packet to send [13:22:45]OFD Sender: No OFD packet to send [13:22:50]OFD Sender: No OFD packet to send [13:22:55]OFD Sender: No OFD packet to send [13:23:00]OFD Sender: No OFD packet to send [13:23:05]OFD Sender: No OFD packet to send [13:23:10]OFD Sender: No OFD packet to send [13:23:15]OFD Sender: No OFD packet to send [13:23:20]OFD Sender: No OFD packet to send [13:23:25]OFD Sender: No OFD packet to send [13:23:30]OFD Sender: No OFD packet to send [13:23:35]OFD Sender: No OFD packet to send [13:23:40]OFD Sender: No OFD packet to send [13:23:45]OFD Sender: No OFD packet to send [13:23:50]OFD Sender: No OFD packet to send [13:23:55]OFD Sender: No OFD packet to send [13:24:00]OFD Sender: No OFD packet to send [13:24:05]OFD Sender: No OFD packet to send [13:24:10]OFD Sender: No OFD packet to send [13:24:15]OFD Sender: No OFD packet to send [13:24:20]OFD Sender: No OFD packet to send [13:24:25]OFD Sender: No OFD packet to send [13:24:30]OFD Sender: No OFD packet to send [13:24:35]OFD Sender: No OFD packet to send [13:24:40]OFD Sender: No OFD packet to send [13:24:45]OFD Sender: No OFD packet to send [13:24:50]OFD Sender: No OFD packet to send [13:24:55]OFD Sender: No OFD packet to send [13:25:00]OFD Sender: No OFD packet to send [13:25:05]OFD Sender: No OFD packet to send [13:25:10]OFD Sender: No OFD packet to send [13:25:15]OFD Sender: No OFD packet to send [13:25:20]OFD Sender: No OFD packet to send [13:25:25]OFD Sender: No OFD packet to send [13:25:30]OFD Sender: No OFD packet to send [13:25:35]OFD Sender: No OFD packet to send [13:25:40]OFD Sender: No OFD packet to send [13:25:45]OFD Sender: No OFD packet to send [13:25:50]OFD Sender: No OFD packet to send [13:25:55]OFD Sender: No OFD packet to send [13:26:00]OFD Sender: No OFD packet to send [13:26:05]OFD Sender: No OFD packet to send [13:26:10]OFD Sender: No OFD packet to send [13:26:15]OFD Sender: No OFD packet to send [13:26:20]OFD Sender: No OFD packet to send [13:26:25]OFD Sender: No OFD packet to send [13:26:30]OFD Sender: No OFD packet to send [13:26:35]OFD Sender: No OFD packet to send [13:26:40]OFD Sender: No OFD packet to send [13:26:45]OFD Sender: No OFD packet to send [13:26:50]OFD Sender: No OFD packet to send [13:26:55]OFD Sender: No OFD packet to send [13:27:00]OFD Sender: No OFD packet to send [13:27:05]OFD Sender: No OFD packet to send [13:27:10]OFD Sender: No OFD packet to send [13:27:15]OFD Sender: No OFD packet to send [13:27:20]OFD Sender: No OFD packet to send [13:27:25]OFD Sender: No OFD packet to send [13:27:30]OFD Sender: No OFD packet to send [13:27:35]OFD Sender: No OFD packet to send [13:27:40]OFD Sender: No OFD packet to send [13:27:45]OFD Sender: No OFD packet to send [13:27:50]OFD Sender: No OFD packet to send [13:27:55]OFD Sender: No OFD packet to send [13:28:00]OFD Sender: No OFD packet to send [13:28:05]OFD Sender: No OFD packet to send [13:28:10]OFD Sender: No OFD packet to send [13:28:15]OFD Sender: No OFD packet to send [13:28:20]OFD Sender: No OFD packet to send [13:28:25]OFD Sender: No OFD packet to send [13:28:30]OFD Sender: No OFD packet to send [13:28:35]OFD Sender: No OFD packet to send [13:28:40]OFD Sender: No OFD packet to send [13:28:41]accept exits with 7 [13:28:41]New connection [13:28:41]New thread 3067157860 created [13:28:41]Thread 3067014500 joined [13:28:41]Waiting for new connection... [13:28:41] Sock 7.Parse request [13:28:41]Sock 7.Check first char [13:28:41]Sock 7.First char is OK [13:28:41]request: POST /json_proto HTTP/1.0 [13:28:41]Method: POST [13:28:41]URL: /json_proto [13:28:41]Method is POST - this is cgi request [13:28:41]url: /json_proto [13:28:41]query_string will be loaded in cgi processing [13:28:41]execute_cgi json_proto POST (null) [13:28:41]execute_cgi path=json_proto method=POST [13:28:41]POST find Content-Length [13:28:41]Host: 172.17.48.198:8080 [13:28:41]Content-Length: 682 [13:28:41]Content-Type: application/json [13:28:41] [13:28:41]POST finish read [13:28:41]Found Content-Length = 682 [13:28:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184172", "tax_sys" : 0, "items" : [ { "code": "4870002328404", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043C\u044F\u0442\u0430 \u041F\u042D\u0422 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:28:41]execute_script... [13:28:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184172", "tax_sys" : 0, "items" : [ { "code": "4870002328404", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043C\u044F\u0442\u0430 \u041F\u042D\u0422 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:28:41]POST & json_proto [13:28:41]process_json_proto [13:28:41]json parsed OK: [13:28:41]protocol is kg_v1.0 [13:28:41]action value=close_receipt [13:28:41]process_action close_receipt [13:28:41]cmd_close_receipt [13:28:41]MH_GetDate [13:28:41]Write to MH i2c: F0 00 00 42 4B 7C [13:28:41]Write i2c OK [13:28:41]MH_I2C_Read... [13:28:41]Read from MH i2c: F0 [13:28:41]MH_I2C_Read... [13:28:41]Read from MH i2c: F0 09 00 [13:28:41]MH_I2C_Read... [13:28:41]Read from MH i2c: F0 09 00 42 4B 00 15 7B E4 65 CE C4 D4 65 29 [13:28:41]GetLastDocTimeStamp 1709471591 [13:28:41]current date 1709472533 [13:28:41]FM_GetShiftState [13:28:41]SAM_PROTO_GetShiftState [13:28:41]wFMCommunicate request_size=4 [13:28:41]MH_SAM_APDU [13:28:41]CAPDU: 80 13 01 00 [13:28:41]Write to MH i2c: E2 08 00 43 4B 80 13 01 00 00 00 00 00 0B [13:28:41]Write i2c OK [13:28:41]MH_I2C_Read... [13:28:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:28:42]Read from MH i2c: E2 [13:28:42]MH_I2C_Read... [13:28:42]Read from MH i2c: E2 0E 00 [13:28:42]MH_I2C_Read... [13:28:42]Read from MH i2c: E2 0E 00 43 4B 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 41 [13:28:42]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [13:28:42]wFMCommunicate OK [13:28:42]SAM_PROTO_GetShiftState done [13:28:42]FM_GetShiftState done [13:28:42]opened in 1709425694 [13:28:42]opened+sec_in_day 1709512094 [13:28:42]quantity*price = 6500 [13:28:42]sum+1 = 6501 [13:28:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 65.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 44 03.03.2024 13:28 Смена: 331 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 ФМ: 0000000000874796 ФД: 45207 ФПД: 243466667610163 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T132853&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45207&fm=243466667610163&tin=02508201610067®Number=0000000000090572&sum=6500 0 [13:28:43]StoreToDocumentArchive [13:28:43]shift 331 fd 45207 [13:28:43]save to /storage/0331/doc_00045207 [13:28:43]save last doc name /storage/0331/doc_00045207 to /storage/kkm_last_doc_name [13:28:43]save OK [13:28:43]Clear old archive folders... [13:28:43]ProcessDocumentItem done err = 0, tmpTLVsize=293 [13:28:43]tlvbuf is 01B23F80 [13:28:43]SAM_PROTO_ClearQueue [13:28:43]wFMCommunicate request_size=4 [13:28:43]MH_SAM_APDU [13:28:43]CAPDU: 80 09 00 00 [13:28:43]Write to MH i2c: E2 08 00 50 4B 80 09 00 00 00 00 00 00 0D [13:28:43]Write i2c OK [13:28:43]MH_I2C_Read... [13:28:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:28:43]Read from MH i2c: E2 [13:28:43]MH_I2C_Read... [13:28:43]Read from MH i2c: E2 03 00 [13:28:43]MH_I2C_Read... [13:28:43]Read from MH i2c: E2 03 00 50 4B 00 90 00 0F [13:28:43]RAPDU: 90 00 [13:28:43]wFMCommunicate OK [13:28:43]SAM_PROTO_ClearQueue done [13:28:43]KKMCreateOFDPacket [13:28:43]OFDProtocolAddRootSTLVToBuf [13:28:43]FM_MakeSignedData [13:28:43]FM_MakeSignedData [13:28:43]SAM_PROTO_SignData [13:28:43]wFMCommunicate request_size=4 [13:28:43]MH_SAM_APDU [13:28:43]CAPDU: 80 0D 01 02 [13:28:43]Write to MH i2c: E2 08 00 51 4B 80 0D 01 02 00 00 00 00 15 [13:28:43]Write i2c OK [13:28:43]MH_I2C_Read... [13:28:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:28:43]Read from MH i2c: E2 [13:28:43]MH_I2C_Read... [13:28:43]Read from MH i2c: E2 03 00 [13:28:43]MH_I2C_Read... [13:28:43]Read from MH i2c: E2 03 00 51 4B 00 90 00 10 [13:28:43]RAPDU: 90 00 [13:28:43]wFMCommunicate OK [13:28:43]wFMCommunicate request_size=255 [13:28:43]MH_SAM_APDU [13:28:43]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 34 30 34 06 04 33 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BC D1 8F D1 82 D0 B0 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 15 7B E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [13:28:43]Write to MH i2c: E2 02 01 52 4B 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 34 30 34 06 04 33 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BC D1 8F D1 82 D0 B0 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 15 7B E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 07 [13:28:43]Write i2c OK [13:28:43]MH_I2C_Read... [13:28:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:28:43]Read from MH i2c: E2 [13:28:43]MH_I2C_Read... [13:28:43]Read from MH i2c: E2 03 00 [13:28:43]MH_I2C_Read... [13:28:43]Read from MH i2c: E2 03 00 52 4B 00 90 00 11 [13:28:43]RAPDU: 90 00 [13:28:43]wFMCommunicate OK [13:28:43]wFMCommunicate request_size=52 [13:28:43]MH_SAM_APDU [13:28:43]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 97 B0 00 00 35 04 06 00 DD 6E 80 3C D0 33 [13:28:43]Write to MH i2c: E2 37 00 53 4B 80 0D 02 02 2F 00 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 97 B0 00 00 35 04 06 00 DD 6E 80 3C D0 33 00 00 33 [13:28:43]Write i2c OK [13:28:43]MH_I2C_Read... [13:28:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:28:43]Read from MH i2c: E2 [13:28:43]MH_I2C_Read... [13:28:43]Read from MH i2c: E2 03 00 [13:28:43]MH_I2C_Read... [13:28:43]Read from MH i2c: E2 03 00 53 4B 00 90 00 12 [13:28:43]RAPDU: 90 00 [13:28:43]wFMCommunicate OK [13:28:43]wFMCommunicate request_size=4 [13:28:43]MH_SAM_APDU [13:28:43]CAPDU: 80 0D 03 02 [13:28:43]Write to MH i2c: E2 08 00 54 4B 80 0D 03 02 00 00 00 00 1A [13:28:43]Write i2c OK [13:28:43]MH_I2C_Read... [13:28:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:28:43]Read from MH i2c: E2 [13:28:43]MH_I2C_Read... [13:28:43]Read from MH i2c: E2 0B 00 [13:28:43]MH_I2C_Read... [13:28:43]Read from MH i2c: E2 0B 00 54 4B 00 67 39 E5 94 69 CE 50 C1 90 00 7C [13:28:43]RAPDU: 67 39 E5 94 69 CE 50 C1 90 00 [13:28:43]wFMCommunicate OK [13:28:43]SAM_PROTO_SignData done [13:28:43]FM_MakeSignedData done [13:28:43]CreateOFDProtocolMessage [13:28:43]wFMCommunicate request_size=4 [13:28:43]MH_SAM_APDU [13:28:43]CAPDU: 80 11 00 00 [13:28:43]Write to MH i2c: E2 08 00 55 4B 80 11 00 00 00 00 00 00 1A [13:28:43]Write i2c OK [13:28:43]MH_I2C_Read... [13:28:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:28:43]Read from MH i2c: E2 [13:28:43]MH_I2C_Read... [13:28:43]Read from MH i2c: E2 17 00 [13:28:43]MH_I2C_Read... [13:28:43]Read from MH i2c: E2 17 00 55 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 76 [13:28:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [13:28:43]wFMCommunicate OK [13:28:43]CreateOFDProtocolMessage done [13:28:43]OFDSenderStorePacket 45207 [13:28:43]StoreOFDPacket docnum=45207 [13:28:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 39 01 00 00 DF 20 31 01 32 9B 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 34 30 34 06 04 33 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BC D1 8F D1 82 D0 B0 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 15 7B E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 97 B0 00 00 35 04 06 00 DD 6E 80 3C D0 33 67 39 E5 94 69 CE 50 C1 [13:28:43]CheckFolder [13:28:43]dirname=/storage/ofd_packets [13:28:43]CheckFolder done [13:28:43]ProducePacketName [13:28:43]name=ofd_packets/00045207 [13:28:43]NVStorageSaveData ofd_packets/00045207 [13:28:43]File name is /storage/ofd_packets/00045207 [13:28:43]Write 343 bytes [13:28:43]NVStorageSaveData done [13:28:43]OFDSenderStorePacket done [13:28:43]KKMCreateOFDPacket done [13:28:43]NVStorageSaveData kkm_last_timestamp [13:28:43]File name is /storage/kkm_last_timestamp [13:28:43]Write 4 bytes [13:28:43]NVStorageSaveData done [13:28:43]ExternCall_PrintAddStr [13:28:43]wPrintStart [13:28:43]Write to MH i2c: 01 00 00 56 4B A1 [13:28:43]Write i2c OK [13:28:43]MH_I2C_Read... [13:28:43]Read from MH i2c: 01 [13:28:43]MH_I2C_Read... [13:28:43]Read from MH i2c: 01 07 00 [13:28:43]MH_I2C_Read... [13:28:43]Read from MH i2c: 01 07 00 56 4B 00 00 00 00 00 FF 0F B6 [13:28:43]RasterBufferAndPrint [13:28:43]line Счет N : (3)184172 [13:28:43]line ИНН: 02508201610067 [13:28:43]line Контрольно-Кассовый Чек [13:28:43]line ПРОДАЖА [13:28:43]line Товар: 4870002328404 [13:28:43]line Вода ASU пит н.газ мята ПЭТ 0,5л [13:28:43]line 1.000 * 65.00 [13:28:43]line = 65.00 [13:28:43]line НДС 12% НСП 1% [13:28:43]line > о реализуемом товаре [13:28:43]line ИТОГО: 65.00 [13:28:43]line НСП 1% : 0.57 [13:28:43]line НДС 12% : 6.90 [13:28:43]line Наличными: 65.00 [13:28:43]line Безнал.: 0.00 [13:28:43]line Место: АЗС № 25 "Партнер Нефть" [13:28:43]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [13:28:43]line СНО: Общий режим [13:28:43]line Чек 44 03.03.2024 13:28 [13:28:43]line Смена: 331 ФФД: 1.0 [13:28:43]line ЗНМ: 0300000013 [13:28:43]line РНМ: 0000000000090572 [13:28:43]line Версия ККМ: 001 [13:28:43]line ФМ: 0000000000874796 [13:28:43]line ФД: 45207 [13:28:43]line ФПД: 243466667610163 [13:28:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T132853&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45207&fm=243466667610163&tin=02508201610067®Number=0000000000090572&sum=6500 [13:28:43]line 0 [13:28:43]OFD Sender: Processing packet 45207 [packets to send 17, broken 16] [13:28:43]ProducePacketName [13:28:44]name=ofd_packets/00045207 [13:28:44]OFD Sender: To server: pG, [13:28:44]CommunicateWithHost lk.salyk.kg:30040 [13:28:44]ConnectInit lk.salyk.kg [13:28:44]written 0, free lines is 4095 [13:28:44]Connected sock=10 [13:28:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 39 01 00 00 DF 20 31 01 32 9B 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 34 30 34 06 04 33 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BC D1 8F D1 82 D0 B0 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 15 7B E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 97 B0 00 00 35 04 06 00 DD 6E 80 3C D0 33 67 39 E5 94 69 CE 50 C1 [13:28:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 08 46 47 00 44 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 97 B0 00 00 F4 03 04 00 DA 26 E4 65 B6 04 01 00 00 0A DA 1C C6 25 C0 B9 36 [13:28:44]CommunicateWithHost err = 0 [13:28:44]CheckOFDResponse [13:28:44]1017 (14) - 77093643461234 [13:28:44]1041 (16) - 0000000000874796 [13:28:44]1040 (4) - 45207 [13:28:44]1012 (4) - 03.03.2024 07:29 [13:28:44]1206 (1) - 0 [13:28:44]OFD Sender: Remove packet 45207 [13:28:44]ProducePacketName [13:28:44]name=ofd_packets/00045207 [13:28:44]NVStorageDeleteData [13:28:44]Write to MH i2c: 01 00 00 7F 4B CA [13:28:44]Write i2c OK [13:28:44]MH_I2C_Read... [13:28:44]Read from MH i2c: 01 [13:28:44]MH_I2C_Read... [13:28:44]Read from MH i2c: 01 07 00 [13:28:44]MH_I2C_Read... [13:28:44]Read from MH i2c: 01 07 00 7F 4B 00 00 00 00 00 FE 0C DB [13:28:44]RasterBufferAndPrint [13:28:44]line [13:28:44]line [13:28:44]line [13:28:44]line [13:28:44]line [13:28:44]written 0, free lines is 3332 [13:28:44]MH_Cut [13:28:44]Write to MH i2c: D1 01 00 86 4B 01 A3 [13:28:44]Write i2c OK [13:28:44]MH_I2C_Read... [13:28:44]Read from MH i2c: D1 [13:28:44]MH_I2C_Read... [13:28:44]Read from MH i2c: D1 01 00 [13:28:44]MH_I2C_Read... [13:28:44]Read from MH i2c: D1 01 00 86 4B 00 A2 [13:28:44]Write to MH i2c: 01 00 00 87 4B D2 [13:28:44]Write i2c OK [13:28:44]MH_I2C_Read... [13:28:44]OFD Sender: No OFD packet to send [13:28:45]*** Cut start [13:28:45]*** Purtial cut [13:28:45]*** Stage 1: CUTSNS_PIN = 1 [13:28:47]Read from MH i2c: 01 [13:28:47]MH_I2C_Read... [13:28:47]*** Stop cut motor [13:28:47]*** Cut end [13:28:47]Read from MH i2c: 01 07 00 [13:28:47]MH_I2C_Read... [13:28:47]Read from MH i2c: 01 07 00 87 4B 00 00 00 00 00 FF 0F E7 [13:28:47]process_action close_receipt done [13:28:47]requested_data is exist [13:28:47]produce_requested_data [13:28:47]requested_item fm.sn is exist - process it [13:28:47]wFMCommunicate request_size=4 [13:28:47]MH_SAM_APDU [13:28:47]CAPDU: 80 11 00 00 [13:28:47]Write to MH i2c: E2 08 00 88 4B 80 11 00 00 00 00 00 00 4D [13:28:47]Write i2c OK [13:28:47]MH_I2C_Read... [13:28:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:28:47]Read from MH i2c: E2 [13:28:47]MH_I2C_Read... [13:28:47]Read from MH i2c: E2 17 00 [13:28:47]MH_I2C_Read... [13:28:47]Read from MH i2c: E2 17 00 88 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 A9 [13:28:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [13:28:47]wFMCommunicate OK [13:28:47]requested_item fd.num is exist - process it [13:28:47]SAM_PROTO_GetFieldsCounters [13:28:47]wFMCommunicate request_size=4 [13:28:47]MH_SAM_APDU [13:28:47]CAPDU: 80 13 00 00 [13:28:47]Write to MH i2c: E2 08 00 89 4B 80 13 00 00 00 00 00 00 50 [13:28:47]Write i2c OK [13:28:47]MH_I2C_Read... [13:28:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:28:47]Read from MH i2c: E2 [13:28:47]MH_I2C_Read... [13:28:47]Read from MH i2c: E2 62 00 [13:28:47]MH_I2C_Read... [13:28:47]Read from MH i2c: E2 62 00 89 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 97 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 8F [13:28:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 97 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:28:47]wFMCommunicate OK [13:28:47]SAM_PROTO_GetFieldsCounters done [13:28:47]requested_item shift.num is exist - process it [13:28:47]requested_item shift.opened is exist - process it [13:28:47]req_shift_opened [13:28:47]FM_GetShiftState [13:28:47]SAM_PROTO_GetShiftState [13:28:47]wFMCommunicate request_size=4 [13:28:47]MH_SAM_APDU [13:28:47]CAPDU: 80 13 01 00 [13:28:47]Write to MH i2c: E2 08 00 8A 4B 80 13 01 00 00 00 00 00 52 [13:28:47]Write i2c OK [13:28:47]MH_I2C_Read... [13:28:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:28:47]Read from MH i2c: E2 [13:28:47]MH_I2C_Read... [13:28:47]Read from MH i2c: E2 0E 00 [13:28:47]MH_I2C_Read... [13:28:47]Read from MH i2c: E2 0E 00 8A 4B 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 88 [13:28:47]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [13:28:47]wFMCommunicate OK [13:28:47]SAM_PROTO_GetShiftState done [13:28:47]FM_GetShiftState done [13:28:47]req_shift_opened done [13:28:47]requested_item shift.open_date is exist - process it [13:28:47]req_shift_open_date [13:28:47]req_shift_open_date done [13:28:47]produce_requested_data done [13:28:47]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45207,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [13:28:47]process_action_free close_receipt [13:28:47]json_value_free [13:28:47]json_value_free done [13:28:47]process_json_proto returns [13:28:47]Send response to host [13:28:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45207,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [13:28:47]free response buf [13:28:47]execute_script done [13:28:47]execute_script returns [13:28:47]free content buf [13:28:47]Sock 7.Close socket [13:28:47]Sock 7.Thread stoped [13:28:49]OFD Sender: No OFD packet to send [13:28:54]OFD Sender: No OFD packet to send [13:28:59]OFD Sender: No OFD packet to send [13:29:04]OFD Sender: No OFD packet to send [13:29:09]OFD Sender: No OFD packet to send [13:29:14]OFD Sender: No OFD packet to send [13:29:19]OFD Sender: No OFD packet to send [13:29:24]OFD Sender: No OFD packet to send [13:29:29]OFD Sender: No OFD packet to send [13:29:34]OFD Sender: No OFD packet to send [13:29:39]OFD Sender: No OFD packet to send [13:29:44]OFD Sender: No OFD packet to send [13:29:49]OFD Sender: No OFD packet to send [13:29:54]OFD Sender: No OFD packet to send [13:29:59]OFD Sender: No OFD packet to send [13:30:04]OFD Sender: No OFD packet to send [13:30:09]OFD Sender: No OFD packet to send [13:30:14]OFD Sender: No OFD packet to send [13:30:19]OFD Sender: No OFD packet to send [13:30:24]OFD Sender: No OFD packet to send [13:30:29]OFD Sender: No OFD packet to send [13:30:34]OFD Sender: No OFD packet to send [13:30:39]OFD Sender: No OFD packet to send [13:30:44]OFD Sender: No OFD packet to send [13:30:49]OFD Sender: No OFD packet to send [13:30:54]OFD Sender: No OFD packet to send [13:30:59]OFD Sender: No OFD packet to send [13:31:04]OFD Sender: No OFD packet to send [13:31:09]OFD Sender: No OFD packet to send [13:31:14]OFD Sender: No OFD packet to send [13:31:19]OFD Sender: No OFD packet to send [13:31:24]OFD Sender: No OFD packet to send [13:31:29]OFD Sender: No OFD packet to send [13:31:34]OFD Sender: No OFD packet to send [13:31:39]OFD Sender: No OFD packet to send [13:31:44]OFD Sender: No OFD packet to send [13:31:49]OFD Sender: No OFD packet to send [13:31:54]OFD Sender: No OFD packet to send [13:31:59]OFD Sender: No OFD packet to send [13:32:00]accept exits with 9 [13:32:00]New connection [13:32:00]New thread 3067014500 created [13:32:00]Thread 3067157860 joined [13:32:00]Waiting for new connection... [13:32:00] Sock 9.Parse request [13:32:00]Sock 9.Check first char [13:32:00]Sock 9.First char is OK [13:32:00]request: POST /json_proto HTTP/1.0 [13:32:00]Method: POST [13:32:00]URL: /json_proto [13:32:00]Method is POST - this is cgi request [13:32:00]url: /json_proto [13:32:00]query_string will be loaded in cgi processing [13:32:00]execute_cgi json_proto POST (null) [13:32:00]execute_cgi path=json_proto method=POST [13:32:00]POST find Content-Length [13:32:00]Host: 172.17.48.198:8080 [13:32:00]Content-Length: 215 [13:32:00]Content-Type: application/json [13:32:00] [13:32:00]POST finish read [13:32:00]Found Content-Length = 215 [13:32:00]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" ] } } [13:32:00]execute_script... [13:32:00]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" ] } } [13:32:00]POST & json_proto [13:32:00]process_json_proto [13:32:00]json parsed OK: [13:32:00]protocol is kg_v1.0 [13:32:00]action value=get_value [13:32:00]process_action get_value [13:32:00]cmd_get_value [13:32:00]process_action get_value done [13:32:00]requested_data is exist [13:32:00]produce_requested_data [13:32:00]requested_item kkm.sn is exist - process it [13:32:00]requested_item kkm.ver is exist - process it [13:32:00]requested_item fm.sn is exist - process it [13:32:00]wFMCommunicate request_size=4 [13:32:00]MH_SAM_APDU [13:32:00]CAPDU: 80 11 00 00 [13:32:00]Write to MH i2c: E2 08 00 8B 4B 80 11 00 00 00 00 00 00 50 [13:32:00]Write i2c OK [13:32:00]MH_I2C_Read... [13:32:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:32:00]Read from MH i2c: E2 [13:32:00]MH_I2C_Read... [13:32:00]Read from MH i2c: E2 17 00 [13:32:00]MH_I2C_Read... [13:32:00]Read from MH i2c: E2 17 00 8B 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 AC [13:32:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [13:32:00]wFMCommunicate OK [13:32:00]requested_item fd.num is exist - process it [13:32:00]SAM_PROTO_GetFieldsCounters [13:32:00]wFMCommunicate request_size=4 [13:32:00]MH_SAM_APDU [13:32:00]CAPDU: 80 13 00 00 [13:32:00]Write to MH i2c: E2 08 00 8C 4B 80 13 00 00 00 00 00 00 53 [13:32:00]Write i2c OK [13:32:00]MH_I2C_Read... [13:32:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:32:00]Read from MH i2c: E2 [13:32:00]MH_I2C_Read... [13:32:00]Read from MH i2c: E2 62 00 [13:32:00]MH_I2C_Read... [13:32:00]Read from MH i2c: E2 62 00 8C 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 97 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 92 [13:32:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 97 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:32:00]wFMCommunicate OK [13:32:00]SAM_PROTO_GetFieldsCounters done [13:32:00]requested_item shift.num is exist - process it [13:32:00]requested_item shift.opened is exist - process it [13:32:00]req_shift_opened [13:32:00]FM_GetShiftState [13:32:00]SAM_PROTO_GetShiftState [13:32:00]wFMCommunicate request_size=4 [13:32:00]MH_SAM_APDU [13:32:00]CAPDU: 80 13 01 00 [13:32:00]Write to MH i2c: E2 08 00 8D 4B 80 13 01 00 00 00 00 00 55 [13:32:00]Write i2c OK [13:32:00]MH_I2C_Read... [13:32:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:32:00]Read from MH i2c: E2 [13:32:00]MH_I2C_Read... [13:32:00]Read from MH i2c: E2 0E 00 [13:32:00]MH_I2C_Read... [13:32:00]Read from MH i2c: E2 0E 00 8D 4B 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 8B [13:32:00]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [13:32:00]wFMCommunicate OK [13:32:00]SAM_PROTO_GetShiftState done [13:32:00]FM_GetShiftState done [13:32:00]req_shift_opened done [13:32:00]requested_item shift.open_date is exist - process it [13:32:00]req_shift_open_date [13:32:00]req_shift_open_date done [13:32:00]produce_requested_data done [13:32:00]produce_requested_data return {"kkm.sn":"0300000013","kkm.ver":"001","fm.sn":"0000000000874796","fd.num":45207,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [13:32:00]process_action_free get_value [13:32:00]json_value_free [13:32:00]json_value_free done [13:32:00]process_json_proto returns [13:32:00]Send response to host [13:32:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000013","kkm.ver":"001","fm.sn":"0000000000874796","fd.num":45207,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [13:32:00]free response buf [13:32:00]execute_script done [13:32:00]execute_script returns [13:32:00]free content buf [13:32:00]Sock 9.Close socket [13:32:00]Sock 9.Thread stoped [13:32:03]accept exits with 7 [13:32:03]New connection [13:32:03]New thread 3067157860 created [13:32:03]Thread 3067014500 joined [13:32:03]Waiting for new connection... [13:32:03] Sock 7.Parse request [13:32:03]Sock 7.Check first char [13:32:03]Sock 7.First char is OK [13:32:03]request: POST /json_proto HTTP/1.0 [13:32:03]Method: POST [13:32:03]URL: /json_proto [13:32:03]Method is POST - this is cgi request [13:32:03]url: /json_proto [13:32:03]query_string will be loaded in cgi processing [13:32:03]execute_cgi json_proto POST (null) [13:32:03]execute_cgi path=json_proto method=POST [13:32:03]POST find Content-Length [13:32:03]Host: 172.17.48.198:8080 [13:32:03]Content-Length: 331 [13:32:03]Content-Type: application/json [13:32:03] [13:32:03]POST finish read [13:32:03]Found Content-Length = 331 [13:32:03]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" ] } } [13:32:03]execute_script... [13:32:03]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" ] } } [13:32:03]POST & json_proto [13:32:03]process_json_proto [13:32:03]json parsed OK: [13:32:03]protocol is kg_v1.0 [13:32:03]action value=get_value [13:32:03]process_action get_value [13:32:03]cmd_get_value [13:32:03]process_action get_value done [13:32:03]requested_data is exist [13:32:03]produce_requested_data [13:32:03]requested_item fm.sale.total is exist - process it [13:32:03]SAM_PROTO_GetFMData [13:32:03]wFMCommunicate request_size=4 [13:32:03]MH_SAM_APDU [13:32:03]CAPDU: 80 13 03 00 [13:32:03]Write to MH i2c: E2 08 00 8E 4B 80 13 03 00 00 00 00 00 58 [13:32:03]Write i2c OK [13:32:03]MH_I2C_Read... [13:32:04]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [13:32:04]Read from MH i2c: E2 [13:32:04]MH_I2C_Read... [13:32:04]Read from MH i2c: E2 FD 00 [13:32:04]MH_I2C_Read... [13:32:04]Read from MH i2c: E2 FD 00 8E 4B 00 C4 04 85 04 C0 04 6E 04 04 00 FD AD 00 00 69 04 A0 00 6F 04 04 00 0B AB 00 00 B1 04 04 00 8C 1B 19 4A 70 04 04 00 93 68 0B 37 72 04 04 00 F9 B2 0D 13 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 0D 81 DE 07 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 2B CF A7 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F2 02 00 00 B1 04 04 00 DE CB 28 05 70 04 04 00 66 1A 02 05 72 04 03 00 78 B1 26 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 46 46 8C EF 03 09 00 90 00 B2 [13:32:04]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 FD AD 00 00 69 04 A0 00 6F 04 04 00 0B AB 00 00 B1 04 04 00 8C 1B 19 4A 70 04 04 00 93 68 0B 37 72 04 04 00 F9 B2 0D 13 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 0D 81 DE 07 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 2B CF A7 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F2 02 00 00 B1 04 04 00 DE CB 28 05 70 04 04 00 66 1A 02 05 72 04 03 00 78 B1 26 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 46 46 8C EF 03 09 00 90 00 [13:32:04]wFMCommunicate OK [13:32:04]wFMCommunicate request_size=4 [13:32:04]MH_SAM_APDU [13:32:04]CAPDU: 80 17 00 00 [13:32:04]Write to MH i2c: E2 08 00 8F 4B 80 17 00 00 00 00 00 00 5A [13:32:04]Write i2c OK [13:32:04]MH_I2C_Read... [13:32:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:32:04]Read from MH i2c: E2 [13:32:04]MH_I2C_Read... [13:32:04]Read from MH i2c: E2 FD 00 [13:32:04]MH_I2C_Read... [13:32:04]Read from MH i2c: E2 FD 00 8F 4B 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 39 B0 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 04 [13:32:04]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 39 B0 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [13:32:04]wFMCommunicate OK [13:32:04]wFMCommunicate request_size=4 [13:32:04]MH_SAM_APDU [13:32:04]CAPDU: 80 17 00 00 [13:32:04]Write to MH i2c: E2 08 00 90 4B 80 17 00 00 00 00 00 00 5B [13:32:04]Write i2c OK [13:32:04]MH_I2C_Read... [13:32:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:32:04]Read from MH i2c: E2 [13:32:04]MH_I2C_Read... [13:32:04]Read from MH i2c: E2 FD 00 [13:32:04]MH_I2C_Read... [13:32:04]Read from MH i2c: E2 FD 00 90 4B 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 70 [13:32:04]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [13:32:04]wFMCommunicate OK [13:32:04]wFMCommunicate request_size=4 [13:32:04]MH_SAM_APDU [13:32:04]CAPDU: 80 17 00 00 [13:32:04]Write to MH i2c: E2 08 00 91 4B 80 17 00 00 00 00 00 00 5C [13:32:04]Write i2c OK [13:32:04]MH_I2C_Read... [13:32:05]OFD Sender: No OFD packet to send [13:32:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:32:05]Read from MH i2c: E2 [13:32:05]MH_I2C_Read... [13:32:05]Read from MH i2c: E2 FD 00 [13:32:05]MH_I2C_Read... [13:32:05]Read from MH i2c: E2 FD 00 91 4B 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D4 [13:32:05]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [13:32:05]wFMCommunicate OK [13:32:05]wFMCommunicate request_size=4 [13:32:05]MH_SAM_APDU [13:32:05]CAPDU: 80 17 00 00 [13:32:05]Write to MH i2c: E2 08 00 92 4B 80 17 00 00 00 00 00 00 5D [13:32:05]Write i2c OK [13:32:05]MH_I2C_Read... [13:32:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [13:32:05]Read from MH i2c: E2 [13:32:05]MH_I2C_Read... [13:32:05]Read from MH i2c: E2 E1 00 [13:32:05]MH_I2C_Read... [13:32:05]Read from MH i2c: E2 E1 00 92 4B 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 4B [13:32:05]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [13:32:05]wFMCommunicate OK [13:32:05]SAM_PROTO_GetFMData done [13:32:05]requested_item fm.sale_refund.total is exist - process it [13:32:05]requested_item fm.buy.total is exist - process it [13:32:05]requested_item shift.sale.total is exist - process it [13:32:05]SAM_PROTO_GetShiftData [13:32:05]wFMCommunicate request_size=4 [13:32:05]MH_SAM_APDU [13:32:05]CAPDU: 80 13 02 00 [13:32:05]Write to MH i2c: E2 08 00 93 4B 80 13 02 00 00 00 00 00 5C [13:32:05]Write i2c OK [13:32:05]MH_I2C_Read... [13:32:05]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [13:32:05]Read from MH i2c: E2 [13:32:05]MH_I2C_Read... [13:32:05]Read from MH i2c: E2 FD 00 [13:32:05]MH_I2C_Read... [13:32:05]Read from MH i2c: E2 FD 00 93 4B 00 B5 04 AA 04 B1 04 6E 04 04 00 2C 00 00 00 69 04 9B 00 6F 04 04 00 2B 00 00 00 B1 04 03 00 80 5A 0C 70 04 03 00 54 6B 09 72 04 03 00 2C EF 02 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 D5 4F 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 F5 1B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 10 27 70 04 02 00 10 27 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 29 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 00 90 00 3F [13:32:05]RAPDU: B5 04 AA 04 B1 04 6E 04 04 00 2C 00 00 00 69 04 9B 00 6F 04 04 00 2B 00 00 00 B1 04 03 00 80 5A 0C 70 04 03 00 54 6B 09 72 04 03 00 2C EF 02 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 D5 4F 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 F5 1B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 10 27 70 04 02 00 10 27 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 29 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 00 90 00 [13:32:05]wFMCommunicate OK [13:32:05]wFMCommunicate request_size=4 [13:32:05]MH_SAM_APDU [13:32:05]CAPDU: 80 17 00 00 [13:32:05]Write to MH i2c: E2 08 00 94 4B 80 17 00 00 00 00 00 00 5F [13:32:05]Write i2c OK [13:32:05]MH_I2C_Read... [13:32:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:32:06]Read from MH i2c: E2 [13:32:06]MH_I2C_Read... [13:32:06]Read from MH i2c: E2 FD 00 [13:32:06]MH_I2C_Read... [13:32:06]Read from MH i2c: E2 FD 00 94 4B 00 F6 03 01 00 01 F7 03 01 00 59 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 CE [13:32:06]RAPDU: F6 03 01 00 01 F7 03 01 00 59 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [13:32:06]wFMCommunicate OK [13:32:06]wFMCommunicate request_size=4 [13:32:06]MH_SAM_APDU [13:32:06]CAPDU: 80 17 00 00 [13:32:06]Write to MH i2c: E2 08 00 95 4B 80 17 00 00 00 00 00 00 60 [13:32:06]Write i2c OK [13:32:06]MH_I2C_Read... [13:32:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:32:06]Read from MH i2c: E2 [13:32:06]MH_I2C_Read... [13:32:06]Read from MH i2c: E2 FD 00 [13:32:06]MH_I2C_Read... [13:32:06]Read from MH i2c: E2 FD 00 95 4B 00 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 1D [13:32:06]RAPDU: 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [13:32:06]wFMCommunicate OK [13:32:06]wFMCommunicate request_size=4 [13:32:06]MH_SAM_APDU [13:32:06]CAPDU: 80 17 00 00 [13:32:06]Write to MH i2c: E2 08 00 96 4B 80 17 00 00 00 00 00 00 61 [13:32:06]Write i2c OK [13:32:06]MH_I2C_Read... [13:32:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:32:06]Read from MH i2c: E2 [13:32:06]MH_I2C_Read... [13:32:06]Read from MH i2c: E2 FD 00 [13:32:06]MH_I2C_Read... [13:32:06]Read from MH i2c: E2 FD 00 96 4B 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 90 00 D9 [13:32:06]RAPDU: 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 90 00 [13:32:06]wFMCommunicate OK [13:32:06]wFMCommunicate request_size=4 [13:32:06]MH_SAM_APDU [13:32:06]CAPDU: 80 17 00 00 [13:32:06]Write to MH i2c: E2 08 00 97 4B 80 17 00 00 00 00 00 00 62 [13:32:06]Write i2c OK [13:32:06]MH_I2C_Read... [13:32:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 207! [13:32:07]Read from MH i2c: E2 [13:32:07]MH_I2C_Read... [13:32:07]Read from MH i2c: E2 D2 00 [13:32:07]MH_I2C_Read... [13:32:07]Read from MH i2c: E2 D2 00 97 4B 00 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 45 [13:32:07]RAPDU: 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [13:32:07]wFMCommunicate OK [13:32:07]SAM_PROTO_GetShiftData done [13:32:07]requested_item shift.sale.total_cash is exist - process it [13:32:07]requested_item shift.sale_refund.total is exist - process it [13:32:07]requested_item shift.sale_refund.total_cash is exist - process it [13:32:07]requested_item shift.buy.total is exist - process it [13:32:07]requested_item shift.buy.total_cash is exist - process it [13:32:07]produce_requested_data done [13:32:07]produce_requested_data return {"fm.sale.total":12431594.36,"fm.sale_refund.total":865597.10,"fm.buy.total":0.00,"shift.sale.total":8096.00,"shift.sale.total_cash":6173.00,"shift.sale_refund.total":100.00,"shift.sale_refund.total_cash":100.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [13:32:07]process_action_free get_value [13:32:07]json_value_free [13:32:07]json_value_free done [13:32:07]process_json_proto returns [13:32:07]Send response to host [13:32:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":12431594.36,"fm.sale_refund.total":865597.10,"fm.buy.total":0.00,"shift.sale.total":8096.00,"shift.sale.total_cash":6173.00,"shift.sale_refund.total":100.00,"shift.sale_refund.total_cash":100.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [13:32:07]free response buf [13:32:07]execute_script done [13:32:07]execute_script returns [13:32:07]free content buf [13:32:07]Sock 7.Close socket [13:32:07]Sock 7.Thread stoped [13:32:10]OFD Sender: No OFD packet to send [13:32:15]OFD Sender: No OFD packet to send [13:32:20]OFD Sender: No OFD packet to send [13:32:25]OFD Sender: No OFD packet to send [13:32:30]OFD Sender: No OFD packet to send [13:32:35]OFD Sender: No OFD packet to send [13:32:40]OFD Sender: No OFD packet to send [13:32:45]OFD Sender: No OFD packet to send [13:32:50]OFD Sender: No OFD packet to send [13:32:55]OFD Sender: No OFD packet to send [13:33:00]OFD Sender: No OFD packet to send [13:33:05]OFD Sender: No OFD packet to send [13:33:10]OFD Sender: No OFD packet to send [13:33:15]OFD Sender: No OFD packet to send [13:33:20]OFD Sender: No OFD packet to send [13:33:25]OFD Sender: No OFD packet to send [13:33:30]OFD Sender: No OFD packet to send [13:33:35]OFD Sender: No OFD packet to send [13:33:40]OFD Sender: No OFD packet to send [13:33:45]OFD Sender: No OFD packet to send [13:33:50]OFD Sender: No OFD packet to send [13:33:55]OFD Sender: No OFD packet to send [13:34:00]OFD Sender: No OFD packet to send [13:34:05]OFD Sender: No OFD packet to send [13:34:10]OFD Sender: No OFD packet to send [13:34:15]OFD Sender: No OFD packet to send [13:34:20]OFD Sender: No OFD packet to send [13:34:25]OFD Sender: No OFD packet to send [13:34:30]OFD Sender: No OFD packet to send [13:34:35]OFD Sender: No OFD packet to send [13:34:40]OFD Sender: No OFD packet to send [13:34:45]OFD Sender: No OFD packet to send [13:34:50]OFD Sender: No OFD packet to send [13:34:55]OFD Sender: No OFD packet to send [13:35:00]OFD Sender: No OFD packet to send [13:35:05]OFD Sender: No OFD packet to send [13:35:10]OFD Sender: No OFD packet to send [13:35:15]OFD Sender: No OFD packet to send [13:35:20]OFD Sender: No OFD packet to send [13:35:25]OFD Sender: No OFD packet to send [13:35:30]OFD Sender: No OFD packet to send [13:35:35]OFD Sender: No OFD packet to send [13:35:40]OFD Sender: No OFD packet to send [13:35:45]OFD Sender: No OFD packet to send [13:35:50]OFD Sender: No OFD packet to send [13:35:55]OFD Sender: No OFD packet to send [13:36:00]OFD Sender: No OFD packet to send [13:36:05]OFD Sender: No OFD packet to send [13:36:10]OFD Sender: No OFD packet to send [13:36:15]OFD Sender: No OFD packet to send [13:36:20]OFD Sender: No OFD packet to send [13:36:25]OFD Sender: No OFD packet to send [13:36:30]OFD Sender: No OFD packet to send [13:36:35]OFD Sender: No OFD packet to send [13:36:40]OFD Sender: No OFD packet to send [13:36:45]OFD Sender: No OFD packet to send [13:36:50]OFD Sender: No OFD packet to send [13:36:55]OFD Sender: No OFD packet to send [13:37:00]OFD Sender: No OFD packet to send [13:37:05]OFD Sender: No OFD packet to send [13:37:10]OFD Sender: No OFD packet to send [13:37:15]OFD Sender: No OFD packet to send [13:37:20]OFD Sender: No OFD packet to send [13:37:25]OFD Sender: No OFD packet to send [13:37:30]OFD Sender: No OFD packet to send [13:37:35]OFD Sender: No OFD packet to send [13:37:40]OFD Sender: No OFD packet to send [13:37:45]OFD Sender: No OFD packet to send [13:37:50]OFD Sender: No OFD packet to send [13:37:55]OFD Sender: No OFD packet to send [13:38:00]OFD Sender: No OFD packet to send [13:38:05]OFD Sender: No OFD packet to send [13:38:10]OFD Sender: No OFD packet to send [13:38:15]OFD Sender: No OFD packet to send [13:38:20]OFD Sender: No OFD packet to send [13:38:25]OFD Sender: No OFD packet to send [13:38:30]OFD Sender: No OFD packet to send [13:38:35]OFD Sender: No OFD packet to send [13:38:40]OFD Sender: No OFD packet to send [13:38:45]OFD Sender: No OFD packet to send [13:38:50]OFD Sender: No OFD packet to send [13:38:55]OFD Sender: No OFD packet to send [13:39:00]OFD Sender: No OFD packet to send [13:39:05]OFD Sender: No OFD packet to send [13:39:10]OFD Sender: No OFD packet to send [13:39:15]OFD Sender: No OFD packet to send [13:39:20]OFD Sender: No OFD packet to send [13:39:25]OFD Sender: No OFD packet to send [13:39:30]OFD Sender: No OFD packet to send [13:39:35]OFD Sender: No OFD packet to send [13:39:40]OFD Sender: No OFD packet to send [13:39:45]OFD Sender: No OFD packet to send [13:39:50]OFD Sender: No OFD packet to send [13:39:55]OFD Sender: No OFD packet to send [13:40:00]OFD Sender: No OFD packet to send [13:40:05]OFD Sender: No OFD packet to send [13:40:10]OFD Sender: No OFD packet to send [13:40:15]OFD Sender: No OFD packet to send [13:40:20]OFD Sender: No OFD packet to send [13:40:25]OFD Sender: No OFD packet to send [13:40:30]OFD Sender: No OFD packet to send [13:40:35]OFD Sender: No OFD packet to send [13:40:40]OFD Sender: No OFD packet to send [13:40:45]OFD Sender: No OFD packet to send [13:40:50]OFD Sender: No OFD packet to send [13:40:53]accept exits with 10 [13:40:53]New connection [13:40:53]New thread 3067014500 created [13:40:53]Thread 3067157860 joined [13:40:53]Waiting for new connection... [13:40:53] Sock 10.Parse request [13:40:53]Sock 10.Check first char [13:40:53]Sock 10.First char is OK [13:40:53]request: POST /json_proto HTTP/1.0 [13:40:53]Method: POST [13:40:53]URL: /json_proto [13:40:53]Method is POST - this is cgi request [13:40:53]url: /json_proto [13:40:53]query_string will be loaded in cgi processing [13:40:53]execute_cgi json_proto POST (null) [13:40:53]execute_cgi path=json_proto method=POST [13:40:53]POST find Content-Length [13:40:53]Host: 172.17.48.198:8080 [13:40:53]Content-Length: 215 [13:40:53]Content-Type: application/json [13:40:53] [13:40:53]POST finish read [13:40:53]Found Content-Length = 215 [13:40:53]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" ] } } [13:40:53]execute_script... [13:40:53]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" ] } } [13:40:53]POST & json_proto [13:40:53]process_json_proto [13:40:53]json parsed OK: [13:40:53]protocol is kg_v1.0 [13:40:53]action value=get_value [13:40:53]process_action get_value [13:40:53]cmd_get_value [13:40:53]process_action get_value done [13:40:53]requested_data is exist [13:40:53]produce_requested_data [13:40:53]requested_item kkm.sn is exist - process it [13:40:53]requested_item kkm.ver is exist - process it [13:40:53]requested_item fm.sn is exist - process it [13:40:53]wFMCommunicate request_size=4 [13:40:53]MH_SAM_APDU [13:40:53]CAPDU: 80 11 00 00 [13:40:53]Write to MH i2c: E2 08 00 98 4B 80 11 00 00 00 00 00 00 5D [13:40:53]Write i2c OK [13:40:53]MH_I2C_Read... [13:40:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:40:53]Read from MH i2c: E2 [13:40:53]MH_I2C_Read... [13:40:53]Read from MH i2c: E2 17 00 [13:40:53]MH_I2C_Read... [13:40:53]Read from MH i2c: E2 17 00 98 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 B9 [13:40:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [13:40:53]wFMCommunicate OK [13:40:53]requested_item fd.num is exist - process it [13:40:53]SAM_PROTO_GetFieldsCounters [13:40:53]wFMCommunicate request_size=4 [13:40:53]MH_SAM_APDU [13:40:53]CAPDU: 80 13 00 00 [13:40:53]Write to MH i2c: E2 08 00 99 4B 80 13 00 00 00 00 00 00 60 [13:40:53]Write i2c OK [13:40:53]MH_I2C_Read... [13:40:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:40:53]Read from MH i2c: E2 [13:40:53]MH_I2C_Read... [13:40:53]Read from MH i2c: E2 62 00 [13:40:53]MH_I2C_Read... [13:40:53]Read from MH i2c: E2 62 00 99 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 97 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 9F [13:40:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 97 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:40:53]wFMCommunicate OK [13:40:53]SAM_PROTO_GetFieldsCounters done [13:40:53]requested_item shift.num is exist - process it [13:40:53]requested_item shift.opened is exist - process it [13:40:53]req_shift_opened [13:40:53]FM_GetShiftState [13:40:53]SAM_PROTO_GetShiftState [13:40:53]wFMCommunicate request_size=4 [13:40:53]MH_SAM_APDU [13:40:53]CAPDU: 80 13 01 00 [13:40:53]Write to MH i2c: E2 08 00 9A 4B 80 13 01 00 00 00 00 00 62 [13:40:53]Write i2c OK [13:40:53]MH_I2C_Read... [13:40:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:40:53]Read from MH i2c: E2 [13:40:53]MH_I2C_Read... [13:40:53]Read from MH i2c: E2 0E 00 [13:40:53]MH_I2C_Read... [13:40:53]Read from MH i2c: E2 0E 00 9A 4B 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 98 [13:40:53]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [13:40:53]wFMCommunicate OK [13:40:53]SAM_PROTO_GetShiftState done [13:40:53]FM_GetShiftState done [13:40:53]req_shift_opened done [13:40:53]requested_item shift.open_date is exist - process it [13:40:53]req_shift_open_date [13:40:53]req_shift_open_date done [13:40:53]produce_requested_data done [13:40:53]produce_requested_data return {"kkm.sn":"0300000013","kkm.ver":"001","fm.sn":"0000000000874796","fd.num":45207,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [13:40:53]process_action_free get_value [13:40:53]json_value_free [13:40:53]json_value_free done [13:40:53]process_json_proto returns [13:40:53]Send response to host [13:40:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000013","kkm.ver":"001","fm.sn":"0000000000874796","fd.num":45207,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [13:40:53]free response buf [13:40:53]execute_script done [13:40:53]execute_script returns [13:40:53]free content buf [13:40:53]Sock 10.Close socket [13:40:53]Sock 10.Thread stoped [13:40:53]accept exits with 9 [13:40:53]New connection [13:40:53]New thread 3067157860 created [13:40:53]Thread 3067014500 joined [13:40:53]Waiting for new connection... [13:40:53] Sock 9.Parse request [13:40:53]Sock 9.Check first char [13:40:53]Sock 9.First char is OK [13:40:53]request: POST /json_proto HTTP/1.0 [13:40:53]Method: POST [13:40:53]URL: /json_proto [13:40:53]Method is POST - this is cgi request [13:40:53]url: /json_proto [13:40:53]query_string will be loaded in cgi processing [13:40:53]execute_cgi json_proto POST (null) [13:40:53]execute_cgi path=json_proto method=POST [13:40:53]POST find Content-Length [13:40:53]Host: 172.17.48.198:8080 [13:40:53]Content-Length: 331 [13:40:53]Content-Type: application/json [13:40:53] [13:40:53]POST finish read [13:40:53]Found Content-Length = 331 [13:40:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [13:40:53]execute_script... [13:40:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [13:40:53]POST & json_proto [13:40:53]process_json_proto [13:40:53]json parsed OK: [13:40:53]protocol is kg_v1.0 [13:40:53]action value=get_value [13:40:53]process_action get_value [13:40:53]cmd_get_value [13:40:53]process_action get_value done [13:40:53]requested_data is exist [13:40:53]produce_requested_data [13:40:53]requested_item fm.sale.total is exist - process it [13:40:53]SAM_PROTO_GetFMData [13:40:53]wFMCommunicate request_size=4 [13:40:53]MH_SAM_APDU [13:40:53]CAPDU: 80 13 03 00 [13:40:53]Write to MH i2c: E2 08 00 9B 4B 80 13 03 00 00 00 00 00 65 [13:40:53]Write i2c OK [13:40:53]MH_I2C_Read... [13:40:54]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [13:40:54]Read from MH i2c: E2 [13:40:54]MH_I2C_Read... [13:40:54]Read from MH i2c: E2 FD 00 [13:40:54]MH_I2C_Read... [13:40:54]Read from MH i2c: E2 FD 00 9B 4B 00 C4 04 85 04 C0 04 6E 04 04 00 FD AD 00 00 69 04 A0 00 6F 04 04 00 0B AB 00 00 B1 04 04 00 8C 1B 19 4A 70 04 04 00 93 68 0B 37 72 04 04 00 F9 B2 0D 13 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 0D 81 DE 07 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 2B CF A7 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F2 02 00 00 B1 04 04 00 DE CB 28 05 70 04 04 00 66 1A 02 05 72 04 03 00 78 B1 26 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 46 46 8C EF 03 09 00 90 00 BF [13:40:54]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 FD AD 00 00 69 04 A0 00 6F 04 04 00 0B AB 00 00 B1 04 04 00 8C 1B 19 4A 70 04 04 00 93 68 0B 37 72 04 04 00 F9 B2 0D 13 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 0D 81 DE 07 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 2B CF A7 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F2 02 00 00 B1 04 04 00 DE CB 28 05 70 04 04 00 66 1A 02 05 72 04 03 00 78 B1 26 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 46 46 8C EF 03 09 00 90 00 [13:40:54]wFMCommunicate OK [13:40:54]wFMCommunicate request_size=4 [13:40:54]MH_SAM_APDU [13:40:54]CAPDU: 80 17 00 00 [13:40:54]Write to MH i2c: E2 08 00 9C 4B 80 17 00 00 00 00 00 00 67 [13:40:54]Write i2c OK [13:40:54]MH_I2C_Read... [13:40:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:40:54]Read from MH i2c: E2 [13:40:54]MH_I2C_Read... [13:40:54]Read from MH i2c: E2 FD 00 [13:40:54]MH_I2C_Read... [13:40:54]Read from MH i2c: E2 FD 00 9C 4B 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 39 B0 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 11 [13:40:54]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 39 B0 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [13:40:54]wFMCommunicate OK [13:40:54]wFMCommunicate request_size=4 [13:40:54]MH_SAM_APDU [13:40:54]CAPDU: 80 17 00 00 [13:40:54]Write to MH i2c: E2 08 00 9D 4B 80 17 00 00 00 00 00 00 68 [13:40:54]Write i2c OK [13:40:54]MH_I2C_Read... [13:40:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:40:54]Read from MH i2c: E2 [13:40:54]MH_I2C_Read... [13:40:54]Read from MH i2c: E2 FD 00 [13:40:54]MH_I2C_Read... [13:40:54]Read from MH i2c: E2 FD 00 9D 4B 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 7D [13:40:54]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [13:40:54]wFMCommunicate OK [13:40:54]wFMCommunicate request_size=4 [13:40:54]MH_SAM_APDU [13:40:54]CAPDU: 80 17 00 00 [13:40:54]Write to MH i2c: E2 08 00 9E 4B 80 17 00 00 00 00 00 00 69 [13:40:54]Write i2c OK [13:40:54]MH_I2C_Read... [13:40:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:40:55]Read from MH i2c: E2 [13:40:55]MH_I2C_Read... [13:40:55]Read from MH i2c: E2 FD 00 [13:40:55]MH_I2C_Read... [13:40:55]Read from MH i2c: E2 FD 00 9E 4B 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E1 [13:40:55]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [13:40:55]wFMCommunicate OK [13:40:55]wFMCommunicate request_size=4 [13:40:55]MH_SAM_APDU [13:40:55]CAPDU: 80 17 00 00 [13:40:55]Write to MH i2c: E2 08 00 9F 4B 80 17 00 00 00 00 00 00 6A [13:40:55]Write i2c OK [13:40:55]MH_I2C_Read... [13:40:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [13:40:55]Read from MH i2c: E2 [13:40:55]MH_I2C_Read... [13:40:55]Read from MH i2c: E2 E1 00 [13:40:55]MH_I2C_Read... [13:40:55]Read from MH i2c: E2 E1 00 9F 4B 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 58 [13:40:55]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [13:40:55]wFMCommunicate OK [13:40:55]SAM_PROTO_GetFMData done [13:40:55]requested_item fm.sale_refund.total is exist - process it [13:40:55]requested_item fm.buy.total is exist - process it [13:40:55]requested_item shift.sale.total is exist - process it [13:40:55]SAM_PROTO_GetShiftData [13:40:55]wFMCommunicate request_size=4 [13:40:55]MH_SAM_APDU [13:40:55]CAPDU: 80 13 02 00 [13:40:55]Write to MH i2c: E2 08 00 A0 4B 80 13 02 00 00 00 00 00 69 [13:40:55]Write i2c OK [13:40:55]MH_I2C_Read... [13:40:55]OFD Sender: No OFD packet to send [13:40:55]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [13:40:55]Read from MH i2c: E2 [13:40:55]MH_I2C_Read... [13:40:55]Read from MH i2c: E2 FD 00 [13:40:55]MH_I2C_Read... [13:40:55]Read from MH i2c: E2 FD 00 A0 4B 00 B5 04 AA 04 B1 04 6E 04 04 00 2C 00 00 00 69 04 9B 00 6F 04 04 00 2B 00 00 00 B1 04 03 00 80 5A 0C 70 04 03 00 54 6B 09 72 04 03 00 2C EF 02 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 D5 4F 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 F5 1B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 10 27 70 04 02 00 10 27 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 29 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 00 90 00 4C [13:40:55]RAPDU: B5 04 AA 04 B1 04 6E 04 04 00 2C 00 00 00 69 04 9B 00 6F 04 04 00 2B 00 00 00 B1 04 03 00 80 5A 0C 70 04 03 00 54 6B 09 72 04 03 00 2C EF 02 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 D5 4F 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 F5 1B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 10 27 70 04 02 00 10 27 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 29 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 00 90 00 [13:40:55]wFMCommunicate OK [13:40:55]wFMCommunicate request_size=4 [13:40:55]MH_SAM_APDU [13:40:55]CAPDU: 80 17 00 00 [13:40:55]Write to MH i2c: E2 08 00 A1 4B 80 17 00 00 00 00 00 00 6C [13:40:55]Write i2c OK [13:40:55]MH_I2C_Read... [13:40:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:40:56]Read from MH i2c: E2 [13:40:56]MH_I2C_Read... [13:40:56]Read from MH i2c: E2 FD 00 [13:40:56]MH_I2C_Read... [13:40:56]Read from MH i2c: E2 FD 00 A1 4B 00 F6 03 01 00 01 F7 03 01 00 59 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 DB [13:40:56]RAPDU: F6 03 01 00 01 F7 03 01 00 59 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [13:40:56]wFMCommunicate OK [13:40:56]wFMCommunicate request_size=4 [13:40:56]MH_SAM_APDU [13:40:56]CAPDU: 80 17 00 00 [13:40:56]Write to MH i2c: E2 08 00 A2 4B 80 17 00 00 00 00 00 00 6D [13:40:56]Write i2c OK [13:40:56]MH_I2C_Read... [13:40:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:40:56]Read from MH i2c: E2 [13:40:56]MH_I2C_Read... [13:40:56]Read from MH i2c: E2 FD 00 [13:40:56]MH_I2C_Read... [13:40:56]Read from MH i2c: E2 FD 00 A2 4B 00 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 2A [13:40:56]RAPDU: 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [13:40:56]wFMCommunicate OK [13:40:56]wFMCommunicate request_size=4 [13:40:56]MH_SAM_APDU [13:40:56]CAPDU: 80 17 00 00 [13:40:56]Write to MH i2c: E2 08 00 A3 4B 80 17 00 00 00 00 00 00 6E [13:40:56]Write i2c OK [13:40:56]MH_I2C_Read... [13:40:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:40:56]Read from MH i2c: E2 [13:40:56]MH_I2C_Read... [13:40:56]Read from MH i2c: E2 FD 00 [13:40:56]MH_I2C_Read... [13:40:56]Read from MH i2c: E2 FD 00 A3 4B 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 90 00 E6 [13:40:56]RAPDU: 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 90 00 [13:40:56]wFMCommunicate OK [13:40:56]wFMCommunicate request_size=4 [13:40:56]MH_SAM_APDU [13:40:56]CAPDU: 80 17 00 00 [13:40:56]Write to MH i2c: E2 08 00 A4 4B 80 17 00 00 00 00 00 00 6F [13:40:56]Write i2c OK [13:40:56]MH_I2C_Read... [13:40:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 207! [13:40:57]Read from MH i2c: E2 [13:40:57]MH_I2C_Read... [13:40:57]Read from MH i2c: E2 D2 00 [13:40:57]MH_I2C_Read... [13:40:57]Read from MH i2c: E2 D2 00 A4 4B 00 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 52 [13:40:57]RAPDU: 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [13:40:57]wFMCommunicate OK [13:40:57]SAM_PROTO_GetShiftData done [13:40:57]requested_item shift.sale.total_cash is exist - process it [13:40:57]requested_item shift.sale_refund.total is exist - process it [13:40:57]requested_item shift.sale_refund.total_cash is exist - process it [13:40:57]requested_item shift.buy.total is exist - process it [13:40:57]requested_item shift.buy.total_cash is exist - process it [13:40:57]produce_requested_data done [13:40:57]produce_requested_data return {"fm.sale.total":12431594.36,"fm.sale_refund.total":865597.10,"fm.buy.total":0.00,"shift.sale.total":8096.00,"shift.sale.total_cash":6173.00,"shift.sale_refund.total":100.00,"shift.sale_refund.total_cash":100.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [13:40:57]process_action_free get_value [13:40:57]json_value_free [13:40:57]json_value_free done [13:40:57]process_json_proto returns [13:40:57]Send response to host [13:40:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":12431594.36,"fm.sale_refund.total":865597.10,"fm.buy.total":0.00,"shift.sale.total":8096.00,"shift.sale.total_cash":6173.00,"shift.sale_refund.total":100.00,"shift.sale_refund.total_cash":100.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [13:40:57]free response buf [13:40:57]execute_script done [13:40:57]execute_script returns [13:40:57]free content buf [13:40:57]Sock 9.Close socket [13:40:57]Sock 9.Thread stoped [13:41:00]OFD Sender: No OFD packet to send [13:41:05]OFD Sender: No OFD packet to send [13:41:10]OFD Sender: No OFD packet to send [13:41:15]OFD Sender: No OFD packet to send [13:41:20]OFD Sender: No OFD packet to send [13:41:25]OFD Sender: No OFD packet to send [13:41:30]OFD Sender: No OFD packet to send [13:41:35]OFD Sender: No OFD packet to send [13:41:40]OFD Sender: No OFD packet to send [13:41:45]OFD Sender: No OFD packet to send [13:41:50]OFD Sender: No OFD packet to send [13:41:55]OFD Sender: No OFD packet to send [13:42:00]OFD Sender: No OFD packet to send [13:42:05]OFD Sender: No OFD packet to send [13:42:10]OFD Sender: No OFD packet to send [13:42:15]OFD Sender: No OFD packet to send [13:42:20]OFD Sender: No OFD packet to send [13:42:25]OFD Sender: No OFD packet to send [13:42:30]OFD Sender: No OFD packet to send [13:42:35]OFD Sender: No OFD packet to send [13:42:40]OFD Sender: No OFD packet to send [13:42:45]OFD Sender: No OFD packet to send [13:42:50]OFD Sender: No OFD packet to send [13:42:55]OFD Sender: No OFD packet to send [13:43:00]OFD Sender: No OFD packet to send [13:43:05]OFD Sender: No OFD packet to send [13:43:10]OFD Sender: No OFD packet to send [13:43:15]OFD Sender: No OFD packet to send [13:43:20]OFD Sender: No OFD packet to send [13:43:25]OFD Sender: No OFD packet to send [13:43:30]OFD Sender: No OFD packet to send [13:43:35]OFD Sender: No OFD packet to send [13:43:40]OFD Sender: No OFD packet to send [13:43:45]OFD Sender: No OFD packet to send [13:43:50]OFD Sender: No OFD packet to send [13:43:55]OFD Sender: No OFD packet to send [13:44:00]OFD Sender: No OFD packet to send [13:44:05]OFD Sender: No OFD packet to send [13:44:10]OFD Sender: No OFD packet to send [13:44:15]OFD Sender: No OFD packet to send [13:44:20]OFD Sender: No OFD packet to send [13:44:25]OFD Sender: No OFD packet to send [13:44:30]OFD Sender: No OFD packet to send [13:44:35]OFD Sender: No OFD packet to send [13:44:40]OFD Sender: No OFD packet to send [13:44:45]OFD Sender: No OFD packet to send [13:44:50]OFD Sender: No OFD packet to send [13:44:55]OFD Sender: No OFD packet to send [13:45:00]OFD Sender: No OFD packet to send [13:45:05]OFD Sender: No OFD packet to send [13:45:10]OFD Sender: No OFD packet to send [13:45:15]OFD Sender: No OFD packet to send [13:45:20]OFD Sender: No OFD packet to send [13:45:25]OFD Sender: No OFD packet to send [13:45:30]OFD Sender: No OFD packet to send [13:45:35]OFD Sender: No OFD packet to send [13:45:40]OFD Sender: No OFD packet to send [13:45:45]OFD Sender: No OFD packet to send [13:45:50]OFD Sender: No OFD packet to send [13:45:55]OFD Sender: No OFD packet to send [13:46:00]OFD Sender: No OFD packet to send [13:46:05]OFD Sender: No OFD packet to send [13:46:10]OFD Sender: No OFD packet to send [13:46:15]OFD Sender: No OFD packet to send [13:46:20]OFD Sender: No OFD packet to send [13:46:25]OFD Sender: No OFD packet to send [13:46:30]OFD Sender: No OFD packet to send [13:46:35]OFD Sender: No OFD packet to send [13:46:40]OFD Sender: No OFD packet to send [13:46:45]OFD Sender: No OFD packet to send [13:46:50]OFD Sender: No OFD packet to send [13:46:55]OFD Sender: No OFD packet to send [13:47:00]OFD Sender: No OFD packet to send [13:47:05]OFD Sender: No OFD packet to send [13:47:10]OFD Sender: No OFD packet to send [13:47:15]OFD Sender: No OFD packet to send [13:47:20]OFD Sender: No OFD packet to send [13:47:25]OFD Sender: No OFD packet to send [13:47:30]OFD Sender: No OFD packet to send [13:47:35]OFD Sender: No OFD packet to send [13:47:40]OFD Sender: No OFD packet to send [13:47:45]OFD Sender: No OFD packet to send [13:47:50]OFD Sender: No OFD packet to send [13:47:55]OFD Sender: No OFD packet to send [13:48:00]OFD Sender: No OFD packet to send [13:48:05]OFD Sender: No OFD packet to send [13:48:10]OFD Sender: No OFD packet to send [13:48:15]OFD Sender: No OFD packet to send [13:48:20]OFD Sender: No OFD packet to send [13:48:25]OFD Sender: No OFD packet to send [13:48:30]OFD Sender: No OFD packet to send [13:48:35]OFD Sender: No OFD packet to send [13:48:40]OFD Sender: No OFD packet to send [13:48:45]OFD Sender: No OFD packet to send [13:48:50]OFD Sender: No OFD packet to send [13:48:55]OFD Sender: No OFD packet to send [13:49:00]OFD Sender: No OFD packet to send [13:49:05]OFD Sender: No OFD packet to send [13:49:10]OFD Sender: No OFD packet to send [13:49:15]OFD Sender: No OFD packet to send [13:49:20]OFD Sender: No OFD packet to send [13:49:25]OFD Sender: No OFD packet to send [13:49:30]OFD Sender: No OFD packet to send [13:49:35]OFD Sender: No OFD packet to send [13:49:40]OFD Sender: No OFD packet to send [13:49:45]OFD Sender: No OFD packet to send [13:49:50]OFD Sender: No OFD packet to send [13:49:55]OFD Sender: No OFD packet to send [13:50:00]OFD Sender: No OFD packet to send [13:50:05]OFD Sender: No OFD packet to send [13:50:10]OFD Sender: No OFD packet to send [13:50:15]OFD Sender: No OFD packet to send [13:50:20]OFD Sender: No OFD packet to send [13:50:25]OFD Sender: No OFD packet to send [13:50:30]OFD Sender: No OFD packet to send [13:50:35]OFD Sender: No OFD packet to send [13:50:41]OFD Sender: No OFD packet to send [13:50:46]OFD Sender: No OFD packet to send [13:50:51]OFD Sender: No OFD packet to send [13:50:56]OFD Sender: No OFD packet to send [13:51:01]OFD Sender: No OFD packet to send [13:51:06]OFD Sender: No OFD packet to send [13:51:11]OFD Sender: No OFD packet to send [13:51:16]OFD Sender: No OFD packet to send [13:51:21]OFD Sender: No OFD packet to send [13:51:26]OFD Sender: No OFD packet to send [13:51:31]OFD Sender: No OFD packet to send [13:51:36]OFD Sender: No OFD packet to send [13:51:41]OFD Sender: No OFD packet to send [13:51:46]OFD Sender: No OFD packet to send [13:51:51]OFD Sender: No OFD packet to send [13:51:56]OFD Sender: No OFD packet to send [13:52:01]OFD Sender: No OFD packet to send [13:52:06]OFD Sender: No OFD packet to send [13:52:11]OFD Sender: No OFD packet to send [13:52:16]OFD Sender: No OFD packet to send [13:52:21]OFD Sender: No OFD packet to send [13:52:26]OFD Sender: No OFD packet to send [13:52:31]OFD Sender: No OFD packet to send [13:52:36]OFD Sender: No OFD packet to send [13:52:41]OFD Sender: No OFD packet to send [13:52:46]OFD Sender: No OFD packet to send [13:52:51]OFD Sender: No OFD packet to send [13:52:56]OFD Sender: No OFD packet to send [13:53:01]OFD Sender: No OFD packet to send [13:53:06]OFD Sender: No OFD packet to send [13:53:11]OFD Sender: No OFD packet to send [13:53:16]OFD Sender: No OFD packet to send [13:53:21]OFD Sender: No OFD packet to send [13:53:26]OFD Sender: No OFD packet to send [13:53:31]OFD Sender: No OFD packet to send [13:53:36]OFD Sender: No OFD packet to send [13:53:41]OFD Sender: No OFD packet to send [13:53:46]OFD Sender: No OFD packet to send [13:53:51]OFD Sender: No OFD packet to send [13:53:56]OFD Sender: No OFD packet to send [13:54:01]OFD Sender: No OFD packet to send [13:54:06]OFD Sender: No OFD packet to send [13:54:11]OFD Sender: No OFD packet to send [13:54:16]OFD Sender: No OFD packet to send [13:54:21]OFD Sender: No OFD packet to send [13:54:26]OFD Sender: No OFD packet to send [13:54:31]OFD Sender: No OFD packet to send [13:54:36]OFD Sender: No OFD packet to send [13:54:41]OFD Sender: No OFD packet to send [13:54:46]OFD Sender: No OFD packet to send [13:54:51]OFD Sender: No OFD packet to send [13:54:56]OFD Sender: No OFD packet to send [13:55:01]OFD Sender: No OFD packet to send [13:55:06]OFD Sender: No OFD packet to send [13:55:11]OFD Sender: No OFD packet to send [13:55:16]OFD Sender: No OFD packet to send [13:55:21]OFD Sender: No OFD packet to send [13:55:26]OFD Sender: No OFD packet to send [13:55:31]OFD Sender: No OFD packet to send [13:55:36]OFD Sender: No OFD packet to send [13:55:41]OFD Sender: No OFD packet to send [13:55:46]OFD Sender: No OFD packet to send [13:55:51]OFD Sender: No OFD packet to send [13:55:56]OFD Sender: No OFD packet to send [13:56:01]OFD Sender: No OFD packet to send [13:56:06]OFD Sender: No OFD packet to send [13:56:11]OFD Sender: No OFD packet to send [13:56:16]OFD Sender: No OFD packet to send [13:56:21]OFD Sender: No OFD packet to send [13:56:26]OFD Sender: No OFD packet to send [13:56:31]OFD Sender: No OFD packet to send [13:56:36]OFD Sender: No OFD packet to send [13:56:41]OFD Sender: No OFD packet to send [13:56:46]OFD Sender: No OFD packet to send [13:56:51]OFD Sender: No OFD packet to send [13:56:56]OFD Sender: No OFD packet to send [13:57:01]OFD Sender: No OFD packet to send [13:57:06]OFD Sender: No OFD packet to send [13:57:11]OFD Sender: No OFD packet to send [13:57:16]OFD Sender: No OFD packet to send [13:57:21]OFD Sender: No OFD packet to send [13:57:26]OFD Sender: No OFD packet to send [13:57:31]OFD Sender: No OFD packet to send [13:57:36]OFD Sender: No OFD packet to send [13:57:41]OFD Sender: No OFD packet to send [13:57:46]OFD Sender: No OFD packet to send [13:57:51]OFD Sender: No OFD packet to send [13:57:56]OFD Sender: No OFD packet to send [13:58:01]OFD Sender: No OFD packet to send [13:58:06]OFD Sender: No OFD packet to send [13:58:11]OFD Sender: No OFD packet to send [13:58:16]OFD Sender: No OFD packet to send [13:58:21]OFD Sender: No OFD packet to send [13:58:26]OFD Sender: No OFD packet to send [13:58:31]OFD Sender: No OFD packet to send [13:58:36]OFD Sender: No OFD packet to send [13:58:41]OFD Sender: No OFD packet to send [13:58:46]OFD Sender: No OFD packet to send [13:58:51]OFD Sender: No OFD packet to send [13:58:56]OFD Sender: No OFD packet to send [13:59:01]OFD Sender: No OFD packet to send [13:59:06]OFD Sender: No OFD packet to send [13:59:11]OFD Sender: No OFD packet to send [13:59:16]OFD Sender: No OFD packet to send [13:59:21]OFD Sender: No OFD packet to send [13:59:26]OFD Sender: No OFD packet to send [13:59:31]OFD Sender: No OFD packet to send [13:59:36]OFD Sender: No OFD packet to send [13:59:41]OFD Sender: No OFD packet to send [13:59:46]OFD Sender: No OFD packet to send [13:59:51]OFD Sender: No OFD packet to send [13:59:56]OFD Sender: No OFD packet to send [14:00:01]OFD Sender: No OFD packet to send [14:00:06]OFD Sender: No OFD packet to send [14:00:11]OFD Sender: No OFD packet to send [14:00:16]OFD Sender: No OFD packet to send [14:00:21]OFD Sender: No OFD packet to send [14:00:26]OFD Sender: No OFD packet to send [14:00:31]OFD Sender: No OFD packet to send [14:00:36]OFD Sender: No OFD packet to send [14:00:41]OFD Sender: No OFD packet to send [14:00:46]OFD Sender: No OFD packet to send [14:00:51]OFD Sender: No OFD packet to send [14:00:56]OFD Sender: No OFD packet to send [14:01:01]OFD Sender: No OFD packet to send [14:01:06]OFD Sender: No OFD packet to send [14:01:11]OFD Sender: No OFD packet to send [14:01:16]OFD Sender: No OFD packet to send [14:01:21]OFD Sender: No OFD packet to send [14:01:26]OFD Sender: No OFD packet to send [14:01:31]OFD Sender: No OFD packet to send [14:01:36]OFD Sender: No OFD packet to send [14:01:41]OFD Sender: No OFD packet to send [14:01:46]OFD Sender: No OFD packet to send [14:01:51]OFD Sender: No OFD packet to send [14:01:56]OFD Sender: No OFD packet to send [14:02:01]OFD Sender: No OFD packet to send [14:02:06]OFD Sender: No OFD packet to send [14:02:11]OFD Sender: No OFD packet to send [14:02:16]OFD Sender: No OFD packet to send [14:02:21]OFD Sender: No OFD packet to send [14:02:26]OFD Sender: No OFD packet to send [14:02:31]OFD Sender: No OFD packet to send [14:02:36]OFD Sender: No OFD packet to send [14:02:41]OFD Sender: No OFD packet to send [14:02:46]OFD Sender: No OFD packet to send [14:02:51]OFD Sender: No OFD packet to send [14:02:56]OFD Sender: No OFD packet to send [14:03:01]OFD Sender: No OFD packet to send [14:03:06]OFD Sender: No OFD packet to send [14:03:11]OFD Sender: No OFD packet to send [14:03:16]OFD Sender: No OFD packet to send [14:03:21]OFD Sender: No OFD packet to send [14:03:26]OFD Sender: No OFD packet to send [14:03:31]OFD Sender: No OFD packet to send [14:03:36]OFD Sender: No OFD packet to send [14:03:41]OFD Sender: No OFD packet to send [14:03:44]accept exits with 7 [14:03:44]New connection [14:03:44]New thread 3067014500 created [14:03:44]Thread 3067157860 joined [14:03:44]Waiting for new connection... [14:03:44] Sock 7.Parse request [14:03:44]Sock 7.Check first char [14:03:44]Sock 7.First char is OK [14:03:44]request: POST /json_proto HTTP/1.0 [14:03:44]Method: POST [14:03:44]URL: /json_proto [14:03:44]Method is POST - this is cgi request [14:03:44]url: /json_proto [14:03:44]query_string will be loaded in cgi processing [14:03:44]execute_cgi json_proto POST (null) [14:03:44]execute_cgi path=json_proto method=POST [14:03:44]POST find Content-Length [14:03:44]Host: 172.17.48.198:8080 [14:03:44]Content-Length: 621 [14:03:44]Content-Type: application/json [14:03:44] [14:03:44]POST finish read [14:03:44]Found Content-Length = 621 [14:03:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184173", "tax_sys" : 0, "items" : [ { "code": "48744119", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Xstyle Dual", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:03:44]execute_script... [14:03: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)184173", "tax_sys" : 0, "items" : [ { "code": "48744119", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Xstyle Dual", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:03:44]POST & json_proto [14:03:44]process_json_proto [14:03:44]json parsed OK: [14:03:44]protocol is kg_v1.0 [14:03:44]action value=close_receipt [14:03:44]process_action close_receipt [14:03:44]cmd_close_receipt [14:03:44]MH_GetDate [14:03:44]Write to MH i2c: F0 00 00 A5 4B DF [14:03:44]Write i2c OK [14:03:44]MH_I2C_Read... [14:03:44]Read from MH i2c: F0 [14:03:44]MH_I2C_Read... [14:03:44]Read from MH i2c: F0 09 00 [14:03:44]MH_I2C_Read... [14:03:44]Read from MH i2c: F0 09 00 A5 4B 00 4B 83 E4 65 CE C4 D4 65 CA [14:03:44]GetLastDocTimeStamp 1709472533 [14:03:44]current date 1709474635 [14:03:44]FM_GetShiftState [14:03:44]SAM_PROTO_GetShiftState [14:03:44]wFMCommunicate request_size=4 [14:03:44]MH_SAM_APDU [14:03:44]CAPDU: 80 13 01 00 [14:03:44]Write to MH i2c: E2 08 00 A6 4B 80 13 01 00 00 00 00 00 6E [14:03:44]Write i2c OK [14:03:44]MH_I2C_Read... [14:03:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:03:44]Read from MH i2c: E2 [14:03:44]MH_I2C_Read... [14:03:44]Read from MH i2c: E2 0E 00 [14:03:44]MH_I2C_Read... [14:03:44]Read from MH i2c: E2 0E 00 A6 4B 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 A4 [14:03:44]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [14:03:44]wFMCommunicate OK [14:03:44]SAM_PROTO_GetShiftState done [14:03:44]FM_GetShiftState done [14:03:44]opened in 1709425694 [14:03:44]opened+sec_in_day 1709512094 [14:03:44]quantity*price = 14000 [14:03:44]sum+1 = 14001 [14:03:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 45 03.03.2024 14:03 Смена: 331 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 ФМ: 0000000000874796 ФД: 45208 ФПД: 229307216192123 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T140356&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45208&fm=229307216192123&tin=02508201610067®Number=0000000000090572&sum=14000 0 [14:03:45]StoreToDocumentArchive [14:03:45]shift 331 fd 45208 [14:03:45]save to /storage/0331/doc_00045208 [14:03:45]save last doc name /storage/0331/doc_00045208 to /storage/kkm_last_doc_name [14:03:45]save OK [14:03:45]Clear old archive folders... [14:03:45]ProcessDocumentItem done err = 0, tmpTLVsize=273 [14:03:45]tlvbuf is 01B23D80 [14:03:45]SAM_PROTO_ClearQueue [14:03:45]wFMCommunicate request_size=4 [14:03:45]MH_SAM_APDU [14:03:45]CAPDU: 80 09 00 00 [14:03:45]Write to MH i2c: E2 08 00 B3 4B 80 09 00 00 00 00 00 00 70 [14:03:45]Write i2c OK [14:03:45]MH_I2C_Read... [14:03:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:03:45]Read from MH i2c: E2 [14:03:45]MH_I2C_Read... [14:03:45]Read from MH i2c: E2 03 00 [14:03:45]MH_I2C_Read... [14:03:45]Read from MH i2c: E2 03 00 B3 4B 00 90 00 72 [14:03:45]RAPDU: 90 00 [14:03:45]wFMCommunicate OK [14:03:45]SAM_PROTO_ClearQueue done [14:03:45]KKMCreateOFDPacket [14:03:45]OFDProtocolAddRootSTLVToBuf [14:03:45]FM_MakeSignedData [14:03:45]FM_MakeSignedData [14:03:45]SAM_PROTO_SignData [14:03:45]wFMCommunicate request_size=4 [14:03:45]MH_SAM_APDU [14:03:45]CAPDU: 80 0D 01 02 [14:03:45]Write to MH i2c: E2 08 00 B4 4B 80 0D 01 02 00 00 00 00 78 [14:03:45]Write i2c OK [14:03:45]MH_I2C_Read... [14:03:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:03:45]Read from MH i2c: E2 [14:03:45]MH_I2C_Read... [14:03:45]Read from MH i2c: E2 03 00 [14:03:45]MH_I2C_Read... [14:03:45]Read from MH i2c: E2 03 00 B4 4B 00 90 00 73 [14:03:45]RAPDU: 90 00 [14:03:45]wFMCommunicate OK [14:03:45]wFMCommunicate request_size=255 [14:03:45]MH_SAM_APDU [14:03:45]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 34 31 31 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 73 74 79 6C 65 20 44 75 61 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 4C 83 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 [14:03:45]Write to MH i2c: E2 02 01 B5 4B 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 34 31 31 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 73 74 79 6C 65 20 44 75 61 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 4C 83 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 00 00 1A [14:03:45]Write i2c OK [14:03:45]MH_I2C_Read... [14:03:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:03:45]Read from MH i2c: E2 [14:03:45]MH_I2C_Read... [14:03:45]Read from MH i2c: E2 03 00 [14:03:45]MH_I2C_Read... [14:03:45]Read from MH i2c: E2 03 00 B5 4B 00 90 00 74 [14:03:45]RAPDU: 90 00 [14:03:45]wFMCommunicate OK [14:03:45]wFMCommunicate request_size=32 [14:03:45]MH_SAM_APDU [14:03:45]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 37 39 36 10 04 04 00 98 B0 00 00 35 04 06 00 D0 8D BF 2A 62 7B [14:03:45]Write to MH i2c: E2 23 00 B6 4B 80 0D 02 02 1B 00 30 30 30 38 37 34 37 39 36 10 04 04 00 98 B0 00 00 35 04 06 00 D0 8D BF 2A 62 7B 00 00 4C [14:03:45]Write i2c OK [14:03:45]MH_I2C_Read... [14:03:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:03:45]Read from MH i2c: E2 [14:03:45]MH_I2C_Read... [14:03:45]Read from MH i2c: E2 03 00 [14:03:45]MH_I2C_Read... [14:03:45]Read from MH i2c: E2 03 00 B6 4B 00 90 00 75 [14:03:45]RAPDU: 90 00 [14:03:45]wFMCommunicate OK [14:03:45]wFMCommunicate request_size=4 [14:03:45]MH_SAM_APDU [14:03:45]CAPDU: 80 0D 03 02 [14:03:45]Write to MH i2c: E2 08 00 B7 4B 80 0D 03 02 00 00 00 00 7D [14:03:45]Write i2c OK [14:03:45]MH_I2C_Read... [14:03:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:03:45]Read from MH i2c: E2 [14:03:45]MH_I2C_Read... [14:03:45]Read from MH i2c: E2 0B 00 [14:03:45]MH_I2C_Read... [14:03:45]Read from MH i2c: E2 0B 00 B7 4B 00 16 8F 87 47 1B C7 ED 81 90 00 41 [14:03:45]RAPDU: 16 8F 87 47 1B C7 ED 81 90 00 [14:03:45]wFMCommunicate OK [14:03:45]SAM_PROTO_SignData done [14:03:45]FM_MakeSignedData done [14:03:45]CreateOFDProtocolMessage [14:03:45]wFMCommunicate request_size=4 [14:03:45]MH_SAM_APDU [14:03:45]CAPDU: 80 11 00 00 [14:03:45]Write to MH i2c: E2 08 00 B8 4B 80 11 00 00 00 00 00 00 7D [14:03:45]Write i2c OK [14:03:45]MH_I2C_Read... [14:03:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:03:45]Read from MH i2c: E2 [14:03:45]MH_I2C_Read... [14:03:45]Read from MH i2c: E2 17 00 [14:03:45]MH_I2C_Read... [14:03:45]Read from MH i2c: E2 17 00 B8 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 D9 [14:03:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [14:03:45]wFMCommunicate OK [14:03:45]CreateOFDProtocolMessage done [14:03:45]OFDSenderStorePacket 45208 [14:03:45]StoreOFDPacket docnum=45208 [14:03:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 25 01 00 00 DB 15 1D 01 EC 27 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 34 31 31 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 73 74 79 6C 65 20 44 75 61 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 4C 83 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 98 B0 00 00 35 04 06 00 D0 8D BF 2A 62 7B 16 8F 87 47 1B C7 ED 81 [14:03:45]CheckFolder [14:03:45]dirname=/storage/ofd_packets [14:03:45]CheckFolder done [14:03:45]ProducePacketName [14:03:45]name=ofd_packets/00045208 [14:03:45]NVStorageSaveData ofd_packets/00045208 [14:03:45]File name is /storage/ofd_packets/00045208 [14:03:45]Write 323 bytes [14:03:45]NVStorageSaveData done [14:03:45]OFDSenderStorePacket done [14:03:45]KKMCreateOFDPacket done [14:03:45]NVStorageSaveData kkm_last_timestamp [14:03:45]File name is /storage/kkm_last_timestamp [14:03:45]Write 4 bytes [14:03:45]NVStorageSaveData done [14:03:45]ExternCall_PrintAddStr [14:03:45]wPrintStart [14:03:45]Write to MH i2c: 01 00 00 B9 4B 04 [14:03:45]Write i2c OK [14:03:45]MH_I2C_Read... [14:03:45]Read from MH i2c: 01 [14:03:45]MH_I2C_Read... [14:03:45]Read from MH i2c: 01 07 00 [14:03:45]MH_I2C_Read... [14:03:45]Read from MH i2c: 01 07 00 B9 4B 00 00 00 00 00 FF 0F 19 [14:03:45]RasterBufferAndPrint [14:03:45]line Счет N : (3)184173 [14:03:45]line ИНН: 02508201610067 [14:03:45]line Контрольно-Кассовый Чек [14:03:45]line ПРОДАЖА [14:03:45]line Товар: 48744119 [14:03:45]line Сигареты Winston Xstyle Dual [14:03:45]line 1.000 * 140.00 [14:03:45]line = 140.00 [14:03:45]line НДС 12% НСП 1% [14:03:45]line > о реализуемом товаре [14:03:45]line ИТОГО: 140.00 [14:03:45]line НСП 1% : 1.24 [14:03:45]line НДС 12% : 14.87 [14:03:45]line Наличными: 140.00 [14:03:45]line Безнал.: 0.00 [14:03:45]line Место: АЗС № 25 "Партнер Нефть" [14:03:45]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [14:03:45]line СНО: Общий режим [14:03:45]line Чек 45 03.03.2024 14:03 [14:03:45]line Смена: 331 ФФД: 1.0 [14:03:45]line ЗНМ: 0300000013 [14:03:45]line РНМ: 0000000000090572 [14:03:45]line Версия ККМ: 001 [14:03:45]line ФМ: 0000000000874796 [14:03:45]line ФД: 45208 [14:03:45]line ФПД: 229307216192123 [14:03:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T140356&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45208&fm=229307216192123&tin=02508201610067®Number=0000000000090572&sum=14000 [14:03:46]line 0 [14:03:46]OFD Sender: Processing packet 45208 [packets to send 17, broken 16] [14:03:46]ProducePacketName [14:03:46]name=ofd_packets/00045208 [14:03:46]OFD Sender: To server: pG, [14:03:46]CommunicateWithHost lk.salyk.kg:30040 [14:03:46]ConnectInit lk.salyk.kg [14:03:46]written 0, free lines is 4095 [14:03:46]Connected sock=10 [14: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 34 37 39 36 25 01 00 00 DB 15 1D 01 EC 27 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 34 31 31 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 73 74 79 6C 65 20 44 75 61 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 4C 83 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 98 B0 00 00 35 04 06 00 D0 8D BF 2A 62 7B 16 8F 87 47 1B C7 ED 81 [14:03:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 0A 47 47 00 F3 CF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 98 B0 00 00 F4 03 04 00 10 2F E4 65 B6 04 01 00 00 B9 B5 0F AA 13 AE 1F D3 [14:03:46]CommunicateWithHost err = 0 [14:03:46]CheckOFDResponse [14:03:46]1017 (14) - 77093643461234 [14:03:46]1041 (16) - 0000000000874796 [14:03:46]1040 (4) - 45208 [14:03:46]1012 (4) - 03.03.2024 08:04 [14:03:46]1206 (1) - 0 [14:03:46]OFD Sender: Remove packet 45208 [14:03:46]ProducePacketName [14:03:46]name=ofd_packets/00045208 [14:03:46]NVStorageDeleteData [14:03:46]Write to MH i2c: 01 00 00 E1 4B 2C [14:03:46]Write i2c OK [14:03:46]MH_I2C_Read... [14:03:46]Read from MH i2c: 01 [14:03:46]MH_I2C_Read... [14:03:46]Read from MH i2c: 01 07 00 [14:03:46]MH_I2C_Read... [14:03:46]Read from MH i2c: 01 07 00 E1 4B 00 00 00 00 00 04 0D 44 [14:03:46]RasterBufferAndPrint [14:03:46]line [14:03:46]line [14:03:46]line [14:03:46]line [14:03:46]line [14:03:46]written 0, free lines is 3341 [14:03:46]MH_Cut [14:03:46]Write to MH i2c: D1 01 00 E8 4B 01 05 [14:03:46]Write i2c OK [14:03:46]MH_I2C_Read... [14:03:46]Read from MH i2c: D1 [14:03:46]MH_I2C_Read... [14:03:46]Read from MH i2c: D1 01 00 [14:03:46]MH_I2C_Read... [14:03:46]Read from MH i2c: D1 01 00 E8 4B 00 04 [14:03:46]Write to MH i2c: 01 00 00 E9 4B 34 [14:03:46]Write i2c OK [14:03:46]MH_I2C_Read... [14:03:47]OFD Sender: No OFD packet to send [14:03:47]*** Cut start [14:03:47]*** Purtial cut [14:03:47]*** Stage 1: CUTSNS_PIN = 1 [14:03:49]Read from MH i2c: 01 [14:03:49]MH_I2C_Read... [14:03:49]*** Stop cut motor [14:03:49]*** Cut end [14:03:49]Read from MH i2c: 01 07 00 [14:03:49]MH_I2C_Read... [14:03:49]Read from MH i2c: 01 07 00 E9 4B 00 00 00 00 00 FF 0F 49 [14:03:49]process_action close_receipt done [14:03:49]requested_data is exist [14:03:49]produce_requested_data [14:03:49]requested_item fm.sn is exist - process it [14:03:49]wFMCommunicate request_size=4 [14:03:49]MH_SAM_APDU [14:03:49]CAPDU: 80 11 00 00 [14:03:49]Write to MH i2c: E2 08 00 EA 4B 80 11 00 00 00 00 00 00 AF [14:03:49]Write i2c OK [14:03:49]MH_I2C_Read... [14:03:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:03:49]Read from MH i2c: E2 [14:03:49]MH_I2C_Read... [14:03:49]Read from MH i2c: E2 17 00 [14:03:49]MH_I2C_Read... [14:03:49]Read from MH i2c: E2 17 00 EA 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 0B [14:03:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [14:03:49]wFMCommunicate OK [14:03:49]requested_item fd.num is exist - process it [14:03:49]SAM_PROTO_GetFieldsCounters [14:03:49]wFMCommunicate request_size=4 [14:03:49]MH_SAM_APDU [14:03:49]CAPDU: 80 13 00 00 [14:03:49]Write to MH i2c: E2 08 00 EB 4B 80 13 00 00 00 00 00 00 B2 [14:03:49]Write i2c OK [14:03:49]MH_I2C_Read... [14:03:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:03:49]Read from MH i2c: E2 [14:03:49]MH_I2C_Read... [14:03:49]Read from MH i2c: E2 62 00 [14:03:49]MH_I2C_Read... [14:03:49]Read from MH i2c: E2 62 00 EB 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 98 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 F5 [14:03:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 98 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:03:49]wFMCommunicate OK [14:03:49]SAM_PROTO_GetFieldsCounters done [14:03:49]requested_item shift.num is exist - process it [14:03:49]requested_item shift.opened is exist - process it [14:03:49]req_shift_opened [14:03:49]FM_GetShiftState [14:03:49]SAM_PROTO_GetShiftState [14:03:49]wFMCommunicate request_size=4 [14:03:49]MH_SAM_APDU [14:03:49]CAPDU: 80 13 01 00 [14:03:49]Write to MH i2c: E2 08 00 EC 4B 80 13 01 00 00 00 00 00 B4 [14:03:49]Write i2c OK [14:03:49]MH_I2C_Read... [14:03:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:03:49]Read from MH i2c: E2 [14:03:49]MH_I2C_Read... [14:03:49]Read from MH i2c: E2 0E 00 [14:03:49]MH_I2C_Read... [14:03:49]Read from MH i2c: E2 0E 00 EC 4B 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 EA [14:03:49]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [14:03:49]wFMCommunicate OK [14:03:49]SAM_PROTO_GetShiftState done [14:03:49]FM_GetShiftState done [14:03:49]req_shift_opened done [14:03:49]requested_item shift.open_date is exist - process it [14:03:49]req_shift_open_date [14:03:49]req_shift_open_date done [14:03:49]produce_requested_data done [14:03:49]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45208,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [14:03:49]process_action_free close_receipt [14:03:49]json_value_free [14:03:49]json_value_free done [14:03:49]process_json_proto returns [14:03:49]Send response to host [14:03:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45208,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [14:03:49]free response buf [14:03:49]execute_script done [14:03:49]execute_script returns [14:03:49]free content buf [14:03:49]Sock 7.Close socket [14:03:49]Sock 7.Thread stoped [14:03:52]OFD Sender: No OFD packet to send [14:03:57]OFD Sender: No OFD packet to send [14:04:02]OFD Sender: No OFD packet to send [14:04:07]OFD Sender: No OFD packet to send [14:04:12]OFD Sender: No OFD packet to send [14:04:17]OFD Sender: No OFD packet to send [14:04:22]OFD Sender: No OFD packet to send [14:04:27]OFD Sender: No OFD packet to send [14:04:32]OFD Sender: No OFD packet to send [14:04:37]OFD Sender: No OFD packet to send [14:04:42]OFD Sender: No OFD packet to send [14:04:47]OFD Sender: No OFD packet to send [14:04:52]OFD Sender: No OFD packet to send [14:04:57]OFD Sender: No OFD packet to send [14:05:02]OFD Sender: No OFD packet to send [14:05:07]OFD Sender: No OFD packet to send [14:05:12]OFD Sender: No OFD packet to send [14:05:17]OFD Sender: No OFD packet to send [14:05:22]OFD Sender: No OFD packet to send [14:05:27]OFD Sender: No OFD packet to send [14:05:32]OFD Sender: No OFD packet to send [14:05:37]OFD Sender: No OFD packet to send [14:05:42]OFD Sender: No OFD packet to send [14:05:47]OFD Sender: No OFD packet to send [14:05:52]OFD Sender: No OFD packet to send [14:05:57]OFD Sender: No OFD packet to send [14:06:02]OFD Sender: No OFD packet to send [14:06:07]OFD Sender: No OFD packet to send [14:06:12]OFD Sender: No OFD packet to send [14:06:17]OFD Sender: No OFD packet to send [14:06:22]OFD Sender: No OFD packet to send [14:06:27]OFD Sender: No OFD packet to send [14:06:32]OFD Sender: No OFD packet to send [14:06:37]OFD Sender: No OFD packet to send [14:06:42]OFD Sender: No OFD packet to send [14:06:47]OFD Sender: No OFD packet to send [14:06:52]OFD Sender: No OFD packet to send [14:06:57]OFD Sender: No OFD packet to send [14:07:02]OFD Sender: No OFD packet to send [14:07:07]OFD Sender: No OFD packet to send [14:07:12]OFD Sender: No OFD packet to send [14:07:17]OFD Sender: No OFD packet to send [14:07:22]OFD Sender: No OFD packet to send [14:07:27]OFD Sender: No OFD packet to send [14:07:32]OFD Sender: No OFD packet to send [14:07:37]OFD Sender: No OFD packet to send [14:07:42]OFD Sender: No OFD packet to send [14:07:47]OFD Sender: No OFD packet to send [14:07:52]OFD Sender: No OFD packet to send [14:07:57]OFD Sender: No OFD packet to send [14:08:02]OFD Sender: No OFD packet to send [14:08:07]OFD Sender: No OFD packet to send [14:08:12]OFD Sender: No OFD packet to send [14:08:17]OFD Sender: No OFD packet to send [14:08:22]OFD Sender: No OFD packet to send [14:08:27]OFD Sender: No OFD packet to send [14:08:32]OFD Sender: No OFD packet to send [14:08:37]OFD Sender: No OFD packet to send [14:08:42]OFD Sender: No OFD packet to send [14:08:47]OFD Sender: No OFD packet to send [14:08:52]OFD Sender: No OFD packet to send [14:08:57]OFD Sender: No OFD packet to send [14:09:02]OFD Sender: No OFD packet to send [14:09:07]OFD Sender: No OFD packet to send [14:09:12]OFD Sender: No OFD packet to send [14:09:17]OFD Sender: No OFD packet to send [14:09:22]OFD Sender: No OFD packet to send [14:09:27]OFD Sender: No OFD packet to send [14:09:32]OFD Sender: No OFD packet to send [14:09:37]OFD Sender: No OFD packet to send [14:09:42]OFD Sender: No OFD packet to send [14:09:47]OFD Sender: No OFD packet to send [14:09:52]OFD Sender: No OFD packet to send [14:09:57]OFD Sender: No OFD packet to send [14:10:02]OFD Sender: No OFD packet to send [14:10:07]OFD Sender: No OFD packet to send [14:10:12]OFD Sender: No OFD packet to send [14:10:17]OFD Sender: No OFD packet to send [14:10:22]OFD Sender: No OFD packet to send [14:10:27]OFD Sender: No OFD packet to send [14:10:32]OFD Sender: No OFD packet to send [14:10:37]OFD Sender: No OFD packet to send [14:10:42]OFD Sender: No OFD packet to send [14:10:47]OFD Sender: No OFD packet to send [14:10:52]OFD Sender: No OFD packet to send [14:10:57]OFD Sender: No OFD packet to send [14:11:02]OFD Sender: No OFD packet to send [14:11:07]OFD Sender: No OFD packet to send [14:11:12]OFD Sender: No OFD packet to send [14:11:17]OFD Sender: No OFD packet to send [14:11:22]OFD Sender: No OFD packet to send [14:11:27]OFD Sender: No OFD packet to send [14:11:32]OFD Sender: No OFD packet to send [14:11:37]OFD Sender: No OFD packet to send [14:11:42]OFD Sender: No OFD packet to send [14:11:47]OFD Sender: No OFD packet to send [14:11:52]OFD Sender: No OFD packet to send [14:11:57]OFD Sender: No OFD packet to send [14:12:02]OFD Sender: No OFD packet to send [14:12:07]OFD Sender: No OFD packet to send [14:12:12]OFD Sender: No OFD packet to send [14:12:17]OFD Sender: No OFD packet to send [14:12:22]OFD Sender: No OFD packet to send [14:12:27]OFD Sender: No OFD packet to send [14:12:32]OFD Sender: No OFD packet to send [14:12:37]OFD Sender: No OFD packet to send [14:12:42]OFD Sender: No OFD packet to send [14:12:47]OFD Sender: No OFD packet to send [14:12:52]OFD Sender: No OFD packet to send [14:12:57]OFD Sender: No OFD packet to send [14:13:02]OFD Sender: No OFD packet to send [14:13:07]OFD Sender: No OFD packet to send [14:13:12]OFD Sender: No OFD packet to send [14:13:17]OFD Sender: No OFD packet to send [14:13:22]OFD Sender: No OFD packet to send [14:13:27]OFD Sender: No OFD packet to send [14:13:32]OFD Sender: No OFD packet to send [14:13:37]OFD Sender: No OFD packet to send [14:13:42]OFD Sender: No OFD packet to send [14:13:47]OFD Sender: No OFD packet to send [14:13:52]OFD Sender: No OFD packet to send [14:13:57]OFD Sender: No OFD packet to send [14:14:02]OFD Sender: No OFD packet to send [14:14:07]OFD Sender: No OFD packet to send [14:14:12]OFD Sender: No OFD packet to send [14:14:17]OFD Sender: No OFD packet to send [14:14:22]OFD Sender: No OFD packet to send [14:14:27]OFD Sender: No OFD packet to send [14:14:32]OFD Sender: No OFD packet to send [14:14:37]OFD Sender: No OFD packet to send [14:14:42]OFD Sender: No OFD packet to send [14:14:47]OFD Sender: No OFD packet to send [14:14:52]OFD Sender: No OFD packet to send [14:14:57]OFD Sender: No OFD packet to send [14:15:02]OFD Sender: No OFD packet to send [14:15:07]OFD Sender: No OFD packet to send [14:15:12]OFD Sender: No OFD packet to send [14:15:17]OFD Sender: No OFD packet to send [14:15:22]OFD Sender: No OFD packet to send [14:15:27]OFD Sender: No OFD packet to send [14:15:32]OFD Sender: No OFD packet to send [14:15:37]OFD Sender: No OFD packet to send [14:15:42]OFD Sender: No OFD packet to send [14:15:47]OFD Sender: No OFD packet to send [14:15:52]OFD Sender: No OFD packet to send [14:15:57]OFD Sender: No OFD packet to send [14:16:02]OFD Sender: No OFD packet to send [14:16:07]OFD Sender: No OFD packet to send [14:16:12]OFD Sender: No OFD packet to send [14:16:17]OFD Sender: No OFD packet to send [14:16:22]OFD Sender: No OFD packet to send [14:16:27]OFD Sender: No OFD packet to send [14:16:32]OFD Sender: No OFD packet to send [14:16:37]OFD Sender: No OFD packet to send [14:16:42]OFD Sender: No OFD packet to send [14:16:47]OFD Sender: No OFD packet to send [14:16:52]OFD Sender: No OFD packet to send [14:16:57]OFD Sender: No OFD packet to send [14:17:02]OFD Sender: No OFD packet to send [14:17: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:29]accept exits with 9 [14:17:29]New connection [14:17:29]New thread 3067157860 created [14:17:29]Thread 3067014500 joined [14:17:29]Waiting for new connection... [14:17:29] Sock 9.Parse request [14:17:29]Sock 9.Check first char [14:17:29]Sock 9.First char is OK [14:17:29]request: POST /json_proto HTTP/1.0 [14:17:29]Method: POST [14:17:29]URL: /json_proto [14:17:29]Method is POST - this is cgi request [14:17:29]url: /json_proto [14:17:29]query_string will be loaded in cgi processing [14:17:29]execute_cgi json_proto POST (null) [14:17:29]execute_cgi path=json_proto method=POST [14:17:29]POST find Content-Length [14:17:29]Host: 172.17.48.198:8080 [14:17:29]Content-Length: 626 [14:17:29]Content-Type: application/json [14:17:29] [14:17:29]POST finish read [14:17:29]Found Content-Length = 626 [14:17:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184174", "tax_sys" : 0, "items" : [ { "code": "4640030092499", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE SENSE Himalaya", "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" ] } } [14:17:29]execute_script... [14:17:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184174", "tax_sys" : 0, "items" : [ { "code": "4640030092499", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE SENSE Himalaya", "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" ] } } [14:17:29]POST & json_proto [14:17:29]process_json_proto [14:17:29]json parsed OK: [14:17:29]protocol is kg_v1.0 [14:17:29]action value=close_receipt [14:17:29]process_action close_receipt [14:17:29]cmd_close_receipt [14:17:29]MH_GetDate [14:17:29]Write to MH i2c: F0 00 00 ED 4B 27 [14:17:29]Write i2c OK [14:17:29]MH_I2C_Read... [14:17:29]Read from MH i2c: F0 [14:17:29]MH_I2C_Read... [14:17:29]Read from MH i2c: F0 09 00 [14:17:29]MH_I2C_Read... [14:17:29]Read from MH i2c: F0 09 00 ED 4B 00 84 86 E4 65 CE C4 D4 65 4E [14:17:29]GetLastDocTimeStamp 1709474636 [14:17:29]current date 1709475460 [14:17:29]FM_GetShiftState [14:17:29]SAM_PROTO_GetShiftState [14:17:29]wFMCommunicate request_size=4 [14:17:29]MH_SAM_APDU [14:17:29]CAPDU: 80 13 01 00 [14:17:29]Write to MH i2c: E2 08 00 EE 4B 80 13 01 00 00 00 00 00 B6 [14:17:29]Write i2c OK [14:17:29]MH_I2C_Read... [14:17:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:17:29]Read from MH i2c: E2 [14:17:29]MH_I2C_Read... [14:17:29]Read from MH i2c: E2 0E 00 [14:17:29]MH_I2C_Read... [14:17:29]Read from MH i2c: E2 0E 00 EE 4B 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 EC [14:17:29]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [14:17:29]wFMCommunicate OK [14:17:29]SAM_PROTO_GetShiftState done [14:17:29]FM_GetShiftState done [14:17:29]opened in 1709425694 [14:17:29]opened+sec_in_day 1709512094 [14:17:29]quantity*price = 13800 [14:17:29]sum+1 = 13801 [14:17:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 138.00 НСП 1% : 1.22 НДС 12% : 14.65 Наличными: 138.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 46 03.03.2024 14:17 Смена: 331 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 ФМ: 0000000000874796 ФД: 45209 ФПД: 34656237340277 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T141741&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45209&fm=34656237340277&tin=02508201610067®Number=0000000000090572&sum=13800 0 [14:17:30]StoreToDocumentArchive [14:17:30]shift 331 fd 45209 [14:17:30]save to /storage/0331/doc_00045209 [14:17:30]save last doc name /storage/0331/doc_00045209 to /storage/kkm_last_doc_name [14:17:30]save OK [14:17:30]Clear old archive folders... [14:17:30]ProcessDocumentItem done err = 0, tmpTLVsize=278 [14:17:30]tlvbuf is B6F8A390 [14:17:30]SAM_PROTO_ClearQueue [14:17:30]wFMCommunicate request_size=4 [14:17:30]MH_SAM_APDU [14:17:30]CAPDU: 80 09 00 00 [14:17:30]Write to MH i2c: E2 08 00 FB 4B 80 09 00 00 00 00 00 00 B8 [14:17:30]Write i2c OK [14:17:30]MH_I2C_Read... [14:17:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:17:30]Read from MH i2c: E2 [14:17:30]MH_I2C_Read... [14:17:30]Read from MH i2c: E2 03 00 [14:17:30]MH_I2C_Read... [14:17:30]Read from MH i2c: E2 03 00 FB 4B 00 90 00 BA [14:17:30]RAPDU: 90 00 [14:17:30]wFMCommunicate OK [14:17:30]SAM_PROTO_ClearQueue done [14:17:30]KKMCreateOFDPacket [14:17:30]OFDProtocolAddRootSTLVToBuf [14:17:30]FM_MakeSignedData [14:17:30]FM_MakeSignedData [14:17:30]SAM_PROTO_SignData [14:17:30]wFMCommunicate request_size=4 [14:17:30]MH_SAM_APDU [14:17:30]CAPDU: 80 0D 01 02 [14:17:30]Write to MH i2c: E2 08 00 FC 4B 80 0D 01 02 00 00 00 00 C0 [14:17:30]Write i2c OK [14:17:30]MH_I2C_Read... [14:17:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:17:30]Read from MH i2c: E2 [14:17:30]MH_I2C_Read... [14:17:30]Read from MH i2c: E2 03 00 [14:17:30]MH_I2C_Read... [14:17:30]Read from MH i2c: E2 03 00 FC 4B 00 90 00 BB [14:17:30]RAPDU: 90 00 [14:17:30]wFMCommunicate OK [14:17:30]wFMCommunicate request_size=255 [14:17:30]MH_SAM_APDU [14:17:30]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 2E 00 00 00 F4 03 04 00 85 86 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 [14:17:30]Write to MH i2c: E2 02 01 FD 4B 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 2E 00 00 00 F4 03 04 00 85 86 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 00 00 51 [14:17:30]Write i2c OK [14:17:30]MH_I2C_Read... [14:17:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:17:30]Read from MH i2c: E2 [14:17:30]MH_I2C_Read... [14:17:30]Read from MH i2c: E2 03 00 [14:17:30]MH_I2C_Read... [14:17:30]Read from MH i2c: E2 03 00 FD 4B 00 90 00 BC [14:17:30]RAPDU: 90 00 [14:17:30]wFMCommunicate OK [14:17:30]wFMCommunicate request_size=37 [14:17:30]MH_SAM_APDU [14:17:30]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 99 B0 00 00 35 04 06 00 1F 85 08 B7 46 75 [14:17:30]Write to MH i2c: E2 28 00 FE 4B 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 99 B0 00 00 35 04 06 00 1F 85 08 B7 46 75 00 00 8A [14:17:30]Write i2c OK [14:17:30]MH_I2C_Read... [14:17:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:17:30]Read from MH i2c: E2 [14:17:30]MH_I2C_Read... [14:17:30]Read from MH i2c: E2 03 00 [14:17:30]MH_I2C_Read... [14:17:30]Read from MH i2c: E2 03 00 FE 4B 00 90 00 BD [14:17:30]RAPDU: 90 00 [14:17:30]wFMCommunicate OK [14:17:30]wFMCommunicate request_size=4 [14:17:30]MH_SAM_APDU [14:17:30]CAPDU: 80 0D 03 02 [14:17:30]Write to MH i2c: E2 08 00 FF 4B 80 0D 03 02 00 00 00 00 C5 [14:17:30]Write i2c OK [14:17:30]MH_I2C_Read... [14:17:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:17:30]Read from MH i2c: E2 [14:17:30]MH_I2C_Read... [14:17:30]Read from MH i2c: E2 0B 00 [14:17:30]MH_I2C_Read... [14:17:30]Read from MH i2c: E2 0B 00 FF 4B 00 04 54 CB E4 6F D6 37 E8 90 00 31 [14:17:30]RAPDU: 04 54 CB E4 6F D6 37 E8 90 00 [14:17:30]wFMCommunicate OK [14:17:30]SAM_PROTO_SignData done [14:17:30]FM_MakeSignedData done [14:17:30]CreateOFDProtocolMessage [14:17:30]wFMCommunicate request_size=4 [14:17:30]MH_SAM_APDU [14:17:30]CAPDU: 80 11 00 00 [14:17:30]Write to MH i2c: E2 08 00 00 4C 80 11 00 00 00 00 00 00 C6 [14:17:30]Write i2c OK [14:17:30]MH_I2C_Read... [14:17:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:17:30]Read from MH i2c: E2 [14:17:30]MH_I2C_Read... [14:17:30]Read from MH i2c: E2 17 00 [14:17:30]MH_I2C_Read... [14:17:30]Read from MH i2c: E2 17 00 00 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 22 [14:17:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [14:17:30]wFMCommunicate OK [14:17:30]CreateOFDProtocolMessage done [14:17:30]OFDSenderStorePacket 45209 [14:17:30]StoreOFDPacket docnum=45209 [14:17:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 2A 01 00 00 16 65 22 01 F4 8D 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 2E 00 00 00 F4 03 04 00 85 86 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 99 B0 00 00 35 04 06 00 1F 85 08 B7 46 75 04 54 CB E4 6F D6 37 E8 [14:17:30]CheckFolder [14:17:30]dirname=/storage/ofd_packets [14:17:30]CheckFolder done [14:17:30]ProducePacketName [14:17:30]name=ofd_packets/00045209 [14:17:30]NVStorageSaveData ofd_packets/00045209 [14:17:30]File name is /storage/ofd_packets/00045209 [14:17:30]Write 328 bytes [14:17:30]NVStorageSaveData done [14:17:30]OFDSenderStorePacket done [14:17:30]KKMCreateOFDPacket done [14:17:30]NVStorageSaveData kkm_last_timestamp [14:17:30]File name is /storage/kkm_last_timestamp [14:17:30]Write 4 bytes [14:17:30]NVStorageSaveData done [14:17:30]ExternCall_PrintAddStr [14:17:30]wPrintStart [14:17:30]Write to MH i2c: 01 00 00 01 4C 4D [14:17:30]Write i2c OK [14:17:30]MH_I2C_Read... [14:17:30]Read from MH i2c: 01 [14:17:30]MH_I2C_Read... [14:17:30]Read from MH i2c: 01 07 00 [14:17:30]MH_I2C_Read... [14:17:30]Read from MH i2c: 01 07 00 01 4C 00 00 00 00 00 FF 0F 62 [14:17:30]RasterBufferAndPrint [14:17:30]line Счет N : (3)184174 [14:17:30]line ИНН: 02508201610067 [14:17:30]line Контрольно-Кассовый Чек [14:17:30]line ПРОДАЖА [14:17:30]line Товар: 4640030092499 [14:17:30]line Сигареты ESSE SENSE Himalaya [14:17:30]line 1.000 * 138.00 [14:17:30]line = 138.00 [14:17:30]line НДС 12% НСП 1% [14:17:30]line > о реализуемом товаре [14:17:30]line ИТОГО: 138.00 [14:17:30]line НСП 1% : 1.22 [14:17:30]line НДС 12% : 14.65 [14:17:30]line Наличными: 138.00 [14:17:30]line Безнал.: 0.00 [14:17:30]line Место: АЗС № 25 "Партнер Нефть" [14:17:30]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [14:17:30]line СНО: Общий режим [14:17:30]line Чек 46 03.03.2024 14:17 [14:17:30]line Смена: 331 ФФД: 1.0 [14:17:30]line ЗНМ: 0300000013 [14:17:30]line РНМ: 0000000000090572 [14:17:30]line Версия ККМ: 001 [14:17:30]line ФМ: 0000000000874796 [14:17:30]line ФД: 45209 [14:17:30]line ФПД: 34656237340277 [14:17:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T141741&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45209&fm=34656237340277&tin=02508201610067®Number=0000000000090572&sum=13800 [14:17:31]line 0 [14:17:31]OFD Sender: Processing packet 45209 [packets to send 17, broken 16] [14:17:31]ProducePacketName [14:17:31]name=ofd_packets/00045209 [14:17:31]OFD Sender: To server: pG, [14:17:31]CommunicateWithHost lk.salyk.kg:30040 [14:17:31]ConnectInit lk.salyk.kg [14:17:31]written 0, free lines is 4095 [14:17:31]Connected sock=10 [14: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 34 37 39 36 2A 01 00 00 16 65 22 01 F4 8D 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 2E 00 00 00 F4 03 04 00 85 86 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 99 B0 00 00 35 04 06 00 1F 85 08 B7 46 75 04 54 CB E4 6F D6 37 E8 [14:17:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 D8 D1 47 00 77 90 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 99 B0 00 00 F4 03 04 00 49 32 E4 65 B6 04 01 00 00 97 D9 E7 96 51 82 D4 A0 [14:17:31]CommunicateWithHost err = 0 [14:17:31]CheckOFDResponse [14:17:31]1017 (14) - 77093643461234 [14:17:31]1041 (16) - 0000000000874796 [14:17:31]1040 (4) - 45209 [14:17:31]1012 (4) - 03.03.2024 08:18 [14:17:31]1206 (1) - 0 [14:17:31]OFD Sender: Remove packet 45209 [14:17:31]ProducePacketName [14:17:31]name=ofd_packets/00045209 [14:17:31]NVStorageDeleteData [14:17:31]Write to MH i2c: 01 00 00 2A 4C 76 [14:17:31]Write i2c OK [14:17:31]MH_I2C_Read... [14:17:31]Read from MH i2c: 01 [14:17:31]MH_I2C_Read... [14:17:31]Read from MH i2c: 01 07 00 [14:17:31]MH_I2C_Read... [14:17:31]Read from MH i2c: 01 07 00 2A 4C 00 00 00 00 00 F0 0C 79 [14:17:31]RasterBufferAndPrint [14:17:31]line [14:17:31]line [14:17:31]line [14:17:31]line [14:17:31]line [14:17:31]written 0, free lines is 3318 [14:17:31]MH_Cut [14:17:31]Write to MH i2c: D1 01 00 31 4C 01 4F [14:17:31]Write i2c OK [14:17:31]MH_I2C_Read... [14:17:31]Read from MH i2c: D1 [14:17:31]MH_I2C_Read... [14:17:31]Read from MH i2c: D1 01 00 [14:17:31]MH_I2C_Read... [14:17:31]Read from MH i2c: D1 01 00 31 4C 00 4E [14:17:31]Write to MH i2c: 01 00 00 32 4C 7E [14:17:31]Write i2c OK [14:17:31]MH_I2C_Read... [14:17:32]OFD Sender: No OFD packet to send [14:17:32]*** Cut start [14:17:32]*** Purtial cut [14:17:32]*** Stage 1: CUTSNS_PIN = 1 [14:17:34]Read from MH i2c: 01 [14:17:34]MH_I2C_Read... [14:17:34]*** Stop cut motor [14:17:34]*** Cut end [14:17:34]Read from MH i2c: 01 07 00 [14:17:34]MH_I2C_Read... [14:17:34]Read from MH i2c: 01 07 00 32 4C 00 00 00 00 00 FF 0F 93 [14:17:34]process_action close_receipt done [14:17:34]requested_data is exist [14:17:34]produce_requested_data [14:17:34]requested_item fm.sn is exist - process it [14:17:34]wFMCommunicate request_size=4 [14:17:34]MH_SAM_APDU [14:17:34]CAPDU: 80 11 00 00 [14:17:34]Write to MH i2c: E2 08 00 33 4C 80 11 00 00 00 00 00 00 F9 [14:17:34]Write i2c OK [14:17:34]MH_I2C_Read... [14:17:34]Read from MH i2c: E2 [14:17:34]MH_I2C_Read... [14:17:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:17:34]Read from MH i2c: E2 17 00 [14:17:34]MH_I2C_Read... [14:17:34]Read from MH i2c: E2 17 00 33 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 55 [14:17:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [14:17:34]wFMCommunicate OK [14:17:34]requested_item fd.num is exist - process it [14:17:34]SAM_PROTO_GetFieldsCounters [14:17:34]wFMCommunicate request_size=4 [14:17:34]MH_SAM_APDU [14:17:34]CAPDU: 80 13 00 00 [14:17:34]Write to MH i2c: E2 08 00 34 4C 80 13 00 00 00 00 00 00 FC [14:17:34]Write i2c OK [14:17:34]MH_I2C_Read... [14:17:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:17:34]Read from MH i2c: E2 [14:17:34]MH_I2C_Read... [14:17:34]Read from MH i2c: E2 62 00 [14:17:34]MH_I2C_Read... [14:17:34]Read from MH i2c: E2 62 00 34 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 99 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 43 [14:17:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 99 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:17:34]wFMCommunicate OK [14:17:34]SAM_PROTO_GetFieldsCounters done [14:17:34]requested_item shift.num is exist - process it [14:17:34]requested_item shift.opened is exist - process it [14:17:34]req_shift_opened [14:17:34]FM_GetShiftState [14:17:34]SAM_PROTO_GetShiftState [14:17:34]wFMCommunicate request_size=4 [14:17:34]MH_SAM_APDU [14:17:34]CAPDU: 80 13 01 00 [14:17:34]Write to MH i2c: E2 08 00 35 4C 80 13 01 00 00 00 00 00 FE [14:17:34]Write i2c OK [14:17:34]MH_I2C_Read... [14:17:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:17:34]Read from MH i2c: E2 [14:17:34]MH_I2C_Read... [14:17:34]Read from MH i2c: E2 0E 00 [14:17:34]MH_I2C_Read... [14:17:34]Read from MH i2c: E2 0E 00 35 4C 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 34 [14:17:34]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [14:17:34]wFMCommunicate OK [14:17:34]SAM_PROTO_GetShiftState done [14:17:34]FM_GetShiftState done [14:17:34]req_shift_opened done [14:17:34]requested_item shift.open_date is exist - process it [14:17:34]req_shift_open_date [14:17:34]req_shift_open_date done [14:17:34]produce_requested_data done [14:17:34]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45209,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [14:17:34]process_action_free close_receipt [14:17:34]json_value_free [14:17:34]json_value_free done [14:17:34]process_json_proto returns [14:17:34]Send response to host [14:17:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45209,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [14:17:34]free response buf [14:17:34]execute_script done [14:17:34]execute_script returns [14:17:34]free content buf [14:17:34]Sock 9.Close socket [14:17:34]Sock 9.Thread stoped [14:17:37]OFD Sender: No OFD packet to send [14:17:42]OFD Sender: No OFD packet to send [14:17:47]OFD Sender: No OFD packet to send [14:17:52]OFD Sender: No OFD packet to send [14:17:57]OFD Sender: No OFD packet to send [14:18:02]OFD Sender: No OFD packet to send [14:18:07]OFD Sender: No OFD packet to send [14:18:12]OFD Sender: No OFD packet to send [14:18:17]OFD Sender: No OFD packet to send [14:18:22]OFD Sender: No OFD packet to send [14:18:27]OFD Sender: No OFD packet to send [14:18:32]OFD Sender: No OFD packet to send [14:18:37]OFD Sender: No OFD packet to send [14:18:42]OFD Sender: No OFD packet to send [14:18:47]OFD Sender: No OFD packet to send [14:18:52]OFD Sender: No OFD packet to send [14:18:57]OFD Sender: No OFD packet to send [14:19:02]OFD Sender: No OFD packet to send [14:19:07]OFD Sender: No OFD packet to send [14:19:12]OFD Sender: No OFD packet to send [14:19:17]OFD Sender: No OFD packet to send [14:19:22]OFD Sender: No OFD packet to send [14:19:27]OFD Sender: No OFD packet to send [14:19:32]OFD Sender: No OFD packet to send [14:19:37]OFD Sender: No OFD packet to send [14:19:42]OFD Sender: No OFD packet to send [14:19:47]OFD Sender: No OFD packet to send [14:19:52]OFD Sender: No OFD packet to send [14:19:57]OFD Sender: No OFD packet to send [14:20:02]OFD Sender: No OFD packet to send [14:20:07]OFD Sender: No OFD packet to send [14:20:12]OFD Sender: No OFD packet to send [14:20:17]OFD Sender: No OFD packet to send [14:20:22]OFD Sender: No OFD packet to send [14:20:27]OFD Sender: No OFD packet to send [14:20:32]OFD Sender: No OFD packet to send [14:20:37]OFD Sender: No OFD packet to send [14:20:42]OFD Sender: No OFD packet to send [14:20:47]OFD Sender: No OFD packet to send [14:20:52]OFD Sender: No OFD packet to send [14:20:57]OFD Sender: No OFD packet to send [14:21:02]OFD Sender: No OFD packet to send [14:21:07]OFD Sender: No OFD packet to send [14:21: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]accept exits with 7 [14:23:02]New connection [14:23:02]New thread 3067014500 created [14:23:02]Thread 3067157860 joined [14:23:02]Waiting for new connection... [14:23:02] Sock 7.Parse request [14:23:02]Sock 7.Check first char [14:23:02]Sock 7.First char is OK [14:23:02]request: POST /json_proto HTTP/1.0 [14:23:02]Method: POST [14:23:02]URL: /json_proto [14:23:02]Method is POST - this is cgi request [14:23:02]url: /json_proto [14:23:02]query_string will be loaded in cgi processing [14:23:02]execute_cgi json_proto POST (null) [14:23:02]execute_cgi path=json_proto method=POST [14:23:02]POST find Content-Length [14:23:02]Host: 172.17.48.198:8080 [14:23:02]Content-Length: 668 [14:23:02]Content-Type: application/json [14:23:02] [14:23:02]POST finish read [14:23:02]Found Content-Length = 668 [14:23:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184175", "tax_sys" : 0, "items" : [ { "code": "5449000189394", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u044F\u0433\u043E\u0434\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:23:02]execute_script... [14:23:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184175", "tax_sys" : 0, "items" : [ { "code": "5449000189394", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u044F\u0433\u043E\u0434\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:23:02]POST & json_proto [14:23:02]process_json_proto [14:23:02]json parsed OK: [14:23:02]protocol is kg_v1.0 [14:23:02]action value=close_receipt [14:23:02]process_action close_receipt [14:23:02]cmd_close_receipt [14:23:02]MH_GetDate [14:23:02]Write to MH i2c: F0 00 00 36 4C 71 [14:23:02]Write i2c OK [14:23:02]MH_I2C_Read... [14:23:02]Read from MH i2c: F0 [14:23:02]MH_I2C_Read... [14:23:02]Read from MH i2c: F0 09 00 [14:23:02]MH_I2C_Read... [14:23:02]Read from MH i2c: F0 09 00 36 4C 00 D1 87 E4 65 CE C4 D4 65 E6 [14:23:02]GetLastDocTimeStamp 1709475461 [14:23:02]current date 1709475793 [14:23:02]FM_GetShiftState [14:23:02]SAM_PROTO_GetShiftState [14:23:02]wFMCommunicate request_size=4 [14:23:02]MH_SAM_APDU [14:23:02]CAPDU: 80 13 01 00 [14:23:02]Write to MH i2c: E2 08 00 37 4C 80 13 01 00 00 00 00 00 00 [14:23:02]Write i2c OK [14:23:02]MH_I2C_Read... [14:23:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:23:02]Read from MH i2c: E2 [14:23:02]MH_I2C_Read... [14:23:02]Read from MH i2c: E2 0E 00 [14:23:02]MH_I2C_Read... [14:23:02]Read from MH i2c: E2 0E 00 37 4C 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 36 [14:23:02]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [14:23:02]wFMCommunicate OK [14:23:02]SAM_PROTO_GetShiftState done [14:23:02]FM_GetShiftState done [14:23:02]opened in 1709425694 [14:23:02]opened+sec_in_day 1709512094 [14:23:02]quantity*price = 7500 [14:23:02]sum+1 = 7501 [14:23:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 75.00 НСП 1% : 0.66 НДС 12% : 7.96 Наличными: 75.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 47 03.03.2024 14:23 Смена: 331 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 ФМ: 0000000000874796 ФД: 45210 ФПД: 228596312159134 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T142313&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45210&fm=228596312159134&tin=02508201610067®Number=0000000000090572&sum=7500 0 [14:23:03]StoreToDocumentArchive [14:23:03]shift 331 fd 45210 [14:23:03]save to /storage/0331/doc_00045210 [14:23:03]save last doc name /storage/0331/doc_00045210 to /storage/kkm_last_doc_name [14:23:03]save OK [14:23:03]Clear old archive folders... [14:23:03]ProcessDocumentItem done err = 0, tmpTLVsize=287 [14:23:03]tlvbuf is 01B41C90 [14:23:03]SAM_PROTO_ClearQueue [14:23:03]wFMCommunicate request_size=4 [14:23:03]MH_SAM_APDU [14:23:03]CAPDU: 80 09 00 00 [14:23:03]Write to MH i2c: E2 08 00 44 4C 80 09 00 00 00 00 00 00 02 [14:23:03]Write i2c OK [14:23:03]MH_I2C_Read... [14:23:03]Read from MH i2c: E2 [14:23:03]MH_I2C_Read... [14:23:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:23:03]Read from MH i2c: E2 03 00 [14:23:03]MH_I2C_Read... [14:23:03]Read from MH i2c: E2 03 00 44 4C 00 90 00 04 [14:23:03]RAPDU: 90 00 [14:23:03]wFMCommunicate OK [14:23:03]SAM_PROTO_ClearQueue done [14:23:03]KKMCreateOFDPacket [14:23:03]OFDProtocolAddRootSTLVToBuf [14:23:03]FM_MakeSignedData [14:23:03]FM_MakeSignedData [14:23:03]SAM_PROTO_SignData [14:23:03]wFMCommunicate request_size=4 [14:23:03]MH_SAM_APDU [14:23:03]CAPDU: 80 0D 01 02 [14:23:03]Write to MH i2c: E2 08 00 45 4C 80 0D 01 02 00 00 00 00 0A [14:23:03]Write i2c OK [14:23:03]MH_I2C_Read... [14:23:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:23:03]Read from MH i2c: E2 [14:23:03]MH_I2C_Read... [14:23:03]Read from MH i2c: E2 03 00 [14:23:03]MH_I2C_Read... [14:23:03]Read from MH i2c: E2 03 00 45 4C 00 90 00 05 [14:23:03]RAPDU: 90 00 [14:23:03]wFMCommunicate OK [14:23:03]wFMCommunicate request_size=255 [14:23:03]MH_SAM_APDU [14:23:03]CAPDU: 80 0D 02 02 FA 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 39 34 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D1 8F D0 B3 D0 BE D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 D1 87 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 [14:23:03]Write to MH i2c: E2 02 01 46 4C 80 0D 02 02 FA 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 39 34 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D1 8F D0 B3 D0 BE D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 D1 87 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 00 00 A2 [14:23:03]Write i2c OK [14:23:03]MH_I2C_Read... [14:23:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:23:03]Read from MH i2c: E2 [14:23:03]MH_I2C_Read... [14:23:03]Read from MH i2c: E2 03 00 [14:23:03]MH_I2C_Read... [14:23:03]Read from MH i2c: E2 03 00 46 4C 00 90 00 06 [14:23:03]RAPDU: 90 00 [14:23:03]wFMCommunicate OK [14:23:03]wFMCommunicate request_size=46 [14:23:03]MH_SAM_APDU [14:23:03]CAPDU: 80 0D 02 02 29 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 9A B0 00 00 35 04 06 00 CF E8 39 FB B3 9E [14:23:03]Write to MH i2c: E2 31 00 47 4C 80 0D 02 02 29 00 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 9A B0 00 00 35 04 06 00 CF E8 39 FB B3 9E 00 00 28 [14:23:03]Write i2c OK [14:23:03]MH_I2C_Read... [14:23:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:23:03]Read from MH i2c: E2 [14:23:03]MH_I2C_Read... [14:23:03]Read from MH i2c: E2 03 00 [14:23:03]MH_I2C_Read... [14:23:03]Read from MH i2c: E2 03 00 47 4C 00 90 00 07 [14:23:03]RAPDU: 90 00 [14:23:03]wFMCommunicate OK [14:23:03]wFMCommunicate request_size=4 [14:23:03]MH_SAM_APDU [14:23:03]CAPDU: 80 0D 03 02 [14:23:03]Write to MH i2c: E2 08 00 48 4C 80 0D 03 02 00 00 00 00 0F [14:23:03]Write i2c OK [14:23:03]MH_I2C_Read... [14:23:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:23:03]Read from MH i2c: E2 [14:23:03]MH_I2C_Read... [14:23:03]Read from MH i2c: E2 0B 00 [14:23:03]MH_I2C_Read... [14:23:03]Read from MH i2c: E2 0B 00 48 4C 00 78 26 44 8F 55 20 78 22 90 00 90 [14:23:03]RAPDU: 78 26 44 8F 55 20 78 22 90 00 [14:23:03]wFMCommunicate OK [14:23:03]SAM_PROTO_SignData done [14:23:03]FM_MakeSignedData done [14:23:03]CreateOFDProtocolMessage [14:23:03]wFMCommunicate request_size=4 [14:23:03]MH_SAM_APDU [14:23:03]CAPDU: 80 11 00 00 [14:23:03]Write to MH i2c: E2 08 00 49 4C 80 11 00 00 00 00 00 00 0F [14:23:03]Write i2c OK [14:23:03]MH_I2C_Read... [14:23:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:23:03]Read from MH i2c: E2 [14:23:03]MH_I2C_Read... [14:23:03]Read from MH i2c: E2 17 00 [14:23:03]MH_I2C_Read... [14:23:03]Read from MH i2c: E2 17 00 49 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 6B [14:23:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [14:23:03]wFMCommunicate OK [14:23:03]CreateOFDProtocolMessage done [14:23:03]OFDSenderStorePacket 45210 [14:23:03]StoreOFDPacket docnum=45210 [14:23:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 33 01 00 00 CB 2F 2B 01 E8 5B 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 39 34 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D1 8F D0 B3 D0 BE D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 D1 87 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 9A B0 00 00 35 04 06 00 CF E8 39 FB B3 9E 78 26 44 8F 55 20 78 22 [14:23:03]CheckFolder [14:23:03]dirname=/storage/ofd_packets [14:23:03]CheckFolder done [14:23:03]ProducePacketName [14:23:03]name=ofd_packets/00045210 [14:23:03]NVStorageSaveData ofd_packets/00045210 [14:23:03]File name is /storage/ofd_packets/00045210 [14:23:03]Write 337 bytes [14:23:03]NVStorageSaveData done [14:23:03]OFDSenderStorePacket done [14:23:03]KKMCreateOFDPacket done [14:23:03]NVStorageSaveData kkm_last_timestamp [14:23:03]File name is /storage/kkm_last_timestamp [14:23:03]Write 4 bytes [14:23:03]NVStorageSaveData done [14:23:03]ExternCall_PrintAddStr [14:23:03]wPrintStart [14:23:03]Write to MH i2c: 01 00 00 4A 4C 96 [14:23:03]Write i2c OK [14:23:03]MH_I2C_Read... [14:23:03]Read from MH i2c: 01 [14:23:03]MH_I2C_Read... [14:23:03]Read from MH i2c: 01 07 00 [14:23:03]MH_I2C_Read... [14:23:03]Read from MH i2c: 01 07 00 4A 4C 00 00 00 00 00 FF 0F AB [14:23:03]RasterBufferAndPrint [14:23:03]line Счет N : (3)184175 [14:23:03]line ИНН: 02508201610067 [14:23:03]line Контрольно-Кассовый Чек [14:23:03]line ПРОДАЖА [14:23:03]line Товар: 5449000189394 [14:23:03]line Холодный чай Fuse ягода 0,5л [14:23:03]line 1.000 * 75.00 [14:23:03]line = 75.00 [14:23:03]line НДС 12% НСП 1% [14:23:03]line > о реализуемом товаре [14:23:03]line ИТОГО: 75.00 [14:23:03]line НСП 1% : 0.66 [14:23:03]line НДС 12% : 7.96 [14:23:03]line Наличными: 75.00 [14:23:03]line Безнал.: 0.00 [14:23:03]line Место: АЗС № 25 "Партнер Нефть" [14:23:03]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [14:23:03]line СНО: Общий режим [14:23:03]line Чек 47 03.03.2024 14:23 [14:23:03]line Смена: 331 ФФД: 1.0 [14:23:03]line ЗНМ: 0300000013 [14:23:03]line РНМ: 0000000000090572 [14:23:03]line Версия ККМ: 001 [14:23:03]line ФМ: 0000000000874796 [14:23:03]line ФД: 45210 [14:23:03]line ФПД: 228596312159134 [14:23:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T142313&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45210&fm=228596312159134&tin=02508201610067®Number=0000000000090572&sum=7500 [14:23:04]line 0 [14:23:04]OFD Sender: Processing packet 45210 [packets to send 17, broken 16] [14:23:04]ProducePacketName [14:23:04]name=ofd_packets/00045210 [14:23:04]OFD Sender: To server: pG, [14:23:04]CommunicateWithHost lk.salyk.kg:30040 [14:23:04]ConnectInit lk.salyk.kg [14:23:04]written 0, free lines is 4095 [14:23:04]Connected sock=10 [14:23:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 33 01 00 00 CB 2F 2B 01 E8 5B 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 39 34 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D1 8F D0 B3 D0 BE D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 D1 87 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 9A B0 00 00 35 04 06 00 CF E8 39 FB B3 9E 78 26 44 8F 55 20 78 22 [14:23:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 63 D8 47 00 9E 5C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 9A B0 00 00 F4 03 04 00 96 33 E4 65 B6 04 01 00 00 FB FD 82 51 32 B7 2F 20 [14:23:04]CommunicateWithHost err = 0 [14:23:04]CheckOFDResponse [14:23:04]1017 (14) - 77093643461234 [14:23:04]1041 (16) - 0000000000874796 [14:23:04]1040 (4) - 45210 [14:23:04]1012 (4) - 03.03.2024 08:23 [14:23:04]1206 (1) - 0 [14:23:04]OFD Sender: Remove packet 45210 [14:23:04]ProducePacketName [14:23:04]name=ofd_packets/00045210 [14:23:04]NVStorageDeleteData [14:23:04]Write to MH i2c: 01 00 00 72 4C BE [14:23:04]Write i2c OK [14:23:04]MH_I2C_Read... [14:23:04]Read from MH i2c: 01 [14:23:04]MH_I2C_Read... [14:23:04]Read from MH i2c: 01 07 00 [14:23:04]MH_I2C_Read... [14:23:04]Read from MH i2c: 01 07 00 72 4C 00 00 00 00 00 07 0D D9 [14:23:04]RasterBufferAndPrint [14:23:04]line [14:23:04]line [14:23:04]line [14:23:04]line [14:23:04]line [14:23:04]written 0, free lines is 3341 [14:23:04]MH_Cut [14:23:04]Write to MH i2c: D1 01 00 79 4C 01 97 [14:23:04]Write i2c OK [14:23:04]MH_I2C_Read... [14:23:04]Read from MH i2c: D1 [14:23:04]MH_I2C_Read... [14:23:04]Read from MH i2c: D1 01 00 [14:23:04]MH_I2C_Read... [14:23:04]Read from MH i2c: D1 01 00 79 4C 00 96 [14:23:04]Write to MH i2c: 01 00 00 7A 4C C6 [14:23:04]Write i2c OK [14:23:04]MH_I2C_Read... [14:23:04]OFD Sender: No OFD packet to send [14:23:05]*** Cut start [14:23:05]*** Purtial cut [14:23:05]*** Stage 1: CUTSNS_PIN = 1 [14:23:07]Read from MH i2c: 01 [14:23:07]MH_I2C_Read... [14:23:07]*** Stop cut motor [14:23:07]*** Cut end [14:23:07]Read from MH i2c: 01 07 00 [14:23:07]MH_I2C_Read... [14:23:07]Read from MH i2c: 01 07 00 7A 4C 00 00 00 00 00 FF 0F DB [14:23:07]process_action close_receipt done [14:23:07]requested_data is exist [14:23:07]produce_requested_data [14:23:07]requested_item fm.sn is exist - process it [14:23:07]wFMCommunicate request_size=4 [14:23:07]MH_SAM_APDU [14:23:07]CAPDU: 80 11 00 00 [14:23:07]Write to MH i2c: E2 08 00 7B 4C 80 11 00 00 00 00 00 00 41 [14:23:07]Write i2c OK [14:23:07]MH_I2C_Read... [14:23:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:23:07]Read from MH i2c: E2 [14:23:07]MH_I2C_Read... [14:23:07]Read from MH i2c: E2 17 00 [14:23:07]MH_I2C_Read... [14:23:07]Read from MH i2c: E2 17 00 7B 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 9D [14:23:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [14:23:07]wFMCommunicate OK [14:23:07]requested_item fd.num is exist - process it [14:23:07]SAM_PROTO_GetFieldsCounters [14:23:07]wFMCommunicate request_size=4 [14:23:07]MH_SAM_APDU [14:23:07]CAPDU: 80 13 00 00 [14:23:07]Write to MH i2c: E2 08 00 7C 4C 80 13 00 00 00 00 00 00 44 [14:23:07]Write i2c OK [14:23:07]MH_I2C_Read... [14:23:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:23:07]Read from MH i2c: E2 [14:23:07]MH_I2C_Read... [14:23:07]Read from MH i2c: E2 62 00 [14:23:07]MH_I2C_Read... [14:23:07]Read from MH i2c: E2 62 00 7C 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 9A B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 8F [14:23:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 9A B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:23:07]wFMCommunicate OK [14:23:07]SAM_PROTO_GetFieldsCounters done [14:23:07]requested_item shift.num is exist - process it [14:23:07]requested_item shift.opened is exist - process it [14:23:07]req_shift_opened [14:23:07]FM_GetShiftState [14:23:07]SAM_PROTO_GetShiftState [14:23:07]wFMCommunicate request_size=4 [14:23:07]MH_SAM_APDU [14:23:07]CAPDU: 80 13 01 00 [14:23:07]Write to MH i2c: E2 08 00 7D 4C 80 13 01 00 00 00 00 00 46 [14:23:07]Write i2c OK [14:23:07]MH_I2C_Read... [14:23:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:23:07]Read from MH i2c: E2 [14:23:07]MH_I2C_Read... [14:23:07]Read from MH i2c: E2 0E 00 [14:23:07]MH_I2C_Read... [14:23:07]Read from MH i2c: E2 0E 00 7D 4C 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 7C [14:23:07]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [14:23:07]wFMCommunicate OK [14:23:07]SAM_PROTO_GetShiftState done [14:23:07]FM_GetShiftState done [14:23:07]req_shift_opened done [14:23:07]requested_item shift.open_date is exist - process it [14:23:07]req_shift_open_date [14:23:07]req_shift_open_date done [14:23:07]produce_requested_data done [14:23:07]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45210,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [14:23:07]process_action_free close_receipt [14:23:07]json_value_free [14:23:07]json_value_free done [14:23:07]process_json_proto returns [14:23:07]Send response to host [14:23:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45210,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [14:23:07]free response buf [14:23:07]execute_script done [14:23:07]execute_script returns [14:23:07]free content buf [14:23:07]Sock 7.Close socket [14:23:07]Sock 7.Thread stoped [14:23:09]OFD Sender: No OFD packet to send [14:23:14]OFD Sender: No OFD packet to send [14:23:19]OFD Sender: No OFD packet to send [14:23:24]OFD Sender: No OFD packet to send [14:23:29]OFD Sender: No OFD packet to send [14:23:34]OFD Sender: No OFD packet to send [14:23:39]OFD Sender: No OFD packet to send [14:23:44]OFD Sender: No OFD packet to send [14:23:49]OFD Sender: No OFD packet to send [14:23:54]OFD Sender: No OFD packet to send [14:23:59]OFD Sender: No OFD packet to send [14:24:04]OFD Sender: No OFD packet to send [14:24:09]OFD Sender: No OFD packet to send [14:24:14]OFD Sender: No OFD packet to send [14:24:19]OFD Sender: No OFD packet to send [14:24:24]OFD Sender: No OFD packet to send [14:24:29]OFD Sender: No OFD packet to send [14:24:34]OFD Sender: No OFD packet to send [14:24:39]OFD Sender: No OFD packet to send [14:24:45]OFD Sender: No OFD packet to send [14:24:50]OFD Sender: No OFD packet to send [14:24:55]OFD Sender: No OFD packet to send [14:25:00]OFD Sender: No OFD packet to send [14:25:05]OFD Sender: No OFD packet to send [14:25:10]OFD Sender: No OFD packet to send [14:25:15]OFD Sender: No OFD packet to send [14:25:20]OFD Sender: No OFD packet to send [14:25:25]OFD Sender: No OFD packet to send [14:25:30]OFD Sender: No OFD packet to send [14:25:35]OFD Sender: No OFD packet to send [14:25:40]OFD Sender: No OFD packet to send [14:25:45]OFD Sender: No OFD packet to send [14:25:50]OFD Sender: No OFD packet to send [14:25:55]OFD Sender: No OFD packet to send [14:26:00]OFD Sender: No OFD packet to send [14:26:05]OFD Sender: No OFD packet to send [14:26:10]OFD Sender: No OFD packet to send [14:26:15]OFD Sender: No OFD packet to send [14:26:20]OFD Sender: No OFD packet to send [14:26:25]OFD Sender: No OFD packet to send [14:26:30]OFD Sender: No OFD packet to send [14:26:35]OFD Sender: No OFD packet to send [14:26:40]OFD Sender: No OFD packet to send [14:26:45]OFD Sender: No OFD packet to send [14:26:50]OFD Sender: No OFD packet to send [14:26:55]OFD Sender: No OFD packet to send [14:27:00]OFD Sender: No OFD packet to send [14:27:05]OFD Sender: No OFD packet to send [14:27:10]OFD Sender: No OFD packet to send [14:27:15]OFD Sender: No OFD packet to send [14:27:20]OFD Sender: No OFD packet to send [14:27:25]OFD Sender: No OFD packet to send [14:27:30]OFD Sender: No OFD packet to send [14:27:35]OFD Sender: No OFD packet to send [14:27:40]OFD Sender: No OFD packet to send [14:27:45]OFD Sender: No OFD packet to send [14:27:50]OFD Sender: No OFD packet to send [14:27:55]OFD Sender: No OFD packet to send [14:28:00]OFD Sender: No OFD packet to send [14:28:05]OFD Sender: No OFD packet to send [14:28:10]OFD Sender: No OFD packet to send [14:28:13]accept exits with 9 [14:28:13]New connection [14:28:13]New thread 3067157860 created [14:28:13]Thread 3067014500 joined [14:28:13]Waiting for new connection... [14:28:13] Sock 9.Parse request [14:28:13]Sock 9.Check first char [14:28:13]Sock 9.First char is OK [14:28:13]request: POST /json_proto HTTP/1.0 [14:28:13]Method: POST [14:28:13]URL: /json_proto [14:28:13]Method is POST - this is cgi request [14:28:13]url: /json_proto [14:28:13]query_string will be loaded in cgi processing [14:28:13]execute_cgi json_proto POST (null) [14:28:13]execute_cgi path=json_proto method=POST [14:28:13]POST find Content-Length [14:28:13]Host: 172.17.48.198:8080 [14:28:13]Content-Length: 648 [14:28:13]Content-Type: application/json [14:28:13] [14:28:13]POST finish read [14:28:13]Found Content-Length = 648 [14:28:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184176", "tax_sys" : 0, "items" : [ { "code": "46227737", "name": "\u0420/\u0436 mentos pure fresh \u0430\u0440\u0431\u0443\u0437 \u0440\u043E\u043B\u043B 15,5\u0433", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 49.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:28:13]execute_script... [14:28:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184176", "tax_sys" : 0, "items" : [ { "code": "46227737", "name": "\u0420/\u0436 mentos pure fresh \u0430\u0440\u0431\u0443\u0437 \u0440\u043E\u043B\u043B 15,5\u0433", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 49.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:28:13]POST & json_proto [14:28:13]process_json_proto [14:28:13]json parsed OK: [14:28:13]protocol is kg_v1.0 [14:28:13]action value=close_receipt [14:28:13]process_action close_receipt [14:28:13]cmd_close_receipt [14:28:13]MH_GetDate [14:28:13]Write to MH i2c: F0 00 00 7E 4C B9 [14:28:13]Write i2c OK [14:28:13]MH_I2C_Read... [14:28:13]Read from MH i2c: F0 [14:28:13]MH_I2C_Read... [14:28:13]Read from MH i2c: F0 09 00 [14:28:13]MH_I2C_Read... [14:28:13]Read from MH i2c: F0 09 00 7E 4C 00 08 89 E4 65 CE C4 D4 65 67 [14:28:13]GetLastDocTimeStamp 1709475793 [14:28:13]current date 1709476104 [14:28:13]FM_GetShiftState [14:28:13]SAM_PROTO_GetShiftState [14:28:13]wFMCommunicate request_size=4 [14:28:13]MH_SAM_APDU [14:28:13]CAPDU: 80 13 01 00 [14:28:13]Write to MH i2c: E2 08 00 7F 4C 80 13 01 00 00 00 00 00 48 [14:28:13]Write i2c OK [14:28:13]MH_I2C_Read... [14:28:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:28:13]Read from MH i2c: E2 [14:28:13]MH_I2C_Read... [14:28:13]Read from MH i2c: E2 0E 00 [14:28:13]MH_I2C_Read... [14:28:13]Read from MH i2c: E2 0E 00 7F 4C 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 7E [14:28:13]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [14:28:13]wFMCommunicate OK [14:28:13]SAM_PROTO_GetShiftState done [14:28:13]FM_GetShiftState done [14:28:13]opened in 1709425694 [14:28:13]opened+sec_in_day 1709512094 [14:28:13]quantity*price = 4900 [14:28:13]sum+1 = 4901 [14:28:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 49.00 НСП 1% : 0.43 НДС 12% : 5.20 Наличными: 49.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 48 03.03.2024 14:28 Смена: 331 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 ФМ: 0000000000874796 ФД: 45211 ФПД: 175035648854970 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T142824&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45211&fm=175035648854970&tin=02508201610067®Number=0000000000090572&sum=4900 0 [14:28:14]StoreToDocumentArchive [14:28:14]shift 331 fd 45211 [14:28:14]save to /storage/0331/doc_00045211 [14:28:14]save last doc name /storage/0331/doc_00045211 to /storage/kkm_last_doc_name [14:28:14]save OK [14:28:14]Clear old archive folders... [14:28:14]ProcessDocumentItem done err = 0, tmpTLVsize=287 [14:28:14]tlvbuf is 01B56870 [14:28:14]SAM_PROTO_ClearQueue [14:28:14]wFMCommunicate request_size=4 [14:28:14]MH_SAM_APDU [14:28:14]CAPDU: 80 09 00 00 [14:28:14]Write to MH i2c: E2 08 00 8C 4C 80 09 00 00 00 00 00 00 4A [14:28:14]Write i2c OK [14:28:14]MH_I2C_Read... [14:28:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:28:14]Read from MH i2c: E2 [14:28:14]MH_I2C_Read... [14:28:14]Read from MH i2c: E2 03 00 [14:28:14]MH_I2C_Read... [14:28:14]Read from MH i2c: E2 03 00 8C 4C 00 90 00 4C [14:28:14]RAPDU: 90 00 [14:28:14]wFMCommunicate OK [14:28:14]SAM_PROTO_ClearQueue done [14:28:14]KKMCreateOFDPacket [14:28:14]OFDProtocolAddRootSTLVToBuf [14:28:14]FM_MakeSignedData [14:28:14]FM_MakeSignedData [14:28:14]SAM_PROTO_SignData [14:28:14]wFMCommunicate request_size=4 [14:28:14]MH_SAM_APDU [14:28:14]CAPDU: 80 0D 01 02 [14:28:14]Write to MH i2c: E2 08 00 8D 4C 80 0D 01 02 00 00 00 00 52 [14:28:14]Write i2c OK [14:28:14]MH_I2C_Read... [14:28:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:28:14]Read from MH i2c: E2 [14:28:14]MH_I2C_Read... [14:28:14]Read from MH i2c: E2 03 00 [14:28:14]MH_I2C_Read... [14:28:14]Read from MH i2c: E2 03 00 8D 4C 00 90 00 4D [14:28:14]RAPDU: 90 00 [14:28:14]wFMCommunicate OK [14:28:14]wFMCommunicate request_size=255 [14:28:14]MH_SAM_APDU [14:28:14]CAPDU: 80 0D 02 02 FA 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 08 00 34 36 32 32 37 37 33 37 06 04 32 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 66 72 65 73 68 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 20 D1 80 D0 BE D0 BB D0 BB 20 31 35 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 08 89 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 [14:28:14]Write to MH i2c: E2 02 01 8E 4C 80 0D 02 02 FA 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 08 00 34 36 32 32 37 37 33 37 06 04 32 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 66 72 65 73 68 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 20 D1 80 D0 BE D0 BB D0 BB 20 31 35 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 08 89 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 00 00 D2 [14:28:14]Write i2c OK [14:28:14]MH_I2C_Read... [14:28:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:28:14]Read from MH i2c: E2 [14:28:14]MH_I2C_Read... [14:28:14]Read from MH i2c: E2 03 00 [14:28:14]MH_I2C_Read... [14:28:14]Read from MH i2c: E2 03 00 8E 4C 00 90 00 4E [14:28:14]RAPDU: 90 00 [14:28:14]wFMCommunicate OK [14:28:14]wFMCommunicate request_size=46 [14:28:14]MH_SAM_APDU [14:28:14]CAPDU: 80 0D 02 02 29 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 9B B0 00 00 35 04 06 00 9F 31 A9 AC 4B BA [14:28:14]Write to MH i2c: E2 31 00 8F 4C 80 0D 02 02 29 00 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 9B B0 00 00 35 04 06 00 9F 31 A9 AC 4B BA 00 00 5F [14:28:14]Write i2c OK [14:28:14]MH_I2C_Read... [14:28:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:28:14]Read from MH i2c: E2 [14:28:14]MH_I2C_Read... [14:28:14]Read from MH i2c: E2 03 00 [14:28:14]MH_I2C_Read... [14:28:14]Read from MH i2c: E2 03 00 8F 4C 00 90 00 4F [14:28:14]RAPDU: 90 00 [14:28:14]wFMCommunicate OK [14:28:14]wFMCommunicate request_size=4 [14:28:14]MH_SAM_APDU [14:28:14]CAPDU: 80 0D 03 02 [14:28:14]Write to MH i2c: E2 08 00 90 4C 80 0D 03 02 00 00 00 00 57 [14:28:14]Write i2c OK [14:28:14]MH_I2C_Read... [14:28:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:28:14]Read from MH i2c: E2 [14:28:14]MH_I2C_Read... [14:28:14]Read from MH i2c: E2 0B 00 [14:28:14]MH_I2C_Read... [14:28:14]Read from MH i2c: E2 0B 00 90 4C 00 5F AE 47 9C 3C 40 C0 9B 90 00 1F [14:28:14]RAPDU: 5F AE 47 9C 3C 40 C0 9B 90 00 [14:28:14]wFMCommunicate OK [14:28:14]SAM_PROTO_SignData done [14:28:14]FM_MakeSignedData done [14:28:14]CreateOFDProtocolMessage [14:28:14]wFMCommunicate request_size=4 [14:28:14]MH_SAM_APDU [14:28:14]CAPDU: 80 11 00 00 [14:28:14]Write to MH i2c: E2 08 00 91 4C 80 11 00 00 00 00 00 00 57 [14:28:14]Write i2c OK [14:28:14]MH_I2C_Read... [14:28:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:28:14]Read from MH i2c: E2 [14:28:14]MH_I2C_Read... [14:28:14]Read from MH i2c: E2 17 00 [14:28:14]MH_I2C_Read... [14:28:14]Read from MH i2c: E2 17 00 91 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 B3 [14:28:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [14:28:14]wFMCommunicate OK [14:28:14]CreateOFDProtocolMessage done [14:28:14]OFDSenderStorePacket 45211 [14:28:14]StoreOFDPacket docnum=45211 [14:28:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 33 01 00 00 EF 49 2B 01 B1 4E 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 08 00 34 36 32 32 37 37 33 37 06 04 32 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 66 72 65 73 68 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 20 D1 80 D0 BE D0 BB D0 BB 20 31 35 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 08 89 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 9B B0 00 00 35 04 06 00 9F 31 A9 AC 4B BA 5F AE 47 9C 3C 40 C0 9B [14:28:14]CheckFolder [14:28:14]dirname=/storage/ofd_packets [14:28:14]CheckFolder done [14:28:14]ProducePacketName [14:28:14]name=ofd_packets/00045211 [14:28:14]NVStorageSaveData ofd_packets/00045211 [14:28:14]File name is /storage/ofd_packets/00045211 [14:28:14]Write 337 bytes [14:28:14]NVStorageSaveData done [14:28:14]OFDSenderStorePacket done [14:28:14]KKMCreateOFDPacket done [14:28:14]NVStorageSaveData kkm_last_timestamp [14:28:14]File name is /storage/kkm_last_timestamp [14:28:14]Write 4 bytes [14:28:14]NVStorageSaveData done [14:28:14]ExternCall_PrintAddStr [14:28:14]wPrintStart [14:28:14]Write to MH i2c: 01 00 00 92 4C DE [14:28:14]Write i2c OK [14:28:14]MH_I2C_Read... [14:28:14]Read from MH i2c: 01 [14:28:14]MH_I2C_Read... [14:28:14]Read from MH i2c: 01 07 00 [14:28:14]MH_I2C_Read... [14:28:14]Read from MH i2c: 01 07 00 92 4C 00 00 00 00 00 FF 0F F3 [14:28:14]RasterBufferAndPrint [14:28:14]line Счет N : (3)184176 [14:28:14]line ИНН: 02508201610067 [14:28:14]line Контрольно-Кассовый Чек [14:28:14]line ПРОДАЖА [14:28:14]line Товар: 46227737 [14:28:14]line Р/ж mentos pure fresh арбуз ролл 15,5г [14:28:14]line 1.000 * 49.00 [14:28:14]line = 49.00 [14:28:14]line НДС 12% НСП 1% [14:28:14]line > о реализуемом товаре [14:28:14]line ИТОГО: 49.00 [14:28:14]line НСП 1% : 0.43 [14:28:14]line НДС 12% : 5.20 [14:28:14]line Наличными: 49.00 [14:28:14]line Безнал.: 0.00 [14:28:14]line Место: АЗС № 25 "Партнер Нефть" [14:28:14]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [14:28:14]line СНО: Общий режим [14:28:14]line Чек 48 03.03.2024 14:28 [14:28:14]line Смена: 331 ФФД: 1.0 [14:28:14]line ЗНМ: 0300000013 [14:28:14]line РНМ: 0000000000090572 [14:28:14]line Версия ККМ: 001 [14:28:14]line ФМ: 0000000000874796 [14:28:14]line ФД: 45211 [14:28:14]line ФПД: 175035648854970 [14:28:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T142824&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45211&fm=175035648854970&tin=02508201610067®Number=0000000000090572&sum=4900 [14:28:15]line 0 [14:28:15]OFD Sender: Processing packet 45211 [packets to send 17, broken 16] [14:28:15]ProducePacketName [14:28:15]name=ofd_packets/00045211 [14:28:15]OFD Sender: To server: pG, [14:28:15]CommunicateWithHost lk.salyk.kg:30040 [14:28:15]ConnectInit lk.salyk.kg [14:28:15]written 0, free lines is 4095 [14:28:15]Connected sock=10 [14:28:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 33 01 00 00 EF 49 2B 01 B1 4E 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 08 00 34 36 32 32 37 37 33 37 06 04 32 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 66 72 65 73 68 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 20 D1 80 D0 BE D0 BB D0 BB 20 31 35 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 08 89 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 9B B0 00 00 35 04 06 00 9F 31 A9 AC 4B BA 5F AE 47 9C 3C 40 C0 9B [14:28:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 D5 9D 47 00 0E 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 34 37 39 36 10 04 04 00 9B B0 00 00 F4 03 04 00 CD 34 E4 65 B6 04 01 00 00 8B 22 53 45 6A A8 1C EB [14:28:15]CommunicateWithHost err = 0 [14:28:15]CheckOFDResponse [14:28:15]1017 (14) - 77093643461234 [14:28:15]1041 (16) - 0000000000874796 [14:28:15]1040 (4) - 45211 [14:28:15]1012 (4) - 03.03.2024 08:29 [14:28:15]1206 (1) - 0 [14:28:15]OFD Sender: Remove packet 45211 [14:28:15]ProducePacketName [14:28:15]name=ofd_packets/00045211 [14:28:15]NVStorageDeleteData [14:28:15]Write to MH i2c: 01 00 00 BB 4C 07 [14:28:15]Write i2c OK [14:28:15]MH_I2C_Read... [14:28:15]Read from MH i2c: 01 [14:28:15]MH_I2C_Read... [14:28:15]Read from MH i2c: 01 07 00 [14:28:15]MH_I2C_Read... [14:28:15]Read from MH i2c: 01 07 00 BB 4C 00 00 00 00 00 12 0D 2D [14:28:15]RasterBufferAndPrint [14:28:15]line [14:28:15]line [14:28:15]line [14:28:15]line [14:28:15]line [14:28:15]written 0, free lines is 3352 [14:28:15]MH_Cut [14:28:15]Write to MH i2c: D1 01 00 C2 4C 01 E0 [14:28:15]Write i2c OK [14:28:15]MH_I2C_Read... [14:28:15]Read from MH i2c: D1 [14:28:15]MH_I2C_Read... [14:28:15]Read from MH i2c: D1 01 00 [14:28:15]MH_I2C_Read... [14:28:15]Read from MH i2c: D1 01 00 C2 4C 00 DF [14:28:15]Write to MH i2c: 01 00 00 C3 4C 0F [14:28:15]Write i2c OK [14:28:15]MH_I2C_Read... [14:28:15]OFD Sender: No OFD packet to send [14:28:16]*** Cut start [14:28:16]*** Purtial cut [14:28:16]*** Stage 1: CUTSNS_PIN = 1 [14:28:18]Read from MH i2c: 01 [14:28:18]MH_I2C_Read... [14:28:18]*** Stop cut motor [14:28:18]*** Cut end [14:28:18]Read from MH i2c: 01 07 00 [14:28:18]MH_I2C_Read... [14:28:18]Read from MH i2c: 01 07 00 C3 4C 00 00 00 00 00 FF 0F 24 [14:28:18]process_action close_receipt done [14:28:18]requested_data is exist [14:28:18]produce_requested_data [14:28:18]requested_item fm.sn is exist - process it [14:28:18]wFMCommunicate request_size=4 [14:28:18]MH_SAM_APDU [14:28:18]CAPDU: 80 11 00 00 [14:28:18]Write to MH i2c: E2 08 00 C4 4C 80 11 00 00 00 00 00 00 8A [14:28:18]Write i2c OK [14:28:18]MH_I2C_Read... [14:28:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:28:18]Read from MH i2c: E2 [14:28:18]MH_I2C_Read... [14:28:18]Read from MH i2c: E2 17 00 [14:28:18]MH_I2C_Read... [14:28:18]Read from MH i2c: E2 17 00 C4 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 E6 [14:28:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [14:28:18]wFMCommunicate OK [14:28:18]requested_item fd.num is exist - process it [14:28:18]SAM_PROTO_GetFieldsCounters [14:28:18]wFMCommunicate request_size=4 [14:28:18]MH_SAM_APDU [14:28:18]CAPDU: 80 13 00 00 [14:28:18]Write to MH i2c: E2 08 00 C5 4C 80 13 00 00 00 00 00 00 8D [14:28:18]Write i2c OK [14:28:18]MH_I2C_Read... [14:28:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:28:18]Read from MH i2c: E2 [14:28:18]MH_I2C_Read... [14:28:18]Read from MH i2c: E2 62 00 [14:28:18]MH_I2C_Read... [14:28:18]Read from MH i2c: E2 62 00 C5 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 9B B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 DC [14:28:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 9B B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:28:18]wFMCommunicate OK [14:28:18]SAM_PROTO_GetFieldsCounters done [14:28:18]requested_item shift.num is exist - process it [14:28:18]requested_item shift.opened is exist - process it [14:28:18]req_shift_opened [14:28:18]FM_GetShiftState [14:28:18]SAM_PROTO_GetShiftState [14:28:18]wFMCommunicate request_size=4 [14:28:18]MH_SAM_APDU [14:28:18]CAPDU: 80 13 01 00 [14:28:18]Write to MH i2c: E2 08 00 C6 4C 80 13 01 00 00 00 00 00 8F [14:28:18]Write i2c OK [14:28:18]MH_I2C_Read... [14:28:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:28:18]Read from MH i2c: E2 [14:28:18]MH_I2C_Read... [14:28:18]Read from MH i2c: E2 0E 00 [14:28:18]MH_I2C_Read... [14:28:18]Read from MH i2c: E2 0E 00 C6 4C 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 C5 [14:28:18]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [14:28:18]wFMCommunicate OK [14:28:18]SAM_PROTO_GetShiftState done [14:28:18]FM_GetShiftState done [14:28:18]req_shift_opened done [14:28:18]requested_item shift.open_date is exist - process it [14:28:18]req_shift_open_date [14:28:18]req_shift_open_date done [14:28:18]produce_requested_data done [14:28:18]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45211,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [14:28:18]process_action_free close_receipt [14:28:18]json_value_free [14:28:18]json_value_free done [14:28:18]process_json_proto returns [14:28:18]Send response to host [14:28:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45211,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [14:28:18]free response buf [14:28:18]execute_script done [14:28:18]execute_script returns [14:28:18]free content buf [14:28:18]Sock 9.Close socket [14:28:18]Sock 9.Thread stoped [14:28:20]OFD Sender: No OFD packet to send [14:28:25]OFD Sender: No OFD packet to send [14:28:30]OFD Sender: No OFD packet to send [14:28:35]OFD Sender: No OFD packet to send [14:28:40]OFD Sender: No OFD packet to send [14:28:45]OFD Sender: No OFD packet to send [14:28:50]OFD Sender: No OFD packet to send [14:28:55]OFD Sender: No OFD packet to send [14:29:00]OFD Sender: No OFD packet to send [14:29:03]accept exits with 7 [14:29:03]New connection [14:29:03]New thread 3067014500 created [14:29:03]Thread 3067157860 joined [14:29:03]Waiting for new connection... [14:29:03] Sock 7.Parse request [14:29:03]Sock 7.Check first char [14:29:03]Sock 7.First char is OK [14:29:03]request: POST /json_proto HTTP/1.0 [14:29:03]Method: POST [14:29:03]URL: /json_proto [14:29:03]Method is POST - this is cgi request [14:29:03]url: /json_proto [14:29:03]query_string will be loaded in cgi processing [14:29:03]execute_cgi json_proto POST (null) [14:29:03]execute_cgi path=json_proto method=POST [14:29:03]POST find Content-Length [14:29:03]Host: 172.17.48.198:8080 [14:29:03]Content-Length: 890 [14:29:03]Content-Type: application/json [14:29:03] [14:29:03]POST finish read [14:29:03]Found Content-Length = 890 [14:29:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184177", "tax_sys" : 0, "items" : [ { "code": "8901086040022", "name": "\u0416\u0438\u0434\u043A\u043E\u0441\u0442\u044C \u0441\u0442\u0435\u043A\u043B\u043E\u043E\u043C\u044B\u0432\u0430\u044E\u0449\u0430\u044F \u041F\u041D -20 4,5\u043B", "price" : 257.00, "quantity" : 1.000, "sum" : 257.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 257.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:29:03]execute_script... [14:29: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 : (3)184177", "tax_sys" : 0, "items" : [ { "code": "8901086040022", "name": "\u0416\u0438\u0434\u043A\u043E\u0441\u0442\u044C \u0441\u0442\u0435\u043A\u043B\u043E\u043E\u043C\u044B\u0432\u0430\u044E\u0449\u0430\u044F \u041F\u041D -20 4,5\u043B", "price" : 257.00, "quantity" : 1.000, "sum" : 257.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 257.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:29:03]POST & json_proto [14:29:03]process_json_proto [14:29:03]json parsed OK: [14:29:03]protocol is kg_v1.0 [14:29:03]action value=close_receipt [14:29:03]process_action close_receipt [14:29:03]cmd_close_receipt [14:29:03]MH_GetDate [14:29:03]Write to MH i2c: F0 00 00 C7 4C 02 [14:29:03]Write i2c OK [14:29:03]MH_I2C_Read... [14:29:03]Read from MH i2c: F0 [14:29:03]MH_I2C_Read... [14:29:03]Read from MH i2c: F0 09 00 [14:29:03]MH_I2C_Read... [14:29:03]Read from MH i2c: F0 09 00 C7 4C 00 3B 89 E4 65 CE C4 D4 65 E3 [14:29:03]GetLastDocTimeStamp 1709476104 [14:29:03]current date 1709476155 [14:29:03]FM_GetShiftState [14:29:03]SAM_PROTO_GetShiftState [14:29:03]wFMCommunicate request_size=4 [14:29:03]MH_SAM_APDU [14:29:03]CAPDU: 80 13 01 00 [14:29:03]Write to MH i2c: E2 08 00 C8 4C 80 13 01 00 00 00 00 00 91 [14:29:03]Write i2c OK [14:29:03]MH_I2C_Read... [14:29:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:29:03]Read from MH i2c: E2 [14:29:03]MH_I2C_Read... [14:29:03]Read from MH i2c: E2 0E 00 [14:29:03]MH_I2C_Read... [14:29:03]Read from MH i2c: E2 0E 00 C8 4C 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 C7 [14:29:03]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [14:29:03]wFMCommunicate OK [14:29:03]SAM_PROTO_GetShiftState done [14:29:03]FM_GetShiftState done [14:29:03]opened in 1709425694 [14:29:03]opened+sec_in_day 1709512094 [14:29:03]quantity*price = 25700 [14:29:03]sum+1 = 25701 [14:29:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 257.00 НСП 1% : 2.27 НДС 12% : 27.29 Наличными: 0.00 Безнал.: 257.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 49 03.03.2024 14:29 Смена: 331 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874796 ФД: 45212 ФПД: 201882110681479 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T142915&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45212&fm=201882110681479&tin=02508201610067®Number=0000000000090572&sum=25700 0 [14:29:04]StoreToDocumentArchive [14:29:04]shift 331 fd 45212 [14:29:04]save to /storage/0331/doc_00045212 [14:29:04]save last doc name /storage/0331/doc_00045212 to /storage/kkm_last_doc_name [14:29:04]save OK [14:29:04]Clear old archive folders... [14:29:04]ProcessDocumentItem done err = 0, tmpTLVsize=304 [14:29:04]tlvbuf is 01B6B4A0 [14:29:04]SAM_PROTO_ClearQueue [14:29:04]wFMCommunicate request_size=4 [14:29:04]MH_SAM_APDU [14:29:04]CAPDU: 80 09 00 00 [14:29:04]Write to MH i2c: E2 08 00 D5 4C 80 09 00 00 00 00 00 00 93 [14:29:04]Write i2c OK [14:29:04]MH_I2C_Read... [14:29:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:29:04]Read from MH i2c: E2 [14:29:04]MH_I2C_Read... [14:29:04]Read from MH i2c: E2 03 00 [14:29:04]MH_I2C_Read... [14:29:04]Read from MH i2c: E2 03 00 D5 4C 00 90 00 95 [14:29:04]RAPDU: 90 00 [14:29:04]wFMCommunicate OK [14:29:04]SAM_PROTO_ClearQueue done [14:29:04]KKMCreateOFDPacket [14:29:04]OFDProtocolAddRootSTLVToBuf [14:29:04]FM_MakeSignedData [14:29:04]FM_MakeSignedData [14:29:04]SAM_PROTO_SignData [14:29:04]wFMCommunicate request_size=4 [14:29:04]MH_SAM_APDU [14:29:04]CAPDU: 80 0D 01 02 [14:29:04]Write to MH i2c: E2 08 00 D6 4C 80 0D 01 02 00 00 00 00 9B [14:29:04]Write i2c OK [14:29:04]MH_I2C_Read... [14:29:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:29:04]Read from MH i2c: E2 [14:29:04]MH_I2C_Read... [14:29:04]Read from MH i2c: E2 03 00 [14:29:04]MH_I2C_Read... [14:29:04]Read from MH i2c: E2 03 00 D6 4C 00 90 00 96 [14:29:04]RAPDU: 90 00 [14:29:04]wFMCommunicate OK [14:29:04]wFMCommunicate request_size=255 [14:29:04]MH_SAM_APDU [14:29:04]CAPDU: 80 0D 02 02 FA 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 32 32 06 04 3E 00 D0 96 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE D0 BE D0 BC D1 8B D0 B2 D0 B0 D1 8E D1 89 D0 B0 D1 8F 20 D0 9F D0 9D 20 2D 32 30 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 64 00 00 00 00 13 04 06 00 64 64 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 64 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 64 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 3B 89 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 [14:29:04]Write to MH i2c: E2 02 01 D7 4C 80 0D 02 02 FA 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 32 32 06 04 3E 00 D0 96 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE D0 BE D0 BC D1 8B D0 B2 D0 B0 D1 8E D1 89 D0 B0 D1 8F 20 D0 9F D0 9D 20 2D 32 30 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 64 00 00 00 00 13 04 06 00 64 64 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 64 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 64 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 3B 89 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 00 00 39 [14:29:04]Write i2c OK [14:29:04]MH_I2C_Read... [14:29:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:29:04]Read from MH i2c: E2 [14:29:04]MH_I2C_Read... [14:29:04]Read from MH i2c: E2 03 00 [14:29:04]MH_I2C_Read... [14:29:04]Read from MH i2c: E2 03 00 D7 4C 00 90 00 97 [14:29:04]RAPDU: 90 00 [14:29:04]wFMCommunicate OK [14:29:04]wFMCommunicate request_size=63 [14:29:04]MH_SAM_APDU [14:29:04]CAPDU: 80 0D 02 02 3A 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 9C B0 00 00 35 04 06 00 B7 9C 57 7E 61 87 [14:29:04]Write to MH i2c: E2 42 00 D8 4C 80 0D 02 02 3A 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 9C B0 00 00 35 04 06 00 B7 9C 57 7E 61 87 00 00 4B [14:29:04]Write i2c OK [14:29:04]MH_I2C_Read... [14:29:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:29:04]Read from MH i2c: E2 [14:29:04]MH_I2C_Read... [14:29:04]Read from MH i2c: E2 03 00 [14:29:04]MH_I2C_Read... [14:29:04]Read from MH i2c: E2 03 00 D8 4C 00 90 00 98 [14:29:04]RAPDU: 90 00 [14:29:04]wFMCommunicate OK [14:29:04]wFMCommunicate request_size=4 [14:29:04]MH_SAM_APDU [14:29:04]CAPDU: 80 0D 03 02 [14:29:04]Write to MH i2c: E2 08 00 D9 4C 80 0D 03 02 00 00 00 00 A0 [14:29:04]Write i2c OK [14:29:04]MH_I2C_Read... [14:29:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:29:04]Read from MH i2c: E2 [14:29:04]MH_I2C_Read... [14:29:04]Read from MH i2c: E2 0B 00 [14:29:04]MH_I2C_Read... [14:29:04]Read from MH i2c: E2 0B 00 D9 4C 00 6A 61 DB 76 8E 81 EA 02 90 00 B8 [14:29:04]RAPDU: 6A 61 DB 76 8E 81 EA 02 90 00 [14:29:04]wFMCommunicate OK [14:29:04]SAM_PROTO_SignData done [14:29:04]FM_MakeSignedData done [14:29:04]CreateOFDProtocolMessage [14:29:04]wFMCommunicate request_size=4 [14:29:04]MH_SAM_APDU [14:29:04]CAPDU: 80 11 00 00 [14:29:04]Write to MH i2c: E2 08 00 DA 4C 80 11 00 00 00 00 00 00 A0 [14:29:04]Write i2c OK [14:29:04]MH_I2C_Read... [14:29:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:29:04]Read from MH i2c: E2 [14:29:04]MH_I2C_Read... [14:29:04]Read from MH i2c: E2 17 00 [14:29:04]MH_I2C_Read... [14:29:04]Read from MH i2c: E2 17 00 DA 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 FC [14:29:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [14:29:04]wFMCommunicate OK [14:29:04]CreateOFDProtocolMessage done [14:29:04]OFDSenderStorePacket 45212 [14:29:04]StoreOFDPacket docnum=45212 [14:29:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 44 01 00 00 CC D8 3C 01 3E 0E 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 32 32 06 04 3E 00 D0 96 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE D0 BE D0 BC D1 8B D0 B2 D0 B0 D1 8E D1 89 D0 B0 D1 8F 20 D0 9F D0 9D 20 2D 32 30 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 64 00 00 00 00 13 04 06 00 64 64 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 64 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 64 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 3B 89 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 9C B0 00 00 35 04 06 00 B7 9C 57 7E 61 87 6A 61 DB 76 8E 81 EA 02 [14:29:04]CheckFolder [14:29:04]dirname=/storage/ofd_packets [14:29:04]CheckFolder done [14:29:04]ProducePacketName [14:29:04]name=ofd_packets/00045212 [14:29:04]NVStorageSaveData ofd_packets/00045212 [14:29:04]File name is /storage/ofd_packets/00045212 [14:29:04]Write 354 bytes [14:29:04]NVStorageSaveData done [14:29:04]OFDSenderStorePacket done [14:29:04]KKMCreateOFDPacket done [14:29:04]NVStorageSaveData kkm_last_timestamp [14:29:04]File name is /storage/kkm_last_timestamp [14:29:04]Write 4 bytes [14:29:04]NVStorageSaveData done [14:29:04]ExternCall_PrintAddStr [14:29:04]wPrintStart [14:29:04]Write to MH i2c: 01 00 00 DB 4C 27 [14:29:04]Write i2c OK [14:29:04]MH_I2C_Read... [14:29:04]Read from MH i2c: 01 [14:29:04]MH_I2C_Read... [14:29:04]Read from MH i2c: 01 07 00 [14:29:04]MH_I2C_Read... [14:29:04]Read from MH i2c: 01 07 00 DB 4C 00 00 00 00 00 FF 0F 3C [14:29:04]RasterBufferAndPrint [14:29:04]line Счет N : (3)184177 [14:29:04]line ИНН: 02508201610067 [14:29:04]line Контрольно-Кассовый Чек [14:29:04]line ПРОДАЖА [14:29:04]line Товар: 8901086040022 [14:29:04]line Жидкость стеклоомывающая ПН -20 4,5л [14:29:04]line 1.000 * 257.00 [14:29:04]line = 257.00 [14:29:04]line НДС 12% НСП 1% [14:29:04]line > о реализуемом товаре [14:29:04]line ИТОГО: 257.00 [14:29:04]line НСП 1% : 2.27 [14:29:04]line НДС 12% : 27.29 [14:29:04]line Наличными: 0.00 [14:29:04]line Безнал.: 257.00 [14:29:04]line Место: АЗС № 25 "Партнер Нефть" [14:29:04]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [14:29:04]line СНО: Общий режим [14:29:04]line Чек 49 03.03.2024 14:29 [14:29:04]line Смена: 331 ФФД: 1.0 [14:29:04]line ЗНМ: 0300000013 [14:29:04]line РНМ: 0000000000090572 [14:29:04]line Версия ККМ: 001 [14:29:04]line Платежная система: О! деньги [14:29:04]line ФМ: 0000000000874796 [14:29:04]line ФД: 45212 [14:29:04]line ФПД: 201882110681479 [14:29:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T142915&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45212&fm=201882110681479&tin=02508201610067®Number=0000000000090572&sum=25700 [14:29:04]line 0 [14:29:05]written 0, free lines is 4095 [14:29:05]OFD Sender: Processing packet 45212 [packets to send 17, broken 16] [14:29:05]ProducePacketName [14:29:05]name=ofd_packets/00045212 [14:29:05]OFD Sender: To server: pG, [14:29:05]CommunicateWithHost lk.salyk.kg:30040 [14:29:05]ConnectInit lk.salyk.kg [14:29:05]Connected sock=10 [14:29:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 44 01 00 00 CC D8 3C 01 3E 0E 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 32 32 06 04 3E 00 D0 96 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE D0 BE D0 BC D1 8B D0 B2 D0 B0 D1 8E D1 89 D0 B0 D1 8F 20 D0 9F D0 9D 20 2D 32 30 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 64 00 00 00 00 13 04 06 00 64 64 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 64 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 64 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 3B 89 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 9C B0 00 00 35 04 06 00 B7 9C 57 7E 61 87 6A 61 DB 76 8E 81 EA 02 [14:29:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 A2 2C 47 00 36 5A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 9C B0 00 00 F4 03 04 00 FF 34 E4 65 B6 04 01 00 00 65 32 FA E0 1D 3C F3 11 [14:29:05]CommunicateWithHost err = 0 [14:29:05]CheckOFDResponse [14:29:05]1017 (14) - 77093643461234 [14:29:05]1041 (16) - 0000000000874796 [14:29:05]1040 (4) - 45212 [14:29:05]1012 (4) - 03.03.2024 08:29 [14:29:05]1206 (1) - 0 [14:29:05]OFD Sender: Remove packet 45212 [14:29:05]ProducePacketName [14:29:05]name=ofd_packets/00045212 [14:29:05]NVStorageDeleteData [14:29:05]Write to MH i2c: 01 00 00 06 4D 53 [14:29:05]Write i2c OK [14:29:05]MH_I2C_Read... [14:29:05]Read from MH i2c: 01 [14:29:05]MH_I2C_Read... [14:29:05]Read from MH i2c: 01 07 00 [14:29:05]MH_I2C_Read... [14:29:05]Read from MH i2c: 01 07 00 06 4D 00 00 00 00 00 E6 0C 4C [14:29:05]RasterBufferAndPrint [14:29:05]line [14:29:05]line [14:29:05]line [14:29:05]line [14:29:05]line [14:29:05]written 0, free lines is 3311 [14:29:05]MH_Cut [14:29:05]Write to MH i2c: D1 01 00 0D 4D 01 2C [14:29:05]Write i2c OK [14:29:05]MH_I2C_Read... [14:29:05]Read from MH i2c: D1 [14:29:05]MH_I2C_Read... [14:29:05]Read from MH i2c: D1 01 00 [14:29:05]MH_I2C_Read... [14:29:05]Read from MH i2c: D1 01 00 0D 4D 00 2B [14:29:05]Write to MH i2c: 01 00 00 0E 4D 5B [14:29:05]Write i2c OK [14:29:05]MH_I2C_Read... [14:29:05]OFD Sender: No OFD packet to send [14:29:06]*** Cut start [14:29:06]*** Purtial cut [14:29:06]*** Stage 1: CUTSNS_PIN = 1 [14:29:08]Read from MH i2c: 01 [14:29:08]MH_I2C_Read... [14:29:08]*** Stop cut motor [14:29:08]*** Cut end [14:29:08]Read from MH i2c: 01 07 00 [14:29:08]MH_I2C_Read... [14:29:08]Read from MH i2c: 01 07 00 0E 4D 00 00 00 00 00 FF 0F 70 [14:29:08]process_action close_receipt done [14:29:08]requested_data is exist [14:29:08]produce_requested_data [14:29:08]requested_item fm.sn is exist - process it [14:29:08]wFMCommunicate request_size=4 [14:29:08]MH_SAM_APDU [14:29:08]CAPDU: 80 11 00 00 [14:29:08]Write to MH i2c: E2 08 00 0F 4D 80 11 00 00 00 00 00 00 D6 [14:29:08]Write i2c OK [14:29:08]MH_I2C_Read... [14:29:08]Read from MH i2c: E2 [14:29:08]MH_I2C_Read... [14:29:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:29:08]Read from MH i2c: E2 17 00 [14:29:08]MH_I2C_Read... [14:29:08]Read from MH i2c: E2 17 00 0F 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 32 [14:29:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [14:29:08]wFMCommunicate OK [14:29:08]requested_item fd.num is exist - process it [14:29:08]SAM_PROTO_GetFieldsCounters [14:29:08]wFMCommunicate request_size=4 [14:29:08]MH_SAM_APDU [14:29:08]CAPDU: 80 13 00 00 [14:29:08]Write to MH i2c: E2 08 00 10 4D 80 13 00 00 00 00 00 00 D9 [14:29:08]Write i2c OK [14:29:08]MH_I2C_Read... [14:29:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:29:08]Read from MH i2c: E2 [14:29:08]MH_I2C_Read... [14:29:08]Read from MH i2c: E2 62 00 [14:29:08]MH_I2C_Read... [14:29:08]Read from MH i2c: E2 62 00 10 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 9C B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 2C [14:29:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 9C B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:29:08]wFMCommunicate OK [14:29:08]SAM_PROTO_GetFieldsCounters done [14:29:08]requested_item shift.num is exist - process it [14:29:08]requested_item shift.opened is exist - process it [14:29:08]req_shift_opened [14:29:08]FM_GetShiftState [14:29:08]SAM_PROTO_GetShiftState [14:29:08]wFMCommunicate request_size=4 [14:29:08]MH_SAM_APDU [14:29:08]CAPDU: 80 13 01 00 [14:29:08]Write to MH i2c: E2 08 00 11 4D 80 13 01 00 00 00 00 00 DB [14:29:08]Write i2c OK [14:29:08]MH_I2C_Read... [14:29:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:29:08]Read from MH i2c: E2 [14:29:08]MH_I2C_Read... [14:29:08]Read from MH i2c: E2 0E 00 [14:29:08]MH_I2C_Read... [14:29:08]Read from MH i2c: E2 0E 00 11 4D 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 11 [14:29:08]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [14:29:08]wFMCommunicate OK [14:29:08]SAM_PROTO_GetShiftState done [14:29:08]FM_GetShiftState done [14:29:08]req_shift_opened done [14:29:08]requested_item shift.open_date is exist - process it [14:29:08]req_shift_open_date [14:29:08]req_shift_open_date done [14:29:08]produce_requested_data done [14:29:08]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45212,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [14:29:08]process_action_free close_receipt [14:29:08]json_value_free [14:29:08]json_value_free done [14:29:08]process_json_proto returns [14:29:08]Send response to host [14:29:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45212,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [14:29:08]free response buf [14:29:08]execute_script done [14:29:08]execute_script returns [14:29:08]free content buf [14:29:08]Sock 7.Close socket [14:29:08]Sock 7.Thread stoped [14:29:10]OFD Sender: No OFD packet to send [14:29:15]OFD Sender: No OFD packet to send [14:29:20]OFD Sender: No OFD packet to send [14:29:25]OFD Sender: No OFD packet to send [14:29:30]OFD Sender: No OFD packet to send [14:29:35]OFD Sender: No OFD packet to send [14:29:40]OFD Sender: No OFD packet to send [14:29:45]OFD Sender: No OFD packet to send [14:29:50]OFD Sender: No OFD packet to send [14:29:55]OFD Sender: No OFD packet to send [14:30:00]OFD Sender: No OFD packet to send [14:30:05]OFD Sender: No OFD packet to send [14:30:10]OFD Sender: No OFD packet to send [14:30:15]OFD Sender: No OFD packet to send [14:30:20]OFD Sender: No OFD packet to send [14:30:25]OFD Sender: No OFD packet to send [14:30:30]OFD Sender: No OFD packet to send [14:30:35]OFD Sender: No OFD packet to send [14:30:40]OFD Sender: No OFD packet to send [14:30:45]OFD Sender: No OFD packet to send [14:30:50]OFD Sender: No OFD packet to send [14:30:55]OFD Sender: No OFD packet to send [14:31:00]OFD Sender: No OFD packet to send [14:31:05]OFD Sender: No OFD packet to send [14:31:10]OFD Sender: No OFD packet to send [14:31:15]OFD Sender: No OFD packet to send [14:31:20]OFD Sender: No OFD packet to send [14:31:25]OFD Sender: No OFD packet to send [14:31:30]OFD Sender: No OFD packet to send [14:31:35]OFD Sender: No OFD packet to send [14:31:40]OFD Sender: No OFD packet to send [14:31:45]OFD Sender: No OFD packet to send [14:31:50]OFD Sender: No OFD packet to send [14:31:55]OFD Sender: No OFD packet to send [14:32:00]OFD Sender: No OFD packet to send [14:32:05]OFD Sender: No OFD packet to send [14:32:10]OFD Sender: No OFD packet to send [14:32:15]OFD Sender: No OFD packet to send [14:32:20]OFD Sender: No OFD packet to send [14:32:25]OFD Sender: No OFD packet to send [14:32:30]OFD Sender: No OFD packet to send [14:32:35]OFD Sender: No OFD packet to send [14:32:40]OFD Sender: No OFD packet to send [14:32:45]OFD Sender: No OFD packet to send [14:32:50]OFD Sender: No OFD packet to send [14:32:55]OFD Sender: No OFD packet to send [14:33:00]OFD Sender: No OFD packet to send [14:33:05]OFD Sender: No OFD packet to send [14:33:10]OFD Sender: No OFD packet to send [14:33:15]OFD Sender: No OFD packet to send [14:33:20]OFD Sender: No OFD packet to send [14:33:25]OFD Sender: No OFD packet to send [14:33:30]OFD Sender: No OFD packet to send [14:33:35]OFD Sender: No OFD packet to send [14:33:40]OFD Sender: No OFD packet to send [14:33:45]OFD Sender: No OFD packet to send [14:33:51]OFD Sender: No OFD packet to send [14:33:56]OFD Sender: No OFD packet to send [14:34:01]OFD Sender: No OFD packet to send [14:34:06]OFD Sender: No OFD packet to send [14:34:11]OFD Sender: No OFD packet to send [14:34:16]OFD Sender: No OFD packet to send [14:34:21]OFD Sender: No OFD packet to send [14:34:26]OFD Sender: No OFD packet to send [14:34:29]accept exits with 9 [14:34:29]New connection [14:34:29]New thread 3067157860 created [14:34:29]Thread 3067014500 joined [14:34:29]Waiting for new connection... [14:34:29] Sock 9.Parse request [14:34:29]Sock 9.Check first char [14:34:29]Sock 9.First char is OK [14:34:29]request: POST /json_proto HTTP/1.0 [14:34:29]Method: POST [14:34:29]URL: /json_proto [14:34:29]Method is POST - this is cgi request [14:34:29]url: /json_proto [14:34:29]query_string will be loaded in cgi processing [14:34:29]execute_cgi json_proto POST (null) [14:34:29]execute_cgi path=json_proto method=POST [14:34:29]POST find Content-Length [14:34:29]Host: 172.17.48.198:8080 [14:34:29]Content-Length: 1215 [14:34:29]Content-Type: application/json [14:34:29] [14:34:29]POST finish read [14:34:29]Found Content-Length = 1215 [14:34:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106191\u000A03.03.2024 14:29\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 21.160 x 70.90\u000A\u0418\u0422\u041E\u0413: 1500.24\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A00350\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:34:29]execute_script... [14:34:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106191\u000A03.03.2024 14:29\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 21.160 x 70.90\u000A\u0418\u0422\u041E\u0413: 1500.24\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A00350\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:34:29]POST & json_proto [14:34:29]process_json_proto [14:34:29]json parsed OK: [14:34:29]protocol is kg_v1.0 [14:34:29]action value=print_text [14:34:29]process_action print_text [14:34:29]cmd_print_text [14:34:29]ExternCall_PrintAddStr [14:34:29]wPrintStart [14:34:29]Write to MH i2c: 01 00 00 12 4D 5F [14:34:29]Write i2c OK [14:34:29]MH_I2C_Read... [14:34:29]Read from MH i2c: 01 [14:34:29]MH_I2C_Read... [14:34:29]Read from MH i2c: 01 07 00 [14:34:29]MH_I2C_Read... [14:34:29]Read from MH i2c: 01 07 00 12 4D 00 00 00 00 00 FF 0F 74 [14:34:29]RasterBufferAndPrint [14:34:29]line *****ТОВАРНЫЙ ЧЕК***** [14:34:29]line АЗС 25 [14:34:29]line Партнер нефть [14:34:29]line 02508201610067 [14:34:29]line Кассир : Турдумбек у. К. [14:34:29]line Счет N : (1)1106191 [14:34:29]line 03.03.2024 14:29 [14:34:29]line ПРОДАЖА [14:34:29]line ТРК (МРК, ГНК): 31 [14:34:29]line Вид ГСМ : 2710194210 [14:34:29]line ДТ(л)-К-5 [14:34:29]line 21.160 x 70.90 [14:34:29]line ИТОГ: 1500.24 [14:34:29]line Тип оплаты: Талоны: Топливная Карта [14:34:29]line 00350 [14:34:29]line ______________________ [14:34:29]line (подпись) [14:34:29]written 0, free lines is 4095 [14:34:29]Write to MH i2c: 01 00 00 27 4D 74 [14:34:29]Write i2c OK [14:34:29]MH_I2C_Read... [14:34:29]Read from MH i2c: 01 [14:34:29]MH_I2C_Read... [14:34:29]Read from MH i2c: 01 07 00 [14:34:29]MH_I2C_Read... [14:34:29]Read from MH i2c: 01 07 00 27 4D 00 00 00 00 00 F4 0D 7C [14:34:29]RasterBufferAndPrint [14:34:29]line [14:34:29]line [14:34:29]line [14:34:29]line [14:34:29]line [14:34:29]written 0, free lines is 3573 [14:34:29]MH_Cut [14:34:29]Write to MH i2c: D1 01 00 2E 4D 01 4D [14:34:29]Write i2c OK [14:34:29]MH_I2C_Read... [14:34:29]Read from MH i2c: D1 [14:34:29]MH_I2C_Read... [14:34:29]Read from MH i2c: D1 01 00 [14:34:29]MH_I2C_Read... [14:34:29]Read from MH i2c: D1 01 00 2E 4D 00 4C [14:34:29]Write to MH i2c: 01 00 00 2F 4D 7C [14:34:29]Write i2c OK [14:34:29]MH_I2C_Read... [14:34:30]*** Cut start [14:34:30]*** Purtial cut [14:34:30]*** Stage 1: CUTSNS_PIN = 1 [14:34:31]OFD Sender: No OFD packet to send [14:34:32]Read from MH i2c: 01 [14:34:32]MH_I2C_Read... [14:34:32]Read from MH i2c: 01 07 00 [14:34:32]MH_I2C_Read... [14:34:32]*** Stop cut motor [14:34:32]*** Cut end [14:34:32]Read from MH i2c: 01 07 00 2F 4D 00 00 00 00 00 FF 0F 91 [14:34:32]process_action print_text done [14:34:32]requested_data is exist [14:34:32]produce_requested_data [14:34:32]requested_item fm.sn is exist - process it [14:34:32]wFMCommunicate request_size=4 [14:34:32]MH_SAM_APDU [14:34:32]CAPDU: 80 11 00 00 [14:34:32]Write to MH i2c: E2 08 00 30 4D 80 11 00 00 00 00 00 00 F7 [14:34:32]Write i2c OK [14:34:32]MH_I2C_Read... [14:34:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:34:32]Read from MH i2c: E2 [14:34:32]MH_I2C_Read... [14:34:32]Read from MH i2c: E2 17 00 [14:34:32]MH_I2C_Read... [14:34:32]Read from MH i2c: E2 17 00 30 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 53 [14:34:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [14:34:32]wFMCommunicate OK [14:34:32]requested_item fd.num is exist - process it [14:34:32]SAM_PROTO_GetFieldsCounters [14:34:32]wFMCommunicate request_size=4 [14:34:32]MH_SAM_APDU [14:34:32]CAPDU: 80 13 00 00 [14:34:32]Write to MH i2c: E2 08 00 31 4D 80 13 00 00 00 00 00 00 FA [14:34:32]Write i2c OK [14:34:32]MH_I2C_Read... [14:34:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:34:32]Read from MH i2c: E2 [14:34:32]MH_I2C_Read... [14:34:32]Read from MH i2c: E2 62 00 [14:34:32]MH_I2C_Read... [14:34:32]Read from MH i2c: E2 62 00 31 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 9C B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 4D [14:34:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 9C B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:34:32]wFMCommunicate OK [14:34:32]SAM_PROTO_GetFieldsCounters done [14:34:32]requested_item shift.num is exist - process it [14:34:32]requested_item shift.opened is exist - process it [14:34:32]req_shift_opened [14:34:32]FM_GetShiftState [14:34:32]SAM_PROTO_GetShiftState [14:34:32]wFMCommunicate request_size=4 [14:34:32]MH_SAM_APDU [14:34:32]CAPDU: 80 13 01 00 [14:34:32]Write to MH i2c: E2 08 00 32 4D 80 13 01 00 00 00 00 00 FC [14:34:32]Write i2c OK [14:34:32]MH_I2C_Read... [14:34:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:34:32]Read from MH i2c: E2 [14:34:32]MH_I2C_Read... [14:34:32]Read from MH i2c: E2 0E 00 [14:34:32]MH_I2C_Read... [14:34:32]Read from MH i2c: E2 0E 00 32 4D 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 32 [14:34:32]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [14:34:32]wFMCommunicate OK [14:34:32]SAM_PROTO_GetShiftState done [14:34:32]FM_GetShiftState done [14:34:32]req_shift_opened done [14:34:32]requested_item shift.open_date is exist - process it [14:34:32]req_shift_open_date [14:34:32]req_shift_open_date done [14:34:32]produce_requested_data done [14:34:32]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45212,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [14:34:32]process_action_free print_text [14:34:32]json_value_free [14:34:32]json_value_free done [14:34:32]process_json_proto returns [14:34:32]Send response to host [14:34:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45212,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [14:34:32]free response buf [14:34:32]execute_script done [14:34:32]execute_script returns [14:34:32]free content buf [14:34:32]Sock 9.Close socket [14:34:32]Sock 9.Thread stoped [14:34:36]OFD Sender: No OFD packet to send [14:34:41]OFD Sender: No OFD packet to send [14:34:46]OFD Sender: No OFD packet to send [14:34:51]OFD Sender: No OFD packet to send [14:34:56]OFD Sender: No OFD packet to send [14:35:01]OFD Sender: No OFD packet to send [14:35:06]OFD Sender: No OFD packet to send [14:35:11]OFD Sender: No OFD packet to send [14:35:16]OFD Sender: No OFD packet to send [14:35:21]OFD Sender: No OFD packet to send [14:35:26]OFD Sender: No OFD packet to send [14:35:31]OFD Sender: No OFD packet to send [14:35:36]OFD Sender: No OFD packet to send [14:35:41]OFD Sender: No OFD packet to send [14:35:46]OFD Sender: No OFD packet to send [14:35:51]OFD Sender: No OFD packet to send [14:35:56]OFD Sender: No OFD packet to send [14:36:01]OFD Sender: No OFD packet to send [14:36:06]OFD Sender: No OFD packet to send [14:36:11]OFD Sender: No OFD packet to send [14:36:16]OFD Sender: No OFD packet to send [14:36:21]OFD Sender: No OFD packet to send [14:36:26]OFD Sender: No OFD packet to send [14:36:31]OFD Sender: No OFD packet to send [14:36:36]OFD Sender: No OFD packet to send [14:36:41]OFD Sender: No OFD packet to send [14:36:46]OFD Sender: No OFD packet to send [14:36:51]OFD Sender: No OFD packet to send [14:36:56]OFD Sender: No OFD packet to send [14:37:01]OFD Sender: No OFD packet to send [14:37:06]OFD Sender: No OFD packet to send [14:37:11]OFD Sender: No OFD packet to send [14:37:16]OFD Sender: No OFD packet to send [14:37:21]OFD Sender: No OFD packet to send [14:37:26]OFD Sender: No OFD packet to send [14:37:31]OFD Sender: No OFD packet to send [14:37:36]OFD Sender: No OFD packet to send [14:37:41]OFD Sender: No OFD packet to send [14:37:46]OFD Sender: No OFD packet to send [14:37:51]OFD Sender: No OFD packet to send [14:37:56]OFD Sender: No OFD packet to send [14:38:01]OFD Sender: No OFD packet to send [14:38:06]OFD Sender: No OFD packet to send [14:38:11]OFD Sender: No OFD packet to send [14:38:16]OFD Sender: No OFD packet to send [14:38:21]OFD Sender: No OFD packet to send [14:38:26]OFD Sender: No OFD packet to send [14:38:31]OFD Sender: No OFD packet to send [14:38:36]OFD Sender: No OFD packet to send [14:38:41]OFD Sender: No OFD packet to send [14:38:46]OFD Sender: No OFD packet to send [14:38:51]OFD Sender: No OFD packet to send [14:38:56]OFD Sender: No OFD packet to send [14:39:01]OFD Sender: No OFD packet to send [14:39:06]OFD Sender: No OFD packet to send [14:39:11]OFD Sender: No OFD packet to send [14:39:16]OFD Sender: No OFD packet to send [14:39:21]OFD Sender: No OFD packet to send [14:39:26]OFD Sender: No OFD packet to send [14:39:31]OFD Sender: No OFD packet to send [14:39:35]accept exits with 7 [14:39:35]New connection [14:39:35]New thread 3067014500 created [14:39:35]Thread 3067157860 joined [14:39:35]Waiting for new connection... [14:39:35] Sock 7.Parse request [14:39:35]Sock 7.Check first char [14:39:35]Sock 7.First char is OK [14:39:35]request: POST /json_proto HTTP/1.0 [14:39:35]Method: POST [14:39:35]URL: /json_proto [14:39:35]Method is POST - this is cgi request [14:39:35]url: /json_proto [14:39:35]query_string will be loaded in cgi processing [14:39:35]execute_cgi json_proto POST (null) [14:39:35]execute_cgi path=json_proto method=POST [14:39:35]POST find Content-Length [14:39:35]Host: 172.17.48.198:8080 [14:39:35]Content-Length: 1243 [14:39:35]Content-Type: application/json [14:39:35] [14:39:35]POST finish read [14:39:35]Found Content-Length = 1243 [14:39:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184178", "tax_sys" : 0, "items" : [ { "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 3.000, "sum" : 375.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000039210050", "name": "\u0410\u041A\u0426\u0418\u042F \u0424\u0440\u0435\u043D\u0447-\u0434\u043E\u0433 Sib \u0433\u043E\u0432\u044F\u0436\u044C\u044F 180\u0433", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4011100977952", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0422\u0432\u0438\u043A\u0441 55\u0433", "price" : 54.00, "quantity" : 3.000, "sum" : 162.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 667.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:39:35]execute_script... [14:39:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184178", "tax_sys" : 0, "items" : [ { "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 3.000, "sum" : 375.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000039210050", "name": "\u0410\u041A\u0426\u0418\u042F \u0424\u0440\u0435\u043D\u0447-\u0434\u043E\u0433 Sib \u0433\u043E\u0432\u044F\u0436\u044C\u044F 180\u0433", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4011100977952", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0422\u0432\u0438\u043A\u0441 55\u0433", "price" : 54.00, "quantity" : 3.000, "sum" : 162.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 667.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:39:35]POST & json_proto [14:39:35]process_json_proto [14:39:35]json parsed OK: [14:39:35]protocol is kg_v1.0 [14:39:35]action value=close_receipt [14:39:35]process_action close_receipt [14:39:35]cmd_close_receipt [14:39:35]MH_GetDate [14:39:35]Write to MH i2c: F0 00 00 33 4D 6F [14:39:35]Write i2c OK [14:39:35]MH_I2C_Read... [14:39:35]Read from MH i2c: F0 [14:39:35]MH_I2C_Read... [14:39:35]Read from MH i2c: F0 09 00 [14:39:35]MH_I2C_Read... [14:39:35]Read from MH i2c: F0 09 00 33 4D 00 B3 8B E4 65 CE C4 D4 65 CA [14:39:35]GetLastDocTimeStamp 1709476155 [14:39:35]current date 1709476787 [14:39:35]FM_GetShiftState [14:39:35]SAM_PROTO_GetShiftState [14:39:35]wFMCommunicate request_size=4 [14:39:35]MH_SAM_APDU [14:39:35]CAPDU: 80 13 01 00 [14:39:35]Write to MH i2c: E2 08 00 34 4D 80 13 01 00 00 00 00 00 FE [14:39:35]Write i2c OK [14:39:35]MH_I2C_Read... [14:39:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:39:35]Read from MH i2c: E2 [14:39:35]MH_I2C_Read... [14:39:35]Read from MH i2c: E2 0E 00 [14:39:35]MH_I2C_Read... [14:39:35]Read from MH i2c: E2 0E 00 34 4D 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 34 [14:39:35]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [14:39:35]wFMCommunicate OK [14:39:35]SAM_PROTO_GetShiftState done [14:39:35]FM_GetShiftState done [14:39:35]opened in 1709425694 [14:39:35]opened+sec_in_day 1709512094 [14:39:35]quantity*price = 37500 [14:39:35]sum+1 = 37501 [14:39:35]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000039210050 АКЦИЯ Френч-дог Sib говяжья 180г 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4011100977952 Шок Батончик Твикс 55г 3.000 * 54.00 = 162.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 667.00 НСП 1% : 5.90 НДС 12% : 70.82 Наличными: 667.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 50 03.03.2024 14:39 Смена: 331 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 ФМ: 0000000000874796 ФД: 45213 ФПД: 275245884842710 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T143947&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45213&fm=275245884842710&tin=02508201610067®Number=0000000000090572&sum=66700 0 [14:39:36]StoreToDocumentArchive [14:39:36]shift 331 fd 45213 [14:39:36]save to /storage/0331/doc_00045213 [14:39:36]save last doc name /storage/0331/doc_00045213 to /storage/kkm_last_doc_name [14:39:36]save OK [14:39:36]Clear old archive folders... [14:39:36]ProcessDocumentItem done err = 0, tmpTLVsize=520 [14:39:36]tlvbuf is B6F87760 [14:39:36]SAM_PROTO_ClearQueue [14:39:36]wFMCommunicate request_size=4 [14:39:36]MH_SAM_APDU [14:39:36]CAPDU: 80 09 00 00 [14:39:36]Write to MH i2c: E2 08 00 41 4D 80 09 00 00 00 00 00 00 00 [14:39:36]Write i2c OK [14:39:36]MH_I2C_Read... [14:39:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:39:36]Read from MH i2c: E2 [14:39:36]MH_I2C_Read... [14:39:36]Read from MH i2c: E2 03 00 [14:39:36]MH_I2C_Read... [14:39:36]Read from MH i2c: E2 03 00 41 4D 00 90 00 02 [14:39:36]RAPDU: 90 00 [14:39:36]wFMCommunicate OK [14:39:36]SAM_PROTO_ClearQueue done [14:39:36]KKMCreateOFDPacket [14:39:36]OFDProtocolAddRootSTLVToBuf [14:39:36]FM_MakeSignedData [14:39:36]FM_MakeSignedData [14:39:36]SAM_PROTO_SignData [14:39:36]wFMCommunicate request_size=4 [14:39:36]MH_SAM_APDU [14:39:36]CAPDU: 80 0D 01 02 [14:39:36]Write to MH i2c: E2 08 00 42 4D 80 0D 01 02 00 00 00 00 08 [14:39:36]Write i2c OK [14:39:36]MH_I2C_Read... [14:39:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:39:36]Read from MH i2c: E2 [14:39:36]MH_I2C_Read... [14:39:36]Read from MH i2c: E2 03 00 [14:39:36]MH_I2C_Read... [14:39:36]Read from MH i2c: E2 03 00 42 4D 00 90 00 03 [14:39:36]RAPDU: 90 00 [14:39:36]wFMCommunicate OK [14:39:36]wFMCommunicate request_size=255 [14:39:36]MH_SAM_APDU [14:39:36]CAPDU: 80 0D 02 02 FA 03 00 08 02 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 7C 92 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 32 30 30 30 30 33 39 32 31 30 30 35 30 06 04 35 00 D0 90 D0 9A D0 A6 D0 98 D0 AF 20 D0 A4 D1 80 D0 B5 D0 BD D1 87 2D D0 B4 D0 BE D0 B3 20 53 69 62 20 D0 B3 D0 BE D0 B2 D1 8F D0 B6 D1 8C D1 8F 20 31 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 [14:39:37]Write to MH i2c: E2 02 01 43 4D 80 0D 02 02 FA 00 03 00 08 02 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 7C 92 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 32 30 30 30 30 33 39 32 31 30 30 35 30 06 04 35 00 D0 90 D0 9A D0 A6 D0 98 D0 AF 20 D0 A4 D1 80 D0 B5 D0 BD D1 87 2D D0 B4 D0 BE D0 B3 20 53 69 62 20 D0 B3 D0 BE D0 B2 D1 8F D0 B6 D1 8C D1 8F 20 31 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 00 00 55 [14:39:37]Write i2c OK [14:39:37]MH_I2C_Read... [14:39:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:39:37]Read from MH i2c: E2 [14:39:37]MH_I2C_Read... [14:39:37]Read from MH i2c: E2 03 00 [14:39:37]MH_I2C_Read... [14:39:37]Read from MH i2c: E2 03 00 43 4D 00 90 00 04 [14:39:37]RAPDU: 90 00 [14:39:37]wFMCommunicate OK [14:39:37]wFMCommunicate request_size=255 [14:39:37]MH_SAM_APDU [14:39:37]CAPDU: 80 0D 02 02 FA 6B 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 39 35 32 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 35 35 D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 18 15 00 00 00 00 13 04 06 00 48 3F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 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 AA 1B 00 00 00 00 07 04 06 00 8C 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 32 00 00 00 F4 03 04 00 B3 8B E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 [14:39:37]Write to MH i2c: E2 02 01 44 4D 80 0D 02 02 FA 00 6B 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 39 35 32 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 35 35 D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 18 15 00 00 00 00 13 04 06 00 48 3F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 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 AA 1B 00 00 00 00 07 04 06 00 8C 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 32 00 00 00 F4 03 04 00 B3 8B E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 3E [14:39:37]Write i2c OK [14:39:37]MH_I2C_Read... [14:39:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:39:37]Read from MH i2c: E2 [14:39:37]MH_I2C_Read... [14:39:37]Read from MH i2c: E2 03 00 [14:39:37]MH_I2C_Read... [14:39:37]Read from MH i2c: E2 03 00 44 4D 00 90 00 05 [14:39:37]RAPDU: 90 00 [14:39:37]wFMCommunicate OK [14:39:37]wFMCommunicate request_size=29 [14:39:37]MH_SAM_APDU [14:39:37]CAPDU: 80 0D 02 02 18 38 37 34 37 39 36 10 04 04 00 9D B0 00 00 35 04 06 00 FA 55 AD 31 22 D6 [14:39:37]Write to MH i2c: E2 20 00 45 4D 80 0D 02 02 18 00 38 37 34 37 39 36 10 04 04 00 9D B0 00 00 35 04 06 00 FA 55 AD 31 22 D6 00 00 4E [14:39:37]Write i2c OK [14:39:37]MH_I2C_Read... [14:39:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:39:37]Read from MH i2c: E2 [14:39:37]MH_I2C_Read... [14:39:37]Read from MH i2c: E2 03 00 [14:39:37]MH_I2C_Read... [14:39:37]Read from MH i2c: E2 03 00 45 4D 00 90 00 06 [14:39:37]RAPDU: 90 00 [14:39:37]wFMCommunicate OK [14:39:37]wFMCommunicate request_size=4 [14:39:37]MH_SAM_APDU [14:39:37]CAPDU: 80 0D 03 02 [14:39:37]Write to MH i2c: E2 08 00 46 4D 80 0D 03 02 00 00 00 00 0E [14:39:37]Write i2c OK [14:39:37]MH_I2C_Read... [14:39:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:39:37]Read from MH i2c: E2 [14:39:37]MH_I2C_Read... [14:39:37]Read from MH i2c: E2 0B 00 [14:39:37]MH_I2C_Read... [14:39:37]Read from MH i2c: E2 0B 00 46 4D 00 20 5E 5F B8 49 A3 EE 01 90 00 7F [14:39:37]RAPDU: 20 5E 5F B8 49 A3 EE 01 90 00 [14:39:37]wFMCommunicate OK [14:39:37]SAM_PROTO_SignData done [14:39:37]FM_MakeSignedData done [14:39:37]CreateOFDProtocolMessage [14:39:37]wFMCommunicate request_size=4 [14:39:37]MH_SAM_APDU [14:39:37]CAPDU: 80 11 00 00 [14:39:37]Write to MH i2c: E2 08 00 47 4D 80 11 00 00 00 00 00 00 0E [14:39:37]Write i2c OK [14:39:37]MH_I2C_Read... [14:39:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:39:37]Read from MH i2c: E2 [14:39:37]MH_I2C_Read... [14:39:37]Read from MH i2c: E2 17 00 [14:39:37]MH_I2C_Read... [14:39:37]Read from MH i2c: E2 17 00 47 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 6A [14:39:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [14:39:37]wFMCommunicate OK [14:39:37]CreateOFDProtocolMessage done [14:39:37]OFDSenderStorePacket 45213 [14:39:37]StoreOFDPacket docnum=45213 [14:39:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 1C 02 00 00 48 F1 14 02 42 29 5A 03 01 00 03 00 08 02 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 7C 92 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 32 30 30 30 30 33 39 32 31 30 30 35 30 06 04 35 00 D0 90 D0 9A D0 A6 D0 98 D0 AF 20 D0 A4 D1 80 D0 B5 D0 BD D1 87 2D D0 B4 D0 BE D0 B3 20 53 69 62 20 D0 B3 D0 BE D0 B2 D1 8F D0 B6 D1 8C D1 8F 20 31 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 39 35 32 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 35 35 D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 18 15 00 00 00 00 13 04 06 00 48 3F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 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 AA 1B 00 00 00 00 07 04 06 00 8C 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 32 00 00 00 F4 03 04 00 B3 8B E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 9D B0 00 00 35 04 06 00 FA 55 AD 31 22 D6 20 5E 5F B8 49 A3 EE 01 [14:39:37]CheckFolder [14:39:37]dirname=/storage/ofd_packets [14:39:37]CheckFolder done [14:39:37]ProducePacketName [14:39:37]name=ofd_packets/00045213 [14:39:37]NVStorageSaveData ofd_packets/00045213 [14:39:37]File name is /storage/ofd_packets/00045213 [14:39:37]Write 570 bytes [14:39:37]NVStorageSaveData done [14:39:37]OFDSenderStorePacket done [14:39:37]KKMCreateOFDPacket done [14:39:37]NVStorageSaveData kkm_last_timestamp [14:39:37]File name is /storage/kkm_last_timestamp [14:39:37]Write 4 bytes [14:39:37]NVStorageSaveData done [14:39:37]ExternCall_PrintAddStr [14:39:37]wPrintStart [14:39:37]Write to MH i2c: 01 00 00 48 4D 95 [14:39:37]Write i2c OK [14:39:37]MH_I2C_Read... [14:39:37]Read from MH i2c: 01 [14:39:37]MH_I2C_Read... [14:39:37]Read from MH i2c: 01 07 00 [14:39:37]MH_I2C_Read... [14:39:37]Read from MH i2c: 01 07 00 48 4D 00 00 00 00 00 FF 0F AA [14:39:37]RasterBufferAndPrint [14:39:37]line Счет N : (3)184178 [14:39:37]line ИНН: 02508201610067 [14:39:37]line Контрольно-Кассовый Чек [14:39:37]line ПРОДАЖА [14:39:37]line Товар: 2000036190018 [14:39:37]line Кофе Американо XL(GABB TRADE) [14:39:37]line 3.000 * 125.00 [14:39:37]line = 375.00 [14:39:37]line НДС 12% НСП 1% [14:39:37]line > о реализуемом товаре [14:39:37]line Товар: 2000039210050 [14:39:37]line АКЦИЯ Френч-дог Sib говяжья 180г [14:39:37]line 1.000 * 130.00 [14:39:37]line = 130.00 [14:39:37]line НДС 12% НСП 1% [14:39:37]line > о реализуемом товаре [14:39:37]line Товар: 4011100977952 [14:39:37]line Шок Батончик Твикс 55г [14:39:37]line 3.000 * 54.00 [14:39:37]line = 162.00 [14:39:37]line НДС 12% НСП 1% [14:39:37]line > о реализуемом товаре [14:39:37]line ИТОГО: 667.00 [14:39:37]line НСП 1% : 5.90 [14:39:37]line НДС 12% : 70.82 [14:39:37]line Наличными: 667.00 [14:39:37]line Безнал.: 0.00 [14:39:37]line Место: АЗС № 25 "Партнер Нефть" [14:39:37]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [14:39:37]line СНО: Общий режим [14:39:37]line Чек 50 03.03.2024 14:39 [14:39:37]line Смена: 331 ФФД: 1.0 [14:39:37]line ЗНМ: 0300000013 [14:39:37]line РНМ: 0000000000090572 [14:39:37]line Версия ККМ: 001 [14:39:37]line ФМ: 0000000000874796 [14:39:37]line ФД: 45213 [14:39:37]line ФПД: 275245884842710 [14:39:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T143947&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45213&fm=275245884842710&tin=02508201610067®Number=0000000000090572&sum=66700 [14:39:37]line 0 [14:39:37]OFD Sender: Processing packet 45213 [packets to send 17, broken 16] [14:39:37]ProducePacketName [14:39:37]name=ofd_packets/00045213 [14:39:37]OFD Sender: To server: pG, [14:39:37]CommunicateWithHost lk.salyk.kg:30040 [14:39:38]ConnectInit lk.salyk.kg [14:39:38]written 0, free lines is 4095 [14:39:38]Connected sock=10 [14: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 34 37 39 36 1C 02 00 00 48 F1 14 02 42 29 5A 03 01 00 03 00 08 02 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 7C 92 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 32 30 30 30 30 33 39 32 31 30 30 35 30 06 04 35 00 D0 90 D0 9A D0 A6 D0 98 D0 AF 20 D0 A4 D1 80 D0 B5 D0 BD D1 87 2D D0 B4 D0 BE D0 B3 20 53 69 62 20 D0 B3 D0 BE D0 B2 D1 8F D0 B6 D1 8C D1 8F 20 31 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 39 35 32 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 35 35 D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 18 15 00 00 00 00 13 04 06 00 48 3F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 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 AA 1B 00 00 00 00 07 04 06 00 8C 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 32 00 00 00 F4 03 04 00 B3 8B E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 9D B0 00 00 35 04 06 00 FA 55 AD 31 22 D6 20 5E 5F B8 49 A3 EE 01 [14:39:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 E8 4E 47 00 84 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 9D B0 00 00 F4 03 04 00 78 37 E4 65 B6 04 01 00 00 FE 82 0D C8 FD 4D AB DE [14:39:38]CommunicateWithHost err = 0 [14:39:38]CheckOFDResponse [14:39:38]1017 (14) - 77093643461234 [14:39:38]1041 (16) - 0000000000874796 [14:39:38]1040 (4) - 45213 [14:39:38]1012 (4) - 03.03.2024 08:40 [14:39:38]1206 (1) - 0 [14:39:38]OFD Sender: Remove packet 45213 [14:39:38]ProducePacketName [14:39:38]name=ofd_packets/00045213 [14:39:38]NVStorageDeleteData [14:39:38]Write to MH i2c: 01 00 00 7E 4D CB [14:39:38]Write i2c OK [14:39:38]MH_I2C_Read... [14:39:38]Read from MH i2c: 01 [14:39:38]MH_I2C_Read... [14:39:38]Read from MH i2c: 01 07 00 [14:39:38]MH_I2C_Read... [14:39:38]Read from MH i2c: 01 07 00 7E 4D 00 00 00 00 00 6A 0C 48 [14:39:38]RasterBufferAndPrint [14:39:38]line [14:39:38]line [14:39:38]line [14:39:38]line [14:39:38]line [14:39:38]written 0, free lines is 3187 [14:39:38]MH_Cut [14:39:38]Write to MH i2c: D1 01 00 85 4D 01 A4 [14:39:38]Write i2c OK [14:39:38]MH_I2C_Read... [14:39:38]Read from MH i2c: D1 [14:39:38]MH_I2C_Read... [14:39:38]Read from MH i2c: D1 01 00 [14:39:38]MH_I2C_Read... [14:39:38]Read from MH i2c: D1 01 00 85 4D 00 A3 [14:39:38]Write to MH i2c: 01 00 00 86 4D D3 [14:39:38]Write i2c OK [14:39:38]MH_I2C_Read... [14:39:39]OFD Sender: No OFD packet to send [14:39:39]*** Cut start [14:39:39]*** Purtial cut [14:39:39]*** Stage 1: CUTSNS_PIN = 1 [14:39:41]Read from MH i2c: 01 [14:39:41]MH_I2C_Read... [14:39:41]*** Stop cut motor [14:39:41]*** Cut end [14:39:41]Read from MH i2c: 01 07 00 [14:39:41]MH_I2C_Read... [14:39:41]Read from MH i2c: 01 07 00 86 4D 00 00 00 00 00 FF 0F E8 [14:39:41]process_action close_receipt done [14:39:41]requested_data is exist [14:39:41]produce_requested_data [14:39:41]requested_item fm.sn is exist - process it [14:39:41]wFMCommunicate request_size=4 [14:39:41]MH_SAM_APDU [14:39:41]CAPDU: 80 11 00 00 [14:39:41]Write to MH i2c: E2 08 00 87 4D 80 11 00 00 00 00 00 00 4E [14:39:41]Write i2c OK [14:39:41]MH_I2C_Read... [14:39:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:39:41]Read from MH i2c: E2 [14:39:41]MH_I2C_Read... [14:39:41]Read from MH i2c: E2 17 00 [14:39:41]MH_I2C_Read... [14:39:41]Read from MH i2c: E2 17 00 87 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 AA [14:39:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [14:39:41]wFMCommunicate OK [14:39:41]requested_item fd.num is exist - process it [14:39:41]SAM_PROTO_GetFieldsCounters [14:39:41]wFMCommunicate request_size=4 [14:39:41]MH_SAM_APDU [14:39:41]CAPDU: 80 13 00 00 [14:39:41]Write to MH i2c: E2 08 00 88 4D 80 13 00 00 00 00 00 00 51 [14:39:41]Write i2c OK [14:39:41]MH_I2C_Read... [14:39:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:39:41]Read from MH i2c: E2 [14:39:41]MH_I2C_Read... [14:39:41]Read from MH i2c: E2 62 00 [14:39:41]MH_I2C_Read... [14:39:41]Read from MH i2c: E2 62 00 88 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 9D B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 A8 [14:39:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 9D B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:39:41]wFMCommunicate OK [14:39:41]SAM_PROTO_GetFieldsCounters done [14:39:41]requested_item shift.num is exist - process it [14:39:41]requested_item shift.opened is exist - process it [14:39:41]req_shift_opened [14:39:41]FM_GetShiftState [14:39:41]SAM_PROTO_GetShiftState [14:39:41]wFMCommunicate request_size=4 [14:39:41]MH_SAM_APDU [14:39:41]CAPDU: 80 13 01 00 [14:39:41]Write to MH i2c: E2 08 00 89 4D 80 13 01 00 00 00 00 00 53 [14:39:41]Write i2c OK [14:39:41]MH_I2C_Read... [14:39:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:39:41]Read from MH i2c: E2 [14:39:41]MH_I2C_Read... [14:39:41]Read from MH i2c: E2 0E 00 [14:39:41]MH_I2C_Read... [14:39:41]Read from MH i2c: E2 0E 00 89 4D 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 89 [14:39:41]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [14:39:41]wFMCommunicate OK [14:39:41]SAM_PROTO_GetShiftState done [14:39:41]FM_GetShiftState done [14:39:41]req_shift_opened done [14:39:41]requested_item shift.open_date is exist - process it [14:39:41]req_shift_open_date [14:39:41]req_shift_open_date done [14:39:41]produce_requested_data done [14:39:41]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45213,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [14:39:41]process_action_free close_receipt [14:39:41]json_value_free [14:39:41]json_value_free done [14:39:41]process_json_proto returns [14:39:41]Send response to host [14:39:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45213,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [14:39:41]free response buf [14:39:41]execute_script done [14:39:41]execute_script returns [14:39:41]free content buf [14:39:41]Sock 7.Close socket [14:39:41]Sock 7.Thread stoped [14:39:44]OFD Sender: No OFD packet to send [14:39:49]OFD Sender: No OFD packet to send [14:39:54]OFD Sender: No OFD packet to send [14:39:59]OFD Sender: No OFD packet to send [14:40:04]OFD Sender: No OFD packet to send [14:40:09]OFD Sender: No OFD packet to send [14:40:09]accept exits with 9 [14:40:09]New connection [14:40:09]New thread 3067157860 created [14:40:09]Thread 3067014500 joined [14:40:09]Waiting for new connection... [14:40:09] Sock 9.Parse request [14:40:09]Sock 9.Check first char [14:40:09]Sock 9.First char is OK [14:40:09]request: POST /json_proto HTTP/1.0 [14:40:09]Method: POST [14:40:09]URL: /json_proto [14:40:09]Method is POST - this is cgi request [14:40:09]url: /json_proto [14:40:09]query_string will be loaded in cgi processing [14:40:09]execute_cgi json_proto POST (null) [14:40:09]execute_cgi path=json_proto method=POST [14:40:09]POST find Content-Length [14:40:09]Host: 172.17.48.198:8080 [14:40:09]Content-Length: 624 [14:40:09]Content-Type: application/json [14:40:09] [14:40:09]POST finish read [14:40:09]Found Content-Length = 624 [14:40:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184179", "tax_sys" : 0, "items" : [ { "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:40:09]execute_script... [14:40:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184179", "tax_sys" : 0, "items" : [ { "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:40:09]POST & json_proto [14:40:09]process_json_proto [14:40:09]json parsed OK: [14:40:09]protocol is kg_v1.0 [14:40:09]action value=close_receipt [14:40:09]process_action close_receipt [14:40:09]cmd_close_receipt [14:40:09]MH_GetDate [14:40:09]Write to MH i2c: F0 00 00 8A 4D C6 [14:40:09]Write i2c OK [14:40:09]MH_I2C_Read... [14:40:09]Read from MH i2c: F0 [14:40:09]MH_I2C_Read... [14:40:09]Read from MH i2c: F0 09 00 [14:40:09]MH_I2C_Read... [14:40:09]Read from MH i2c: F0 09 00 8A 4D 00 D4 8B E4 65 CE C4 D4 65 42 [14:40:09]GetLastDocTimeStamp 1709476787 [14:40:09]current date 1709476820 [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 8B 4D 80 13 01 00 00 00 00 00 55 [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 8B 4D 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 8B [14:40:09]RAPDU: 09 00 01 1E C4 E3 65 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]opened in 1709425694 [14:40:09]opened+sec_in_day 1709512094 [14:40:09]quantity*price = 14400 [14:40:09]sum+1 = 14401 [14:40:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 51 03.03.2024 14:40 Смена: 331 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 ФМ: 0000000000874796 ФД: 45214 ФПД: 275114776502376 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T144020&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45214&fm=275114776502376&tin=02508201610067®Number=0000000000090572&sum=14400 0 [14:40:10]StoreToDocumentArchive [14:40:10]shift 331 fd 45214 [14:40:10]save to /storage/0331/doc_00045214 [14:40:10]save last doc name /storage/0331/doc_00045214 to /storage/kkm_last_doc_name [14:40:10]save OK [14:40:10]Clear old archive folders... [14:40:10]ProcessDocumentItem done err = 0, tmpTLVsize=276 [14:40:10]tlvbuf is B6F8AB70 [14:40:10]SAM_PROTO_ClearQueue [14:40:10]wFMCommunicate request_size=4 [14:40:10]MH_SAM_APDU [14:40:10]CAPDU: 80 09 00 00 [14:40:10]Write to MH i2c: E2 08 00 98 4D 80 09 00 00 00 00 00 00 57 [14:40:10]Write i2c OK [14:40:10]MH_I2C_Read... [14:40:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:40:10]Read from MH i2c: E2 [14:40:10]MH_I2C_Read... [14:40:10]Read from MH i2c: E2 03 00 [14:40:10]MH_I2C_Read... [14:40:10]Read from MH i2c: E2 03 00 98 4D 00 90 00 59 [14:40:10]RAPDU: 90 00 [14:40:10]wFMCommunicate OK [14:40:10]SAM_PROTO_ClearQueue done [14:40:10]KKMCreateOFDPacket [14:40:10]OFDProtocolAddRootSTLVToBuf [14:40:10]FM_MakeSignedData [14:40:10]FM_MakeSignedData [14:40:10]SAM_PROTO_SignData [14:40:10]wFMCommunicate request_size=4 [14:40:10]MH_SAM_APDU [14:40:10]CAPDU: 80 0D 01 02 [14:40:10]Write to MH i2c: E2 08 00 99 4D 80 0D 01 02 00 00 00 00 5F [14:40:10]Write i2c OK [14:40:10]MH_I2C_Read... [14:40:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:40:10]Read from MH i2c: E2 [14:40:10]MH_I2C_Read... [14:40:10]Read from MH i2c: E2 03 00 [14:40:10]MH_I2C_Read... [14:40:10]Read from MH i2c: E2 03 00 99 4D 00 90 00 5A [14:40:10]RAPDU: 90 00 [14:40:10]wFMCommunicate OK [14:40:10]wFMCommunicate request_size=255 [14:40:10]MH_SAM_APDU [14:40:10]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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 D4 8B E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 [14:40:10]Write to MH i2c: E2 02 01 9A 4D 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 D4 8B E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 00 00 8C [14:40:10]Write i2c OK [14:40:10]MH_I2C_Read... [14:40:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:40:10]Read from MH i2c: E2 [14:40:10]MH_I2C_Read... [14:40:10]Read from MH i2c: E2 03 00 [14:40:10]MH_I2C_Read... [14:40:10]Read from MH i2c: E2 03 00 9A 4D 00 90 00 5B [14:40:10]RAPDU: 90 00 [14:40:10]wFMCommunicate OK [14:40:10]wFMCommunicate request_size=35 [14:40:10]MH_SAM_APDU [14:40:10]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 9E B0 00 00 35 04 06 00 FA 37 26 86 A0 68 [14:40:10]Write to MH i2c: E2 26 00 9B 4D 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 9E B0 00 00 35 04 06 00 FA 37 26 86 A0 68 00 00 91 [14:40:10]Write i2c OK [14:40:10]MH_I2C_Read... [14:40:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:40:10]Read from MH i2c: E2 [14:40:10]MH_I2C_Read... [14:40:10]Read from MH i2c: E2 03 00 [14:40:10]MH_I2C_Read... [14:40:10]Read from MH i2c: E2 03 00 9B 4D 00 90 00 5C [14:40:10]RAPDU: 90 00 [14:40:10]wFMCommunicate OK [14:40:10]wFMCommunicate request_size=4 [14:40:10]MH_SAM_APDU [14:40:10]CAPDU: 80 0D 03 02 [14:40:10]Write to MH i2c: E2 08 00 9C 4D 80 0D 03 02 00 00 00 00 64 [14:40:10]Write i2c OK [14:40:10]MH_I2C_Read... [14:40:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:40:10]Read from MH i2c: E2 [14:40:10]MH_I2C_Read... [14:40:10]Read from MH i2c: E2 0B 00 [14:40:10]MH_I2C_Read... [14:40:10]Read from MH i2c: E2 0B 00 9C 4D 00 3E 94 4B A2 7E 45 2A 2E 90 00 3F [14:40:10]RAPDU: 3E 94 4B A2 7E 45 2A 2E 90 00 [14:40:10]wFMCommunicate OK [14:40:10]SAM_PROTO_SignData done [14:40:10]FM_MakeSignedData done [14:40:10]CreateOFDProtocolMessage [14:40:10]wFMCommunicate request_size=4 [14:40:10]MH_SAM_APDU [14:40:10]CAPDU: 80 11 00 00 [14:40:10]Write to MH i2c: E2 08 00 9D 4D 80 11 00 00 00 00 00 00 64 [14:40:10]Write i2c OK [14:40:10]MH_I2C_Read... [14:40:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:40:10]Read from MH i2c: E2 [14:40:10]MH_I2C_Read... [14:40:10]Read from MH i2c: E2 17 00 [14:40:10]MH_I2C_Read... [14:40:10]Read from MH i2c: E2 17 00 9D 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 C0 [14:40:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [14:40:10]wFMCommunicate OK [14:40:10]CreateOFDProtocolMessage done [14:40:10]OFDSenderStorePacket 45214 [14:40:10]StoreOFDPacket docnum=45214 [14:40:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 28 01 00 00 9B 73 20 01 8D 8A 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 D4 8B E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 9E B0 00 00 35 04 06 00 FA 37 26 86 A0 68 3E 94 4B A2 7E 45 2A 2E [14:40:10]CheckFolder [14:40:10]dirname=/storage/ofd_packets [14:40:10]CheckFolder done [14:40:10]ProducePacketName [14:40:10]name=ofd_packets/00045214 [14:40:10]NVStorageSaveData ofd_packets/00045214 [14:40:10]File name is /storage/ofd_packets/00045214 [14:40:10]Write 326 bytes [14:40:10]NVStorageSaveData done [14:40:10]OFDSenderStorePacket done [14:40:10]KKMCreateOFDPacket done [14:40:10]NVStorageSaveData kkm_last_timestamp [14:40:10]File name is /storage/kkm_last_timestamp [14:40:10]Write 4 bytes [14:40:10]NVStorageSaveData done [14:40:10]ExternCall_PrintAddStr [14:40:10]wPrintStart [14:40:10]Write to MH i2c: 01 00 00 9E 4D EB [14:40:10]Write i2c OK [14:40:10]MH_I2C_Read... [14:40:10]Read from MH i2c: 01 [14:40:10]MH_I2C_Read... [14:40:10]Read from MH i2c: 01 07 00 [14:40:10]MH_I2C_Read... [14:40:10]Read from MH i2c: 01 07 00 9E 4D 00 00 00 00 00 FF 0F 00 [14:40:10]RasterBufferAndPrint [14:40:10]line Счет N : (3)184179 [14:40:10]line ИНН: 02508201610067 [14:40:10]line Контрольно-Кассовый Чек [14:40:10]line ПРОДАЖА [14:40:10]line Товар: 48742245 [14:40:10]line Сигареты Parliament Silver Blue [14:40:10]line 1.000 * 144.00 [14:40:10]line = 144.00 [14:40:10]line НДС 12% НСП 1% [14:40:10]line > о реализуемом товаре [14:40:10]line ИТОГО: 144.00 [14:40:10]line НСП 1% : 1.27 [14:40:10]line НДС 12% : 15.29 [14:40:10]line Наличными: 144.00 [14:40:10]line Безнал.: 0.00 [14:40:10]line Место: АЗС № 25 "Партнер Нефть" [14:40:10]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [14:40:10]line СНО: Общий режим [14:40:10]line Чек 51 03.03.2024 14:40 [14:40:10]line Смена: 331 ФФД: 1.0 [14:40:10]line ЗНМ: 0300000013 [14:40:10]line РНМ: 0000000000090572 [14:40:10]line Версия ККМ: 001 [14:40:10]line ФМ: 0000000000874796 [14:40:10]line ФД: 45214 [14:40:10]line ФПД: 275114776502376 [14:40:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T144020&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45214&fm=275114776502376&tin=02508201610067®Number=0000000000090572&sum=14400 [14:40:11]line 0 [14:40:11]OFD Sender: Processing packet 45214 [packets to send 17, broken 16] [14:40:11]ProducePacketName [14:40:11]name=ofd_packets/00045214 [14:40:11]OFD Sender: To server: pG, [14:40:11]CommunicateWithHost lk.salyk.kg:30040 [14:40:11]ConnectInit lk.salyk.kg [14:40:11]written 0, free lines is 4095 [14:40:11]Connected sock=10 [14:40:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 28 01 00 00 9B 73 20 01 8D 8A 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 D4 8B E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 9E B0 00 00 35 04 06 00 FA 37 26 86 A0 68 3E 94 4B A2 7E 45 2A 2E [14:40:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 F3 6A 47 00 CE 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 9E B0 00 00 F4 03 04 00 99 37 E4 65 B6 04 01 00 00 F0 50 1D DF AC 26 E5 A3 [14:40:11]CommunicateWithHost err = 0 [14:40:11]CheckOFDResponse [14:40:11]1017 (14) - 77093643461234 [14:40:11]1041 (16) - 0000000000874796 [14:40:11]1040 (4) - 45214 [14:40:11]1012 (4) - 03.03.2024 08:40 [14:40:11]1206 (1) - 0 [14:40:11]OFD Sender: Remove packet 45214 [14:40:11]ProducePacketName [14:40:11]name=ofd_packets/00045214 [14:40:11]NVStorageDeleteData [14:40:11]Write to MH i2c: 01 00 00 C7 4D 14 [14:40:11]Write i2c OK [14:40:11]MH_I2C_Read... [14:40:11]Read from MH i2c: 01 [14:40:11]MH_I2C_Read... [14:40:11]Read from MH i2c: 01 07 00 [14:40:11]MH_I2C_Read... [14:40:11]Read from MH i2c: 01 07 00 C7 4D 00 00 00 00 00 EA 0C 11 [14:40:11]RasterBufferAndPrint [14:40:11]line [14:40:11]line [14:40:11]line [14:40:11]line [14:40:11]line [14:40:11]written 0, free lines is 3312 [14:40:11]MH_Cut [14:40:11]Write to MH i2c: D1 01 00 CE 4D 01 ED [14:40:11]Write i2c OK [14:40:11]MH_I2C_Read... [14:40:11]Read from MH i2c: D1 [14:40:11]MH_I2C_Read... [14:40:11]Read from MH i2c: D1 01 00 [14:40:11]MH_I2C_Read... [14:40:11]Read from MH i2c: D1 01 00 CE 4D 00 EC [14:40:11]Write to MH i2c: 01 00 00 CF 4D 1C [14:40:11]Write i2c OK [14:40:11]MH_I2C_Read... [14:40:11]OFD Sender: No OFD packet to send [14:40:12]*** Cut start [14:40:12]*** Purtial cut [14:40:12]*** Stage 1: CUTSNS_PIN = 1 [14:40:14]Read from MH i2c: 01 [14:40:14]MH_I2C_Read... [14:40:14]*** Stop cut motor [14:40:14]*** Cut end [14:40:14]Read from MH i2c: 01 07 00 [14:40:14]MH_I2C_Read... [14:40:14]Read from MH i2c: 01 07 00 CF 4D 00 00 00 00 00 FF 0F 31 [14:40:14]process_action close_receipt done [14:40:14]requested_data is exist [14:40:14]produce_requested_data [14:40:14]requested_item fm.sn is exist - process it [14:40:14]wFMCommunicate request_size=4 [14:40:14]MH_SAM_APDU [14:40:14]CAPDU: 80 11 00 00 [14:40:14]Write to MH i2c: E2 08 00 D0 4D 80 11 00 00 00 00 00 00 97 [14:40:14]Write i2c OK [14:40:14]MH_I2C_Read... [14:40:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:40:14]Read from MH i2c: E2 [14:40:14]MH_I2C_Read... [14:40:14]Read from MH i2c: E2 17 00 [14:40:14]MH_I2C_Read... [14:40:14]Read from MH i2c: E2 17 00 D0 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 F3 [14:40:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [14:40:14]wFMCommunicate OK [14:40:14]requested_item fd.num is exist - process it [14:40:14]SAM_PROTO_GetFieldsCounters [14:40:14]wFMCommunicate request_size=4 [14:40:14]MH_SAM_APDU [14:40:14]CAPDU: 80 13 00 00 [14:40:14]Write to MH i2c: E2 08 00 D1 4D 80 13 00 00 00 00 00 00 9A [14:40:14]Write i2c OK [14:40:14]MH_I2C_Read... [14:40:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:40:14]Read from MH i2c: E2 [14:40:14]MH_I2C_Read... [14:40:14]Read from MH i2c: E2 62 00 [14:40:14]MH_I2C_Read... [14:40:14]Read from MH i2c: E2 62 00 D1 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 9E B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 F5 [14:40:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 9E B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:40:14]wFMCommunicate OK [14:40:14]SAM_PROTO_GetFieldsCounters done [14:40:14]requested_item shift.num is exist - process it [14:40:14]requested_item shift.opened is exist - process it [14:40:14]req_shift_opened [14:40:14]FM_GetShiftState [14:40:14]SAM_PROTO_GetShiftState [14:40:14]wFMCommunicate request_size=4 [14:40:14]MH_SAM_APDU [14:40:14]CAPDU: 80 13 01 00 [14:40:14]Write to MH i2c: E2 08 00 D2 4D 80 13 01 00 00 00 00 00 9C [14:40:14]Write i2c OK [14:40:14]MH_I2C_Read... [14:40:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:40:14]Read from MH i2c: E2 [14:40:14]MH_I2C_Read... [14:40:14]Read from MH i2c: E2 0E 00 [14:40:14]MH_I2C_Read... [14:40:14]Read from MH i2c: E2 0E 00 D2 4D 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 D2 [14:40:14]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [14:40:14]wFMCommunicate OK [14:40:14]SAM_PROTO_GetShiftState done [14:40:14]FM_GetShiftState done [14:40:14]req_shift_opened done [14:40:14]requested_item shift.open_date is exist - process it [14:40:14]req_shift_open_date [14:40:14]req_shift_open_date done [14:40:14]produce_requested_data done [14:40:14]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45214,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [14:40:14]process_action_free close_receipt [14:40:14]json_value_free [14:40:14]json_value_free done [14:40:14]process_json_proto returns [14:40:14]Send response to host [14:40:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45214,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [14:40:14]free response buf [14:40:14]execute_script done [14:40:14]execute_script returns [14:40:14]free content buf [14:40:14]Sock 9.Close socket [14:40:14]Sock 9.Thread stoped [14:40:16]OFD Sender: No OFD packet to send [14:40:21]OFD Sender: No OFD packet to send [14:40:26]OFD Sender: No OFD packet to send [14:40:27]accept exits with 7 [14:40:27]New connection [14:40:27]New thread 3067014500 created [14:40:27]Thread 3067157860 joined [14:40:27]Waiting for new connection... [14:40:27] Sock 7.Parse request [14:40:27]Sock 7.Check first char [14:40:27]Sock 7.First char is OK [14:40:27]request: POST /json_proto HTTP/1.0 [14:40:27]Method: POST [14:40:27]URL: /json_proto [14:40:27]Method is POST - this is cgi request [14:40:27]url: /json_proto [14:40:27]query_string will be loaded in cgi processing [14:40:27]execute_cgi json_proto POST (null) [14:40:27]execute_cgi path=json_proto method=POST [14:40:27]POST find Content-Length [14:40:27]Host: 172.17.48.198:8080 [14:40:27]Content-Length: 620 [14:40:27]Content-Type: application/json [14:40:27] [14:40:27]POST finish read [14:40:27]Found Content-Length = 620 [14:40:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184180", "tax_sys" : 0, "items" : [ { "code": "4600452021149", "name": "\u0428\u043E\u043A.Oz.\u043C\u043E\u043B.MilkExtraHazeln.90\u0433", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:40:27]execute_script... [14:40:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184180", "tax_sys" : 0, "items" : [ { "code": "4600452021149", "name": "\u0428\u043E\u043A.Oz.\u043C\u043E\u043B.MilkExtraHazeln.90\u0433", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:40:27]POST & json_proto [14:40:27]process_json_proto [14:40:27]json parsed OK: [14:40:27]protocol is kg_v1.0 [14:40:27]action value=close_receipt [14:40:27]process_action close_receipt [14:40:27]cmd_close_receipt [14:40:27]MH_GetDate [14:40:27]Write to MH i2c: F0 00 00 D3 4D 0F [14:40:27]Write i2c OK [14:40:27]MH_I2C_Read... [14:40:27]Read from MH i2c: F0 [14:40:27]MH_I2C_Read... [14:40:27]Read from MH i2c: F0 09 00 [14:40:27]MH_I2C_Read... [14:40:27]Read from MH i2c: F0 09 00 D3 4D 00 E6 8B E4 65 CE C4 D4 65 9D [14:40:27]GetLastDocTimeStamp 1709476820 [14:40:27]current date 1709476838 [14:40:27]FM_GetShiftState [14:40:27]SAM_PROTO_GetShiftState [14:40:27]wFMCommunicate request_size=4 [14:40:27]MH_SAM_APDU [14:40:27]CAPDU: 80 13 01 00 [14:40:27]Write to MH i2c: E2 08 00 D4 4D 80 13 01 00 00 00 00 00 9E [14:40:27]Write i2c OK [14:40:27]MH_I2C_Read... [14:40:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:40:27]Read from MH i2c: E2 [14:40:27]MH_I2C_Read... [14:40:27]Read from MH i2c: E2 0E 00 [14:40:27]MH_I2C_Read... [14:40:27]Read from MH i2c: E2 0E 00 D4 4D 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 D4 [14:40:27]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [14:40:27]wFMCommunicate OK [14:40:27]SAM_PROTO_GetShiftState done [14:40:27]FM_GetShiftState done [14:40:27]opened in 1709425694 [14:40:27]opened+sec_in_day 1709512094 [14:40:27]quantity*price = 9500 [14:40:27]sum+1 = 9501 [14:40:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 52 03.03.2024 14:40 Смена: 331 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 ФМ: 0000000000874796 ФД: 45215 ФПД: 87912180071779 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T144039&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45215&fm=87912180071779&tin=02508201610067®Number=0000000000090572&sum=9500 0 [14:40:28]StoreToDocumentArchive [14:40:28]shift 331 fd 45215 [14:40:28]save to /storage/0331/doc_00045215 [14:40:28]save last doc name /storage/0331/doc_00045215 to /storage/kkm_last_doc_name [14:40:28]save OK [14:40:28]Clear old archive folders... [14:40:28]ProcessDocumentItem done err = 0, tmpTLVsize=279 [14:40:28]tlvbuf is 01B6D980 [14:40:28]SAM_PROTO_ClearQueue [14:40:28]wFMCommunicate request_size=4 [14:40:28]MH_SAM_APDU [14:40:28]CAPDU: 80 09 00 00 [14:40:28]Write to MH i2c: E2 08 00 E1 4D 80 09 00 00 00 00 00 00 A0 [14:40:28]Write i2c OK [14:40:28]MH_I2C_Read... [14:40:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:40:28]Read from MH i2c: E2 [14:40:28]MH_I2C_Read... [14:40:28]Read from MH i2c: E2 03 00 [14:40:28]MH_I2C_Read... [14:40:28]Read from MH i2c: E2 03 00 E1 4D 00 90 00 A2 [14:40:28]RAPDU: 90 00 [14:40:28]wFMCommunicate OK [14:40:28]SAM_PROTO_ClearQueue done [14:40:28]KKMCreateOFDPacket [14:40:28]OFDProtocolAddRootSTLVToBuf [14:40:28]FM_MakeSignedData [14:40:28]FM_MakeSignedData [14:40:28]SAM_PROTO_SignData [14:40:28]wFMCommunicate request_size=4 [14:40:28]MH_SAM_APDU [14:40:28]CAPDU: 80 0D 01 02 [14:40:28]Write to MH i2c: E2 08 00 E2 4D 80 0D 01 02 00 00 00 00 A8 [14:40:28]Write i2c OK [14:40:28]MH_I2C_Read... [14:40:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:40:28]Read from MH i2c: E2 [14:40:28]MH_I2C_Read... [14:40:28]Read from MH i2c: E2 03 00 [14:40:28]MH_I2C_Read... [14:40:28]Read from MH i2c: E2 03 00 E2 4D 00 90 00 A3 [14:40:28]RAPDU: 90 00 [14:40:28]wFMCommunicate OK [14:40:28]wFMCommunicate request_size=255 [14:40:28]MH_SAM_APDU [14:40:28]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 30 30 34 35 32 30 32 31 31 34 39 06 04 25 00 D0 A8 D0 BE D0 BA 2E 4F 7A 2E D0 BC D0 BE D0 BB 2E 4D 69 6C 6B 45 78 74 72 61 48 61 7A 65 6C 6E 2E 39 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 E7 8B E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 [14:40:28]Write to MH i2c: E2 02 01 E3 4D 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 30 30 34 35 32 30 32 31 31 34 39 06 04 25 00 D0 A8 D0 BE D0 BA 2E 4F 7A 2E D0 BC D0 BE D0 BB 2E 4D 69 6C 6B 45 78 74 72 61 48 61 7A 65 6C 6E 2E 39 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 E7 8B E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 00 00 ED [14:40:28]Write i2c OK [14:40:28]MH_I2C_Read... [14:40:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:40:28]Read from MH i2c: E2 [14:40:28]MH_I2C_Read... [14:40:28]Read from MH i2c: E2 03 00 [14:40:28]MH_I2C_Read... [14:40:28]Read from MH i2c: E2 03 00 E3 4D 00 90 00 A4 [14:40:28]RAPDU: 90 00 [14:40:28]wFMCommunicate OK [14:40:28]wFMCommunicate request_size=38 [14:40:28]MH_SAM_APDU [14:40:28]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 9F B0 00 00 35 04 06 00 4F F4 A6 43 BD 63 [14:40:28]Write to MH i2c: E2 29 00 E4 4D 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 9F B0 00 00 35 04 06 00 4F F4 A6 43 BD 63 00 00 D8 [14:40:28]Write i2c OK [14:40:28]MH_I2C_Read... [14:40:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:40:28]Read from MH i2c: E2 [14:40:28]MH_I2C_Read... [14:40:28]Read from MH i2c: E2 03 00 [14:40:28]MH_I2C_Read... [14:40:28]Read from MH i2c: E2 03 00 E4 4D 00 90 00 A5 [14:40:28]RAPDU: 90 00 [14:40:28]wFMCommunicate OK [14:40:28]wFMCommunicate request_size=4 [14:40:28]MH_SAM_APDU [14:40:28]CAPDU: 80 0D 03 02 [14:40:28]Write to MH i2c: E2 08 00 E5 4D 80 0D 03 02 00 00 00 00 AD [14:40:28]Write i2c OK [14:40:28]MH_I2C_Read... [14:40:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:40:28]Read from MH i2c: E2 [14:40:28]MH_I2C_Read... [14:40:28]Read from MH i2c: E2 0B 00 [14:40:28]MH_I2C_Read... [14:40:28]Read from MH i2c: E2 0B 00 E5 4D 00 29 A9 A9 4B D9 98 04 3E 90 00 27 [14:40:28]RAPDU: 29 A9 A9 4B D9 98 04 3E 90 00 [14:40:28]wFMCommunicate OK [14:40:28]SAM_PROTO_SignData done [14:40:28]FM_MakeSignedData done [14:40:28]CreateOFDProtocolMessage [14:40:28]wFMCommunicate request_size=4 [14:40:28]MH_SAM_APDU [14:40:28]CAPDU: 80 11 00 00 [14:40:28]Write to MH i2c: E2 08 00 E6 4D 80 11 00 00 00 00 00 00 AD [14:40:28]Write i2c OK [14:40:28]MH_I2C_Read... [14:40:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:40:28]Read from MH i2c: E2 [14:40:28]MH_I2C_Read... [14:40:28]Read from MH i2c: E2 17 00 [14:40:28]MH_I2C_Read... [14:40:28]Read from MH i2c: E2 17 00 E6 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 09 [14:40:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [14:40:28]wFMCommunicate OK [14:40:28]CreateOFDProtocolMessage done [14:40:28]OFDSenderStorePacket 45215 [14:40:28]StoreOFDPacket docnum=45215 [14:40:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 2B 01 00 00 2C 37 23 01 25 B6 5A 03 01 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 30 30 34 35 32 30 32 31 31 34 39 06 04 25 00 D0 A8 D0 BE D0 BA 2E 4F 7A 2E D0 BC D0 BE D0 BB 2E 4D 69 6C 6B 45 78 74 72 61 48 61 7A 65 6C 6E 2E 39 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 E7 8B E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 9F B0 00 00 35 04 06 00 4F F4 A6 43 BD 63 29 A9 A9 4B D9 98 04 3E [14:40:28]CheckFolder [14:40:28]dirname=/storage/ofd_packets [14:40:28]CheckFolder done [14:40:28]ProducePacketName [14:40:28]name=ofd_packets/00045215 [14:40:28]NVStorageSaveData ofd_packets/00045215 [14:40:28]File name is /storage/ofd_packets/00045215 [14:40:28]Write 329 bytes [14:40:28]NVStorageSaveData done [14:40:28]OFDSenderStorePacket done [14:40:28]KKMCreateOFDPacket done [14:40:28]NVStorageSaveData kkm_last_timestamp [14:40:28]File name is /storage/kkm_last_timestamp [14:40:28]Write 4 bytes [14:40:28]NVStorageSaveData done [14:40:28]ExternCall_PrintAddStr [14:40:28]wPrintStart [14:40:28]Write to MH i2c: 01 00 00 E7 4D 34 [14:40:28]Write i2c OK [14:40:28]MH_I2C_Read... [14:40:28]Read from MH i2c: 01 [14:40:28]MH_I2C_Read... [14:40:28]Read from MH i2c: 01 07 00 [14:40:28]MH_I2C_Read... [14:40:28]Read from MH i2c: 01 07 00 E7 4D 00 00 00 00 00 FF 0F 49 [14:40:28]RasterBufferAndPrint [14:40:28]line Счет N : (3)184180 [14:40:28]line ИНН: 02508201610067 [14:40:28]line Контрольно-Кассовый Чек [14:40:28]line ПРОДАЖА [14:40:28]line Товар: 4600452021149 [14:40:28]line Шок.Oz.мол.MilkExtraHazeln.90г [14:40:28]line 1.000 * 95.00 [14:40:28]line = 95.00 [14:40:28]line НДС 12% НСП 1% [14:40:28]line > о реализуемом товаре [14:40:28]line ИТОГО: 95.00 [14:40:28]line НСП 1% : 0.84 [14:40:28]line НДС 12% : 10.09 [14:40:28]line Наличными: 95.00 [14:40:28]line Безнал.: 0.00 [14:40:28]line Место: АЗС № 25 "Партнер Нефть" [14:40:28]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [14:40:28]line СНО: Общий режим [14:40:28]line Чек 52 03.03.2024 14:40 [14:40:28]line Смена: 331 ФФД: 1.0 [14:40:28]line ЗНМ: 0300000013 [14:40:28]line РНМ: 0000000000090572 [14:40:28]line Версия ККМ: 001 [14:40:28]line ФМ: 0000000000874796 [14:40:28]line ФД: 45215 [14:40:28]line ФПД: 87912180071779 [14:40:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T144039&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45215&fm=87912180071779&tin=02508201610067®Number=0000000000090572&sum=9500 [14:40:29]line 0 [14:40:29]OFD Sender: Processing packet 45215 [packets to send 17, broken 16] [14:40:29]ProducePacketName [14:40:29]name=ofd_packets/00045215 [14:40:29]OFD Sender: To server: pG, [14:40:29]CommunicateWithHost lk.salyk.kg:30040 [14:40:29]ConnectInit lk.salyk.kg [14:40:29]written 0, free lines is 4095 [14:40:29]Connected sock=10 [14:40:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 2B 01 00 00 2C 37 23 01 25 B6 5A 03 01 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 30 30 34 35 32 30 32 31 31 34 39 06 04 25 00 D0 A8 D0 BE D0 BA 2E 4F 7A 2E D0 BC D0 BE D0 BB 2E 4D 69 6C 6B 45 78 74 72 61 48 61 7A 65 6C 6E 2E 39 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 E7 8B E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 9F B0 00 00 35 04 06 00 4F F4 A6 43 BD 63 29 A9 A9 4B D9 98 04 3E [14:40:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 56 55 47 00 67 0A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 9F B0 00 00 F4 03 04 00 AB 37 E4 65 B6 04 01 00 00 C4 A2 61 79 B1 89 BB 5E [14:40:29]CommunicateWithHost err = 0 [14:40:29]CheckOFDResponse [14:40:29]1017 (14) - 77093643461234 [14:40:29]1041 (16) - 0000000000874796 [14:40:29]1040 (4) - 45215 [14:40:29]1012 (4) - 03.03.2024 08:41 [14:40:29]1206 (1) - 0 [14:40:29]OFD Sender: Remove packet 45215 [14:40:29]ProducePacketName [14:40:29]name=ofd_packets/00045215 [14:40:29]NVStorageDeleteData [14:40:29]Write to MH i2c: 01 00 00 0F 4E 5D [14:40:29]Write i2c OK [14:40:29]MH_I2C_Read... [14:40:29]Read from MH i2c: 01 [14:40:29]MH_I2C_Read... [14:40:29]Read from MH i2c: 01 07 00 [14:40:29]MH_I2C_Read... [14:40:29]Read from MH i2c: 01 07 00 0F 4E 00 00 00 00 00 15 0D 86 [14:40:29]RasterBufferAndPrint [14:40:29]line [14:40:29]line [14:40:29]line [14:40:29]line [14:40:29]line [14:40:29]written 0, free lines is 3355 [14:40:29]MH_Cut [14:40:29]Write to MH i2c: D1 01 00 16 4E 01 36 [14:40:29]Write i2c OK [14:40:29]MH_I2C_Read... [14:40:29]Read from MH i2c: D1 [14:40:29]MH_I2C_Read... [14:40:29]Read from MH i2c: D1 01 00 [14:40:29]MH_I2C_Read... [14:40:29]Read from MH i2c: D1 01 00 16 4E 00 35 [14:40:29]Write to MH i2c: 01 00 00 17 4E 65 [14:40:29]Write i2c OK [14:40:29]MH_I2C_Read... [14:40:29]OFD Sender: No OFD packet to send [14:40:30]*** Cut start [14:40:30]*** Purtial cut [14:40:30]*** Stage 1: CUTSNS_PIN = 1 [14:40:32]Read from MH i2c: 01 [14:40:32]MH_I2C_Read... [14:40:32]*** Stop cut motor [14:40:32]*** Cut end [14:40:32]Read from MH i2c: 01 07 00 [14:40:32]MH_I2C_Read... [14:40:32]Read from MH i2c: 01 07 00 17 4E 00 00 00 00 00 FF 0F 7A [14:40:32]process_action close_receipt done [14:40:32]requested_data is exist [14:40:32]produce_requested_data [14:40:32]requested_item fm.sn is exist - process it [14:40:32]wFMCommunicate request_size=4 [14:40:32]MH_SAM_APDU [14:40:32]CAPDU: 80 11 00 00 [14:40:32]Write to MH i2c: E2 08 00 18 4E 80 11 00 00 00 00 00 00 E0 [14:40:32]Write i2c OK [14:40:32]MH_I2C_Read... [14:40:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:40:32]Read from MH i2c: E2 [14:40:32]MH_I2C_Read... [14:40:32]Read from MH i2c: E2 17 00 [14:40:32]MH_I2C_Read... [14:40:32]Read from MH i2c: E2 17 00 18 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 3C [14:40:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [14:40:32]wFMCommunicate OK [14:40:32]requested_item fd.num is exist - process it [14:40:32]SAM_PROTO_GetFieldsCounters [14:40:32]wFMCommunicate request_size=4 [14:40:32]MH_SAM_APDU [14:40:32]CAPDU: 80 13 00 00 [14:40:32]Write to MH i2c: E2 08 00 19 4E 80 13 00 00 00 00 00 00 E3 [14:40:32]Write i2c OK [14:40:32]MH_I2C_Read... [14:40:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:40:32]Read from MH i2c: E2 [14:40:32]MH_I2C_Read... [14:40:32]Read from MH i2c: E2 62 00 [14:40:32]MH_I2C_Read... [14:40:32]Read from MH i2c: E2 62 00 19 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 9F B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 42 [14:40:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 9F B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:40:32]wFMCommunicate OK [14:40:32]SAM_PROTO_GetFieldsCounters done [14:40:32]requested_item shift.num is exist - process it [14:40:32]requested_item shift.opened is exist - process it [14:40:32]req_shift_opened [14:40:32]FM_GetShiftState [14:40:32]SAM_PROTO_GetShiftState [14:40:32]wFMCommunicate request_size=4 [14:40:32]MH_SAM_APDU [14:40:32]CAPDU: 80 13 01 00 [14:40:32]Write to MH i2c: E2 08 00 1A 4E 80 13 01 00 00 00 00 00 E5 [14:40:32]Write i2c OK [14:40:32]MH_I2C_Read... [14:40:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:40:32]Read from MH i2c: E2 [14:40:32]MH_I2C_Read... [14:40:32]Read from MH i2c: E2 0E 00 [14:40:32]MH_I2C_Read... [14:40:32]Read from MH i2c: E2 0E 00 1A 4E 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 1B [14:40:32]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [14:40:32]wFMCommunicate OK [14:40:32]SAM_PROTO_GetShiftState done [14:40:32]FM_GetShiftState done [14:40:32]req_shift_opened done [14:40:32]requested_item shift.open_date is exist - process it [14:40:32]req_shift_open_date [14:40:32]req_shift_open_date done [14:40:32]produce_requested_data done [14:40:32]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45215,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [14:40:32]process_action_free close_receipt [14:40:32]json_value_free [14:40:32]json_value_free done [14:40:32]process_json_proto returns [14:40:32]Send response to host [14:40:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45215,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [14:40:32]free response buf [14:40:32]execute_script done [14:40:32]execute_script returns [14:40:32]free content buf [14:40:32]Sock 7.Close socket [14:40:32]Sock 7.Thread stoped [14:40:34]OFD Sender: No OFD packet to send [14:40:39]OFD Sender: No OFD packet to send [14:40:44]OFD Sender: No OFD packet to send [14:40:49]OFD Sender: No OFD packet to send [14:40:54]OFD Sender: No OFD packet to send [14:40:59]OFD Sender: No OFD packet to send [14:41:04]OFD Sender: No OFD packet to send [14:41:09]OFD Sender: No OFD packet to send [14:41:14]OFD Sender: No OFD packet to send [14:41:19]OFD Sender: No OFD packet to send [14:41:24]OFD Sender: No OFD packet to send [14:41:29]OFD Sender: No OFD packet to send [14:41:34]OFD Sender: No OFD packet to send [14:41:39]accept exits with 9 [14:41:39]New connection [14:41:39]New thread 3067157860 created [14:41:39]Thread 3067014500 joined [14:41:39]Waiting for new connection... [14:41:39] Sock 9.Parse request [14:41:39]Sock 9.Check first char [14:41:39]Sock 9.First char is OK [14:41:39]request: POST /json_proto HTTP/1.0 [14:41:39]Method: POST [14:41:39]URL: /json_proto [14:41:39]Method is POST - this is cgi request [14:41:39]url: /json_proto [14:41:39]query_string will be loaded in cgi processing [14:41:39]execute_cgi json_proto POST (null) [14:41:39]execute_cgi path=json_proto method=POST [14:41:39]POST find Content-Length [14:41:39]Host: 172.17.48.198:8080 [14:41:39]Content-Length: 1404 [14:41:39]Content-Type: application/json [14:41:39] [14:41:39]POST finish read [14:41:39]Found Content-Length = 1404 [14:41:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184181", "tax_sys" : 0, "items" : [ { "code": "4870002326172", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043B\u0438\u043C\u043E\u043D \u041F\u042D\u0422 1\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700452010610", "name": "\u041A\u043E\u0444\u0435 \u043A\u0430\u043F\u0443\u0447\u0438\u043D\u043E 200\u043C\u043B (\u0410\u041A\u0426\u0418\u042F)", "price" : 105.00, "quantity" : 2.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4640030092499", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE SENSE Himalaya", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 448.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:41:39]execute_script... [14:41:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184181", "tax_sys" : 0, "items" : [ { "code": "4870002326172", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043B\u0438\u043C\u043E\u043D \u041F\u042D\u0422 1\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700452010610", "name": "\u041A\u043E\u0444\u0435 \u043A\u0430\u043F\u0443\u0447\u0438\u043D\u043E 200\u043C\u043B (\u0410\u041A\u0426\u0418\u042F)", "price" : 105.00, "quantity" : 2.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4640030092499", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE SENSE Himalaya", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 448.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:41:39]POST & json_proto [14:41:39]process_json_proto [14:41:39]json parsed OK: [14:41:39]protocol is kg_v1.0 [14:41:39]action value=close_receipt [14:41:39]process_action close_receipt [14:41:39]cmd_close_receipt [14:41:39]MH_GetDate [14:41:39]Write to MH i2c: F0 00 00 1B 4E 58 [14:41:39]Write i2c OK [14:41:39]MH_I2C_Read... [14:41:39]Read from MH i2c: F0 [14:41:39]MH_I2C_Read... [14:41:39]Read from MH i2c: F0 09 00 [14:41:39]MH_I2C_Read... [14:41:39]Read from MH i2c: F0 09 00 1B 4E 00 2F 8C E4 65 CE C4 D4 65 30 [14:41:39]GetLastDocTimeStamp 1709476839 [14:41:39]current date 1709476911 [14:41:39]FM_GetShiftState [14:41:39]SAM_PROTO_GetShiftState [14:41:39]wFMCommunicate request_size=4 [14:41:39]MH_SAM_APDU [14:41:39]CAPDU: 80 13 01 00 [14:41:39]Write to MH i2c: E2 08 00 1C 4E 80 13 01 00 00 00 00 00 E7 [14:41:39]Write i2c OK [14:41:39]MH_I2C_Read... [14:41:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:39]Read from MH i2c: E2 [14:41:39]MH_I2C_Read... [14:41:39]Read from MH i2c: E2 0E 00 [14:41:39]MH_I2C_Read... [14:41:39]Read from MH i2c: E2 0E 00 1C 4E 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 1D [14:41:39]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [14:41:39]wFMCommunicate OK [14:41:39]SAM_PROTO_GetShiftState done [14:41:39]FM_GetShiftState done [14:41:39]opened in 1709425694 [14:41:39]opened+sec_in_day 1709512094 [14:41:39]quantity*price = 10000 [14:41:39]sum+1 = 10001 [14:41:39]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700452010610 Кофе капучино 200мл (АКЦИЯ) 2.000 * 105.00 = 210.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4640030092499 Сигареты ESSE SENSE Himalaya 1.000 * 138.00 = 138.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 448.00 НСП 1% : 3.96 НДС 12% : 47.57 Наличными: 0.00 Безнал.: 448.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 53 03.03.2024 14:41 Смена: 331 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874796 ФД: 45216 ФПД: 38745394059976 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T144151&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45216&fm=38745394059976&tin=02508201610067®Number=0000000000090572&sum=44800 0 [14:41:41]StoreToDocumentArchive [14:41:41]shift 331 fd 45216 [14:41:41]save to /storage/0331/doc_00045216 [14:41:41]save last doc name /storage/0331/doc_00045216 to /storage/kkm_last_doc_name [14:41:41]save OK [14:41:41]Clear old archive folders... [14:41:41]ProcessDocumentItem done err = 0, tmpTLVsize=519 [14:41:41]tlvbuf is 01C96E40 [14:41:41]SAM_PROTO_ClearQueue [14:41:41]wFMCommunicate request_size=4 [14:41:41]MH_SAM_APDU [14:41:41]CAPDU: 80 09 00 00 [14:41:41]Write to MH i2c: E2 08 00 29 4E 80 09 00 00 00 00 00 00 E9 [14:41:41]Write i2c OK [14:41:41]MH_I2C_Read... [14:41:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:41:41]Read from MH i2c: E2 [14:41:41]MH_I2C_Read... [14:41:41]Read from MH i2c: E2 03 00 [14:41:41]MH_I2C_Read... [14:41:41]Read from MH i2c: E2 03 00 29 4E 00 90 00 EB [14:41:41]RAPDU: 90 00 [14:41:41]wFMCommunicate OK [14:41:41]SAM_PROTO_ClearQueue done [14:41:41]KKMCreateOFDPacket [14:41:41]OFDProtocolAddRootSTLVToBuf [14:41:41]FM_MakeSignedData [14:41:41]FM_MakeSignedData [14:41:41]SAM_PROTO_SignData [14:41:41]wFMCommunicate request_size=4 [14:41:41]MH_SAM_APDU [14:41:41]CAPDU: 80 0D 01 02 [14:41:41]Write to MH i2c: E2 08 00 2A 4E 80 0D 01 02 00 00 00 00 F1 [14:41:41]Write i2c OK [14:41:41]MH_I2C_Read... [14:41:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:41:41]Read from MH i2c: E2 [14:41:41]MH_I2C_Read... [14:41:41]Read from MH i2c: E2 03 00 [14:41:41]MH_I2C_Read... [14:41:41]Read from MH i2c: E2 03 00 2A 4E 00 90 00 EC [14:41:41]RAPDU: 90 00 [14:41:41]wFMCommunicate OK [14:41:41]wFMCommunicate request_size=255 [14:41:41]MH_SAM_APDU [14:41:41]CAPDU: 80 0D 02 02 FA 03 00 07 02 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 36 31 37 32 06 04 33 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 34 35 32 30 31 30 36 31 30 06 04 2E 00 D0 9A D0 BE D1 84 D0 B5 20 D0 BA D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 32 30 30 D0 BC D0 BB 20 28 D0 90 D0 9A D0 A6 D0 98 D0 AF 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 [14:41:41]Write to MH i2c: E2 02 01 2B 4E 80 0D 02 02 FA 00 03 00 07 02 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 36 31 37 32 06 04 33 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 34 35 32 30 31 30 36 31 30 06 04 2E 00 D0 9A D0 BE D1 84 D0 B5 20 D0 BA D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 32 30 30 D0 BC D0 BB 20 28 D0 90 D0 9A D0 A6 D0 98 D0 AF 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 00 00 72 [14:41:41]Write i2c OK [14:41:41]MH_I2C_Read... [14:41:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:41]Read from MH i2c: E2 [14:41:41]MH_I2C_Read... [14:41:41]Read from MH i2c: E2 03 00 [14:41:41]MH_I2C_Read... [14:41:41]Read from MH i2c: E2 03 00 2B 4E 00 90 00 ED [14:41:41]RAPDU: 90 00 [14:41:41]wFMCommunicate OK [14:41:41]wFMCommunicate request_size=255 [14:41:41]MH_SAM_APDU [14:41:41]CAPDU: 80 0D 02 02 FA 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 00 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 AF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 2F 8C E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [14:41:41]Write to MH i2c: E2 02 01 2C 4E 80 0D 02 02 FA 00 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 00 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 AF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 2F 8C E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 D4 [14:41:41]Write i2c OK [14:41:41]MH_I2C_Read... [14:41:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:41]Read from MH i2c: E2 [14:41:41]MH_I2C_Read... [14:41:41]Read from MH i2c: E2 03 00 [14:41:41]MH_I2C_Read... [14:41:41]Read from MH i2c: E2 03 00 2C 4E 00 90 00 EE [14:41:41]RAPDU: 90 00 [14:41:41]wFMCommunicate OK [14:41:41]wFMCommunicate request_size=28 [14:41:41]MH_SAM_APDU [14:41:41]CAPDU: 80 0D 02 02 17 37 34 37 39 36 10 04 04 00 A0 B0 00 00 35 04 06 00 23 3D 1D 73 1A C8 [14:41:41]Write to MH i2c: E2 1F 00 2D 4E 80 0D 02 02 17 00 37 34 37 39 36 10 04 04 00 A0 B0 00 00 35 04 06 00 23 3D 1D 73 1A C8 00 00 AD [14:41:41]Write i2c OK [14:41:41]MH_I2C_Read... [14:41:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:41]Read from MH i2c: E2 [14:41:41]MH_I2C_Read... [14:41:41]Read from MH i2c: E2 03 00 [14:41:41]MH_I2C_Read... [14:41:41]Read from MH i2c: E2 03 00 2D 4E 00 90 00 EF [14:41:41]RAPDU: 90 00 [14:41:41]wFMCommunicate OK [14:41:41]wFMCommunicate request_size=4 [14:41:41]MH_SAM_APDU [14:41:41]CAPDU: 80 0D 03 02 [14:41:41]Write to MH i2c: E2 08 00 2E 4E 80 0D 03 02 00 00 00 00 F7 [14:41:41]Write i2c OK [14:41:41]MH_I2C_Read... [14:41:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:41:41]Read from MH i2c: E2 [14:41:41]MH_I2C_Read... [14:41:41]Read from MH i2c: E2 0B 00 [14:41:41]MH_I2C_Read... [14:41:41]Read from MH i2c: E2 0B 00 2E 4E 00 48 29 6B BC D5 37 CB 23 90 00 8A [14:41:41]RAPDU: 48 29 6B BC D5 37 CB 23 90 00 [14:41:41]wFMCommunicate OK [14:41:41]SAM_PROTO_SignData done [14:41:41]FM_MakeSignedData done [14:41:41]CreateOFDProtocolMessage [14:41:41]wFMCommunicate request_size=4 [14:41:41]MH_SAM_APDU [14:41:41]CAPDU: 80 11 00 00 [14:41:41]Write to MH i2c: E2 08 00 2F 4E 80 11 00 00 00 00 00 00 F7 [14:41:41]Write i2c OK [14:41:41]MH_I2C_Read... [14:41:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:41]Read from MH i2c: E2 [14:41:41]MH_I2C_Read... [14:41:41]Read from MH i2c: E2 17 00 [14:41:41]MH_I2C_Read... [14:41:41]Read from MH i2c: E2 17 00 2F 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 53 [14:41:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [14:41:41]wFMCommunicate OK [14:41:41]CreateOFDProtocolMessage done [14:41:41]OFDSenderStorePacket 45216 [14:41:41]StoreOFDPacket docnum=45216 [14:41:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 1B 02 00 00 8A D6 13 02 04 4A 5A 03 01 00 03 00 07 02 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 36 31 37 32 06 04 33 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 34 35 32 30 31 30 36 31 30 06 04 2E 00 D0 9A D0 BE D1 84 D0 B5 20 D0 BA D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 32 30 30 D0 BC D0 BB 20 28 D0 90 D0 9A D0 A6 D0 98 D0 AF 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 00 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 AF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 2F 8C E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 A0 B0 00 00 35 04 06 00 23 3D 1D 73 1A C8 48 29 6B BC D5 37 CB 23 [14:41:41]CheckFolder [14:41:41]dirname=/storage/ofd_packets [14:41:41]CheckFolder done [14:41:41]ProducePacketName [14:41:41]name=ofd_packets/00045216 [14:41:41]NVStorageSaveData ofd_packets/00045216 [14:41:41]File name is /storage/ofd_packets/00045216 [14:41:41]Write 569 bytes [14:41:41]NVStorageSaveData done [14:41:41]OFDSenderStorePacket done [14:41:41]KKMCreateOFDPacket done [14:41:41]NVStorageSaveData kkm_last_timestamp [14:41:41]File name is /storage/kkm_last_timestamp [14:41:41]Write 4 bytes [14:41:41]NVStorageSaveData done [14:41:41]ExternCall_PrintAddStr [14:41:41]wPrintStart [14:41:41]Write to MH i2c: 01 00 00 30 4E 7E [14:41:41]Write i2c OK [14:41:41]MH_I2C_Read... [14:41:41]Read from MH i2c: 01 [14:41:41]MH_I2C_Read... [14:41:41]Read from MH i2c: 01 07 00 [14:41:41]MH_I2C_Read... [14:41:41]Read from MH i2c: 01 07 00 30 4E 00 00 00 00 00 FF 0F 93 [14:41:41]RasterBufferAndPrint [14:41:41]line Счет N : (3)184181 [14:41:41]line ИНН: 02508201610067 [14:41:41]line Контрольно-Кассовый Чек [14:41:41]line ПРОДАЖА [14:41:41]line Товар: 4870002326172 [14:41:41]line Вода ASU пит н.газ лимон ПЭТ 1л [14:41:41]line 1.000 * 100.00 [14:41:41]line = 100.00 [14:41:41]line НДС 12% НСП 1% [14:41:41]line > о реализуемом товаре [14:41:41]line Товар: 4700452010610 [14:41:41]line Кофе капучино 200мл (АКЦИЯ) [14:41:41]line 2.000 * 105.00 [14:41:41]line = 210.00 [14:41:41]line НДС 12% НСП 1% [14:41:41]line > о реализуемом товаре [14:41:41]line Товар: 4640030092499 [14:41:41]line Сигареты ESSE SENSE Himalaya [14:41:41]line 1.000 * 138.00 [14:41:41]line = 138.00 [14:41:41]line НДС 12% НСП 1% [14:41:42]line > о реализуемом товаре [14:41:42]line ИТОГО: 448.00 [14:41:42]line НСП 1% : 3.96 [14:41:42]line НДС 12% : 47.57 [14:41:42]line Наличными: 0.00 [14:41:42]line Безнал.: 448.00 [14:41:42]line Место: АЗС № 25 "Партнер Нефть" [14:41:42]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [14:41:42]line СНО: Общий режим [14:41:42]line Чек 53 03.03.2024 14:41 [14:41:42]line Смена: 331 ФФД: 1.0 [14:41:42]line ЗНМ: 0300000013 [14:41:42]line РНМ: 0000000000090572 [14:41:42]line Версия ККМ: 001 [14:41:42]line Платежная система: Бакай Банк [14:41:42]line ФМ: 0000000000874796 [14:41:42]line ФД: 45216 [14:41:42]line ФПД: 38745394059976 [14:41:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T144151&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45216&fm=38745394059976&tin=02508201610067®Number=0000000000090572&sum=44800 [14:41:42]line 0 [14:41:42]OFD Sender: Processing packet 45216 [packets to send 17, broken 16] [14:41:42]ProducePacketName [14:41:42]name=ofd_packets/00045216 [14:41:42]OFD Sender: To server: pG, [14:41:42]CommunicateWithHost lk.salyk.kg:30040 [14:41:42]ConnectInit lk.salyk.kg [14:41:42]written 0, free lines is 4095 [14:41:42]Connected sock=10 [14:41:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 1B 02 00 00 8A D6 13 02 04 4A 5A 03 01 00 03 00 07 02 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 36 31 37 32 06 04 33 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 34 35 32 30 31 30 36 31 30 06 04 2E 00 D0 9A D0 BE D1 84 D0 B5 20 D0 BA D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 32 30 30 D0 BC D0 BB 20 28 D0 90 D0 9A D0 A6 D0 98 D0 AF 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 00 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 AF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 2F 8C E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 A0 B0 00 00 35 04 06 00 23 3D 1D 73 1A C8 48 29 6B BC D5 37 CB 23 [14:41:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 49 F7 47 00 2C DB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 A0 B0 00 00 F4 03 04 00 F4 37 E4 65 B6 04 01 00 00 9C 85 90 79 D2 E2 71 30 [14:41:42]CommunicateWithHost err = 0 [14:41:42]CheckOFDResponse [14:41:42]1017 (14) - 77093643461234 [14:41:42]1041 (16) - 0000000000874796 [14:41:42]1040 (4) - 45216 [14:41:42]1012 (4) - 03.03.2024 08:42 [14:41:42]1206 (1) - 0 [14:41:42]OFD Sender: Remove packet 45216 [14:41:42]ProducePacketName [14:41:42]name=ofd_packets/00045216 [14:41:42]NVStorageDeleteData [14:41:42]Write to MH i2c: 01 00 00 69 4E B7 [14:41:42]Write i2c OK [14:41:42]MH_I2C_Read... [14:41:42]Read from MH i2c: 01 [14:41:42]MH_I2C_Read... [14:41:42]Read from MH i2c: 01 07 00 [14:41:42]MH_I2C_Read... [14:41:42]Read from MH i2c: 01 07 00 69 4E 00 00 00 00 00 19 0C E3 [14:41:42]RasterBufferAndPrint [14:41:42]line [14:41:42]line [14:41:42]line [14:41:42]line [14:41:42]line [14:41:42]written 0, free lines is 3106 [14:41:42]MH_Cut [14:41:42]Write to MH i2c: D1 01 00 70 4E 01 90 [14:41:42]Write i2c OK [14:41:42]MH_I2C_Read... [14:41:42]Read from MH i2c: D1 [14:41:42]MH_I2C_Read... [14:41:42]Read from MH i2c: D1 01 00 [14:41:42]MH_I2C_Read... [14:41:42]Read from MH i2c: D1 01 00 70 4E 00 8F [14:41:42]Write to MH i2c: 01 00 00 71 4E BF [14:41:42]Write i2c OK [14:41:42]MH_I2C_Read... [14:41:42]OFD Sender: No OFD packet to send [14:41:43]*** Cut start [14:41:43]*** Purtial cut [14:41:43]*** Stage 1: CUTSNS_PIN = 1 [14:41:45]Read from MH i2c: 01 [14:41:45]MH_I2C_Read... [14:41:45]*** Stop cut motor [14:41:45]*** Cut end [14:41:45]Read from MH i2c: 01 07 00 [14:41:45]MH_I2C_Read... [14:41:45]Read from MH i2c: 01 07 00 71 4E 00 00 00 00 00 FF 0F D4 [14:41:45]process_action close_receipt done [14:41:45]requested_data is exist [14:41:45]produce_requested_data [14:41:45]requested_item fm.sn is exist - process it [14:41:45]wFMCommunicate request_size=4 [14:41:45]MH_SAM_APDU [14:41:45]CAPDU: 80 11 00 00 [14:41:45]Write to MH i2c: E2 08 00 72 4E 80 11 00 00 00 00 00 00 3A [14:41:45]Write i2c OK [14:41:45]MH_I2C_Read... [14:41:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:45]Read from MH i2c: E2 [14:41:45]MH_I2C_Read... [14:41:45]Read from MH i2c: E2 17 00 [14:41:45]MH_I2C_Read... [14:41:45]Read from MH i2c: E2 17 00 72 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 96 [14:41:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [14:41:45]wFMCommunicate OK [14:41:45]requested_item fd.num is exist - process it [14:41:45]SAM_PROTO_GetFieldsCounters [14:41:45]wFMCommunicate request_size=4 [14:41:45]MH_SAM_APDU [14:41:45]CAPDU: 80 13 00 00 [14:41:45]Write to MH i2c: E2 08 00 73 4E 80 13 00 00 00 00 00 00 3D [14:41:45]Write i2c OK [14:41:45]MH_I2C_Read... [14:41:45]Read from MH i2c: E2 [14:41:45]MH_I2C_Read... [14:41:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:41:45]Read from MH i2c: E2 62 00 [14:41:45]MH_I2C_Read... [14:41:45]Read from MH i2c: E2 62 00 73 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 A0 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 A0 [14:41:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 A0 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:41:45]wFMCommunicate OK [14:41:45]SAM_PROTO_GetFieldsCounters done [14:41:45]requested_item shift.num is exist - process it [14:41:45]requested_item shift.opened is exist - process it [14:41:45]req_shift_opened [14:41:45]FM_GetShiftState [14:41:45]SAM_PROTO_GetShiftState [14:41:45]wFMCommunicate request_size=4 [14:41:45]MH_SAM_APDU [14:41:45]CAPDU: 80 13 01 00 [14:41:45]Write to MH i2c: E2 08 00 74 4E 80 13 01 00 00 00 00 00 3F [14:41:45]Write i2c OK [14:41:45]MH_I2C_Read... [14:41:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:45]Read from MH i2c: E2 [14:41:45]MH_I2C_Read... [14:41:45]Read from MH i2c: E2 0E 00 [14:41:45]MH_I2C_Read... [14:41:45]Read from MH i2c: E2 0E 00 74 4E 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 75 [14:41:45]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [14:41:45]wFMCommunicate OK [14:41:45]SAM_PROTO_GetShiftState done [14:41:45]FM_GetShiftState done [14:41:45]req_shift_opened done [14:41:45]requested_item shift.open_date is exist - process it [14:41:45]req_shift_open_date [14:41:45]req_shift_open_date done [14:41:45]produce_requested_data done [14:41:45]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45216,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [14:41:45]process_action_free close_receipt [14:41:45]json_value_free [14:41:45]json_value_free done [14:41:45]process_json_proto returns [14:41:45]Send response to host [14:41:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45216,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [14:41:45]free response buf [14:41:45]execute_script done [14:41:45]execute_script returns [14:41:45]free content buf [14:41:45]Sock 9.Close socket [14:41:45]Sock 9.Thread stoped [14:41:48]OFD Sender: No OFD packet to send [14:41:53]OFD Sender: No OFD packet to send [14:41:58]OFD Sender: No OFD packet to send [14:42:03]OFD Sender: No OFD packet to send [14:42:08]OFD Sender: No OFD packet to send [14:42:13]OFD Sender: No OFD packet to send [14:42:18]OFD Sender: No OFD packet to send [14:42:23]OFD Sender: No OFD packet to send [14:42:28]OFD Sender: No OFD packet to send [14:42:33]OFD Sender: No OFD packet to send [14:42:38]OFD Sender: No OFD packet to send [14:42:43]OFD Sender: No OFD packet to send [14:42:48]OFD Sender: No OFD packet to send [14:42:53]OFD Sender: No OFD packet to send [14:42:58]OFD Sender: No OFD packet to send [14:43:03]OFD Sender: No OFD packet to send [14:43:08]OFD Sender: No OFD packet to send [14:43:13]OFD Sender: No OFD packet to send [14:43:18]OFD Sender: No OFD packet to send [14:43:23]OFD Sender: No OFD packet to send [14:43:27]accept exits with 7 [14:43:27]New connection [14:43:27]New thread 3067014500 created [14:43:27]Thread 3067157860 joined [14:43:27]Waiting for new connection... [14:43:27] Sock 7.Parse request [14:43:27]Sock 7.Check first char [14:43:27]Sock 7.First char is OK [14:43:27]request: POST /json_proto HTTP/1.0 [14:43:27]Method: POST [14:43:27]URL: /json_proto [14:43:27]Method is POST - this is cgi request [14:43:27]url: /json_proto [14:43:27]query_string will be loaded in cgi processing [14:43:27]execute_cgi json_proto POST (null) [14:43:27]execute_cgi path=json_proto method=POST [14:43:27]POST find Content-Length [14:43:27]Host: 172.17.48.198:8080 [14:43:27]Content-Length: 896 [14:43:27]Content-Type: application/json [14:43:27] [14:43:27]POST finish read [14:43:27]Found Content-Length = 896 [14:43:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184182", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000481453", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro Max 0,45 \u0436/\u0431", "price" : 90.00, "quantity" : 2.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 315.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:43:27]execute_script... [14:43:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184182", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000481453", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro Max 0,45 \u0436/\u0431", "price" : 90.00, "quantity" : 2.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 315.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:43:27]POST & json_proto [14:43:27]process_json_proto [14:43:27]json parsed OK: [14:43:27]protocol is kg_v1.0 [14:43:27]action value=close_receipt [14:43:27]process_action close_receipt [14:43:27]cmd_close_receipt [14:43:27]MH_GetDate [14:43:27]Write to MH i2c: F0 00 00 75 4E B2 [14:43:27]Write i2c OK [14:43:27]MH_I2C_Read... [14:43:27]Read from MH i2c: F0 [14:43:27]MH_I2C_Read... [14:43:27]Read from MH i2c: F0 09 00 [14:43:27]MH_I2C_Read... [14:43:27]Read from MH i2c: F0 09 00 75 4E 00 9B 8C E4 65 CE C4 D4 65 F6 [14:43:27]GetLastDocTimeStamp 1709476911 [14:43:27]current date 1709477019 [14:43:27]FM_GetShiftState [14:43:27]SAM_PROTO_GetShiftState [14:43:27]wFMCommunicate request_size=4 [14:43:27]MH_SAM_APDU [14:43:27]CAPDU: 80 13 01 00 [14:43:27]Write to MH i2c: E2 08 00 76 4E 80 13 01 00 00 00 00 00 41 [14:43:27]Write i2c OK [14:43:27]MH_I2C_Read... [14:43:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:43:27]Read from MH i2c: E2 [14:43:27]MH_I2C_Read... [14:43:27]Read from MH i2c: E2 0E 00 [14:43:27]MH_I2C_Read... [14:43:27]Read from MH i2c: E2 0E 00 76 4E 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 77 [14:43:27]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [14:43:27]wFMCommunicate OK [14:43:27]SAM_PROTO_GetShiftState done [14:43:27]FM_GetShiftState done [14:43:27]opened in 1709425694 [14:43:27]opened+sec_in_day 1709512094 [14:43:27]quantity*price = 13500 [14:43:27]sum+1 = 13501 [14:43:27]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000481453 Напиток энерг Nitro Max 0,45 ж/б 2.000 * 90.00 = 180.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 315.00 НСП 1% : 2.78 НДС 12% : 33.45 Наличными: 315.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 54 03.03.2024 14:43 Смена: 331 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 ФМ: 0000000000874796 ФД: 45217 ФПД: 74349734623112 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T144339&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45217&fm=74349734623112&tin=02508201610067®Number=0000000000090572&sum=31500 0 [14:43:28]StoreToDocumentArchive [14:43:28]shift 331 fd 45217 [14:43:28]save to /storage/0331/doc_00045217 [14:43:28]save last doc name /storage/0331/doc_00045217 to /storage/kkm_last_doc_name [14:43:28]save OK [14:43:28]Clear old archive folders... [14:43:28]ProcessDocumentItem done err = 0, tmpTLVsize=391 [14:43:28]tlvbuf is 01B23CA0 [14:43:28]SAM_PROTO_ClearQueue [14:43:28]wFMCommunicate request_size=4 [14:43:28]MH_SAM_APDU [14:43:28]CAPDU: 80 09 00 00 [14:43:28]Write to MH i2c: E2 08 00 83 4E 80 09 00 00 00 00 00 00 43 [14:43:28]Write i2c OK [14:43:28]MH_I2C_Read... [14:43:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:43:28]Read from MH i2c: E2 [14:43:28]MH_I2C_Read... [14:43:28]Read from MH i2c: E2 03 00 [14:43:28]MH_I2C_Read... [14:43:28]Read from MH i2c: E2 03 00 83 4E 00 90 00 45 [14:43:28]RAPDU: 90 00 [14:43:28]wFMCommunicate OK [14:43:28]SAM_PROTO_ClearQueue done [14:43:28]KKMCreateOFDPacket [14:43:28]OFDProtocolAddRootSTLVToBuf [14:43:28]FM_MakeSignedData [14:43:28]FM_MakeSignedData [14:43:28]SAM_PROTO_SignData [14:43:28]wFMCommunicate request_size=4 [14:43:28]MH_SAM_APDU [14:43:28]CAPDU: 80 0D 01 02 [14:43:28]Write to MH i2c: E2 08 00 84 4E 80 0D 01 02 00 00 00 00 4B [14:43:28]Write i2c OK [14:43:28]MH_I2C_Read... [14:43:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:43:28]Read from MH i2c: E2 [14:43:28]MH_I2C_Read... [14:43:28]Read from MH i2c: E2 03 00 [14:43:28]MH_I2C_Read... [14:43:28]Read from MH i2c: E2 03 00 84 4E 00 90 00 46 [14:43:28]RAPDU: 90 00 [14:43:28]wFMCommunicate OK [14:43:28]wFMCommunicate request_size=255 [14:43:28]MH_SAM_APDU [14:43:28]CAPDU: 80 0D 02 02 FA 03 00 87 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 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 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 7B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 [14:43:28]Write to MH i2c: E2 02 01 85 4E 80 0D 02 02 FA 00 03 00 87 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 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 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 7B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 00 00 70 [14:43:28]Write i2c OK [14:43:28]MH_I2C_Read... [14:43:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:43:28]Read from MH i2c: E2 [14:43:28]MH_I2C_Read... [14:43:28]Read from MH i2c: E2 03 00 [14:43:28]MH_I2C_Read... [14:43:28]Read from MH i2c: E2 03 00 85 4E 00 90 00 47 [14:43:28]RAPDU: 90 00 [14:43:28]wFMCommunicate OK [14:43:28]wFMCommunicate request_size=150 [14:43:28]MH_SAM_APDU [14:43:28]CAPDU: 80 0D 02 02 91 01 00 01 F7 03 06 00 16 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 11 0D 00 00 00 00 07 04 06 00 0C 7B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 9B 8C E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 A1 B0 00 00 35 04 06 00 43 9E E5 85 77 88 [14:43:28]Write to MH i2c: E2 99 00 86 4E 80 0D 02 02 91 00 01 00 01 F7 03 06 00 16 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 11 0D 00 00 00 00 07 04 06 00 0C 7B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 9B 8C E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 A1 B0 00 00 35 04 06 00 43 9E E5 85 77 88 00 00 EF [14:43:28]Write i2c OK [14:43:28]MH_I2C_Read... [14:43:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:43:29]Read from MH i2c: E2 [14:43:29]MH_I2C_Read... [14:43:29]Read from MH i2c: E2 03 00 [14:43:29]MH_I2C_Read... [14:43:29]Read from MH i2c: E2 03 00 86 4E 00 90 00 48 [14:43:29]RAPDU: 90 00 [14:43:29]wFMCommunicate OK [14:43:29]wFMCommunicate request_size=4 [14:43:29]MH_SAM_APDU [14:43:29]CAPDU: 80 0D 03 02 [14:43:29]Write to MH i2c: E2 08 00 87 4E 80 0D 03 02 00 00 00 00 50 [14:43:29]Write i2c OK [14:43:29]MH_I2C_Read... [14:43:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:43:29]Read from MH i2c: E2 [14:43:29]MH_I2C_Read... [14:43:29]Read from MH i2c: E2 0B 00 [14:43:29]MH_I2C_Read... [14:43:29]Read from MH i2c: E2 0B 00 87 4E 00 5F C3 B0 C3 8E 2D 70 E4 90 00 F5 [14:43:29]RAPDU: 5F C3 B0 C3 8E 2D 70 E4 90 00 [14:43:29]wFMCommunicate OK [14:43:29]SAM_PROTO_SignData done [14:43:29]FM_MakeSignedData done [14:43:29]CreateOFDProtocolMessage [14:43:29]wFMCommunicate request_size=4 [14:43:29]MH_SAM_APDU [14:43:29]CAPDU: 80 11 00 00 [14:43:29]Write to MH i2c: E2 08 00 88 4E 80 11 00 00 00 00 00 00 50 [14:43:29]Write i2c OK [14:43:29]MH_I2C_Read... [14:43:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:43:29]Read from MH i2c: E2 [14:43:29]MH_I2C_Read... [14:43:29]Read from MH i2c: E2 17 00 [14:43:29]MH_I2C_Read... [14:43:29]Read from MH i2c: E2 17 00 88 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 AC [14:43:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [14:43:29]wFMCommunicate OK [14:43:29]CreateOFDProtocolMessage done [14:43:29]OFDSenderStorePacket 45217 [14:43:29]StoreOFDPacket docnum=45217 [14:43:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 9B 01 00 00 59 45 93 01 A1 58 5A 03 01 00 03 00 87 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 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 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 7B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 16 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 11 0D 00 00 00 00 07 04 06 00 0C 7B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 9B 8C E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 A1 B0 00 00 35 04 06 00 43 9E E5 85 77 88 5F C3 B0 C3 8E 2D 70 E4 [14:43:29]CheckFolder [14:43:29]dirname=/storage/ofd_packets [14:43:29]CheckFolder done [14:43:29]ProducePacketName [14:43:29]name=ofd_packets/00045217 [14:43:29]NVStorageSaveData ofd_packets/00045217 [14:43:29]File name is /storage/ofd_packets/00045217 [14:43:29]Write 441 bytes [14:43:29]NVStorageSaveData done [14:43:29]OFDSenderStorePacket done [14:43:29]KKMCreateOFDPacket done [14:43:29]NVStorageSaveData kkm_last_timestamp [14:43:29]File name is /storage/kkm_last_timestamp [14:43:29]Write 4 bytes [14:43:29]NVStorageSaveData done [14:43:29]ExternCall_PrintAddStr [14:43:29]wPrintStart [14:43:29]Write to MH i2c: 01 00 00 89 4E D7 [14:43:29]Write i2c OK [14:43:29]MH_I2C_Read... [14:43:29]Read from MH i2c: 01 [14:43:29]MH_I2C_Read... [14:43:29]Read from MH i2c: 01 07 00 [14:43:29]MH_I2C_Read... [14:43:29]Read from MH i2c: 01 07 00 89 4E 00 00 00 00 00 FF 0F EC [14:43:29]RasterBufferAndPrint [14:43:29]line Счет N : (3)184182 [14:43:29]line ИНН: 02508201610067 [14:43:29]line Контрольно-Кассовый Чек [14:43:29]line ПРОДАЖА [14:43:29]line Товар: 48747059 [14:43:29]line Сигареты Winston Legend Blue [14:43:29]line 1.000 * 135.00 [14:43:29]line = 135.00 [14:43:29]line НДС 12% НСП 1% [14:43:29]line > о реализуемом товаре [14:43:29]line Товар: 4700000481453 [14:43:29]line Напиток энерг Nitro Max 0,45 ж/б [14:43:29]line 2.000 * 90.00 [14:43:29]line = 180.00 [14:43:29]line НДС 12% НСП 1% [14:43:29]line > о реализуемом товаре [14:43:29]line ИТОГО: 315.00 [14:43:29]line НСП 1% : 2.78 [14:43:29]line НДС 12% : 33.45 [14:43:29]line Наличными: 315.00 [14:43:29]line Безнал.: 0.00 [14:43:29]line Место: АЗС № 25 "Партнер Нефть" [14:43:29]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [14:43:29]line СНО: Общий режим [14:43:29]line Чек 54 03.03.2024 14:43 [14:43:29]line Смена: 331 ФФД: 1.0 [14:43:29]line ЗНМ: 0300000013 [14:43:29]line РНМ: 0000000000090572 [14:43:29]line Версия ККМ: 001 [14:43:29]line ФМ: 0000000000874796 [14:43:29]line ФД: 45217 [14:43:29]line ФПД: 74349734623112 [14:43:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T144339&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45217&fm=74349734623112&tin=02508201610067®Number=0000000000090572&sum=31500 [14:43:29]line 0 [14:43:29]OFD Sender: Processing packet 45217 [packets to send 17, broken 16] [14:43:29]ProducePacketName [14:43:29]name=ofd_packets/00045217 [14:43:29]OFD Sender: To server: pG, [14:43:29]CommunicateWithHost lk.salyk.kg:30040 [14:43:29]ConnectInit lk.salyk.kg [14:43:29]written 0, free lines is 4095 [14:43:29]Connected sock=10 [14:43:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 9B 01 00 00 59 45 93 01 A1 58 5A 03 01 00 03 00 87 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 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 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 7B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 16 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 11 0D 00 00 00 00 07 04 06 00 0C 7B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 9B 8C E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 A1 B0 00 00 35 04 06 00 43 9E E5 85 77 88 5F C3 B0 C3 8E 2D 70 E4 [14:43:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 75 0E 47 00 7E 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 34 37 39 36 10 04 04 00 A1 B0 00 00 F4 03 04 00 60 38 E4 65 B6 04 01 00 00 F2 9B A6 8E C6 70 D1 A0 [14:43:29]CommunicateWithHost err = 0 [14:43:29]CheckOFDResponse [14:43:29]1017 (14) - 77093643461234 [14:43:29]1041 (16) - 0000000000874796 [14:43:29]1040 (4) - 45217 [14:43:29]1012 (4) - 03.03.2024 08:44 [14:43:29]1206 (1) - 0 [14:43:29]OFD Sender: Remove packet 45217 [14:43:29]ProducePacketName [14:43:29]name=ofd_packets/00045217 [14:43:29]NVStorageDeleteData [14:43:29]Write to MH i2c: 01 00 00 B9 4E 07 [14:43:29]Write i2c OK [14:43:29]MH_I2C_Read... [14:43:29]Read from MH i2c: 01 [14:43:29]MH_I2C_Read... [14:43:29]Read from MH i2c: 01 07 00 [14:43:29]MH_I2C_Read... [14:43:29]Read from MH i2c: 01 07 00 B9 4E 00 00 00 00 00 91 0C AB [14:43:29]RasterBufferAndPrint [14:43:29]line [14:43:29]line [14:43:29]line [14:43:29]line [14:43:29]line [14:43:29]written 0, free lines is 3223 [14:43:29]MH_Cut [14:43:29]Write to MH i2c: D1 01 00 C0 4E 01 E0 [14:43:29]Write i2c OK [14:43:29]MH_I2C_Read... [14:43:29]Read from MH i2c: D1 [14:43:29]MH_I2C_Read... [14:43:29]Read from MH i2c: D1 01 00 [14:43:29]MH_I2C_Read... [14:43:29]Read from MH i2c: D1 01 00 C0 4E 00 DF [14:43:29]Write to MH i2c: 01 00 00 C1 4E 0F [14:43:29]Write i2c OK [14:43:29]MH_I2C_Read... [14:43:30]OFD Sender: No OFD packet to send [14:43:30]*** Cut start [14:43:30]*** Purtial cut [14:43:30]*** Stage 1: CUTSNS_PIN = 1 [14:43:32]Read from MH i2c: 01 [14:43:32]MH_I2C_Read... [14:43:32]*** Stop cut motor [14:43:32]*** Cut end [14:43:32]Read from MH i2c: 01 07 00 [14:43:32]MH_I2C_Read... [14:43:32]Read from MH i2c: 01 07 00 C1 4E 00 00 00 00 00 FF 0F 24 [14:43:32]process_action close_receipt done [14:43:32]requested_data is exist [14:43:32]produce_requested_data [14:43:32]requested_item fm.sn is exist - process it [14:43:32]wFMCommunicate request_size=4 [14:43:32]MH_SAM_APDU [14:43:32]CAPDU: 80 11 00 00 [14:43:32]Write to MH i2c: E2 08 00 C2 4E 80 11 00 00 00 00 00 00 8A [14:43:32]Write i2c OK [14:43:32]MH_I2C_Read... [14:43:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:43:32]Read from MH i2c: E2 [14:43:32]MH_I2C_Read... [14:43:32]Read from MH i2c: E2 17 00 [14:43:32]MH_I2C_Read... [14:43:32]Read from MH i2c: E2 17 00 C2 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 E6 [14:43:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [14:43:32]wFMCommunicate OK [14:43:32]requested_item fd.num is exist - process it [14:43:32]SAM_PROTO_GetFieldsCounters [14:43:32]wFMCommunicate request_size=4 [14:43:32]MH_SAM_APDU [14:43:32]CAPDU: 80 13 00 00 [14:43:32]Write to MH i2c: E2 08 00 C3 4E 80 13 00 00 00 00 00 00 8D [14:43:32]Write i2c OK [14:43:32]MH_I2C_Read... [14:43:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:43:32]Read from MH i2c: E2 [14:43:32]MH_I2C_Read... [14:43:32]Read from MH i2c: E2 62 00 [14:43:32]MH_I2C_Read... [14:43:32]Read from MH i2c: E2 62 00 C3 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 A1 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 F4 [14:43:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 A1 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:43:32]wFMCommunicate OK [14:43:32]SAM_PROTO_GetFieldsCounters done [14:43:32]requested_item shift.num is exist - process it [14:43:32]requested_item shift.opened is exist - process it [14:43:32]req_shift_opened [14:43:32]FM_GetShiftState [14:43:32]SAM_PROTO_GetShiftState [14:43:32]wFMCommunicate request_size=4 [14:43:32]MH_SAM_APDU [14:43:32]CAPDU: 80 13 01 00 [14:43:32]Write to MH i2c: E2 08 00 C4 4E 80 13 01 00 00 00 00 00 8F [14:43:32]Write i2c OK [14:43:32]MH_I2C_Read... [14:43:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:43:32]Read from MH i2c: E2 [14:43:32]MH_I2C_Read... [14:43:32]Read from MH i2c: E2 0E 00 [14:43:32]MH_I2C_Read... [14:43:32]Read from MH i2c: E2 0E 00 C4 4E 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 C5 [14:43:32]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [14:43:32]wFMCommunicate OK [14:43:32]SAM_PROTO_GetShiftState done [14:43:32]FM_GetShiftState done [14:43:32]req_shift_opened done [14:43:32]requested_item shift.open_date is exist - process it [14:43:32]req_shift_open_date [14:43:32]req_shift_open_date done [14:43:32]produce_requested_data done [14:43:32]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45217,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [14:43:32]process_action_free close_receipt [14:43:32]json_value_free [14:43:32]json_value_free done [14:43:32]process_json_proto returns [14:43:32]Send response to host [14:43:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45217,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [14:43:32]free response buf [14:43:32]execute_script done [14:43:32]execute_script returns [14:43:32]free content buf [14:43:32]Sock 7.Close socket [14:43:32]Sock 7.Thread stoped [14:43:35]OFD Sender: No OFD packet to send [14:43:40]OFD Sender: No OFD packet to send [14:43:45]OFD Sender: No OFD packet to send [14:43:50]OFD Sender: No OFD packet to send [14:43:55]OFD Sender: No OFD packet to send [14:44:00]OFD Sender: No OFD packet to send [14:44:05]OFD Sender: No OFD packet to send [14:44:10]OFD Sender: No OFD packet to send [14:44:15]OFD Sender: No OFD packet to send [14:44:20]OFD Sender: No OFD packet to send [14:44:25]OFD Sender: No OFD packet to send [14:44:30]OFD Sender: No OFD packet to send [14:44:35]OFD Sender: No OFD packet to send [14:44:40]OFD Sender: No OFD packet to send [14:44:45]OFD Sender: No OFD packet to send [14:44:50]OFD Sender: No OFD packet to send [14:44:55]OFD Sender: No OFD packet to send [14:45:00]OFD Sender: No OFD packet to send [14:45:05]OFD Sender: No OFD packet to send [14:45:10]OFD Sender: No OFD packet to send [14:45:15]OFD Sender: No OFD packet to send [14:45:20]OFD Sender: No OFD packet to send [14:45:25]OFD Sender: No OFD packet to send [14:45:30]OFD Sender: No OFD packet to send [14:45:35]OFD Sender: No OFD packet to send [14:45:40]OFD Sender: No OFD packet to send [14:45:45]OFD Sender: No OFD packet to send [14:45:50]OFD Sender: No OFD packet to send [14:45:55]OFD Sender: No OFD packet to send [14:46:00]OFD Sender: No OFD packet to send [14:46:05]OFD Sender: No OFD packet to send [14:46:10]OFD Sender: No OFD packet to send [14:46:15]OFD Sender: No OFD packet to send [14:46:20]OFD Sender: No OFD packet to send [14:46:25]OFD Sender: No OFD packet to send [14:46:30]OFD Sender: No OFD packet to send [14:46:35]OFD Sender: No OFD packet to send [14:46:40]OFD Sender: No OFD packet to send [14:46:45]OFD Sender: No OFD packet to send [14:46:50]OFD Sender: No OFD packet to send [14:46:55]OFD Sender: No OFD packet to send [14:47:00]OFD Sender: No OFD packet to send [14:47:05]OFD Sender: No OFD packet to send [14:47:10]OFD Sender: No OFD packet to send [14:47:15]OFD Sender: No OFD packet to send [14:47:20]OFD Sender: No OFD packet to send [14:47:25]OFD Sender: No OFD packet to send [14:47:30]OFD Sender: No OFD packet to send [14:47:35]OFD Sender: No OFD packet to send [14:47:40]OFD Sender: No OFD packet to send [14:47:45]OFD Sender: No OFD packet to send [14:47:50]OFD Sender: No OFD packet to send [14:47:55]OFD Sender: No OFD packet to send [14:48:00]OFD Sender: No OFD packet to send [14:48:05]OFD Sender: No OFD packet to send [14:48:10]OFD Sender: No OFD packet to send [14:48:15]OFD Sender: No OFD packet to send [14:48:20]OFD Sender: No OFD packet to send [14:48:25]OFD Sender: No OFD packet to send [14:48:30]OFD Sender: No OFD packet to send [14:48:35]OFD Sender: No OFD packet to send [14:48:40]OFD Sender: No OFD packet to send [14:48:45]OFD Sender: No OFD packet to send [14:48:50]OFD Sender: No OFD packet to send [14:48:55]OFD Sender: No OFD packet to send [14:49:00]OFD Sender: No OFD packet to send [14:49:05]OFD Sender: No OFD packet to send [14:49:10]OFD Sender: No OFD packet to send [14:49:15]OFD Sender: No OFD packet to send [14:49:20]OFD Sender: No OFD packet to send [14:49:25]OFD Sender: No OFD packet to send [14:49:30]OFD Sender: No OFD packet to send [14:49:35]OFD Sender: No OFD packet to send [14:49:40]OFD Sender: No OFD packet to send [14:49: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: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]OFD Sender: No OFD packet to send [14:52:10]OFD Sender: No OFD packet to send [14:52:15]OFD Sender: No OFD packet to send [14:52:20]OFD Sender: No OFD packet to send [14:52:25]OFD Sender: No OFD packet to send [14:52:30]OFD Sender: No OFD packet to send [14:52:35]OFD Sender: No OFD packet to send [14:52:40]OFD Sender: No OFD packet to send [14:52:45]OFD Sender: No OFD packet to send [14:52:50]OFD Sender: No OFD packet to send [14:52:55]OFD Sender: No OFD packet to send [14:53:00]OFD Sender: No OFD packet to send [14:53:05]OFD Sender: No OFD packet to send [14:53:10]OFD Sender: No OFD packet to send [14:53:15]OFD Sender: No OFD packet to send [14:53:20]OFD Sender: No OFD packet to send [14:53:25]OFD Sender: No OFD packet to send [14:53:30]OFD Sender: No OFD packet to send [14:53:35]OFD Sender: No OFD packet to send [14:53:40]OFD Sender: No OFD packet to send [14:53:45]OFD Sender: No OFD packet to send [14:53:50]OFD Sender: No OFD packet to send [14:53:55]OFD Sender: No OFD packet to send [14:54:00]OFD Sender: No OFD packet to send [14:54:05]OFD Sender: No OFD packet to send [14:54:10]OFD Sender: No OFD packet to send [14:54:15]OFD Sender: No OFD packet to send [14:54:20]OFD Sender: No OFD packet to send [14:54:25]OFD Sender: No OFD packet to send [14:54:30]OFD Sender: No OFD packet to send [14:54:35]OFD Sender: No OFD packet to send [14:54:40]OFD Sender: No OFD packet to send [14:54:45]OFD Sender: No OFD packet to send [14:54:46]accept exits with 9 [14:54:46]New connection [14:54:46]New thread 3067157860 created [14:54:46]Thread 3067014500 joined [14:54:46]Waiting for new connection... [14:54:46] Sock 9.Parse request [14:54:46]Sock 9.Check first char [14:54:46]Sock 9.First char is OK [14:54:46]request: POST /json_proto HTTP/1.0 [14:54:46]Method: POST [14:54:46]URL: /json_proto [14:54:46]Method is POST - this is cgi request [14:54:46]url: /json_proto [14:54:46]query_string will be loaded in cgi processing [14:54:46]execute_cgi json_proto POST (null) [14:54:46]execute_cgi path=json_proto method=POST [14:54:46]POST find Content-Length [14:54:46]Host: 172.17.48.198:8080 [14:54:46]Content-Length: 620 [14:54:46]Content-Type: application/json [14:54:46] [14:54:46]POST finish read [14:54:46]Found Content-Length = 620 [14:54:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184183", "tax_sys" : 0, "items" : [ { "code": "4640030091607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange", "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" ] } } [14:54:46]execute_script... [14:54:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184183", "tax_sys" : 0, "items" : [ { "code": "4640030091607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange", "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" ] } } [14:54:46]POST & json_proto [14:54:46]process_json_proto [14:54:46]json parsed OK: [14:54:46]protocol is kg_v1.0 [14:54:46]action value=close_receipt [14:54:46]process_action close_receipt [14:54:46]cmd_close_receipt [14:54:46]MH_GetDate [14:54:46]Write to MH i2c: F0 00 00 C5 4E 02 [14:54:46]Write i2c OK [14:54:46]MH_I2C_Read... [14:54:46]Read from MH i2c: F0 [14:54:46]MH_I2C_Read... [14:54:46]Read from MH i2c: F0 09 00 [14:54:46]MH_I2C_Read... [14:54:46]Read from MH i2c: F0 09 00 C5 4E 00 42 8F E4 65 CE C4 D4 65 F0 [14:54:46]GetLastDocTimeStamp 1709477019 [14:54:46]current date 1709477698 [14:54:46]FM_GetShiftState [14:54:46]SAM_PROTO_GetShiftState [14:54:46]wFMCommunicate request_size=4 [14:54:46]MH_SAM_APDU [14:54:46]CAPDU: 80 13 01 00 [14:54:46]Write to MH i2c: E2 08 00 C6 4E 80 13 01 00 00 00 00 00 91 [14:54:46]Write i2c OK [14:54:46]MH_I2C_Read... [14:54:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:54:46]Read from MH i2c: E2 [14:54:46]MH_I2C_Read... [14:54:46]Read from MH i2c: E2 0E 00 [14:54:46]MH_I2C_Read... [14:54:46]Read from MH i2c: E2 0E 00 C6 4E 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 C7 [14:54:46]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [14:54:46]wFMCommunicate OK [14:54:46]SAM_PROTO_GetShiftState done [14:54:46]FM_GetShiftState done [14:54:46]opened in 1709425694 [14:54:46]opened+sec_in_day 1709512094 [14:54:46]quantity*price = 13800 [14:54:46]sum+1 = 13801 [14:54:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 138.00 НСП 1% : 1.22 НДС 12% : 14.65 Наличными: 138.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 55 03.03.2024 14:54 Смена: 331 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 ФМ: 0000000000874796 ФД: 45218 ФПД: 114154036770032 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T145458&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45218&fm=114154036770032&tin=02508201610067®Number=0000000000090572&sum=13800 0 [14:54:47]StoreToDocumentArchive [14:54:47]shift 331 fd 45218 [14:54:47]save to /storage/0331/doc_00045218 [14:54:47]save last doc name /storage/0331/doc_00045218 to /storage/kkm_last_doc_name [14:54:47]save OK [14:54:47]Clear old archive folders... [14:54:47]ProcessDocumentItem done err = 0, tmpTLVsize=272 [14:54:47]tlvbuf is 01B73EF0 [14:54:47]SAM_PROTO_ClearQueue [14:54:47]wFMCommunicate request_size=4 [14:54:47]MH_SAM_APDU [14:54:47]CAPDU: 80 09 00 00 [14:54:47]Write to MH i2c: E2 08 00 D3 4E 80 09 00 00 00 00 00 00 93 [14:54:47]Write i2c OK [14:54:47]MH_I2C_Read... [14:54:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:54:47]Read from MH i2c: E2 [14:54:47]MH_I2C_Read... [14:54:47]Read from MH i2c: E2 03 00 [14:54:47]MH_I2C_Read... [14:54:47]Read from MH i2c: E2 03 00 D3 4E 00 90 00 95 [14:54:47]RAPDU: 90 00 [14:54:47]wFMCommunicate OK [14:54:47]SAM_PROTO_ClearQueue done [14:54:47]KKMCreateOFDPacket [14:54:47]OFDProtocolAddRootSTLVToBuf [14:54:47]FM_MakeSignedData [14:54:47]FM_MakeSignedData [14:54:47]SAM_PROTO_SignData [14:54:47]wFMCommunicate request_size=4 [14:54:47]MH_SAM_APDU [14:54:47]CAPDU: 80 0D 01 02 [14:54:47]Write to MH i2c: E2 08 00 D4 4E 80 0D 01 02 00 00 00 00 9B [14:54:47]Write i2c OK [14:54:47]MH_I2C_Read... [14:54:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:54:47]Read from MH i2c: E2 [14:54:47]MH_I2C_Read... [14:54:47]Read from MH i2c: E2 03 00 [14:54:47]MH_I2C_Read... [14:54:47]Read from MH i2c: E2 03 00 D4 4E 00 90 00 96 [14:54:47]RAPDU: 90 00 [14:54:47]wFMCommunicate OK [14:54:47]wFMCommunicate request_size=255 [14:54:47]MH_SAM_APDU [14:54:47]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 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 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 37 00 00 00 F4 03 04 00 42 8F E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 [14:54:47]Write to MH i2c: E2 02 01 D5 4E 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 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 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 37 00 00 00 F4 03 04 00 42 8F E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 00 00 5E [14:54:47]Write i2c OK [14:54:47]MH_I2C_Read... [14:54:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:54:47]Read from MH i2c: E2 [14:54:47]MH_I2C_Read... [14:54:47]Read from MH i2c: E2 03 00 [14:54:47]MH_I2C_Read... [14:54:47]Read from MH i2c: E2 03 00 D5 4E 00 90 00 97 [14:54:47]RAPDU: 90 00 [14:54:47]wFMCommunicate OK [14:54:47]wFMCommunicate request_size=31 [14:54:47]MH_SAM_APDU [14:54:47]CAPDU: 80 0D 02 02 1A 30 30 38 37 34 37 39 36 10 04 04 00 A2 B0 00 00 35 04 06 00 67 D2 8E CF B4 F0 [14:54:47]Write to MH i2c: E2 22 00 D6 4E 80 0D 02 02 1A 00 30 30 38 37 34 37 39 36 10 04 04 00 A2 B0 00 00 35 04 06 00 67 D2 8E CF B4 F0 00 00 5E [14:54:47]Write i2c OK [14:54:47]MH_I2C_Read... [14:54:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:54:47]Read from MH i2c: E2 [14:54:47]MH_I2C_Read... [14:54:47]Read from MH i2c: E2 03 00 [14:54:47]MH_I2C_Read... [14:54:47]Read from MH i2c: E2 03 00 D6 4E 00 90 00 98 [14:54:47]RAPDU: 90 00 [14:54:47]wFMCommunicate OK [14:54:47]wFMCommunicate request_size=4 [14:54:47]MH_SAM_APDU [14:54:47]CAPDU: 80 0D 03 02 [14:54:47]Write to MH i2c: E2 08 00 D7 4E 80 0D 03 02 00 00 00 00 A0 [14:54:47]Write i2c OK [14:54:47]MH_I2C_Read... [14:54:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:54:47]Read from MH i2c: E2 [14:54:47]MH_I2C_Read... [14:54:47]Read from MH i2c: E2 0B 00 [14:54:47]MH_I2C_Read... [14:54:47]Read from MH i2c: E2 0B 00 D7 4E 00 85 5F A3 10 90 A0 A4 E5 90 00 F1 [14:54:47]RAPDU: 85 5F A3 10 90 A0 A4 E5 90 00 [14:54:47]wFMCommunicate OK [14:54:47]SAM_PROTO_SignData done [14:54:47]FM_MakeSignedData done [14:54:47]CreateOFDProtocolMessage [14:54:47]wFMCommunicate request_size=4 [14:54:47]MH_SAM_APDU [14:54:47]CAPDU: 80 11 00 00 [14:54:47]Write to MH i2c: E2 08 00 D8 4E 80 11 00 00 00 00 00 00 A0 [14:54:47]Write i2c OK [14:54:47]MH_I2C_Read... [14:54:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:54:47]Read from MH i2c: E2 [14:54:47]MH_I2C_Read... [14:54:47]Read from MH i2c: E2 17 00 [14:54:47]MH_I2C_Read... [14:54:47]Read from MH i2c: E2 17 00 D8 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 FC [14:54:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [14:54:47]wFMCommunicate OK [14:54:47]CreateOFDProtocolMessage done [14:54:47]OFDSenderStorePacket 45218 [14:54:47]StoreOFDPacket docnum=45218 [14:54:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 24 01 00 00 B7 DD 1C 01 45 D7 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 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 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 37 00 00 00 F4 03 04 00 42 8F E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 A2 B0 00 00 35 04 06 00 67 D2 8E CF B4 F0 85 5F A3 10 90 A0 A4 E5 [14:54:47]CheckFolder [14:54:47]dirname=/storage/ofd_packets [14:54:47]CheckFolder done [14:54:47]ProducePacketName [14:54:47]name=ofd_packets/00045218 [14:54:47]NVStorageSaveData ofd_packets/00045218 [14:54:47]File name is /storage/ofd_packets/00045218 [14:54:47]Write 322 bytes [14:54:47]NVStorageSaveData done [14:54:47]OFDSenderStorePacket done [14:54:47]KKMCreateOFDPacket done [14:54:47]NVStorageSaveData kkm_last_timestamp [14:54:47]File name is /storage/kkm_last_timestamp [14:54:47]Write 4 bytes [14:54:47]NVStorageSaveData done [14:54:47]ExternCall_PrintAddStr [14:54:47]wPrintStart [14:54:47]Write to MH i2c: 01 00 00 D9 4E 27 [14:54:47]Write i2c OK [14:54:47]MH_I2C_Read... [14:54:47]Read from MH i2c: 01 [14:54:47]MH_I2C_Read... [14:54:47]Read from MH i2c: 01 07 00 [14:54:47]MH_I2C_Read... [14:54:47]Read from MH i2c: 01 07 00 D9 4E 00 00 00 00 00 FF 0F 3C [14:54:47]RasterBufferAndPrint [14:54:47]line Счет N : (3)184183 [14:54:47]line ИНН: 02508201610067 [14:54:47]line Контрольно-Кассовый Чек [14:54:47]line ПРОДАЖА [14:54:47]line Товар: 4640030091607 [14:54:47]line Сигареты ESSE Exchange [14:54:47]line 1.000 * 138.00 [14:54:47]line = 138.00 [14:54:47]line НДС 12% НСП 1% [14:54:47]line > о реализуемом товаре [14:54:47]line ИТОГО: 138.00 [14:54:47]line НСП 1% : 1.22 [14:54:47]line НДС 12% : 14.65 [14:54:47]line Наличными: 138.00 [14:54:47]line Безнал.: 0.00 [14:54:47]line Место: АЗС № 25 "Партнер Нефть" [14:54:47]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [14:54:47]line СНО: Общий режим [14:54:47]line Чек 55 03.03.2024 14:54 [14:54:47]line Смена: 331 ФФД: 1.0 [14:54:47]line ЗНМ: 0300000013 [14:54:47]line РНМ: 0000000000090572 [14:54:47]line Версия ККМ: 001 [14:54:47]line ФМ: 0000000000874796 [14:54:47]line ФД: 45218 [14:54:47]line ФПД: 114154036770032 [14:54:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T145458&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45218&fm=114154036770032&tin=02508201610067®Number=0000000000090572&sum=13800 [14:54:48]line 0 [14:54:48]OFD Sender: Processing packet 45218 [packets to send 17, broken 16] [14:54:48]ProducePacketName [14:54:48]name=ofd_packets/00045218 [14:54:48]OFD Sender: To server: pG, [14:54:48]CommunicateWithHost lk.salyk.kg:30040 [14:54:48]ConnectInit lk.salyk.kg [14:54:48]written 0, free lines is 4095 [14:54:48]Connected sock=10 [14:54:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 24 01 00 00 B7 DD 1C 01 45 D7 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 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 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 37 00 00 00 F4 03 04 00 42 8F E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 A2 B0 00 00 35 04 06 00 67 D2 8E CF B4 F0 85 5F A3 10 90 A0 A4 E5 [14:54:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 BC B0 47 00 AB 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 34 37 39 36 10 04 04 00 A2 B0 00 00 F4 03 04 00 06 3B E4 65 B6 04 01 00 00 B4 AB 22 1F CA FE CD B4 [14:54:48]CommunicateWithHost err = 0 [14:54:48]CheckOFDResponse [14:54:48]1017 (14) - 77093643461234 [14:54:48]1041 (16) - 0000000000874796 [14:54:48]1040 (4) - 45218 [14:54:48]1012 (4) - 03.03.2024 08:55 [14:54:48]1206 (1) - 0 [14:54:48]OFD Sender: Remove packet 45218 [14:54:48]ProducePacketName [14:54:48]name=ofd_packets/00045218 [14:54:48]NVStorageDeleteData [14:54:48]Write to MH i2c: 01 00 00 01 4F 50 [14:54:48]Write i2c OK [14:54:48]MH_I2C_Read... [14:54:48]Read from MH i2c: 01 [14:54:48]MH_I2C_Read... [14:54:48]Read from MH i2c: 01 07 00 [14:54:48]MH_I2C_Read... [14:54:48]Read from MH i2c: 01 07 00 01 4F 00 00 00 00 00 22 0D 86 [14:54:48]RasterBufferAndPrint [14:54:48]line [14:54:48]line [14:54:48]line [14:54:48]line [14:54:48]line [14:54:48]written 0, free lines is 3371 [14:54:48]MH_Cut [14:54:48]Write to MH i2c: D1 01 00 08 4F 01 29 [14:54:48]Write i2c OK [14:54:48]MH_I2C_Read... [14:54:48]Read from MH i2c: D1 [14:54:48]MH_I2C_Read... [14:54:48]Read from MH i2c: D1 01 00 [14:54:48]MH_I2C_Read... [14:54:48]Read from MH i2c: D1 01 00 08 4F 00 28 [14:54:48]Write to MH i2c: 01 00 00 09 4F 58 [14:54:48]Write i2c OK [14:54:48]MH_I2C_Read... [14:54:48]OFD Sender: No OFD packet to send [14:54:49]*** Cut start [14:54:49]*** Purtial cut [14:54:49]*** Stage 1: CUTSNS_PIN = 1 [14:54:51]Read from MH i2c: 01 [14:54:51]MH_I2C_Read... [14:54:51]*** Stop cut motor [14:54:51]*** Cut end [14:54:51]Read from MH i2c: 01 07 00 [14:54:51]MH_I2C_Read... [14:54:51]Read from MH i2c: 01 07 00 09 4F 00 00 00 00 00 FF 0F 6D [14:54:51]process_action close_receipt done [14:54:51]requested_data is exist [14:54:51]produce_requested_data [14:54:51]requested_item fm.sn is exist - process it [14:54:51]wFMCommunicate request_size=4 [14:54:51]MH_SAM_APDU [14:54:51]CAPDU: 80 11 00 00 [14:54:51]Write to MH i2c: E2 08 00 0A 4F 80 11 00 00 00 00 00 00 D3 [14:54:51]Write i2c OK [14:54:51]MH_I2C_Read... [14:54:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:54:51]Read from MH i2c: E2 [14:54:51]MH_I2C_Read... [14:54:51]Read from MH i2c: E2 17 00 [14:54:51]MH_I2C_Read... [14:54:51]Read from MH i2c: E2 17 00 0A 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 2F [14:54:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [14:54:51]wFMCommunicate OK [14:54:51]requested_item fd.num is exist - process it [14:54:51]SAM_PROTO_GetFieldsCounters [14:54:51]wFMCommunicate request_size=4 [14:54:51]MH_SAM_APDU [14:54:51]CAPDU: 80 13 00 00 [14:54:51]Write to MH i2c: E2 08 00 0B 4F 80 13 00 00 00 00 00 00 D6 [14:54:51]Write i2c OK [14:54:51]MH_I2C_Read... [14:54:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:54:51]Read from MH i2c: E2 [14:54:51]MH_I2C_Read... [14:54:51]Read from MH i2c: E2 62 00 [14:54:51]MH_I2C_Read... [14:54:51]Read from MH i2c: E2 62 00 0B 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 A2 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 41 [14:54:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 A2 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:54:51]wFMCommunicate OK [14:54:51]SAM_PROTO_GetFieldsCounters done [14:54:51]requested_item shift.num is exist - process it [14:54:51]requested_item shift.opened is exist - process it [14:54:51]req_shift_opened [14:54:51]FM_GetShiftState [14:54:51]SAM_PROTO_GetShiftState [14:54:51]wFMCommunicate request_size=4 [14:54:51]MH_SAM_APDU [14:54:51]CAPDU: 80 13 01 00 [14:54:51]Write to MH i2c: E2 08 00 0C 4F 80 13 01 00 00 00 00 00 D8 [14:54:51]Write i2c OK [14:54:51]MH_I2C_Read... [14:54:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:54:51]Read from MH i2c: E2 [14:54:51]MH_I2C_Read... [14:54:51]Read from MH i2c: E2 0E 00 [14:54:51]MH_I2C_Read... [14:54:51]Read from MH i2c: E2 0E 00 0C 4F 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 0E [14:54:51]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [14:54:51]wFMCommunicate OK [14:54:51]SAM_PROTO_GetShiftState done [14:54:51]FM_GetShiftState done [14:54:51]req_shift_opened done [14:54:51]requested_item shift.open_date is exist - process it [14:54:51]req_shift_open_date [14:54:51]req_shift_open_date done [14:54:51]produce_requested_data done [14:54:51]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45218,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [14:54:51]process_action_free close_receipt [14:54:51]json_value_free [14:54:51]json_value_free done [14:54:51]process_json_proto returns [14:54:51]Send response to host [14:54:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45218,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [14:54:51]free response buf [14:54:51]execute_script done [14:54:51]execute_script returns [14:54:51]free content buf [14:54:51]Sock 9.Close socket [14:54:51]Sock 9.Thread stoped [14:54:53]OFD Sender: No OFD packet to send [14:54:58]OFD Sender: No OFD packet to send [14:55:03]OFD Sender: No OFD packet to send [14:55:08]OFD Sender: No OFD packet to send [14:55:14]OFD Sender: No OFD packet to send [14:55:19]OFD Sender: No OFD packet to send [14:55:24]OFD Sender: No OFD packet to send [14:55:29]OFD Sender: No OFD packet to send [14:55:34]OFD Sender: No OFD packet to send [14:55:39]OFD Sender: No OFD packet to send [14:55:44]OFD Sender: No OFD packet to send [14:55:49]OFD Sender: No OFD packet to send [14:55:54]OFD Sender: No OFD packet to send [14:55:59]OFD Sender: No OFD packet to send [14:56:04]OFD Sender: No OFD packet to send [14:56:09]OFD Sender: No OFD packet to send [14:56:14]OFD Sender: No OFD packet to send [14:56:19]OFD Sender: No OFD packet to send [14:56:24]OFD Sender: No OFD packet to send [14:56:29]OFD Sender: No OFD packet to send [14:56:34]OFD Sender: No OFD packet to send [14:56:39]OFD Sender: No OFD packet to send [14:56:44]OFD Sender: No OFD packet to send [14:56:49]OFD Sender: No OFD packet to send [14:56:54]OFD Sender: No OFD packet to send [14:56:59]OFD Sender: No OFD packet to send [14:57:04]OFD Sender: No OFD packet to send [14:57:09]OFD Sender: No OFD packet to send [14:57:14]OFD Sender: No OFD packet to send [14:57:19]OFD Sender: No OFD packet to send [14:57:24]OFD Sender: No OFD packet to send [14:57:29]OFD Sender: No OFD packet to send [14:57:34]OFD Sender: No OFD packet to send [14:57:39]OFD Sender: No OFD packet to send [14:57:44]OFD Sender: No OFD packet to send [14:57:49]OFD Sender: No OFD packet to send [14:57:54]OFD Sender: No OFD packet to send [14:57:59]OFD Sender: No OFD packet to send [14:58:04]OFD Sender: No OFD packet to send [14:58:09]OFD Sender: No OFD packet to send [14:58:14]OFD Sender: No OFD packet to send [14:58:19]OFD Sender: No OFD packet to send [14:58:24]OFD Sender: No OFD packet to send [14:58:29]OFD Sender: No OFD packet to send [14:58:34]OFD Sender: No OFD packet to send [14:58:39]OFD Sender: No OFD packet to send [14:58:44]OFD Sender: No OFD packet to send [14:58:49]OFD Sender: No OFD packet to send [14:58:54]OFD Sender: No OFD packet to send [14:58:59]OFD Sender: No OFD packet to send [14:59:04]OFD Sender: No OFD packet to send [14:59:09]OFD Sender: No OFD packet to send [14:59:14]OFD Sender: No OFD packet to send [14:59:19]OFD Sender: No OFD packet to send [14:59:24]OFD Sender: No OFD packet to send [14:59:29]OFD Sender: No OFD packet to send [14:59:34]OFD Sender: No OFD packet to send [14:59:39]OFD Sender: No OFD packet to send [14:59:44]OFD Sender: No OFD packet to send [14:59:49]OFD Sender: No OFD packet to send [14:59:54]OFD Sender: No OFD packet to send [14:59:59]OFD Sender: No OFD packet to send [15:00:04]OFD Sender: No OFD packet to send [15:00:09]OFD Sender: No OFD packet to send [15:00:14]OFD Sender: No OFD packet to send [15:00:19]OFD Sender: No OFD packet to send [15:00:24]OFD Sender: No OFD packet to send [15:00:29]OFD Sender: No OFD packet to send [15:00:34]OFD Sender: No OFD packet to send [15:00:39]OFD Sender: No OFD packet to send [15:00:44]OFD Sender: No OFD packet to send [15:00:49]OFD Sender: No OFD packet to send [15:00:54]OFD Sender: No OFD packet to send [15:00:59]OFD Sender: No OFD packet to send [15:01:04]OFD Sender: No OFD packet to send [15:01:09]OFD Sender: No OFD packet to send [15:01:14]OFD Sender: No OFD packet to send [15:01:19]OFD Sender: No OFD packet to send [15:01:24]OFD Sender: No OFD packet to send [15:01:29]OFD Sender: No OFD packet to send [15:01:34]OFD Sender: No OFD packet to send [15:01:39]OFD Sender: No OFD packet to send [15:01:44]OFD Sender: No OFD packet to send [15:01:49]OFD Sender: No OFD packet to send [15:01:54]OFD Sender: No OFD packet to send [15:01:59]OFD Sender: No OFD packet to send [15:02:04]OFD Sender: No OFD packet to send [15:02:09]OFD Sender: No OFD packet to send [15:02:14]OFD Sender: No OFD packet to send [15:02:19]OFD Sender: No OFD packet to send [15:02:24]OFD Sender: No OFD packet to send [15:02:29]OFD Sender: No OFD packet to send [15:02:34]OFD Sender: No OFD packet to send [15:02:39]OFD Sender: No OFD packet to send [15:02:44]OFD Sender: No OFD packet to send [15:02:49]OFD Sender: No OFD packet to send [15:02:54]OFD Sender: No OFD packet to send [15:02:59]OFD Sender: No OFD packet to send [15:03:04]OFD Sender: No OFD packet to send [15:03:09]OFD Sender: No OFD packet to send [15:03:14]OFD Sender: No OFD packet to send [15:03:19]OFD Sender: No OFD packet to send [15:03:24]OFD Sender: No OFD packet to send [15:03:29]OFD Sender: No OFD packet to send [15:03:34]OFD Sender: No OFD packet to send [15:03:39]OFD Sender: No OFD packet to send [15:03:44]OFD Sender: No OFD packet to send [15:03:49]OFD Sender: No OFD packet to send [15:03:54]OFD Sender: No OFD packet to send [15:03:59]OFD Sender: No OFD packet to send [15:04:04]OFD Sender: No OFD packet to send [15:04:09]OFD Sender: No OFD packet to send [15:04:14]OFD Sender: No OFD packet to send [15:04:19]OFD Sender: No OFD packet to send [15:04:24]OFD Sender: No OFD packet to send [15:04:29]OFD Sender: No OFD packet to send [15:04:34]OFD Sender: No OFD packet to send [15:04:39]OFD Sender: No OFD packet to send [15:04:44]OFD Sender: No OFD packet to send [15:04:49]OFD Sender: No OFD packet to send [15:04:54]OFD Sender: No OFD packet to send [15:04:59]OFD Sender: No OFD packet to send [15:05:04]OFD Sender: No OFD packet to send [15:05:09]OFD Sender: No OFD packet to send [15:05:14]OFD Sender: No OFD packet to send [15:05:19]OFD Sender: No OFD packet to send [15:05:24]OFD Sender: No OFD packet to send [15:05:29]OFD Sender: No OFD packet to send [15:05:34]OFD Sender: No OFD packet to send [15:05:39]OFD Sender: No OFD packet to send [15:05:44]OFD Sender: No OFD packet to send [15:05:49]OFD Sender: No OFD packet to send [15:05:54]OFD Sender: No OFD packet to send [15:05:59]OFD Sender: No OFD packet to send [15:06:04]OFD Sender: No OFD packet to send [15:06:09]OFD Sender: No OFD packet to send [15:06:14]OFD Sender: No OFD packet to send [15:06:19]OFD Sender: No OFD packet to send [15:06:24]OFD Sender: No OFD packet to send [15:06:29]OFD Sender: No OFD packet to send [15:06:34]OFD Sender: No OFD packet to send [15:06:39]OFD Sender: No OFD packet to send [15:06:44]OFD Sender: No OFD packet to send [15:06:49]OFD Sender: No OFD packet to send [15:06:54]OFD Sender: No OFD packet to send [15:06:59]OFD Sender: No OFD packet to send [15:07:04]OFD Sender: No OFD packet to send [15:07:09]OFD Sender: No OFD packet to send [15:07:14]OFD Sender: No OFD packet to send [15:07:19]OFD Sender: No OFD packet to send [15:07:24]OFD Sender: No OFD packet to send [15:07:29]OFD Sender: No OFD packet to send [15:07:34]OFD Sender: No OFD packet to send [15:07:39]OFD Sender: No OFD packet to send [15:07:44]OFD Sender: No OFD packet to send [15:07:49]OFD Sender: No OFD packet to send [15:07:54]OFD Sender: No OFD packet to send [15:07:59]OFD Sender: No OFD packet to send [15:08:04]OFD Sender: No OFD packet to send [15:08:09]OFD Sender: No OFD packet to send [15:08:14]OFD Sender: No OFD packet to send [15:08:19]OFD Sender: No OFD packet to send [15:08:24]OFD Sender: No OFD packet to send [15:08:29]OFD Sender: No OFD packet to send [15:08:34]OFD Sender: No OFD packet to send [15:08:39]OFD Sender: No OFD packet to send [15:08:44]OFD Sender: No OFD packet to send [15:08:49]OFD Sender: No OFD packet to send [15:08:54]OFD Sender: No OFD packet to send [15:08:59]OFD Sender: No OFD packet to send [15:09:04]OFD Sender: No OFD packet to send [15:09:09]OFD Sender: No OFD packet to send [15:09:14]OFD Sender: No OFD packet to send [15:09:19]OFD Sender: No OFD packet to send [15:09:24]OFD Sender: No OFD packet to send [15:09:29]OFD Sender: No OFD packet to send [15:09:34]OFD Sender: No OFD packet to send [15:09:39]OFD Sender: No OFD packet to send [15:09:44]OFD Sender: No OFD packet to send [15:09:49]OFD Sender: No OFD packet to send [15:09:54]OFD Sender: No OFD packet to send [15:09:59]OFD Sender: No OFD packet to send [15:10:04]OFD Sender: No OFD packet to send [15:10:09]OFD Sender: No OFD packet to send [15:10: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]OFD Sender: No OFD packet to send [15:12:04]OFD Sender: No OFD packet to send [15:12:09]OFD Sender: No OFD packet to send [15:12:14]OFD Sender: No OFD packet to send [15:12:19]OFD Sender: No OFD packet to send [15:12:24]OFD Sender: No OFD packet to send [15:12:29]OFD Sender: No OFD packet to send [15:12:34]OFD Sender: No OFD packet to send [15:12:39]OFD Sender: No OFD packet to send [15:12:44]OFD Sender: No OFD packet to send [15:12:49]OFD Sender: No OFD packet to send [15:12:54]OFD Sender: No OFD packet to send [15:12:59]OFD Sender: No OFD packet to send [15:13:04]OFD Sender: No OFD packet to send [15:13:09]OFD Sender: No OFD packet to send [15:13:14]OFD Sender: No OFD packet to send [15:13:19]OFD Sender: No OFD packet to send [15:13:24]OFD Sender: No OFD packet to send [15:13:29]OFD Sender: No OFD packet to send [15:13:34]OFD Sender: No OFD packet to send [15:13:39]OFD Sender: No OFD packet to send [15:13:44]OFD Sender: No OFD packet to send [15:13:49]OFD Sender: No OFD packet to send [15:13:54]OFD Sender: No OFD packet to send [15:13:59]OFD Sender: No OFD packet to send [15:14:04]OFD Sender: No OFD packet to send [15:14:09]OFD Sender: No OFD packet to send [15:14:14]OFD Sender: No OFD packet to send [15:14:19]OFD Sender: No OFD packet to send [15:14:24]OFD Sender: No OFD packet to send [15:14:29]OFD Sender: No OFD packet to send [15:14:34]OFD Sender: No OFD packet to send [15:14:39]OFD Sender: No OFD packet to send [15:14:44]OFD Sender: No OFD packet to send [15:14:49]OFD Sender: No OFD packet to send [15:14:54]OFD Sender: No OFD packet to send [15:14:59]OFD Sender: No OFD packet to send [15:15:04]OFD Sender: No OFD packet to send [15:15:09]OFD Sender: No OFD packet to send [15:15:14]OFD Sender: No OFD packet to send [15:15:19]OFD Sender: No OFD packet to send [15:15:24]OFD Sender: No OFD packet to send [15:15:29]OFD Sender: No OFD packet to send [15:15:34]OFD Sender: No OFD packet to send [15:15:39]OFD Sender: No OFD packet to send [15:15:45]OFD Sender: No OFD packet to send [15:15:50]OFD Sender: No OFD packet to send [15:15:55]OFD Sender: No OFD packet to send [15:16:00]OFD Sender: No OFD packet to send [15:16:05]OFD Sender: No OFD packet to send [15:16:10]OFD Sender: No OFD packet to send [15:16:15]OFD Sender: No OFD packet to send [15:16: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:55]OFD Sender: No OFD packet to send [15:17:00]OFD Sender: No OFD packet to send [15:17:05]OFD Sender: No OFD packet to send [15:17:10]OFD Sender: No OFD packet to send [15:17:15]OFD Sender: No OFD packet to send [15:17:20]OFD Sender: No OFD packet to send [15:17:25]OFD Sender: No OFD packet to send [15:17:30]OFD Sender: No OFD packet to send [15:17:35]OFD Sender: No OFD packet to send [15:17:40]OFD Sender: No OFD packet to send [15:17:45]OFD Sender: No OFD packet to send [15:17:50]OFD Sender: No OFD packet to send [15:17:55]OFD Sender: No OFD packet to send [15:18:00]OFD Sender: No OFD packet to send [15:18:05]OFD Sender: No OFD packet to send [15:18:10]OFD Sender: No OFD packet to send [15:18:15]OFD Sender: No OFD packet to send [15:18:20]OFD Sender: No OFD packet to send [15:18:25]OFD Sender: No OFD packet to send [15:18:30]OFD Sender: No OFD packet to send [15:18:35]OFD Sender: No OFD packet to send [15:18:40]OFD Sender: No OFD packet to send [15:18:45]OFD Sender: No OFD packet to send [15:18:50]OFD Sender: No OFD packet to send [15:18:55]OFD Sender: No OFD packet to send [15:19:00]OFD Sender: No OFD packet to send [15:19:05]OFD Sender: No OFD packet to send [15:19:10]OFD Sender: No OFD packet to send [15:19:15]OFD Sender: No OFD packet to send [15:19:20]OFD Sender: No OFD packet to send [15:19:25]OFD Sender: No OFD packet to send [15:19:30]OFD Sender: No OFD packet to send [15:19:35]OFD Sender: No OFD packet to send [15:19:40]OFD Sender: No OFD packet to send [15:19:45]OFD Sender: No OFD packet to send [15:19:50]OFD Sender: No OFD packet to send [15:19:55]OFD Sender: No OFD packet to send [15:20:00]OFD Sender: No OFD packet to send [15:20:05]OFD Sender: No OFD packet to send [15:20:10]OFD Sender: No OFD packet to send [15:20:15]OFD Sender: No OFD packet to send [15:20:20]OFD Sender: No OFD packet to send [15:20:25]OFD Sender: No OFD packet to send [15:20:30]OFD Sender: No OFD packet to send [15:20:35]OFD Sender: No OFD packet to send [15:20:40]OFD Sender: No OFD packet to send [15:20:45]OFD Sender: No OFD packet to send [15:20:50]OFD Sender: No OFD packet to send [15:20:55]OFD Sender: No OFD packet to send [15:21:00]OFD Sender: No OFD packet to send [15:21:05]OFD Sender: No OFD packet to send [15:21:10]OFD Sender: No OFD packet to send [15:21:15]OFD Sender: No OFD packet to send [15:21:20]OFD Sender: No OFD packet to send [15:21:25]OFD Sender: No OFD packet to send [15:21:30]OFD Sender: No OFD packet to send [15:21:35]OFD Sender: No OFD packet to send [15:21:40]OFD Sender: No OFD packet to send [15:21:45]OFD Sender: No OFD packet to send [15:21:50]OFD Sender: No OFD packet to send [15:21:55]OFD Sender: No OFD packet to send [15:22:00]OFD Sender: No OFD packet to send [15:22:05]OFD Sender: No OFD packet to send [15:22:10]OFD Sender: No OFD packet to send [15:22:15]OFD Sender: No OFD packet to send [15:22:20]OFD Sender: No OFD packet to send [15:22:25]OFD Sender: No OFD packet to send [15:22:30]OFD Sender: No OFD packet to send [15:22:35]OFD Sender: No OFD packet to send [15:22:40]OFD Sender: No OFD packet to send [15:22:45]OFD Sender: No OFD packet to send [15:22:48]accept exits with 7 [15:22:48]New connection [15:22:48]New thread 3067014500 created [15:22:48]Thread 3067157860 joined [15:22:48]Waiting for new connection... [15:22:48] Sock 7.Parse request [15:22:48]Sock 7.Check first char [15:22:48]Sock 7.First char is OK [15:22:48]request: POST /json_proto HTTP/1.0 [15:22:48]Method: POST [15:22:48]URL: /json_proto [15:22:48]Method is POST - this is cgi request [15:22:48]url: /json_proto [15:22:48]query_string will be loaded in cgi processing [15:22:48]execute_cgi json_proto POST (null) [15:22:48]execute_cgi path=json_proto method=POST [15:22:48]POST find Content-Length [15:22:48]Host: 172.17.48.198:8080 [15:22:48]Content-Length: 762 [15:22:48]Content-Type: application/json [15:22:48] [15:22:48]POST finish read [15:22:48]Found Content-Length = 762 [15:22:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184184", "tax_sys" : 0, "items" : [ { "code": "50173808", "name": "\u0416\u0435\u0432 Orbit Sweet Mint", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:22:48]execute_script... [15:22:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184184", "tax_sys" : 0, "items" : [ { "code": "50173808", "name": "\u0416\u0435\u0432 Orbit Sweet Mint", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:22:48]POST & json_proto [15:22:48]process_json_proto [15:22:48]json parsed OK: [15:22:48]protocol is kg_v1.0 [15:22:48]action value=close_receipt [15:22:48]process_action close_receipt [15:22:48]cmd_close_receipt [15:22:48]MH_GetDate [15:22:48]Write to MH i2c: F0 00 00 0D 4F 4B [15:22:48]Write i2c OK [15:22:48]MH_I2C_Read... [15:22:48]Read from MH i2c: F0 [15:22:48]MH_I2C_Read... [15:22:48]Read from MH i2c: F0 09 00 [15:22:48]MH_I2C_Read... [15:22:48]Read from MH i2c: F0 09 00 0D 4F 00 D4 95 E4 65 CE C4 D4 65 D1 [15:22:48]GetLastDocTimeStamp 1709477698 [15:22:48]current date 1709479380 [15:22:48]FM_GetShiftState [15:22:48]SAM_PROTO_GetShiftState [15:22:48]wFMCommunicate request_size=4 [15:22:48]MH_SAM_APDU [15:22:48]CAPDU: 80 13 01 00 [15:22:48]Write to MH i2c: E2 08 00 0E 4F 80 13 01 00 00 00 00 00 DA [15:22:48]Write i2c OK [15:22:48]MH_I2C_Read... [15:22:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:22:48]Read from MH i2c: E2 [15:22:48]MH_I2C_Read... [15:22:48]Read from MH i2c: E2 0E 00 [15:22:48]MH_I2C_Read... [15:22:48]Read from MH i2c: E2 0E 00 0E 4F 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 10 [15:22:48]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [15:22:48]wFMCommunicate OK [15:22:48]SAM_PROTO_GetShiftState done [15:22:48]FM_GetShiftState done [15:22:48]opened in 1709425694 [15:22:48]opened+sec_in_day 1709512094 [15:22:48]quantity*price = 4000 [15:22:48]sum+1 = 4001 [15:22:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 40.00 НСП 1% : 0.35 НДС 12% : 4.25 Наличными: 0.00 Безнал.: 40.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 56 03.03.2024 15:23 Смена: 331 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874796 ФД: 45219 ФПД: 54274950687009 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T152301&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45219&fm=54274950687009&tin=02508201610067®Number=0000000000090572&sum=4000 0 [15:22:50]StoreToDocumentArchive [15:22:50]shift 331 fd 45219 [15:22:50]save to /storage/0331/doc_00045219 [15:22:50]save last doc name /storage/0331/doc_00045219 to /storage/kkm_last_doc_name [15:22:50]save OK [15:22:50]Clear old archive folders... [15:22:50]ProcessDocumentItem done err = 0, tmpTLVsize=260 [15:22:50]tlvbuf is 01B04FF0 [15:22:50]SAM_PROTO_ClearQueue [15:22:50]wFMCommunicate request_size=4 [15:22:50]MH_SAM_APDU [15:22:50]CAPDU: 80 09 00 00 [15:22:50]Write to MH i2c: E2 08 00 1B 4F 80 09 00 00 00 00 00 00 DC [15:22:50]Write i2c OK [15:22:50]MH_I2C_Read... [15:22:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:22:50]Read from MH i2c: E2 [15:22:50]MH_I2C_Read... [15:22:50]Read from MH i2c: E2 03 00 [15:22:50]MH_I2C_Read... [15:22:50]Read from MH i2c: E2 03 00 1B 4F 00 90 00 DE [15:22:50]RAPDU: 90 00 [15:22:50]wFMCommunicate OK [15:22:50]SAM_PROTO_ClearQueue done [15:22:50]KKMCreateOFDPacket [15:22:50]OFDProtocolAddRootSTLVToBuf [15:22:50]FM_MakeSignedData [15:22:50]FM_MakeSignedData [15:22:50]SAM_PROTO_SignData [15:22:50]wFMCommunicate request_size=4 [15:22:50]MH_SAM_APDU [15:22:50]CAPDU: 80 0D 01 02 [15:22:50]Write to MH i2c: E2 08 00 1C 4F 80 0D 01 02 00 00 00 00 E4 [15:22:50]Write i2c OK [15:22:50]MH_I2C_Read... [15:22:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:22:50]Read from MH i2c: E2 [15:22:50]MH_I2C_Read... [15:22:50]Read from MH i2c: E2 03 00 [15:22:50]MH_I2C_Read... [15:22:50]Read from MH i2c: E2 03 00 1C 4F 00 90 00 DF [15:22:50]RAPDU: 90 00 [15:22:50]wFMCommunicate OK [15:22:50]wFMCommunicate request_size=255 [15:22:50]MH_SAM_APDU [15:22:50]CAPDU: 80 0D 02 02 FA 03 00 04 01 1E 04 01 00 01 23 04 56 00 8A 04 08 00 35 30 31 37 33 38 30 38 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 53 77 65 65 74 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 0F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 D5 95 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 [15:22:50]Write to MH i2c: E2 02 01 1D 4F 80 0D 02 02 FA 00 03 00 04 01 1E 04 01 00 01 23 04 56 00 8A 04 08 00 35 30 31 37 33 38 30 38 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 53 77 65 65 74 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 0F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 D5 95 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 00 00 1C [15:22:50]Write i2c OK [15:22:50]MH_I2C_Read... [15:22:50]OFD Sender: No OFD packet to send [15:22:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:22:50]Read from MH i2c: E2 [15:22:50]MH_I2C_Read... [15:22:50]Read from MH i2c: E2 03 00 [15:22:50]MH_I2C_Read... [15:22:50]Read from MH i2c: E2 03 00 1D 4F 00 90 00 E0 [15:22:50]RAPDU: 90 00 [15:22:50]wFMCommunicate OK [15:22:50]wFMCommunicate request_size=19 [15:22:50]MH_SAM_APDU [15:22:50]CAPDU: 80 0D 02 02 0E A3 B0 00 00 35 04 06 00 31 5C DF 27 E9 21 [15:22:50]Write to MH i2c: E2 16 00 1E 4F 80 0D 02 02 0E 00 A3 B0 00 00 35 04 06 00 31 5C DF 27 E9 21 00 00 32 [15:22:50]Write i2c OK [15:22:50]MH_I2C_Read... [15:22:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:22:50]Read from MH i2c: E2 [15:22:50]MH_I2C_Read... [15:22:50]Read from MH i2c: E2 03 00 [15:22:50]MH_I2C_Read... [15:22:50]Read from MH i2c: E2 03 00 1E 4F 00 90 00 E1 [15:22:50]RAPDU: 90 00 [15:22:50]wFMCommunicate OK [15:22:50]wFMCommunicate request_size=4 [15:22:50]MH_SAM_APDU [15:22:50]CAPDU: 80 0D 03 02 [15:22:50]Write to MH i2c: E2 08 00 1F 4F 80 0D 03 02 00 00 00 00 E9 [15:22:50]Write i2c OK [15:22:50]MH_I2C_Read... [15:22:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:22:50]Read from MH i2c: E2 [15:22:50]MH_I2C_Read... [15:22:50]Read from MH i2c: E2 0B 00 [15:22:50]MH_I2C_Read... [15:22:50]Read from MH i2c: E2 0B 00 1F 4F 00 B9 2A AF D7 BD 88 AA F1 90 00 33 [15:22:50]RAPDU: B9 2A AF D7 BD 88 AA F1 90 00 [15:22:50]wFMCommunicate OK [15:22:50]SAM_PROTO_SignData done [15:22:50]FM_MakeSignedData done [15:22:50]CreateOFDProtocolMessage [15:22:50]wFMCommunicate request_size=4 [15:22:50]MH_SAM_APDU [15:22:50]CAPDU: 80 11 00 00 [15:22:50]Write to MH i2c: E2 08 00 20 4F 80 11 00 00 00 00 00 00 E9 [15:22:50]Write i2c OK [15:22:50]MH_I2C_Read... [15:22:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:22:50]Read from MH i2c: E2 [15:22:50]MH_I2C_Read... [15:22:50]Read from MH i2c: E2 17 00 [15:22:50]MH_I2C_Read... [15:22:50]Read from MH i2c: E2 17 00 20 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 45 [15:22:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [15:22:50]wFMCommunicate OK [15:22:50]CreateOFDProtocolMessage done [15:22:50]OFDSenderStorePacket 45219 [15:22:50]StoreOFDPacket docnum=45219 [15:22:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 18 01 00 00 83 16 10 01 40 7B 5A 03 01 00 03 00 04 01 1E 04 01 00 01 23 04 56 00 8A 04 08 00 35 30 31 37 33 38 30 38 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 53 77 65 65 74 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 0F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 D5 95 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 A3 B0 00 00 35 04 06 00 31 5C DF 27 E9 21 B9 2A AF D7 BD 88 AA F1 [15:22:50]CheckFolder [15:22:50]dirname=/storage/ofd_packets [15:22:50]CheckFolder done [15:22:50]ProducePacketName [15:22:50]name=ofd_packets/00045219 [15:22:50]NVStorageSaveData ofd_packets/00045219 [15:22:50]File name is /storage/ofd_packets/00045219 [15:22:50]Write 310 bytes [15:22:50]NVStorageSaveData done [15:22:50]OFDSenderStorePacket done [15:22:50]KKMCreateOFDPacket done [15:22:50]NVStorageSaveData kkm_last_timestamp [15:22:50]File name is /storage/kkm_last_timestamp [15:22:50]Write 4 bytes [15:22:50]NVStorageSaveData done [15:22:50]ExternCall_PrintAddStr [15:22:50]wPrintStart [15:22:50]Write to MH i2c: 01 00 00 21 4F 70 [15:22:50]Write i2c OK [15:22:50]MH_I2C_Read... [15:22:50]Read from MH i2c: 01 [15:22:50]MH_I2C_Read... [15:22:50]Read from MH i2c: 01 07 00 [15:22:50]MH_I2C_Read... [15:22:50]Read from MH i2c: 01 07 00 21 4F 00 00 00 00 00 FF 0F 85 [15:22:50]RasterBufferAndPrint [15:22:50]line Счет N : (3)184184 [15:22:50]line ИНН: 02508201610067 [15:22:50]line Контрольно-Кассовый Чек [15:22:50]line ПРОДАЖА [15:22:50]line Товар: 50173808 [15:22:50]line Жев Orbit Sweet Mint [15:22:50]line 1.000 * 40.00 [15:22:50]line = 40.00 [15:22:50]line НДС 12% НСП 1% [15:22:50]line > о реализуемом товаре [15:22:50]line ИТОГО: 40.00 [15:22:50]line НСП 1% : 0.35 [15:22:50]line НДС 12% : 4.25 [15:22:50]line Наличными: 0.00 [15:22:50]line Безнал.: 40.00 [15:22:50]line Место: АЗС № 25 "Партнер Нефть" [15:22:50]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [15:22:50]line СНО: Общий режим [15:22:50]line Чек 56 03.03.2024 15:23 [15:22:50]line Смена: 331 ФФД: 1.0 [15:22:50]line ЗНМ: 0300000013 [15:22:50]line РНМ: 0000000000090572 [15:22:50]line Версия ККМ: 001 [15:22:50]line Платежная система: Бакай Банк [15:22:50]line ФМ: 0000000000874796 [15:22:50]line ФД: 45219 [15:22:50]line ФПД: 54274950687009 [15:22:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T152301&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45219&fm=54274950687009&tin=02508201610067®Number=0000000000090572&sum=4000 [15:22:50]line 0 [15:22:50]OFD Sender: Processing packet 45219 [packets to send 17, broken 16] [15:22:50]ProducePacketName [15:22:50]name=ofd_packets/00045219 [15:22:50]OFD Sender: To server: pG, [15:22:51]CommunicateWithHost lk.salyk.kg:30040 [15:22:51]ConnectInit lk.salyk.kg [15:22:51]written 0, free lines is 4095 [15:22:51]Connected sock=10 [15:22:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 18 01 00 00 83 16 10 01 40 7B 5A 03 01 00 03 00 04 01 1E 04 01 00 01 23 04 56 00 8A 04 08 00 35 30 31 37 33 38 30 38 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 53 77 65 65 74 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 0F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 D5 95 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 A3 B0 00 00 35 04 06 00 31 5C DF 27 E9 21 B9 2A AF D7 BD 88 AA F1 [15:22:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 BD F9 47 00 3A 61 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 A3 B0 00 00 F4 03 04 00 99 41 E4 65 B6 04 01 00 00 E8 E3 64 36 3D 48 2B 70 [15:22:51]CommunicateWithHost err = 0 [15:22:51]CheckOFDResponse [15:22:51]1017 (14) - 77093643461234 [15:22:51]1041 (16) - 0000000000874796 [15:22:51]1040 (4) - 45219 [15:22:51]1012 (4) - 03.03.2024 09:23 [15:22:51]1206 (1) - 0 [15:22:51]OFD Sender: Remove packet 45219 [15:22:51]ProducePacketName [15:22:51]name=ofd_packets/00045219 [15:22:51]NVStorageDeleteData [15:22:51]Write to MH i2c: 01 00 00 4B 4F 9A [15:22:51]Write i2c OK [15:22:51]MH_I2C_Read... [15:22:51]Read from MH i2c: 01 [15:22:51]MH_I2C_Read... [15:22:51]Read from MH i2c: 01 07 00 [15:22:51]MH_I2C_Read... [15:22:51]Read from MH i2c: 01 07 00 4B 4F 00 00 00 00 00 F2 0C 9F [15:22:51]RasterBufferAndPrint [15:22:51]line [15:22:51]line [15:22:51]line [15:22:51]line [15:22:51]line [15:22:51]written 0, free lines is 3321 [15:22:51]MH_Cut [15:22:51]Write to MH i2c: D1 01 00 52 4F 01 73 [15:22:51]Write i2c OK [15:22:51]MH_I2C_Read... [15:22:51]Read from MH i2c: D1 [15:22:51]MH_I2C_Read... [15:22:51]Read from MH i2c: D1 01 00 [15:22:51]MH_I2C_Read... [15:22:51]Read from MH i2c: D1 01 00 52 4F 00 72 [15:22:51]Write to MH i2c: 01 00 00 53 4F A2 [15:22:51]Write i2c OK [15:22:51]MH_I2C_Read... [15:22:51]OFD Sender: No OFD packet to send [15:22:52]*** Cut start [15:22:52]*** Purtial cut [15:22:52]*** Stage 1: CUTSNS_PIN = 1 [15:22:54]Read from MH i2c: 01 [15:22:54]MH_I2C_Read... [15:22:54]*** Stop cut motor [15:22:54]*** Cut end [15:22:54]Read from MH i2c: 01 07 00 [15:22:54]MH_I2C_Read... [15:22:54]Read from MH i2c: 01 07 00 53 4F 00 00 00 00 00 FF 0F B7 [15:22:54]process_action close_receipt done [15:22:54]requested_data is exist [15:22:54]produce_requested_data [15:22:54]requested_item fm.sn is exist - process it [15:22:54]wFMCommunicate request_size=4 [15:22:54]MH_SAM_APDU [15:22:54]CAPDU: 80 11 00 00 [15:22:54]Write to MH i2c: E2 08 00 54 4F 80 11 00 00 00 00 00 00 1D [15:22:54]Write i2c OK [15:22:54]MH_I2C_Read... [15:22:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:22:54]Read from MH i2c: E2 [15:22:54]MH_I2C_Read... [15:22:54]Read from MH i2c: E2 17 00 [15:22:54]MH_I2C_Read... [15:22:54]Read from MH i2c: E2 17 00 54 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 79 [15:22:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [15:22:54]wFMCommunicate OK [15:22:54]requested_item fd.num is exist - process it [15:22:54]SAM_PROTO_GetFieldsCounters [15:22:54]wFMCommunicate request_size=4 [15:22:54]MH_SAM_APDU [15:22:54]CAPDU: 80 13 00 00 [15:22:54]Write to MH i2c: E2 08 00 55 4F 80 13 00 00 00 00 00 00 20 [15:22:54]Write i2c OK [15:22:54]MH_I2C_Read... [15:22:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:22:54]Read from MH i2c: E2 [15:22:54]MH_I2C_Read... [15:22:54]Read from MH i2c: E2 62 00 [15:22:54]MH_I2C_Read... [15:22:54]Read from MH i2c: E2 62 00 55 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 A3 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 8F [15:22:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 A3 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:22:54]wFMCommunicate OK [15:22:54]SAM_PROTO_GetFieldsCounters done [15:22:54]requested_item shift.num is exist - process it [15:22:54]requested_item shift.opened is exist - process it [15:22:54]req_shift_opened [15:22:54]FM_GetShiftState [15:22:54]SAM_PROTO_GetShiftState [15:22:54]wFMCommunicate request_size=4 [15:22:54]MH_SAM_APDU [15:22:54]CAPDU: 80 13 01 00 [15:22:54]Write to MH i2c: E2 08 00 56 4F 80 13 01 00 00 00 00 00 22 [15:22:54]Write i2c OK [15:22:54]MH_I2C_Read... [15:22:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:22:54]Read from MH i2c: E2 [15:22:54]MH_I2C_Read... [15:22:54]Read from MH i2c: E2 0E 00 [15:22:54]MH_I2C_Read... [15:22:54]Read from MH i2c: E2 0E 00 56 4F 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 58 [15:22:54]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [15:22:54]wFMCommunicate OK [15:22:54]SAM_PROTO_GetShiftState done [15:22:54]FM_GetShiftState done [15:22:54]req_shift_opened done [15:22:54]requested_item shift.open_date is exist - process it [15:22:54]req_shift_open_date [15:22:54]req_shift_open_date done [15:22:54]produce_requested_data done [15:22:54]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45219,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [15:22:54]process_action_free close_receipt [15:22:54]json_value_free [15:22:54]json_value_free done [15:22:54]process_json_proto returns [15:22:54]Send response to host [15:22:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45219,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [15:22:54]free response buf [15:22:54]execute_script done [15:22:54]execute_script returns [15:22:54]free content buf [15:22:54]Sock 7.Close socket [15:22:54]Sock 7.Thread stoped [15:22:56]OFD Sender: No OFD packet to send [15:23:01]OFD Sender: No OFD packet to send [15:23:06]OFD Sender: No OFD packet to send [15:23:11]OFD Sender: No OFD packet to send [15:23:16]OFD Sender: No OFD packet to send [15:23:21]OFD Sender: No OFD packet to send [15:23:26]OFD Sender: No OFD packet to send [15:23:31]OFD Sender: No OFD packet to send [15:23:36]OFD Sender: No OFD packet to send [15:23:41]OFD Sender: No OFD packet to send [15:23:46]OFD Sender: No OFD packet to send [15:23:51]OFD Sender: No OFD packet to send [15:23:56]OFD Sender: No OFD packet to send [15:24:01]OFD Sender: No OFD packet to send [15:24:06]OFD Sender: No OFD packet to send [15:24:11]OFD Sender: No OFD packet to send [15:24:16]OFD Sender: No OFD packet to send [15:24:21]OFD Sender: No OFD packet to send [15:24:26]OFD Sender: No OFD packet to send [15:24:31]OFD Sender: No OFD packet to send [15:24:36]OFD Sender: No OFD packet to send [15:24:41]OFD Sender: No OFD packet to send [15:24:46]OFD Sender: No OFD packet to send [15:24:51]OFD Sender: No OFD packet to send [15:24:56]OFD Sender: No OFD packet to send [15:25:01]OFD Sender: No OFD packet to send [15:25:06]OFD Sender: No OFD packet to send [15:25:11]OFD Sender: No OFD packet to send [15:25:16]OFD Sender: No OFD packet to send [15:25:21]OFD Sender: No OFD packet to send [15:25:26]OFD Sender: No OFD packet to send [15:25:31]OFD Sender: No OFD packet to send [15:25:36]OFD Sender: No OFD packet to send [15:25:41]OFD Sender: No OFD packet to send [15:25:46]OFD Sender: No OFD packet to send [15:25:51]OFD Sender: No OFD packet to send [15:25:56]OFD Sender: No OFD packet to send [15:26:01]OFD Sender: No OFD packet to send [15:26:06]OFD Sender: No OFD packet to send [15:26:11]OFD Sender: No OFD packet to send [15:26:16]OFD Sender: No OFD packet to send [15:26:21]OFD Sender: No OFD packet to send [15:26:26]OFD Sender: No OFD packet to send [15:26:31]OFD Sender: No OFD packet to send [15:26:36]OFD Sender: No OFD packet to send [15:26:41]OFD Sender: No OFD packet to send [15:26:46]OFD Sender: No OFD packet to send [15:26:51]OFD Sender: No OFD packet to send [15:26:56]OFD Sender: No OFD packet to send [15:27:01]OFD Sender: No OFD packet to send [15:27:06]OFD Sender: No OFD packet to send [15:27:11]OFD Sender: No OFD packet to send [15:27:16]OFD Sender: No OFD packet to send [15:27:21]OFD Sender: No OFD packet to send [15:27:26]OFD Sender: No OFD packet to send [15:27:32]OFD Sender: No OFD packet to send [15:27:37]OFD Sender: No OFD packet to send [15:27:42]OFD Sender: No OFD packet to send [15:27:47]OFD Sender: No OFD packet to send [15:27:52]OFD Sender: No OFD packet to send [15:27:57]OFD Sender: No OFD packet to send [15:28:02]OFD Sender: No OFD packet to send [15:28:07]OFD Sender: No OFD packet to send [15:28:12]OFD Sender: No OFD packet to send [15:28:17]OFD Sender: No OFD packet to send [15:28:22]OFD Sender: No OFD packet to send [15:28:27]OFD Sender: No OFD packet to send [15:28:32]OFD Sender: No OFD packet to send [15:28:37]OFD Sender: No OFD packet to send [15:28:42]OFD Sender: No OFD packet to send [15:28:47]OFD Sender: No OFD packet to send [15:28:52]OFD Sender: No OFD packet to send [15:28:57]OFD Sender: No OFD packet to send [15:29:02]OFD Sender: No OFD packet to send [15:29:07]OFD Sender: No OFD packet to send [15:29:12]OFD Sender: No OFD packet to send [15:29:17]OFD Sender: No OFD packet to send [15:29:22]OFD Sender: No OFD packet to send [15:29:27]OFD Sender: No OFD packet to send [15:29:32]OFD Sender: No OFD packet to send [15:29:37]OFD Sender: No OFD packet to send [15:29:42]OFD Sender: No OFD packet to send [15:29:47]OFD Sender: No OFD packet to send [15:29:52]OFD Sender: No OFD packet to send [15:29:57]OFD Sender: No OFD packet to send [15:30:02]OFD Sender: No OFD packet to send [15:30:07]OFD Sender: No OFD packet to send [15:30:12]OFD Sender: No OFD packet to send [15:30:17]OFD Sender: No OFD packet to send [15:30:22]OFD Sender: No OFD packet to send [15:30:27]OFD Sender: No OFD packet to send [15:30:32]OFD Sender: No OFD packet to send [15:30:37]OFD Sender: No OFD packet to send [15:30:42]OFD Sender: No OFD packet to send [15:30:47]OFD Sender: No OFD packet to send [15:30:52]OFD Sender: No OFD packet to send [15:30:57]OFD Sender: No OFD packet to send [15:31:02]OFD Sender: No OFD packet to send [15:31:07]OFD Sender: No OFD packet to send [15:31:12]OFD Sender: No OFD packet to send [15:31:17]OFD Sender: No OFD packet to send [15:31:22]OFD Sender: No OFD packet to send [15:31:27]OFD Sender: No OFD packet to send [15:31:32]OFD Sender: No OFD packet to send [15:31:37]OFD Sender: No OFD packet to send [15:31:42]OFD Sender: No OFD packet to send [15:31:47]OFD Sender: No OFD packet to send [15:31:52]OFD Sender: No OFD packet to send [15:31:57]OFD Sender: No OFD packet to send [15:32:02]OFD Sender: No OFD packet to send [15:32:07]OFD Sender: No OFD packet to send [15:32:12]OFD Sender: No OFD packet to send [15:32:17]OFD Sender: No OFD packet to send [15:32:22]OFD Sender: No OFD packet to send [15:32:27]OFD Sender: No OFD packet to send [15:32:32]OFD Sender: No OFD packet to send [15:32:37]OFD Sender: No OFD packet to send [15:32:42]OFD Sender: No OFD packet to send [15:32:47]OFD Sender: No OFD packet to send [15:32:52]OFD Sender: No OFD packet to send [15:32:57]OFD Sender: No OFD packet to send [15:33:02]OFD Sender: No OFD packet to send [15:33:07]OFD Sender: No OFD packet to send [15:33:12]OFD Sender: No OFD packet to send [15:33:17]OFD Sender: No OFD packet to send [15:33:22]OFD Sender: No OFD packet to send [15:33:27]OFD Sender: No OFD packet to send [15:33:32]OFD Sender: No OFD packet to send [15:33:37]OFD Sender: No OFD packet to send [15:33:42]OFD Sender: No OFD packet to send [15:33:47]OFD Sender: No OFD packet to send [15:33:52]OFD Sender: No OFD packet to send [15:33:57]OFD Sender: No OFD packet to send [15:34:02]OFD Sender: No OFD packet to send [15:34:07]OFD Sender: No OFD packet to send [15:34:12]OFD Sender: No OFD packet to send [15:34:17]OFD Sender: No OFD packet to send [15:34:22]OFD Sender: No OFD packet to send [15:34:27]OFD Sender: No OFD packet to send [15:34:32]OFD Sender: No OFD packet to send [15:34:37]OFD Sender: No OFD packet to send [15:34:42]OFD Sender: No OFD packet to send [15:34:47]OFD Sender: No OFD packet to send [15:34:52]OFD Sender: No OFD packet to send [15:34:57]OFD Sender: No OFD packet to send [15:35:02]OFD Sender: No OFD packet to send [15:35:07]OFD Sender: No OFD packet to send [15:35:12]OFD Sender: No OFD packet to send [15:35:17]OFD Sender: No OFD packet to send [15:35:22]OFD Sender: No OFD packet to send [15:35:27]OFD Sender: No OFD packet to send [15:35:32]OFD Sender: No OFD packet to send [15:35:37]OFD Sender: No OFD packet to send [15:35:42]OFD Sender: No OFD packet to send [15:35:47]OFD Sender: No OFD packet to send [15:35:52]OFD Sender: No OFD packet to send [15:35:57]OFD Sender: No OFD packet to send [15:36:02]OFD Sender: No OFD packet to send [15:36:07]OFD Sender: No OFD packet to send [15:36:12]OFD Sender: No OFD packet to send [15:36:17]OFD Sender: No OFD packet to send [15:36:22]OFD Sender: No OFD packet to send [15:36:27]OFD Sender: No OFD packet to send [15:36:32]OFD Sender: No OFD packet to send [15:36:37]OFD Sender: No OFD packet to send [15:36:42]OFD Sender: No OFD packet to send [15:36:47]OFD Sender: No OFD packet to send [15:36:52]OFD Sender: No OFD packet to send [15:36:57]OFD Sender: No OFD packet to send [15:37:02]OFD Sender: No OFD packet to send [15:37:07]OFD Sender: No OFD packet to send [15:37:12]OFD Sender: No OFD packet to send [15:37:17]OFD Sender: No OFD packet to send [15:37:22]OFD Sender: No OFD packet to send [15:37:27]OFD Sender: No OFD packet to send [15:37:32]OFD Sender: No OFD packet to send [15:37:37]OFD Sender: No OFD packet to send [15:37:42]OFD Sender: No OFD packet to send [15:37:47]OFD Sender: No OFD packet to send [15:37:52]OFD Sender: No OFD packet to send [15:37:57]OFD Sender: No OFD packet to send [15:38:02]OFD Sender: No OFD packet to send [15:38:07]OFD Sender: No OFD packet to send [15:38:12]OFD Sender: No OFD packet to send [15:38:17]OFD Sender: No OFD packet to send [15:38:22]OFD Sender: No OFD packet to send [15:38:27]OFD Sender: No OFD packet to send [15:38:32]OFD Sender: No OFD packet to send [15:38:37]OFD Sender: No OFD packet to send [15:38:42]OFD Sender: No OFD packet to send [15:38:47]OFD Sender: No OFD packet to send [15:38:52]OFD Sender: No OFD packet to send [15:38:57]OFD Sender: No OFD packet to send [15:39:02]OFD Sender: No OFD packet to send [15:39:07]OFD Sender: No OFD packet to send [15:39:12]OFD Sender: No OFD packet to send [15:39:17]OFD Sender: No OFD packet to send [15:39:22]OFD Sender: No OFD packet to send [15:39:27]OFD Sender: No OFD packet to send [15:39:32]OFD Sender: No OFD packet to send [15:39:37]OFD Sender: No OFD packet to send [15:39:42]OFD Sender: No OFD packet to send [15:39:47]OFD Sender: No OFD packet to send [15:39:52]OFD Sender: No OFD packet to send [15:39:57]OFD Sender: No OFD packet to send [15:40:02]OFD Sender: No OFD packet to send [15:40:07]OFD Sender: No OFD packet to send [15:40:12]OFD Sender: No OFD packet to send [15:40:17]OFD Sender: No OFD packet to send [15:40:22]OFD Sender: No OFD packet to send [15:40:27]OFD Sender: No OFD packet to send [15:40:32]OFD Sender: No OFD packet to send [15:40:37]OFD Sender: No OFD packet to send [15:40:42]OFD Sender: No OFD packet to send [15:40:47]OFD Sender: No OFD packet to send [15:40:52]OFD Sender: No OFD packet to send [15:40:57]OFD Sender: No OFD packet to send [15:41:02]OFD Sender: No OFD packet to send [15:41:07]OFD Sender: No OFD packet to send [15:41:12]OFD Sender: No OFD packet to send [15:41:17]OFD Sender: No OFD packet to send [15:41:22]OFD Sender: No OFD packet to send [15:41:27]OFD Sender: No OFD packet to send [15:41:32]OFD Sender: No OFD packet to send [15:41:37]OFD Sender: No OFD packet to send [15:41:42]OFD Sender: No OFD packet to send [15:41:47]OFD Sender: No OFD packet to send [15:41:52]OFD Sender: No OFD packet to send [15:41:57]OFD Sender: No OFD packet to send [15:42:02]OFD Sender: No OFD packet to send [15:42:07]OFD Sender: No OFD packet to send [15:42:12]OFD Sender: No OFD packet to send [15:42:17]OFD Sender: No OFD packet to send [15:42:22]accept exits with 9 [15:42:22]New connection [15:42:22]New thread 3067157860 created [15:42:22]Thread 3067014500 joined [15:42:22]Waiting for new connection... [15:42:22] Sock 9.Parse request [15:42:22]Sock 9.Check first char [15:42:22]Sock 9.First char is OK [15:42:22]request: POST /json_proto HTTP/1.0 [15:42:22]Method: POST [15:42:22]URL: /json_proto [15:42:22]Method is POST - this is cgi request [15:42:22]url: /json_proto [15:42:22]query_string will be loaded in cgi processing [15:42:22]execute_cgi json_proto POST (null) [15:42:22]execute_cgi path=json_proto method=POST [15:42:22]POST find Content-Length [15:42:22]Host: 172.17.48.198:8080 [15:42:22]Content-Length: 642 [15:42:22]Content-Type: application/json [15:42:22] [15:42:22]POST finish read [15:42:22]Found Content-Length = 642 [15:42:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184185", "tax_sys" : 0, "items" : [ { "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 59.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:42:22]execute_script... [15:42:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184185", "tax_sys" : 0, "items" : [ { "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 59.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:42:22]POST & json_proto [15:42:22]process_json_proto [15:42:22]json parsed OK: [15:42:22]protocol is kg_v1.0 [15:42:22]action value=close_receipt [15:42:22]process_action close_receipt [15:42:22]cmd_close_receipt [15:42:22]MH_GetDate [15:42:22]Write to MH i2c: F0 00 00 57 4F 95 [15:42:22]Write i2c OK [15:42:22]MH_I2C_Read... [15:42:22]Read from MH i2c: F0 [15:42:22]MH_I2C_Read... [15:42:22]Read from MH i2c: F0 09 00 [15:42:22]MH_I2C_Read... [15:42:22]Read from MH i2c: F0 09 00 57 4F 00 6A 9A E4 65 CE C4 D4 65 B6 [15:42:22]GetLastDocTimeStamp 1709479381 [15:42:22]current date 1709480554 [15:42:22]FM_GetShiftState [15:42:22]SAM_PROTO_GetShiftState [15:42:22]wFMCommunicate request_size=4 [15:42:22]MH_SAM_APDU [15:42:22]CAPDU: 80 13 01 00 [15:42:22]Write to MH i2c: E2 08 00 58 4F 80 13 01 00 00 00 00 00 24 [15:42:22]Write i2c OK [15:42:22]MH_I2C_Read... [15:42:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:42:22]Read from MH i2c: E2 [15:42:22]MH_I2C_Read... [15:42:22]Read from MH i2c: E2 0E 00 [15:42:22]MH_I2C_Read... [15:42:22]Read from MH i2c: E2 0E 00 58 4F 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 5A [15:42:22]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [15:42:22]wFMCommunicate OK [15:42:22]SAM_PROTO_GetShiftState done [15:42:22]FM_GetShiftState done [15:42:22]opened in 1709425694 [15:42:22]opened+sec_in_day 1709512094 [15:42:22]quantity*price = 5900 [15:42:22]sum+1 = 5901 [15:42:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 59.00 НСП 1% : 0.52 НДС 12% : 6.26 Наличными: 59.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 57 03.03.2024 15:42 Смена: 331 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 ФМ: 0000000000874796 ФД: 45220 ФПД: 56327736408518 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T154234&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45220&fm=56327736408518&tin=02508201610067®Number=0000000000090572&sum=5900 0 [15:42:23]StoreToDocumentArchive [15:42:23]shift 331 fd 45220 [15:42:23]save to /storage/0331/doc_00045220 [15:42:23]save last doc name /storage/0331/doc_00045220 to /storage/kkm_last_doc_name [15:42:23]save OK [15:42:23]Clear old archive folders... [15:42:23]ProcessDocumentItem done err = 0, tmpTLVsize=281 [15:42:23]tlvbuf is 01B026A0 [15:42:23]SAM_PROTO_ClearQueue [15:42:23]wFMCommunicate request_size=4 [15:42:23]MH_SAM_APDU [15:42:23]CAPDU: 80 09 00 00 [15:42:23]Write to MH i2c: E2 08 00 65 4F 80 09 00 00 00 00 00 00 26 [15:42:23]Write i2c OK [15:42:23]MH_I2C_Read... [15:42:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:42:23]Read from MH i2c: E2 [15:42:23]MH_I2C_Read... [15:42:23]Read from MH i2c: E2 03 00 [15:42:23]MH_I2C_Read... [15:42:23]Read from MH i2c: E2 03 00 65 4F 00 90 00 28 [15:42:23]RAPDU: 90 00 [15:42:23]wFMCommunicate OK [15:42:23]SAM_PROTO_ClearQueue done [15:42:23]KKMCreateOFDPacket [15:42:23]OFDProtocolAddRootSTLVToBuf [15:42:23]FM_MakeSignedData [15:42:23]FM_MakeSignedData [15:42:23]SAM_PROTO_SignData [15:42:23]wFMCommunicate request_size=4 [15:42:23]MH_SAM_APDU [15:42:23]CAPDU: 80 0D 01 02 [15:42:23]Write to MH i2c: E2 08 00 66 4F 80 0D 01 02 00 00 00 00 2E [15:42:23]Write i2c OK [15:42:23]MH_I2C_Read... [15:42:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:42:23]Read from MH i2c: E2 [15:42:23]MH_I2C_Read... [15:42:23]Read from MH i2c: E2 03 00 [15:42:23]MH_I2C_Read... [15:42:23]Read from MH i2c: E2 03 00 66 4F 00 90 00 29 [15:42:23]RAPDU: 90 00 [15:42:23]wFMCommunicate OK [15:42:23]wFMCommunicate request_size=255 [15:42:23]MH_SAM_APDU [15:42:23]CAPDU: 80 0D 02 02 FA 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 02 00 00 00 00 07 04 06 00 0C 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 6A 9A E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 [15:42:23]Write to MH i2c: E2 02 01 67 4F 80 0D 02 02 FA 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 02 00 00 00 00 07 04 06 00 0C 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 6A 9A E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 00 8B [15:42:23]Write i2c OK [15:42:23]MH_I2C_Read... [15:42:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:42:23]Read from MH i2c: E2 [15:42:23]MH_I2C_Read... [15:42:23]Read from MH i2c: E2 03 00 [15:42:23]MH_I2C_Read... [15:42:23]Read from MH i2c: E2 03 00 67 4F 00 90 00 2A [15:42:23]RAPDU: 90 00 [15:42:23]wFMCommunicate OK [15:42:23]wFMCommunicate request_size=40 [15:42:23]MH_SAM_APDU [15:42:23]CAPDU: 80 0D 02 02 23 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 A4 B0 00 00 35 04 06 00 33 3A D2 B8 39 C6 [15:42:23]Write to MH i2c: E2 2B 00 68 4F 80 0D 02 02 23 00 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 A4 B0 00 00 35 04 06 00 33 3A D2 B8 39 C6 00 00 41 [15:42:23]Write i2c OK [15:42:23]MH_I2C_Read... [15:42:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:42:23]Read from MH i2c: E2 [15:42:23]MH_I2C_Read... [15:42:23]Read from MH i2c: E2 03 00 [15:42:23]MH_I2C_Read... [15:42:23]Read from MH i2c: E2 03 00 68 4F 00 90 00 2B [15:42:23]RAPDU: 90 00 [15:42:23]wFMCommunicate OK [15:42:23]wFMCommunicate request_size=4 [15:42:23]MH_SAM_APDU [15:42:23]CAPDU: 80 0D 03 02 [15:42:23]Write to MH i2c: E2 08 00 69 4F 80 0D 03 02 00 00 00 00 33 [15:42:23]Write i2c OK [15:42:23]MH_I2C_Read... [15:42:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:42:23]Read from MH i2c: E2 [15:42:23]MH_I2C_Read... [15:42:23]Read from MH i2c: E2 0B 00 [15:42:23]MH_I2C_Read... [15:42:23]Read from MH i2c: E2 0B 00 69 4F 00 28 F4 8D D3 B4 8B DD C8 90 00 94 [15:42:23]RAPDU: 28 F4 8D D3 B4 8B DD C8 90 00 [15:42:23]wFMCommunicate OK [15:42:23]SAM_PROTO_SignData done [15:42:23]FM_MakeSignedData done [15:42:23]CreateOFDProtocolMessage [15:42:23]wFMCommunicate request_size=4 [15:42:23]MH_SAM_APDU [15:42:23]CAPDU: 80 11 00 00 [15:42:23]Write to MH i2c: E2 08 00 6A 4F 80 11 00 00 00 00 00 00 33 [15:42:23]Write i2c OK [15:42:23]MH_I2C_Read... [15:42:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:42:23]Read from MH i2c: E2 [15:42:23]MH_I2C_Read... [15:42:23]Read from MH i2c: E2 17 00 [15:42:23]MH_I2C_Read... [15:42:23]Read from MH i2c: E2 17 00 6A 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 8F [15:42:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [15:42:23]wFMCommunicate OK [15:42:23]CreateOFDProtocolMessage done [15:42:23]OFDSenderStorePacket 45220 [15:42:23]StoreOFDPacket docnum=45220 [15:42:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 2D 01 00 00 F9 14 25 01 CF EC 5A 03 01 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 02 00 00 00 00 07 04 06 00 0C 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 6A 9A E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 A4 B0 00 00 35 04 06 00 33 3A D2 B8 39 C6 28 F4 8D D3 B4 8B DD C8 [15:42:23]CheckFolder [15:42:23]dirname=/storage/ofd_packets [15:42:23]CheckFolder done [15:42:23]ProducePacketName [15:42:23]name=ofd_packets/00045220 [15:42:23]NVStorageSaveData ofd_packets/00045220 [15:42:23]File name is /storage/ofd_packets/00045220 [15:42:23]Write 331 bytes [15:42:23]NVStorageSaveData done [15:42:23]OFDSenderStorePacket done [15:42:23]KKMCreateOFDPacket done [15:42:23]NVStorageSaveData kkm_last_timestamp [15:42:23]File name is /storage/kkm_last_timestamp [15:42:23]Write 4 bytes [15:42:23]NVStorageSaveData done [15:42:23]ExternCall_PrintAddStr [15:42:23]wPrintStart [15:42:23]Write to MH i2c: 01 00 00 6B 4F BA [15:42:23]Write i2c OK [15:42:23]MH_I2C_Read... [15:42:23]Read from MH i2c: 01 [15:42:23]MH_I2C_Read... [15:42:23]Read from MH i2c: 01 07 00 [15:42:23]MH_I2C_Read... [15:42:23]Read from MH i2c: 01 07 00 6B 4F 00 00 00 00 00 FF 0F CF [15:42:23]RasterBufferAndPrint [15:42:23]line Счет N : (3)184185 [15:42:23]line ИНН: 02508201610067 [15:42:23]line Контрольно-Кассовый Чек [15:42:23]line ПРОДАЖА [15:42:23]line Товар: 4607065001445 [15:42:23]line Шок батончик Snickers 50,5г [15:42:23]line 1.000 * 59.00 [15:42:23]line = 59.00 [15:42:23]line НДС 12% НСП 1% [15:42:23]line > о реализуемом товаре [15:42:23]line ИТОГО: 59.00 [15:42:23]line НСП 1% : 0.52 [15:42:23]line НДС 12% : 6.26 [15:42:23]line Наличными: 59.00 [15:42:23]line Безнал.: 0.00 [15:42:23]line Место: АЗС № 25 "Партнер Нефть" [15:42:23]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [15:42:23]line СНО: Общий режим [15:42:23]line Чек 57 03.03.2024 15:42 [15:42:23]line Смена: 331 ФФД: 1.0 [15:42:23]line ЗНМ: 0300000013 [15:42:23]line РНМ: 0000000000090572 [15:42:23]line Версия ККМ: 001 [15:42:23]line ФМ: 0000000000874796 [15:42:23]line ФД: 45220 [15:42:23]line ФПД: 56327736408518 [15:42:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T154234&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45220&fm=56327736408518&tin=02508201610067®Number=0000000000090572&sum=5900 [15:42:24]line 0 [15:42:24]OFD Sender: Processing packet 45220 [packets to send 17, broken 16] [15:42:24]ProducePacketName [15:42:24]name=ofd_packets/00045220 [15:42:24]OFD Sender: To server: pG, [15:42:24]CommunicateWithHost lk.salyk.kg:30040 [15:42:24]ConnectInit lk.salyk.kg [15:42:24]written 0, free lines is 4095 [15:42:24]Connected sock=10 [15:42:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 2D 01 00 00 F9 14 25 01 CF EC 5A 03 01 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 02 00 00 00 00 07 04 06 00 0C 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 6A 9A E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 A4 B0 00 00 35 04 06 00 33 3A D2 B8 39 C6 28 F4 8D D3 B4 8B DD C8 [15:42:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 90 CA 47 00 BF DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 A4 B0 00 00 F4 03 04 00 2E 46 E4 65 B6 04 01 00 00 54 05 EC 76 2C 13 94 B7 [15:42:24]CommunicateWithHost err = 0 [15:42:24]CheckOFDResponse [15:42:24]1017 (14) - 77093643461234 [15:42:24]1041 (16) - 0000000000874796 [15:42:24]1040 (4) - 45220 [15:42:24]1012 (4) - 03.03.2024 09:43 [15:42:24]1206 (1) - 0 [15:42:24]OFD Sender: Remove packet 45220 [15:42:24]ProducePacketName [15:42:24]name=ofd_packets/00045220 [15:42:24]NVStorageDeleteData [15:42:24]Write to MH i2c: 01 00 00 93 4F E2 [15:42:24]Write i2c OK [15:42:24]MH_I2C_Read... [15:42:24]Read from MH i2c: 01 [15:42:24]MH_I2C_Read... [15:42:24]Read from MH i2c: 01 07 00 [15:42:24]MH_I2C_Read... [15:42:24]Read from MH i2c: 01 07 00 93 4F 00 00 00 00 00 15 0D 0B [15:42:24]RasterBufferAndPrint [15:42:24]line [15:42:24]line [15:42:24]line [15:42:24]line [15:42:24]line [15:42:24]written 0, free lines is 3356 [15:42:24]MH_Cut [15:42:24]Write to MH i2c: D1 01 00 9A 4F 01 BB [15:42:24]Write i2c OK [15:42:24]MH_I2C_Read... [15:42:24]Read from MH i2c: D1 [15:42:24]MH_I2C_Read... [15:42:24]Read from MH i2c: D1 01 00 [15:42:24]MH_I2C_Read... [15:42:24]Read from MH i2c: D1 01 00 9A 4F 00 BA [15:42:24]Write to MH i2c: 01 00 00 9B 4F EA [15:42:24]Write i2c OK [15:42:24]MH_I2C_Read... [15:42:24]OFD Sender: No OFD packet to send [15:42:25]*** Cut start [15:42:25]*** Purtial cut [15:42:25]*** Stage 1: CUTSNS_PIN = 1 [15:42:27]Read from MH i2c: 01 [15:42:27]MH_I2C_Read... [15:42:27]*** Stop cut motor [15:42:27]*** Cut end [15:42:27]Read from MH i2c: 01 07 00 [15:42:27]MH_I2C_Read... [15:42:27]Read from MH i2c: 01 07 00 9B 4F 00 00 00 00 00 FF 0F FF [15:42:27]process_action close_receipt done [15:42:27]requested_data is exist [15:42:27]produce_requested_data [15:42:27]requested_item fm.sn is exist - process it [15:42:27]wFMCommunicate request_size=4 [15:42:27]MH_SAM_APDU [15:42:27]CAPDU: 80 11 00 00 [15:42:27]Write to MH i2c: E2 08 00 9C 4F 80 11 00 00 00 00 00 00 65 [15:42:27]Write i2c OK [15:42:27]MH_I2C_Read... [15:42:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:42:27]Read from MH i2c: E2 [15:42:27]MH_I2C_Read... [15:42:27]Read from MH i2c: E2 17 00 [15:42:27]MH_I2C_Read... [15:42:27]Read from MH i2c: E2 17 00 9C 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 C1 [15:42:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [15:42:27]wFMCommunicate OK [15:42:27]requested_item fd.num is exist - process it [15:42:27]SAM_PROTO_GetFieldsCounters [15:42:27]wFMCommunicate request_size=4 [15:42:27]MH_SAM_APDU [15:42:27]CAPDU: 80 13 00 00 [15:42:27]Write to MH i2c: E2 08 00 9D 4F 80 13 00 00 00 00 00 00 68 [15:42:27]Write i2c OK [15:42:27]MH_I2C_Read... [15:42:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:42:27]Read from MH i2c: E2 [15:42:27]MH_I2C_Read... [15:42:27]Read from MH i2c: E2 62 00 [15:42:27]MH_I2C_Read... [15:42:27]Read from MH i2c: E2 62 00 9D 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 A4 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 DB [15:42:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 A4 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:42:27]wFMCommunicate OK [15:42:27]SAM_PROTO_GetFieldsCounters done [15:42:27]requested_item shift.num is exist - process it [15:42:27]requested_item shift.opened is exist - process it [15:42:27]req_shift_opened [15:42:27]FM_GetShiftState [15:42:27]SAM_PROTO_GetShiftState [15:42:27]wFMCommunicate request_size=4 [15:42:27]MH_SAM_APDU [15:42:27]CAPDU: 80 13 01 00 [15:42:27]Write to MH i2c: E2 08 00 9E 4F 80 13 01 00 00 00 00 00 6A [15:42:27]Write i2c OK [15:42:27]MH_I2C_Read... [15:42:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:42:27]Read from MH i2c: E2 [15:42:27]MH_I2C_Read... [15:42:27]Read from MH i2c: E2 0E 00 [15:42:27]MH_I2C_Read... [15:42:27]Read from MH i2c: E2 0E 00 9E 4F 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 A0 [15:42:27]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [15:42:27]wFMCommunicate OK [15:42:27]SAM_PROTO_GetShiftState done [15:42:27]FM_GetShiftState done [15:42:27]req_shift_opened done [15:42:27]requested_item shift.open_date is exist - process it [15:42:27]req_shift_open_date [15:42:27]req_shift_open_date done [15:42:27]produce_requested_data done [15:42:27]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45220,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [15:42:27]process_action_free close_receipt [15:42:27]json_value_free [15:42:27]json_value_free done [15:42:27]process_json_proto returns [15:42:27]Send response to host [15:42:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45220,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [15:42:27]free response buf [15:42:27]execute_script done [15:42:27]execute_script returns [15:42:27]free content buf [15:42:27]Sock 9.Close socket [15:42:27]Sock 9.Thread stoped [15:42:29]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [15:44:05]OFD Sender: No OFD packet to send [15:44:10]OFD Sender: No OFD packet to send [15:44:15]OFD Sender: No OFD packet to send [15:44:20]OFD Sender: No OFD packet to send [15:44:25]OFD Sender: No OFD packet to send [15:44:30]OFD Sender: No OFD packet to send [15:44:35]OFD Sender: No OFD packet to send [15:44:40]OFD Sender: No OFD packet to send [15:44:45]OFD Sender: No OFD packet to send [15:44:50]OFD Sender: No OFD packet to send [15:44:55]OFD Sender: No OFD packet to send [15:45:00]OFD Sender: No OFD packet to send [15:45:05]OFD Sender: No OFD packet to send [15:45:10]OFD Sender: No OFD packet to send [15:45:15]OFD Sender: No OFD packet to send [15:45:20]OFD Sender: No OFD packet to send [15:45:25]OFD Sender: No OFD packet to send [15:45:30]OFD Sender: No OFD packet to send [15:45:35]OFD Sender: No OFD packet to send [15:45:40]OFD Sender: No OFD packet to send [15:45:45]OFD Sender: No OFD packet to send [15:45:50]OFD Sender: No OFD packet to send [15:45:55]OFD Sender: No OFD packet to send [15:46:00]OFD Sender: No OFD packet to send [15:46:05]OFD Sender: No OFD packet to send [15:46:10]OFD Sender: No OFD packet to send [15:46:15]OFD Sender: No OFD packet to send [15:46:20]OFD Sender: No OFD packet to send [15:46:25]OFD Sender: No OFD packet to send [15:46:30]OFD Sender: No OFD packet to send [15:46:35]OFD Sender: No OFD packet to send [15:46:40]OFD Sender: No OFD packet to send [15:46:45]OFD Sender: No OFD packet to send [15:46:50]OFD Sender: No OFD packet to send [15:46:55]OFD Sender: No OFD packet to send [15:47:00]OFD Sender: No OFD packet to send [15:47:05]OFD Sender: No OFD packet to send [15:47:10]OFD Sender: No OFD packet to send [15:47:15]OFD Sender: No OFD packet to send [15:47:20]OFD Sender: No OFD packet to send [15:47:25]OFD Sender: No OFD packet to send [15:47:30]OFD Sender: No OFD packet to send [15:47:35]OFD Sender: No OFD packet to send [15:47:40]OFD Sender: No OFD packet to send [15:47:45]OFD Sender: No OFD packet to send [15:47:50]OFD Sender: No OFD packet to send [15:47:55]OFD Sender: No OFD packet to send [15:48:00]OFD Sender: No OFD packet to send [15:48:05]OFD Sender: No OFD packet to send [15:48:08]accept exits with 7 [15:48:08]New connection [15:48:08]New thread 3067014500 created [15:48:08]Thread 3067157860 joined [15:48:08]Waiting for new connection... [15:48:08] Sock 7.Parse request [15:48:08]Sock 7.Check first char [15:48:08]Sock 7.First char is OK [15:48:08]request: POST /json_proto HTTP/1.0 [15:48:08]Method: POST [15:48:08]URL: /json_proto [15:48:08]Method is POST - this is cgi request [15:48:08]url: /json_proto [15:48:08]query_string will be loaded in cgi processing [15:48:08]execute_cgi json_proto POST (null) [15:48:08]execute_cgi path=json_proto method=POST [15:48:08]POST find Content-Length [15:48:08]Host: 172.17.48.198:8080 [15:48:08]Content-Length: 1637 [15:48:08]Content-Type: application/json [15:48:08] [15:48:08]POST finish read [15:48:08]Found Content-Length = 1637 [15:48:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184186", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4640030091607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000028410025", "name": "\u041E\u0447\u043A\u0438 \u0441\u043E\u043B\u043D\u0446\u0435\u0437\u0430\u0449\u0438\u0442\u043D\u044B\u0435 \u0432 \u0430\u0441\u0441\u043E\u0440\u0442\u0438\u043C\u0435\u043D\u0442\u0435", "price" : 590.00, "quantity" : 1.000, "sum" : 590.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 903.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:48:08]execute_script... [15:48:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184186", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4640030091607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000028410025", "name": "\u041E\u0447\u043A\u0438 \u0441\u043E\u043B\u043D\u0446\u0435\u0437\u0430\u0449\u0438\u0442\u043D\u044B\u0435 \u0432 \u0430\u0441\u0441\u043E\u0440\u0442\u0438\u043C\u0435\u043D\u0442\u0435", "price" : 590.00, "quantity" : 1.000, "sum" : 590.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 903.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:48:08]POST & json_proto [15:48:08]process_json_proto [15:48:08]json parsed OK: [15:48:08]protocol is kg_v1.0 [15:48:08]action value=close_receipt [15:48:08]process_action close_receipt [15:48:08]cmd_close_receipt [15:48:08]MH_GetDate [15:48:08]Write to MH i2c: F0 00 00 9F 4F DD [15:48:08]Write i2c OK [15:48:08]MH_I2C_Read... [15:48:08]Read from MH i2c: F0 [15:48:08]MH_I2C_Read... [15:48:08]Read from MH i2c: F0 09 00 [15:48:08]MH_I2C_Read... [15:48:08]Read from MH i2c: F0 09 00 9F 4F 00 C5 9B E4 65 CE C4 D4 65 5A [15:48:08]GetLastDocTimeStamp 1709480554 [15:48:08]current date 1709480901 [15:48:08]FM_GetShiftState [15:48:08]SAM_PROTO_GetShiftState [15:48:08]wFMCommunicate request_size=4 [15:48:08]MH_SAM_APDU [15:48:08]CAPDU: 80 13 01 00 [15:48:08]Write to MH i2c: E2 08 00 A0 4F 80 13 01 00 00 00 00 00 6C [15:48:08]Write i2c OK [15:48:08]MH_I2C_Read... [15:48:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:48:08]Read from MH i2c: E2 [15:48:08]MH_I2C_Read... [15:48:08]Read from MH i2c: E2 0E 00 [15:48:08]MH_I2C_Read... [15:48:08]Read from MH i2c: E2 0E 00 A0 4F 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 A2 [15:48:08]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [15:48:08]wFMCommunicate OK [15:48:08]SAM_PROTO_GetShiftState done [15:48:08]FM_GetShiftState done [15:48:08]opened in 1709425694 [15:48:08]opened+sec_in_day 1709512094 [15:48:08]quantity*price = 4000 [15:48:08]sum+1 = 4001 [15:48:08]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4640030091607 Сигареты ESSE Exchange 1.000 * 138.00 = 138.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 48743587 Сигареты Winston XStyle Silver 1.000 * 135.00 = 135.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000028410025 Очки солнцезащитные в ассортименте 1.000 * 590.00 = 590.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 903.00 НСП 1% : 7.98 НДС 12% : 95.89 Наличными: 0.00 Безнал.: 903.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 58 03.03.2024 15:48 Смена: 331 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874796 ФД: 45221 ФПД: 74241711361455 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T154821&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45221&fm=74241711361455&tin=02508201610067®Number=0000000000090572&sum=90300 0 [15:48:10]StoreToDocumentArchive [15:48:10]shift 331 fd 45221 [15:48:10]save to /storage/0331/doc_00045221 [15:48:10]save last doc name /storage/0331/doc_00045221 to /storage/kkm_last_doc_name [15:48:10]save OK [15:48:10]Clear old archive folders... [15:48:10]ProcessDocumentItem done err = 0, tmpTLVsize=615 [15:48:10]tlvbuf is 01B1E8B0 [15:48:10]SAM_PROTO_ClearQueue [15:48:10]wFMCommunicate request_size=4 [15:48:10]MH_SAM_APDU [15:48:10]CAPDU: 80 09 00 00 [15:48:10]Write to MH i2c: E2 08 00 AD 4F 80 09 00 00 00 00 00 00 6E [15:48:10]Write i2c OK [15:48:10]MH_I2C_Read... [15:48:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:48:10]Read from MH i2c: E2 [15:48:10]MH_I2C_Read... [15:48:10]Read from MH i2c: E2 03 00 [15:48:10]MH_I2C_Read... [15:48:10]Read from MH i2c: E2 03 00 AD 4F 00 90 00 70 [15:48:10]RAPDU: 90 00 [15:48:10]wFMCommunicate OK [15:48:10]SAM_PROTO_ClearQueue done [15:48:10]KKMCreateOFDPacket [15:48:10]OFDProtocolAddRootSTLVToBuf [15:48:10]FM_MakeSignedData [15:48:10]FM_MakeSignedData [15:48:10]SAM_PROTO_SignData [15:48:10]wFMCommunicate request_size=4 [15:48:10]MH_SAM_APDU [15:48:10]CAPDU: 80 0D 01 02 [15:48:10]Write to MH i2c: E2 08 00 AE 4F 80 0D 01 02 00 00 00 00 76 [15:48:10]Write i2c OK [15:48:10]MH_I2C_Read... [15:48:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:48:10]Read from MH i2c: E2 [15:48:10]MH_I2C_Read... [15:48:10]Read from MH i2c: E2 03 00 [15:48:10]MH_I2C_Read... [15:48:10]Read from MH i2c: E2 03 00 AE 4F 00 90 00 71 [15:48:10]RAPDU: 90 00 [15:48:10]wFMCommunicate OK [15:48:10]wFMCommunicate request_size=255 [15:48:10]MH_SAM_APDU [15:48:10]CAPDU: 80 0D 02 02 FA 03 00 67 02 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 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 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 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 [15:48:10]Write to MH i2c: E2 02 01 AF 4F 80 0D 02 02 FA 00 03 00 67 02 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 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 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 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 00 00 42 [15:48:10]Write i2c OK [15:48:10]MH_I2C_Read... [15:48:10]OFD Sender: No OFD packet to send [15:48:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:48:10]Read from MH i2c: E2 [15:48:10]MH_I2C_Read... [15:48:10]Read from MH i2c: E2 03 00 [15:48:10]MH_I2C_Read... [15:48:10]Read from MH i2c: E2 03 00 AF 4F 00 90 00 72 [15:48:10]RAPDU: 90 00 [15:48:10]wFMCommunicate OK [15:48:10]wFMCommunicate request_size=255 [15:48:10]MH_SAM_APDU [15:48:10]CAPDU: 80 0D 02 02 FA 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 85 00 8A 04 0D 00 32 30 30 30 30 32 38 34 31 30 30 32 35 06 04 41 00 D0 9E D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 BD D1 86 D0 B5 D0 B7 D0 B0 D1 89 D0 B8 D1 82 D0 BD D1 8B D0 B5 20 D0 B2 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 D0 BC D0 B5 D0 BD D1 82 D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 78 E6 00 00 00 00 13 04 06 00 78 E6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 60 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1E 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 [15:48:10]Write to MH i2c: E2 02 01 B0 4F 80 0D 02 02 FA 00 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 85 00 8A 04 0D 00 32 30 30 30 30 32 38 34 31 30 30 32 35 06 04 41 00 D0 9E D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 BD D1 86 D0 B5 D0 B7 D0 B0 D1 89 D0 B8 D1 82 D0 BD D1 8B D0 B5 20 D0 B2 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 D0 BC D0 B5 D0 BD D1 82 D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 78 E6 00 00 00 00 13 04 06 00 78 E6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 60 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1E 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 C3 [15:48:10]Write i2c OK [15:48:10]MH_I2C_Read... [15:48:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:48:10]Read from MH i2c: E2 [15:48:10]MH_I2C_Read... [15:48:10]Read from MH i2c: E2 03 00 [15:48:10]MH_I2C_Read... [15:48:10]Read from MH i2c: E2 03 00 B0 4F 00 90 00 73 [15:48:10]RAPDU: 90 00 [15:48:10]wFMCommunicate OK [15:48:10]wFMCommunicate request_size=124 [15:48:10]MH_SAM_APDU [15:48:10]CAPDU: 80 0D 02 02 77 75 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BC 60 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 C5 9B E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 A5 B0 00 00 35 04 06 00 43 85 BE D5 4D AF [15:48:10]Write to MH i2c: E2 7F 00 B1 4F 80 0D 02 02 77 00 75 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BC 60 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 C5 9B E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 A5 B0 00 00 35 04 06 00 43 85 BE D5 4D AF 00 00 3B [15:48:10]Write i2c OK [15:48:10]MH_I2C_Read... [15:48:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:48:10]Read from MH i2c: E2 [15:48:10]MH_I2C_Read... [15:48:10]Read from MH i2c: E2 03 00 [15:48:10]MH_I2C_Read... [15:48:10]Read from MH i2c: E2 03 00 B1 4F 00 90 00 74 [15:48:10]RAPDU: 90 00 [15:48:10]wFMCommunicate OK [15:48:10]wFMCommunicate request_size=4 [15:48:10]MH_SAM_APDU [15:48:10]CAPDU: 80 0D 03 02 [15:48:10]Write to MH i2c: E2 08 00 B2 4F 80 0D 03 02 00 00 00 00 7C [15:48:10]Write i2c OK [15:48:10]MH_I2C_Read... [15:48:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:48:10]Read from MH i2c: E2 [15:48:10]MH_I2C_Read... [15:48:10]Read from MH i2c: E2 0B 00 [15:48:10]MH_I2C_Read... [15:48:10]Read from MH i2c: E2 0B 00 B2 4F 00 4D 54 33 6D 61 3D D0 A0 90 00 CC [15:48:10]RAPDU: 4D 54 33 6D 61 3D D0 A0 90 00 [15:48:10]wFMCommunicate OK [15:48:10]SAM_PROTO_SignData done [15:48:10]FM_MakeSignedData done [15:48:10]CreateOFDProtocolMessage [15:48:10]wFMCommunicate request_size=4 [15:48:10]MH_SAM_APDU [15:48:10]CAPDU: 80 11 00 00 [15:48:10]Write to MH i2c: E2 08 00 B3 4F 80 11 00 00 00 00 00 00 7C [15:48:10]Write i2c OK [15:48:10]MH_I2C_Read... [15:48:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:48:10]Read from MH i2c: E2 [15:48:10]MH_I2C_Read... [15:48:10]Read from MH i2c: E2 17 00 [15:48:10]MH_I2C_Read... [15:48:10]Read from MH i2c: E2 17 00 B3 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 D8 [15:48:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [15:48:10]wFMCommunicate OK [15:48:10]CreateOFDProtocolMessage done [15:48:10]OFDSenderStorePacket 45221 [15:48:10]StoreOFDPacket docnum=45221 [15:48:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 7B 02 00 00 EA B5 73 02 30 6F 5A 03 01 00 03 00 67 02 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 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 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 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 85 00 8A 04 0D 00 32 30 30 30 30 32 38 34 31 30 30 32 35 06 04 41 00 D0 9E D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 BD D1 86 D0 B5 D0 B7 D0 B0 D1 89 D0 B8 D1 82 D0 BD D1 8B D0 B5 20 D0 B2 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 D0 BC D0 B5 D0 BD D1 82 D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 78 E6 00 00 00 00 13 04 06 00 78 E6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 60 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1E 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BC 60 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 C5 9B E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 A5 B0 00 00 35 04 06 00 43 85 BE D5 4D AF 4D 54 33 6D 61 3D D0 A0 [15:48:10]CheckFolder [15:48:10]dirname=/storage/ofd_packets [15:48:10]CheckFolder done [15:48:10]ProducePacketName [15:48:10]name=ofd_packets/00045221 [15:48:10]NVStorageSaveData ofd_packets/00045221 [15:48:10]File name is /storage/ofd_packets/00045221 [15:48:10]Write 665 bytes [15:48:10]NVStorageSaveData done [15:48:10]OFDSenderStorePacket done [15:48:10]KKMCreateOFDPacket done [15:48:10]NVStorageSaveData kkm_last_timestamp [15:48:10]File name is /storage/kkm_last_timestamp [15:48:10]Write 4 bytes [15:48:10]NVStorageSaveData done [15:48:10]ExternCall_PrintAddStr [15:48:10]wPrintStart [15:48:10]Write to MH i2c: 01 00 00 B4 4F 03 [15:48:10]Write i2c OK [15:48:10]MH_I2C_Read... [15:48:10]Read from MH i2c: 01 [15:48:10]MH_I2C_Read... [15:48:10]Read from MH i2c: 01 07 00 [15:48:10]MH_I2C_Read... [15:48:10]Read from MH i2c: 01 07 00 B4 4F 00 00 00 00 00 FF 0F 18 [15:48:10]RasterBufferAndPrint [15:48:10]line Счет N : (3)184186 [15:48:10]line ИНН: 02508201610067 [15:48:10]line Контрольно-Кассовый Чек [15:48:10]line ПРОДАЖА [15:48:11]line Товар: 4700000160211 [15:48:11]line Вода Легенда 0,5л [15:48:11]line 1.000 * 40.00 [15:48:11]line = 40.00 [15:48:11]line НДС 12% НСП 1% [15:48:11]line > о реализуемом товаре [15:48:11]line Товар: 4640030091607 [15:48:11]line Сигареты ESSE Exchange [15:48:11]line 1.000 * 138.00 [15:48:11]line = 138.00 [15:48:11]line НДС 12% НСП 1% [15:48:11]line > о реализуемом товаре [15:48:11]line Товар: 48743587 [15:48:11]line Сигареты Winston XStyle Silver [15:48:11]line 1.000 * 135.00 [15:48:11]line = 135.00 [15:48:11]line НДС 12% НСП 1% [15:48:11]line > о реализуемом товаре [15:48:11]line Товар: 2000028410025 [15:48:11]line Очки солнцезащитные в ассортименте [15:48:11]line 1.000 * 590.00 [15:48:11]line = 590.00 [15:48:11]line НДС 12% НСП 1% [15:48:11]line > о реализуемом товаре [15:48:11]line ИТОГО: 903.00 [15:48:11]line НСП 1% : 7.98 [15:48:11]line НДС 12% : 95.89 [15:48:11]line Наличными: 0.00 [15:48:11]line Безнал.: 903.00 [15:48:11]line Место: АЗС № 25 "Партнер Нефть" [15:48:11]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [15:48:11]line СНО: Общий режим [15:48:11]line Чек 58 03.03.2024 15:48 [15:48:11]line Смена: 331 ФФД: 1.0 [15:48:11]line ЗНМ: 0300000013 [15:48:11]line РНМ: 0000000000090572 [15:48:11]line Версия ККМ: 001 [15:48:11]line Платежная система: О! деньги [15:48:11]line ФМ: 0000000000874796 [15:48:11]line ФД: 45221 [15:48:11]line ФПД: 74241711361455 [15:48:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T154821&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45221&fm=74241711361455&tin=02508201610067®Number=0000000000090572&sum=90300 [15:48:11]line 0 [15:48:11]OFD Sender: Processing packet 45221 [packets to send 17, broken 16] [15:48:11]ProducePacketName [15:48:11]name=ofd_packets/00045221 [15:48:11]OFD Sender: To server: pG, [15:48:11]CommunicateWithHost lk.salyk.kg:30040 [15:48:11]ConnectInit lk.salyk.kg [15:48:11]written 0, free lines is 4095 [15:48:11]Connected sock=10 [15:48:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 7B 02 00 00 EA B5 73 02 30 6F 5A 03 01 00 03 00 67 02 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 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 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 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 85 00 8A 04 0D 00 32 30 30 30 30 32 38 34 31 30 30 32 35 06 04 41 00 D0 9E D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 BD D1 86 D0 B5 D0 B7 D0 B0 D1 89 D0 B8 D1 82 D0 BD D1 8B D0 B5 20 D0 B2 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 D0 BC D0 B5 D0 BD D1 82 D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 78 E6 00 00 00 00 13 04 06 00 78 E6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 60 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1E 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BC 60 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 C5 9B E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 A5 B0 00 00 35 04 06 00 43 85 BE D5 4D AF 4D 54 33 6D 61 3D D0 A0 [15:48:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 7D E2 47 00 C5 C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 A5 B0 00 00 F4 03 04 00 8A 47 E4 65 B6 04 01 00 00 CA 96 F6 9B 0A E1 17 68 [15:48:11]CommunicateWithHost err = 0 [15:48:11]CheckOFDResponse [15:48:11]1017 (14) - 77093643461234 [15:48:11]1041 (16) - 0000000000874796 [15:48:11]1040 (4) - 45221 [15:48:11]1012 (4) - 03.03.2024 09:48 [15:48:11]1206 (1) - 0 [15:48:11]OFD Sender: Remove packet 45221 [15:48:11]ProducePacketName [15:48:11]name=ofd_packets/00045221 [15:48:11]NVStorageDeleteData [15:48:11]Write to MH i2c: 01 00 00 F2 4F 41 [15:48:11]Write i2c OK [15:48:11]MH_I2C_Read... [15:48:11]Read from MH i2c: 01 [15:48:11]MH_I2C_Read... [15:48:11]Read from MH i2c: 01 07 00 [15:48:11]MH_I2C_Read... [15:48:11]Read from MH i2c: 01 07 00 F2 4F 00 00 00 00 00 E4 0B 37 [15:48:11]RasterBufferAndPrint [15:48:11]line [15:48:11]line [15:48:11]line [15:48:11]line [15:48:11]line [15:48:11]written 0, free lines is 3051 [15:48:11]MH_Cut [15:48:11]Write to MH i2c: D1 01 00 F9 4F 01 1A [15:48:11]Write i2c OK [15:48:11]MH_I2C_Read... [15:48:11]Read from MH i2c: D1 [15:48:11]MH_I2C_Read... [15:48:11]Read from MH i2c: D1 01 00 [15:48:11]MH_I2C_Read... [15:48:11]Read from MH i2c: D1 01 00 F9 4F 00 19 [15:48:11]Write to MH i2c: 01 00 00 FA 4F 49 [15:48:11]Write i2c OK [15:48:11]MH_I2C_Read... [15:48:12]OFD Sender: No OFD packet to send [15:48:12]*** Cut start [15:48:12]*** Purtial cut [15:48:12]*** Stage 1: CUTSNS_PIN = 1 [15:48:14]Read from MH i2c: 01 [15:48:14]MH_I2C_Read... [15:48:14]*** Stop cut motor [15:48:14]*** Cut end [15:48:14]Read from MH i2c: 01 07 00 [15:48:14]MH_I2C_Read... [15:48:14]Read from MH i2c: 01 07 00 FA 4F 00 00 00 00 00 FF 0F 5E [15:48:14]process_action close_receipt done [15:48:14]requested_data is exist [15:48:14]produce_requested_data [15:48:14]requested_item fm.sn is exist - process it [15:48:14]wFMCommunicate request_size=4 [15:48:14]MH_SAM_APDU [15:48:14]CAPDU: 80 11 00 00 [15:48:14]Write to MH i2c: E2 08 00 FB 4F 80 11 00 00 00 00 00 00 C4 [15:48:14]Write i2c OK [15:48:14]MH_I2C_Read... [15:48:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:48:14]Read from MH i2c: E2 [15:48:14]MH_I2C_Read... [15:48:14]Read from MH i2c: E2 17 00 [15:48:14]MH_I2C_Read... [15:48:14]Read from MH i2c: E2 17 00 FB 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 20 [15:48:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [15:48:14]wFMCommunicate OK [15:48:14]requested_item fd.num is exist - process it [15:48:14]SAM_PROTO_GetFieldsCounters [15:48:14]wFMCommunicate request_size=4 [15:48:14]MH_SAM_APDU [15:48:14]CAPDU: 80 13 00 00 [15:48:14]Write to MH i2c: E2 08 00 FC 4F 80 13 00 00 00 00 00 00 C7 [15:48:14]Write i2c OK [15:48:14]MH_I2C_Read... [15:48:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:48:15]Read from MH i2c: E2 [15:48:15]MH_I2C_Read... [15:48:15]Read from MH i2c: E2 62 00 [15:48:15]MH_I2C_Read... [15:48:15]Read from MH i2c: E2 62 00 FC 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 A5 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 3E [15:48:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 A5 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:48:15]wFMCommunicate OK [15:48:15]SAM_PROTO_GetFieldsCounters done [15:48:15]requested_item shift.num is exist - process it [15:48:15]requested_item shift.opened is exist - process it [15:48:15]req_shift_opened [15:48:15]FM_GetShiftState [15:48:15]SAM_PROTO_GetShiftState [15:48:15]wFMCommunicate request_size=4 [15:48:15]MH_SAM_APDU [15:48:15]CAPDU: 80 13 01 00 [15:48:15]Write to MH i2c: E2 08 00 FD 4F 80 13 01 00 00 00 00 00 C9 [15:48:15]Write i2c OK [15:48:15]MH_I2C_Read... [15:48:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:48:15]Read from MH i2c: E2 [15:48:15]MH_I2C_Read... [15:48:15]Read from MH i2c: E2 0E 00 [15:48:15]MH_I2C_Read... [15:48:15]Read from MH i2c: E2 0E 00 FD 4F 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 FF [15:48:15]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [15:48:15]wFMCommunicate OK [15:48:15]SAM_PROTO_GetShiftState done [15:48:15]FM_GetShiftState done [15:48:15]req_shift_opened done [15:48:15]requested_item shift.open_date is exist - process it [15:48:15]req_shift_open_date [15:48:15]req_shift_open_date done [15:48:15]produce_requested_data done [15:48:15]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45221,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [15:48:15]process_action_free close_receipt [15:48:15]json_value_free [15:48:15]json_value_free done [15:48:15]process_json_proto returns [15:48:15]Send response to host [15:48:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45221,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [15:48:15]free response buf [15:48:15]execute_script done [15:48:15]execute_script returns [15:48:15]free content buf [15:48:15]Sock 7.Close socket [15:48:15]Sock 7.Thread stoped [15:48:17]OFD Sender: No OFD packet to send [15:48:22]OFD Sender: No OFD packet to send [15:48:27]OFD Sender: No OFD packet to send [15:48:32]OFD Sender: No OFD packet to send [15:48:37]OFD Sender: No OFD packet to send [15:48:42]OFD Sender: No OFD packet to send [15:48:47]OFD Sender: No OFD packet to send [15:48:52]OFD Sender: No OFD packet to send [15:48:57]OFD Sender: No OFD packet to send [15:49:02]OFD Sender: No OFD packet to send [15:49:07]OFD Sender: No OFD packet to send [15:49:12]OFD Sender: No OFD packet to send [15:49:17]OFD Sender: No OFD packet to send [15:49:22]OFD Sender: No OFD packet to send [15:49:27]OFD Sender: No OFD packet to send [15:49:32]OFD Sender: No OFD packet to send [15:49:37]OFD Sender: No OFD packet to send [15:49:42]OFD Sender: No OFD packet to send [15:49:47]OFD Sender: No OFD packet to send [15:49:52]OFD Sender: No OFD packet to send [15:49:57]OFD Sender: No OFD packet to send [15:50:02]OFD Sender: No OFD packet to send [15:50:07]OFD Sender: No OFD packet to send [15:50:12]OFD Sender: No OFD packet to send [15:50:17]OFD Sender: No OFD packet to send [15:50:22]OFD Sender: No OFD packet to send [15:50:27]OFD Sender: No OFD packet to send [15:50:32]OFD Sender: No OFD packet to send [15:50:37]OFD Sender: No OFD packet to send [15:50:42]OFD Sender: No OFD packet to send [15:50:47]OFD Sender: No OFD packet to send [15:50:52]OFD Sender: No OFD packet to send [15:50:57]OFD Sender: No OFD packet to send [15:51:02]OFD Sender: No OFD packet to send [15:51:07]OFD Sender: No OFD packet to send [15:51:12]OFD Sender: No OFD packet to send [15:51:17]OFD Sender: No OFD packet to send [15:51:22]OFD Sender: No OFD packet to send [15:51:24]accept exits with 9 [15:51:24]New connection [15:51:24]New thread 3067157860 created [15:51:24]Thread 3067014500 joined [15:51:24]Waiting for new connection... [15:51:24] Sock 9.Parse request [15:51:24]Sock 9.Check first char [15:51:24]Sock 9.First char is OK [15:51:24]request: POST /json_proto HTTP/1.0 [15:51:24]Method: POST [15:51:24]URL: /json_proto [15:51:24]Method is POST - this is cgi request [15:51:24]url: /json_proto [15:51:24]query_string will be loaded in cgi processing [15:51:24]execute_cgi json_proto POST (null) [15:51:24]execute_cgi path=json_proto method=POST [15:51:24]POST find Content-Length [15:51:24]Host: 172.17.48.198:8080 [15:51:24]Content-Length: 872 [15:51:24]Content-Type: application/json [15:51:24] [15:51:24]POST finish read [15:51:24]Found Content-Length = 872 [15:51:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184187", "tax_sys" : 0, "items" : [ { "code": "5000159381178", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0411\u0430\u0443\u043D\u0442\u0438 \u0422\u0440\u0438\u043E 82,5\u0433", "price" : 89.00, "quantity" : 1.000, "sum" : 89.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 89.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:51:24]execute_script... [15:51:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184187", "tax_sys" : 0, "items" : [ { "code": "5000159381178", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0411\u0430\u0443\u043D\u0442\u0438 \u0422\u0440\u0438\u043E 82,5\u0433", "price" : 89.00, "quantity" : 1.000, "sum" : 89.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 89.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:51:24]POST & json_proto [15:51:24]process_json_proto [15:51:24]json parsed OK: [15:51:24]protocol is kg_v1.0 [15:51:24]action value=close_receipt [15:51:24]process_action close_receipt [15:51:24]cmd_close_receipt [15:51:24]MH_GetDate [15:51:24]Write to MH i2c: F0 00 00 FE 4F 3C [15:51:24]Write i2c OK [15:51:24]MH_I2C_Read... [15:51:24]Read from MH i2c: F0 [15:51:24]MH_I2C_Read... [15:51:24]Read from MH i2c: F0 09 00 [15:51:24]MH_I2C_Read... [15:51:24]Read from MH i2c: F0 09 00 FE 4F 00 89 9C E4 65 CE C4 D4 65 7E [15:51:24]GetLastDocTimeStamp 1709480901 [15:51:24]current date 1709481097 [15:51:24]FM_GetShiftState [15:51:24]SAM_PROTO_GetShiftState [15:51:24]wFMCommunicate request_size=4 [15:51:24]MH_SAM_APDU [15:51:24]CAPDU: 80 13 01 00 [15:51:24]Write to MH i2c: E2 08 00 FF 4F 80 13 01 00 00 00 00 00 CB [15:51:24]Write i2c OK [15:51:24]MH_I2C_Read... [15:51:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:51:24]Read from MH i2c: E2 [15:51:24]MH_I2C_Read... [15:51:24]Read from MH i2c: E2 0E 00 [15:51:24]MH_I2C_Read... [15:51:24]Read from MH i2c: E2 0E 00 FF 4F 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 01 [15:51:24]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [15:51:24]wFMCommunicate OK [15:51:24]SAM_PROTO_GetShiftState done [15:51:24]FM_GetShiftState done [15:51:24]opened in 1709425694 [15:51:24]opened+sec_in_day 1709512094 [15:51:24]quantity*price = 8900 [15:51:24]sum+1 = 8901 [15:51:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 89.00 НСП 1% : 0.79 НДС 12% : 9.45 Наличными: 0.00 Безнал.: 89.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 59 03.03.2024 15:51 Смена: 331 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874796 ФД: 45222 ФПД: 262627358942591 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T155137&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45222&fm=262627358942591&tin=02508201610067®Number=0000000000090572&sum=8900 0 [15:51:26]StoreToDocumentArchive [15:51:26]shift 331 fd 45222 [15:51:26]save to /storage/0331/doc_00045222 [15:51:26]save last doc name /storage/0331/doc_00045222 to /storage/kkm_last_doc_name [15:51:26]save OK [15:51:26]Clear old archive folders... [15:51:26]ProcessDocumentItem done err = 0, tmpTLVsize=294 [15:51:26]tlvbuf is 01B12BB0 [15:51:26]SAM_PROTO_ClearQueue [15:51:26]wFMCommunicate request_size=4 [15:51:26]MH_SAM_APDU [15:51:26]CAPDU: 80 09 00 00 [15:51:26]Write to MH i2c: E2 08 00 0C 50 80 09 00 00 00 00 00 00 CE [15:51:26]Write i2c OK [15:51:26]MH_I2C_Read... [15:51:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:51:26]Read from MH i2c: E2 [15:51:26]MH_I2C_Read... [15:51:26]Read from MH i2c: E2 03 00 [15:51:26]MH_I2C_Read... [15:51:26]Read from MH i2c: E2 03 00 0C 50 00 90 00 D0 [15:51:26]RAPDU: 90 00 [15:51:26]wFMCommunicate OK [15:51:26]SAM_PROTO_ClearQueue done [15:51:26]KKMCreateOFDPacket [15:51:26]OFDProtocolAddRootSTLVToBuf [15:51:26]FM_MakeSignedData [15:51:26]FM_MakeSignedData [15:51:26]SAM_PROTO_SignData [15:51:26]wFMCommunicate request_size=4 [15:51:26]MH_SAM_APDU [15:51:26]CAPDU: 80 0D 01 02 [15:51:26]Write to MH i2c: E2 08 00 0D 50 80 0D 01 02 00 00 00 00 D6 [15:51:26]Write i2c OK [15:51:26]MH_I2C_Read... [15:51:26]Read from MH i2c: E2 [15:51:26]MH_I2C_Read... [15:51:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:51:26]Read from MH i2c: E2 03 00 [15:51:26]MH_I2C_Read... [15:51:26]Read from MH i2c: E2 03 00 0D 50 00 90 00 D1 [15:51:26]RAPDU: 90 00 [15:51:26]wFMCommunicate OK [15:51:26]wFMCommunicate request_size=255 [15:51:26]MH_SAM_APDU [15:51:26]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 38 31 31 37 38 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 D0 A2 D1 80 D0 B8 D0 BE 20 38 32 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 22 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 22 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 89 9C E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [15:51:26]Write to MH i2c: E2 02 01 0E 50 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 38 31 31 37 38 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 D0 A2 D1 80 D0 B8 D0 BE 20 38 32 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 22 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 22 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 89 9C E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 07 [15:51:26]Write i2c OK [15:51:26]MH_I2C_Read... [15:51:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:51:26]Read from MH i2c: E2 [15:51:26]MH_I2C_Read... [15:51:26]Read from MH i2c: E2 03 00 [15:51:26]MH_I2C_Read... [15:51:26]Read from MH i2c: E2 03 00 0E 50 00 90 00 D2 [15:51:26]RAPDU: 90 00 [15:51:26]wFMCommunicate OK [15:51:26]wFMCommunicate request_size=53 [15:51:26]MH_SAM_APDU [15:51:26]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 A6 B0 00 00 35 04 06 00 EE DB B2 70 25 7F [15:51:26]Write to MH i2c: E2 38 00 0F 50 80 0D 02 02 30 00 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 A6 B0 00 00 35 04 06 00 EE DB B2 70 25 7F 00 00 BA [15:51:26]Write i2c OK [15:51:26]MH_I2C_Read... [15:51:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:51:26]Read from MH i2c: E2 [15:51:26]MH_I2C_Read... [15:51:26]Read from MH i2c: E2 03 00 [15:51:26]MH_I2C_Read... [15:51:26]Read from MH i2c: E2 03 00 0F 50 00 90 00 D3 [15:51:26]RAPDU: 90 00 [15:51:26]wFMCommunicate OK [15:51:26]wFMCommunicate request_size=4 [15:51:26]MH_SAM_APDU [15:51:26]CAPDU: 80 0D 03 02 [15:51:26]Write to MH i2c: E2 08 00 10 50 80 0D 03 02 00 00 00 00 DB [15:51:26]Write i2c OK [15:51:26]MH_I2C_Read... [15:51:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:51:26]Read from MH i2c: E2 [15:51:26]MH_I2C_Read... [15:51:26]Read from MH i2c: E2 0B 00 [15:51:26]MH_I2C_Read... [15:51:26]Read from MH i2c: E2 0B 00 10 50 00 DA 92 8C CF 8F 3D F0 79 90 00 D8 [15:51:26]RAPDU: DA 92 8C CF 8F 3D F0 79 90 00 [15:51:26]wFMCommunicate OK [15:51:26]SAM_PROTO_SignData done [15:51:26]FM_MakeSignedData done [15:51:26]CreateOFDProtocolMessage [15:51:26]wFMCommunicate request_size=4 [15:51:26]MH_SAM_APDU [15:51:26]CAPDU: 80 11 00 00 [15:51:26]Write to MH i2c: E2 08 00 11 50 80 11 00 00 00 00 00 00 DB [15:51:26]Write i2c OK [15:51:26]MH_I2C_Read... [15:51:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:51:26]Read from MH i2c: E2 [15:51:26]MH_I2C_Read... [15:51:26]Read from MH i2c: E2 17 00 [15:51:26]MH_I2C_Read... [15:51:26]Read from MH i2c: E2 17 00 11 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 37 [15:51:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [15:51:26]wFMCommunicate OK [15:51:26]CreateOFDProtocolMessage done [15:51:26]OFDSenderStorePacket 45222 [15:51:26]StoreOFDPacket docnum=45222 [15:51:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 3A 01 00 00 93 A5 32 01 8D E3 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 38 31 31 37 38 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 D0 A2 D1 80 D0 B8 D0 BE 20 38 32 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 22 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 22 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 89 9C E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 A6 B0 00 00 35 04 06 00 EE DB B2 70 25 7F DA 92 8C CF 8F 3D F0 79 [15:51:26]CheckFolder [15:51:26]dirname=/storage/ofd_packets [15:51:26]CheckFolder done [15:51:26]ProducePacketName [15:51:26]name=ofd_packets/00045222 [15:51:26]NVStorageSaveData ofd_packets/00045222 [15:51:26]File name is /storage/ofd_packets/00045222 [15:51:26]Write 344 bytes [15:51:26]NVStorageSaveData done [15:51:26]OFDSenderStorePacket done [15:51:26]KKMCreateOFDPacket done [15:51:26]NVStorageSaveData kkm_last_timestamp [15:51:26]File name is /storage/kkm_last_timestamp [15:51:26]Write 4 bytes [15:51:26]NVStorageSaveData done [15:51:26]ExternCall_PrintAddStr [15:51:26]wPrintStart [15:51:26]Write to MH i2c: 01 00 00 12 50 62 [15:51:26]Write i2c OK [15:51:26]MH_I2C_Read... [15:51:26]Read from MH i2c: 01 [15:51:26]MH_I2C_Read... [15:51:26]Read from MH i2c: 01 07 00 [15:51:26]MH_I2C_Read... [15:51:26]Read from MH i2c: 01 07 00 12 50 00 00 00 00 00 FF 0F 77 [15:51:26]RasterBufferAndPrint [15:51:26]line Счет N : (3)184187 [15:51:26]line ИНН: 02508201610067 [15:51:26]line Контрольно-Кассовый Чек [15:51:26]line ПРОДАЖА [15:51:26]line Товар: 5000159381178 [15:51:26]line Шок Батончик Баунти Трио 82,5г [15:51:26]line 1.000 * 89.00 [15:51:26]line = 89.00 [15:51:26]line НДС 12% НСП 1% [15:51:26]line > о реализуемом товаре [15:51:26]line ИТОГО: 89.00 [15:51:26]line НСП 1% : 0.79 [15:51:26]line НДС 12% : 9.45 [15:51:26]line Наличными: 0.00 [15:51:26]line Безнал.: 89.00 [15:51:26]line Место: АЗС № 25 "Партнер Нефть" [15:51:26]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [15:51:26]line СНО: Общий режим [15:51:26]line Чек 59 03.03.2024 15:51 [15:51:26]line Смена: 331 ФФД: 1.0 [15:51:26]line ЗНМ: 0300000013 [15:51:26]line РНМ: 0000000000090572 [15:51:26]line Версия ККМ: 001 [15:51:26]line Платежная система: Бакай Банк [15:51:26]line ФМ: 0000000000874796 [15:51:26]line ФД: 45222 [15:51:26]line ФПД: 262627358942591 [15:51:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T155137&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45222&fm=262627358942591&tin=02508201610067®Number=0000000000090572&sum=8900 [15:51:26]line 0 [15:51:26]OFD Sender: Processing packet 45222 [packets to send 17, broken 16] [15:51:26]ProducePacketName [15:51:26]name=ofd_packets/00045222 [15:51:26]OFD Sender: To server: pG, [15:51:26]CommunicateWithHost lk.salyk.kg:30040 [15:51:26]ConnectInit lk.salyk.kg [15:51:26]written 0, free lines is 4095 [15:51:27]Connected sock=10 [15:51:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 3A 01 00 00 93 A5 32 01 8D E3 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 38 31 31 37 38 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 D0 A2 D1 80 D0 B8 D0 BE 20 38 32 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 22 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 22 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 89 9C E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 A6 B0 00 00 35 04 06 00 EE DB B2 70 25 7F DA 92 8C CF 8F 3D F0 79 [15:51:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 1E 0A 47 00 70 4E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 A6 B0 00 00 F4 03 04 00 4D 48 E4 65 B6 04 01 00 00 7D 2C E5 F2 59 CD 37 20 [15:51:27]CommunicateWithHost err = 0 [15:51:27]CheckOFDResponse [15:51:27]1017 (14) - 77093643461234 [15:51:27]1041 (16) - 0000000000874796 [15:51:27]1040 (4) - 45222 [15:51:27]1012 (4) - 03.03.2024 09:52 [15:51:27]1206 (1) - 0 [15:51:27]OFD Sender: Remove packet 45222 [15:51:27]ProducePacketName [15:51:27]name=ofd_packets/00045222 [15:51:27]NVStorageDeleteData [15:51:27]Write to MH i2c: 01 00 00 3D 50 8D [15:51:27]Write i2c OK [15:51:27]MH_I2C_Read... [15:51:27]Read from MH i2c: 01 [15:51:27]MH_I2C_Read... [15:51:27]Read from MH i2c: 01 07 00 [15:51:27]MH_I2C_Read... [15:51:27]Read from MH i2c: 01 07 00 3D 50 00 00 00 00 00 DD 0C 7D [15:51:27]RasterBufferAndPrint [15:51:27]line [15:51:27]line [15:51:27]line [15:51:27]line [15:51:27]line [15:51:27]written 0, free lines is 3299 [15:51:27]MH_Cut [15:51:27]Write to MH i2c: D1 01 00 44 50 01 66 [15:51:27]Write i2c OK [15:51:27]MH_I2C_Read... [15:51:27]Read from MH i2c: D1 [15:51:27]MH_I2C_Read... [15:51:27]Read from MH i2c: D1 01 00 [15:51:27]MH_I2C_Read... [15:51:27]Read from MH i2c: D1 01 00 44 50 00 65 [15:51:27]Write to MH i2c: 01 00 00 45 50 95 [15:51:27]Write i2c OK [15:51:27]MH_I2C_Read... [15:51:27]OFD Sender: No OFD packet to send [15:51:28]*** Cut start [15:51:28]*** Purtial cut [15:51:28]*** Stage 1: CUTSNS_PIN = 1 [15:51:30]Read from MH i2c: 01 [15:51:30]MH_I2C_Read... [15:51:30]*** Stop cut motor [15:51:30]*** Cut end [15:51:30]Read from MH i2c: 01 07 00 [15:51:30]MH_I2C_Read... [15:51:30]Read from MH i2c: 01 07 00 45 50 00 00 00 00 00 FF 0F AA [15:51:30]process_action close_receipt done [15:51:30]requested_data is exist [15:51:30]produce_requested_data [15:51:30]requested_item fm.sn is exist - process it [15:51:30]wFMCommunicate request_size=4 [15:51:30]MH_SAM_APDU [15:51:30]CAPDU: 80 11 00 00 [15:51:30]Write to MH i2c: E2 08 00 46 50 80 11 00 00 00 00 00 00 10 [15:51:30]Write i2c OK [15:51:30]MH_I2C_Read... [15:51:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:51:30]Read from MH i2c: E2 [15:51:30]MH_I2C_Read... [15:51:30]Read from MH i2c: E2 17 00 [15:51:30]MH_I2C_Read... [15:51:30]Read from MH i2c: E2 17 00 46 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 6C [15:51:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [15:51:30]wFMCommunicate OK [15:51:30]requested_item fd.num is exist - process it [15:51:30]SAM_PROTO_GetFieldsCounters [15:51:30]wFMCommunicate request_size=4 [15:51:30]MH_SAM_APDU [15:51:30]CAPDU: 80 13 00 00 [15:51:30]Write to MH i2c: E2 08 00 47 50 80 13 00 00 00 00 00 00 13 [15:51:30]Write i2c OK [15:51:30]MH_I2C_Read... [15:51:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:51:30]Read from MH i2c: E2 [15:51:30]MH_I2C_Read... [15:51:30]Read from MH i2c: E2 62 00 [15:51:30]MH_I2C_Read... [15:51:30]Read from MH i2c: E2 62 00 47 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 A6 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 8E [15:51:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 A6 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:51:30]wFMCommunicate OK [15:51:30]SAM_PROTO_GetFieldsCounters done [15:51:30]requested_item shift.num is exist - process it [15:51:30]requested_item shift.opened is exist - process it [15:51:30]req_shift_opened [15:51:30]FM_GetShiftState [15:51:30]SAM_PROTO_GetShiftState [15:51:30]wFMCommunicate request_size=4 [15:51:30]MH_SAM_APDU [15:51:30]CAPDU: 80 13 01 00 [15:51:30]Write to MH i2c: E2 08 00 48 50 80 13 01 00 00 00 00 00 15 [15:51:30]Write i2c OK [15:51:30]MH_I2C_Read... [15:51:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:51:30]Read from MH i2c: E2 [15:51:30]MH_I2C_Read... [15:51:30]Read from MH i2c: E2 0E 00 [15:51:30]MH_I2C_Read... [15:51:30]Read from MH i2c: E2 0E 00 48 50 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 4B [15:51:30]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [15:51:30]wFMCommunicate OK [15:51:30]SAM_PROTO_GetShiftState done [15:51:30]FM_GetShiftState done [15:51:30]req_shift_opened done [15:51:30]requested_item shift.open_date is exist - process it [15:51:30]req_shift_open_date [15:51:30]req_shift_open_date done [15:51:30]produce_requested_data done [15:51:30]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45222,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [15:51:30]process_action_free close_receipt [15:51:30]json_value_free [15:51:30]json_value_free done [15:51:30]process_json_proto returns [15:51:30]Send response to host [15:51:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45222,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [15:51:30]free response buf [15:51:30]execute_script done [15:51:30]execute_script returns [15:51:30]free content buf [15:51:30]Sock 9.Close socket [15:51:30]Sock 9.Thread stoped [15:51:32]OFD Sender: No OFD packet to send [15:51:37]OFD Sender: No OFD packet to send [15:51:42]OFD Sender: No OFD packet to send [15:51:47]OFD Sender: No OFD packet to send [15:51:52]OFD Sender: No OFD packet to send [15:51:57]OFD Sender: No OFD packet to send [15:52:02]OFD Sender: No OFD packet to send [15:52:07]OFD Sender: No OFD packet to send [15:52:12]OFD Sender: No OFD packet to send [15:52:17]OFD Sender: No OFD packet to send [15:52:22]OFD Sender: No OFD packet to send [15:52:27]OFD Sender: No OFD packet to send [15:52:32]OFD Sender: No OFD packet to send [15:52:37]OFD Sender: No OFD packet to send [15:52:42]OFD Sender: No OFD packet to send [15:52:47]OFD Sender: No OFD packet to send [15:52:52]OFD Sender: No OFD packet to send [15:52:57]OFD Sender: No OFD packet to send [15:53:02]OFD Sender: No OFD packet to send [15:53:07]OFD Sender: No OFD packet to send [15:53:12]OFD Sender: No OFD packet to send [15:53:17]OFD Sender: No OFD packet to send [15:53:22]OFD Sender: No OFD packet to send [15:53:27]OFD Sender: No OFD packet to send [15:53:32]OFD Sender: No OFD packet to send [15:53:37]OFD Sender: No OFD packet to send [15:53:42]OFD Sender: No OFD packet to send [15:53:47]OFD Sender: No OFD packet to send [15:53:52]OFD Sender: No OFD packet to send [15:53:57]OFD Sender: No OFD packet to send [15:54:02]OFD Sender: No OFD packet to send [15:54:07]OFD Sender: No OFD packet to send [15:54:12]OFD Sender: No OFD packet to send [15:54:17]OFD Sender: No OFD packet to send [15:54:22]OFD Sender: No OFD packet to send [15:54:27]OFD Sender: No OFD packet to send [15:54:32]OFD Sender: No OFD packet to send [15:54:37]OFD Sender: No OFD packet to send [15:54:42]OFD Sender: No OFD packet to send [15:54:47]OFD Sender: No OFD packet to send [15:54:52]OFD Sender: No OFD packet to send [15:54:57]OFD Sender: No OFD packet to send [15:55:02]OFD Sender: No OFD packet to send [15:55:07]OFD Sender: No OFD packet to send [15:55:12]OFD Sender: No OFD packet to send [15:55:17]OFD Sender: No OFD packet to send [15:55:22]OFD Sender: No OFD packet to send [15:55:27]OFD Sender: No OFD packet to send [15:55:32]OFD Sender: No OFD packet to send [15:55:37]OFD Sender: No OFD packet to send [15:55:42]OFD Sender: No OFD packet to send [15:55:47]OFD Sender: No OFD packet to send [15:55:52]OFD Sender: No OFD packet to send [15:55:57]OFD Sender: No OFD packet to send [15:56:02]OFD Sender: No OFD packet to send [15:56:07]OFD Sender: No OFD packet to send [15:56:12]OFD Sender: No OFD packet to send [15:56:17]OFD Sender: No OFD packet to send [15:56:22]OFD Sender: No OFD packet to send [15:56:27]OFD Sender: No OFD packet to send [15:56:32]OFD Sender: No OFD packet to send [15:56:37]OFD Sender: No OFD packet to send [15:56:42]OFD Sender: No OFD packet to send [15:56:47]OFD Sender: No OFD packet to send [15:56:52]OFD Sender: No OFD packet to send [15:56:57]OFD Sender: No OFD packet to send [15:57:02]OFD Sender: No OFD packet to send [15:57:07]OFD Sender: No OFD packet to send [15:57:12]OFD Sender: No OFD packet to send [15:57:17]OFD Sender: No OFD packet to send [15:57:22]OFD Sender: No OFD packet to send [15:57:27]OFD Sender: No OFD packet to send [15:57:32]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: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:31]accept exits with 7 [16:00:31]New connection [16:00:31]New thread 3067014500 created [16:00:31]Thread 3067157860 joined [16:00:31]Waiting for new connection... [16:00:31] Sock 7.Parse request [16:00:31]Sock 7.Check first char [16:00:31]Sock 7.First char is OK [16:00:31]request: POST /json_proto HTTP/1.0 [16:00:31]Method: POST [16:00:31]URL: /json_proto [16:00:31]Method is POST - this is cgi request [16:00:31]url: /json_proto [16:00:31]query_string will be loaded in cgi processing [16:00:31]execute_cgi json_proto POST (null) [16:00:31]execute_cgi path=json_proto method=POST [16:00:31]POST find Content-Length [16:00:31]Host: 172.17.48.198:8080 [16:00:31]Content-Length: 932 [16:00:31]Content-Type: application/json [16:00:31] [16:00:31]POST finish read [16:00:31]Found Content-Length = 932 [16:00:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184188", "tax_sys" : 0, "items" : [ { "code": "4700004070011", "name": "\u0421\u044D\u043D\u0434\u0432\u0438\u0447 \u0431\u043E\u043B\u044C\u0448\u043E\u0439", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000189325", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043F\u0435\u0440\u0441\u0438\u043A 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:00:31]execute_script... [16:00:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184188", "tax_sys" : 0, "items" : [ { "code": "4700004070011", "name": "\u0421\u044D\u043D\u0434\u0432\u0438\u0447 \u0431\u043E\u043B\u044C\u0448\u043E\u0439", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000189325", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043F\u0435\u0440\u0441\u0438\u043A 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:00:31]POST & json_proto [16:00:31]process_json_proto [16:00:31]json parsed OK: [16:00:31]protocol is kg_v1.0 [16:00:31]action value=close_receipt [16:00:31]process_action close_receipt [16:00:31]cmd_close_receipt [16:00:31]MH_GetDate [16:00:31]Write to MH i2c: F0 00 00 49 50 88 [16:00:31]Write i2c OK [16:00:31]MH_I2C_Read... [16:00:31]Read from MH i2c: F0 [16:00:31]MH_I2C_Read... [16:00:31]Read from MH i2c: F0 09 00 [16:00:31]MH_I2C_Read... [16:00:31]Read from MH i2c: F0 09 00 49 50 00 AB 9E E4 65 CE C4 D4 65 EE [16:00:31]GetLastDocTimeStamp 1709481097 [16:00:31]current date 1709481643 [16:00:31]FM_GetShiftState [16:00:31]SAM_PROTO_GetShiftState [16:00:31]wFMCommunicate request_size=4 [16:00:31]MH_SAM_APDU [16:00:31]CAPDU: 80 13 01 00 [16:00:31]Write to MH i2c: E2 08 00 4A 50 80 13 01 00 00 00 00 00 17 [16:00:31]Write i2c OK [16:00:31]MH_I2C_Read... [16:00:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:00:31]Read from MH i2c: E2 [16:00:31]MH_I2C_Read... [16:00:31]Read from MH i2c: E2 0E 00 [16:00:31]MH_I2C_Read... [16:00:31]Read from MH i2c: E2 0E 00 4A 50 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 4D [16:00:31]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [16:00:31]wFMCommunicate OK [16:00:31]SAM_PROTO_GetShiftState done [16:00:31]FM_GetShiftState done [16:00:31]opened in 1709425694 [16:00:31]opened+sec_in_day 1709512094 [16:00:31]quantity*price = 8000 [16:00:31]sum+1 = 8001 [16:00:31]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000189325 Холодный чай Fuse персик 0,5л 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 155.00 НСП 1% : 1.37 НДС 12% : 16.46 Наличными: 155.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 60 03.03.2024 16:00 Смена: 331 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 ФМ: 0000000000874796 ФД: 45223 ФПД: 217384426287892 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T160043&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45223&fm=217384426287892&tin=02508201610067®Number=0000000000090572&sum=15500 0 [16:00:32]StoreToDocumentArchive [16:00:32]shift 331 fd 45223 [16:00:32]save to /storage/0331/doc_00045223 [16:00:32]save last doc name /storage/0331/doc_00045223 to /storage/kkm_last_doc_name [16:00:32]save OK [16:00:32]Clear old archive folders... [16:00:32]ProcessDocumentItem done err = 0, tmpTLVsize=390 [16:00:32]tlvbuf is 01B2FE30 [16:00:32]SAM_PROTO_ClearQueue [16:00:32]wFMCommunicate request_size=4 [16:00:32]MH_SAM_APDU [16:00:32]CAPDU: 80 09 00 00 [16:00:32]Write to MH i2c: E2 08 00 57 50 80 09 00 00 00 00 00 00 19 [16:00:32]Write i2c OK [16:00:32]MH_I2C_Read... [16:00:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:00:32]Read from MH i2c: E2 [16:00:32]MH_I2C_Read... [16:00:32]Read from MH i2c: E2 03 00 [16:00:32]MH_I2C_Read... [16:00:32]Read from MH i2c: E2 03 00 57 50 00 90 00 1B [16:00:32]RAPDU: 90 00 [16:00:32]wFMCommunicate OK [16:00:32]SAM_PROTO_ClearQueue done [16:00:32]KKMCreateOFDPacket [16:00:32]OFDProtocolAddRootSTLVToBuf [16:00:32]FM_MakeSignedData [16:00:32]FM_MakeSignedData [16:00:32]SAM_PROTO_SignData [16:00:32]wFMCommunicate request_size=4 [16:00:32]MH_SAM_APDU [16:00:32]CAPDU: 80 0D 01 02 [16:00:32]Write to MH i2c: E2 08 00 58 50 80 0D 01 02 00 00 00 00 21 [16:00:32]Write i2c OK [16:00:32]MH_I2C_Read... [16:00:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:00:32]Read from MH i2c: E2 [16:00:32]MH_I2C_Read... [16:00:32]Read from MH i2c: E2 03 00 [16:00:32]MH_I2C_Read... [16:00:32]Read from MH i2c: E2 03 00 58 50 00 90 00 1C [16:00:32]RAPDU: 90 00 [16:00:32]wFMCommunicate OK [16:00:32]wFMCommunicate request_size=255 [16:00:32]MH_SAM_APDU [16:00:32]CAPDU: 80 0D 02 02 FA 03 00 86 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 34 30 37 30 30 31 31 06 04 1D 00 D0 A1 D1 8D D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 D0 B1 D0 BE D0 BB D1 8C D1 88 D0 BE D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 32 35 06 04 2F 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 [16:00:32]Write to MH i2c: E2 02 01 59 50 80 0D 02 02 FA 00 03 00 86 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 34 30 37 30 30 31 31 06 04 1D 00 D0 A1 D1 8D D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 D0 B1 D0 BE D0 BB D1 8C D1 88 D0 BE D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 32 35 06 04 2F 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 00 5C [16:00:32]Write i2c OK [16:00:32]MH_I2C_Read... [16:00:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:00:32]Read from MH i2c: E2 [16:00:32]MH_I2C_Read... [16:00:32]Read from MH i2c: E2 03 00 [16:00:32]MH_I2C_Read... [16:00:32]Read from MH i2c: E2 03 00 59 50 00 90 00 1D [16:00:32]RAPDU: 90 00 [16:00:32]wFMCommunicate OK [16:00:32]wFMCommunicate request_size=149 [16:00:32]MH_SAM_APDU [16:00:32]CAPDU: 80 0D 02 02 90 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 AB 9E E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 A7 B0 00 00 35 04 06 00 C5 B5 C1 82 33 14 [16:00:32]Write to MH i2c: E2 98 00 5A 50 80 0D 02 02 90 00 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 AB 9E E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 A7 B0 00 00 35 04 06 00 C5 B5 C1 82 33 14 00 00 B3 [16:00:32]Write i2c OK [16:00:32]MH_I2C_Read... [16:00:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:00:32]Read from MH i2c: E2 [16:00:32]MH_I2C_Read... [16:00:32]Read from MH i2c: E2 03 00 [16:00:32]MH_I2C_Read... [16:00:32]Read from MH i2c: E2 03 00 5A 50 00 90 00 1E [16:00:32]RAPDU: 90 00 [16:00:32]wFMCommunicate OK [16:00:32]wFMCommunicate request_size=4 [16:00:32]MH_SAM_APDU [16:00:32]CAPDU: 80 0D 03 02 [16:00:32]Write to MH i2c: E2 08 00 5B 50 80 0D 03 02 00 00 00 00 26 [16:00:32]Write i2c OK [16:00:32]MH_I2C_Read... [16:00:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:00:32]Read from MH i2c: E2 [16:00:32]MH_I2C_Read... [16:00:32]Read from MH i2c: E2 0B 00 [16:00:32]MH_I2C_Read... [16:00:32]Read from MH i2c: E2 0B 00 5B 50 00 5D 47 EF 8C B9 96 76 6A 90 00 75 [16:00:32]RAPDU: 5D 47 EF 8C B9 96 76 6A 90 00 [16:00:32]wFMCommunicate OK [16:00:32]SAM_PROTO_SignData done [16:00:32]FM_MakeSignedData done [16:00:32]CreateOFDProtocolMessage [16:00:32]wFMCommunicate request_size=4 [16:00:32]MH_SAM_APDU [16:00:32]CAPDU: 80 11 00 00 [16:00:32]Write to MH i2c: E2 08 00 5C 50 80 11 00 00 00 00 00 00 26 [16:00:32]Write i2c OK [16:00:32]MH_I2C_Read... [16:00:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:32]Read from MH i2c: E2 [16:00:32]MH_I2C_Read... [16:00:32]Read from MH i2c: E2 17 00 [16:00:32]MH_I2C_Read... [16:00:32]Read from MH i2c: E2 17 00 5C 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 82 [16:00:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [16:00:32]wFMCommunicate OK [16:00:32]CreateOFDProtocolMessage done [16:00:32]OFDSenderStorePacket 45223 [16:00:32]StoreOFDPacket docnum=45223 [16:00:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 9A 01 00 00 9A 8B 92 01 54 6B 5A 03 01 00 03 00 86 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 34 30 37 30 30 31 31 06 04 1D 00 D0 A1 D1 8D D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 D0 B1 D0 BE D0 BB D1 8C D1 88 D0 BE D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 32 35 06 04 2F 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 AB 9E E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 A7 B0 00 00 35 04 06 00 C5 B5 C1 82 33 14 5D 47 EF 8C B9 96 76 6A [16:00:32]CheckFolder [16:00:32]dirname=/storage/ofd_packets [16:00:32]CheckFolder done [16:00:32]ProducePacketName [16:00:32]name=ofd_packets/00045223 [16:00:32]NVStorageSaveData ofd_packets/00045223 [16:00:32]File name is /storage/ofd_packets/00045223 [16:00:32]Write 440 bytes [16:00:32]NVStorageSaveData done [16:00:32]OFDSenderStorePacket done [16:00:32]KKMCreateOFDPacket done [16:00:32]NVStorageSaveData kkm_last_timestamp [16:00:32]File name is /storage/kkm_last_timestamp [16:00:32]Write 4 bytes [16:00:32]NVStorageSaveData done [16:00:32]ExternCall_PrintAddStr [16:00:32]wPrintStart [16:00:32]Write to MH i2c: 01 00 00 5D 50 AD [16:00:32]Write i2c OK [16:00:32]MH_I2C_Read... [16:00:32]Read from MH i2c: 01 [16:00:32]MH_I2C_Read... [16:00:32]Read from MH i2c: 01 07 00 [16:00:32]MH_I2C_Read... [16:00:32]Read from MH i2c: 01 07 00 5D 50 00 00 00 00 00 FF 0F C2 [16:00:32]RasterBufferAndPrint [16:00:32]line Счет N : (3)184188 [16:00:33]line ИНН: 02508201610067 [16:00:33]line Контрольно-Кассовый Чек [16:00:33]line ПРОДАЖА [16:00:33]line Товар: 4700004070011 [16:00:33]line Сэндвич большой [16:00:33]line 1.000 * 80.00 [16:00:33]line = 80.00 [16:00:33]line НДС 12% НСП 1% [16:00:33]line > о реализуемом товаре [16:00:33]line Товар: 5449000189325 [16:00:33]line Холодный чай Fuse персик 0,5л [16:00:33]line 1.000 * 75.00 [16:00:33]line = 75.00 [16:00:33]line НДС 12% НСП 1% [16:00:33]line > о реализуемом товаре [16:00:33]line ИТОГО: 155.00 [16:00:33]line НСП 1% : 1.37 [16:00:33]line НДС 12% : 16.46 [16:00:33]line Наличными: 155.00 [16:00:33]line Безнал.: 0.00 [16:00:33]line Место: АЗС № 25 "Партнер Нефть" [16:00:33]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [16:00:33]line СНО: Общий режим [16:00:33]line Чек 60 03.03.2024 16:00 [16:00:33]line Смена: 331 ФФД: 1.0 [16:00:33]line ЗНМ: 0300000013 [16:00:33]line РНМ: 0000000000090572 [16:00:33]line Версия ККМ: 001 [16:00:33]line ФМ: 0000000000874796 [16:00:33]line ФД: 45223 [16:00:33]line ФПД: 217384426287892 [16:00:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T160043&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45223&fm=217384426287892&tin=02508201610067®Number=0000000000090572&sum=15500 [16:00:33]OFD Sender: Processing packet 45223 [packets to send 17, broken 16] [16:00:33]ProducePacketName [16:00:33]name=ofd_packets/00045223 [16:00:33]OFD Sender: To server: pG, [16:00:33]CommunicateWithHost lk.salyk.kg:30040 [16:00:33]ConnectInit lk.salyk.kg [16:00:33]line 0 [16:00:33]written 0, free lines is 4095 [16:00:33]Connected sock=10 [16:00:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 9A 01 00 00 9A 8B 92 01 54 6B 5A 03 01 00 03 00 86 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 34 30 37 30 30 31 31 06 04 1D 00 D0 A1 D1 8D D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 D0 B1 D0 BE D0 BB D1 8C D1 88 D0 BE D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 32 35 06 04 2F 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 AB 9E E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 A7 B0 00 00 35 04 06 00 C5 B5 C1 82 33 14 5D 47 EF 8C B9 96 76 6A [16:00:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 EA 43 47 00 6E 23 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 A7 B0 00 00 F4 03 04 00 70 4A E4 65 B6 04 01 00 00 38 E1 1F 4C 73 73 B0 36 [16:00:33]CommunicateWithHost err = 0 [16:00:33]CheckOFDResponse [16:00:33]1017 (14) - 77093643461234 [16:00:33]1041 (16) - 0000000000874796 [16:00:33]1040 (4) - 45223 [16:00:33]1012 (4) - 03.03.2024 10:01 [16:00:33]1206 (1) - 0 [16:00:33]OFD Sender: Remove packet 45223 [16:00:33]ProducePacketName [16:00:33]name=ofd_packets/00045223 [16:00:33]NVStorageDeleteData [16:00:33]Write to MH i2c: 01 00 00 8C 50 DC [16:00:33]Write i2c OK [16:00:33]MH_I2C_Read... [16:00:33]Read from MH i2c: 01 [16:00:33]MH_I2C_Read... [16:00:33]Read from MH i2c: 01 07 00 [16:00:33]MH_I2C_Read... [16:00:33]Read from MH i2c: 01 07 00 8C 50 00 00 00 00 00 A0 0C 8F [16:00:33]RasterBufferAndPrint [16:00:33]line [16:00:33]line [16:00:33]line [16:00:33]line [16:00:33]line [16:00:33]written 0, free lines is 3241 [16:00:33]MH_Cut [16:00:33]Write to MH i2c: D1 01 00 93 50 01 B5 [16:00:33]Write i2c OK [16:00:33]MH_I2C_Read... [16:00:33]Read from MH i2c: D1 [16:00:33]MH_I2C_Read... [16:00:33]Read from MH i2c: D1 01 00 [16:00:33]MH_I2C_Read... [16:00:33]Read from MH i2c: D1 01 00 93 50 00 B4 [16:00:33]Write to MH i2c: 01 00 00 94 50 E4 [16:00:33]Write i2c OK [16:00:33]MH_I2C_Read... [16:00:34]OFD Sender: No OFD packet to send [16:00:34]*** Cut start [16:00:34]*** Purtial cut [16:00:34]*** Stage 1: CUTSNS_PIN = 1 [16:00:36]Read from MH i2c: 01 [16:00:36]MH_I2C_Read... [16:00:36]*** Stop cut motor [16:00:36]*** Cut end [16:00:36]Read from MH i2c: 01 07 00 [16:00:36]MH_I2C_Read... [16:00:36]Read from MH i2c: 01 07 00 94 50 00 00 00 00 00 FF 0F F9 [16:00:36]process_action close_receipt done [16:00:36]requested_data is exist [16:00:36]produce_requested_data [16:00:36]requested_item fm.sn is exist - process it [16:00:36]wFMCommunicate request_size=4 [16:00:36]MH_SAM_APDU [16:00:36]CAPDU: 80 11 00 00 [16:00:36]Write to MH i2c: E2 08 00 95 50 80 11 00 00 00 00 00 00 5F [16:00:36]Write i2c OK [16:00:36]MH_I2C_Read... [16:00:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:36]Read from MH i2c: E2 [16:00:36]MH_I2C_Read... [16:00:36]Read from MH i2c: E2 17 00 [16:00:36]MH_I2C_Read... [16:00:36]Read from MH i2c: E2 17 00 95 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 BB [16:00:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [16:00:36]wFMCommunicate OK [16:00:36]requested_item fd.num is exist - process it [16:00:36]SAM_PROTO_GetFieldsCounters [16:00:36]wFMCommunicate request_size=4 [16:00:36]MH_SAM_APDU [16:00:36]CAPDU: 80 13 00 00 [16:00:36]Write to MH i2c: E2 08 00 96 50 80 13 00 00 00 00 00 00 62 [16:00:36]Write i2c OK [16:00:36]MH_I2C_Read... [16:00:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:00:36]Read from MH i2c: E2 [16:00:36]MH_I2C_Read... [16:00:36]Read from MH i2c: E2 62 00 [16:00:36]MH_I2C_Read... [16:00:36]Read from MH i2c: E2 62 00 96 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 A7 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 E1 [16:00:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 A7 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:00:36]wFMCommunicate OK [16:00:36]SAM_PROTO_GetFieldsCounters done [16:00:36]requested_item shift.num is exist - process it [16:00:36]requested_item shift.opened is exist - process it [16:00:36]req_shift_opened [16:00:36]FM_GetShiftState [16:00:36]SAM_PROTO_GetShiftState [16:00:36]wFMCommunicate request_size=4 [16:00:36]MH_SAM_APDU [16:00:36]CAPDU: 80 13 01 00 [16:00:36]Write to MH i2c: E2 08 00 97 50 80 13 01 00 00 00 00 00 64 [16:00:36]Write i2c OK [16:00:36]MH_I2C_Read... [16:00:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:00:36]Read from MH i2c: E2 [16:00:36]MH_I2C_Read... [16:00:36]Read from MH i2c: E2 0E 00 [16:00:36]MH_I2C_Read... [16:00:36]Read from MH i2c: E2 0E 00 97 50 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 9A [16:00:36]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [16:00:36]wFMCommunicate OK [16:00:36]SAM_PROTO_GetShiftState done [16:00:36]FM_GetShiftState done [16:00:36]req_shift_opened done [16:00:36]requested_item shift.open_date is exist - process it [16:00:36]req_shift_open_date [16:00:36]req_shift_open_date done [16:00:36]produce_requested_data done [16:00:36]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45223,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [16:00:36]process_action_free close_receipt [16:00:36]json_value_free [16:00:36]json_value_free done [16:00:36]process_json_proto returns [16:00:36]Send response to host [16:00:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45223,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [16:00:36]free response buf [16:00:36]execute_script done [16:00:36]execute_script returns [16:00:36]free content buf [16:00:36]Sock 7.Close socket [16:00:36]Sock 7.Thread stoped [16:00:39]OFD Sender: No OFD packet to send [16:00:44]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]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:59]OFD Sender: No OFD packet to send [16:06:04]OFD Sender: No OFD packet to send [16:06:09]OFD Sender: No OFD packet to send [16:06:14]OFD Sender: No OFD packet to send [16:06:19]OFD Sender: No OFD packet to send [16:06:24]OFD Sender: No OFD packet to send [16:06:29]OFD Sender: No OFD packet to send [16:06:34]OFD Sender: No OFD packet to send [16:06:39]OFD Sender: No OFD packet to send [16:06:44]OFD Sender: No OFD packet to send [16:06:49]OFD Sender: No OFD packet to send [16:06:54]OFD Sender: No OFD packet to send [16:06:59]OFD Sender: No OFD packet to send [16:07:04]OFD Sender: No OFD packet to send [16:07:09]OFD Sender: No OFD packet to send [16:07:14]OFD Sender: No OFD packet to send [16:07:19]OFD Sender: No OFD packet to send [16:07:24]OFD Sender: No OFD packet to send [16:07:29]OFD Sender: No OFD packet to send [16:07:34]OFD Sender: No OFD packet to send [16:07:39]OFD Sender: No OFD packet to send [16:07:44]OFD Sender: No OFD packet to send [16:07:49]OFD Sender: No OFD packet to send [16:07:54]OFD Sender: No OFD packet to send [16:07:59]OFD Sender: No OFD packet to send [16:08:04]OFD Sender: No OFD packet to send [16:08:09]OFD Sender: No OFD packet to send [16:08:14]OFD Sender: No OFD packet to send [16:08:19]OFD Sender: No OFD packet to send [16:08:24]OFD Sender: No OFD packet to send [16:08:29]OFD Sender: No OFD packet to send [16:08:34]OFD Sender: No OFD packet to send [16:08:39]OFD Sender: No OFD packet to send [16:08:44]OFD Sender: No OFD packet to send [16:08:49]OFD Sender: No OFD packet to send [16:08:54]OFD Sender: No OFD packet to send [16:08:59]OFD Sender: No OFD packet to send [16:09:04]OFD Sender: No OFD packet to send [16:09:09]OFD Sender: No OFD packet to send [16:09:14]OFD Sender: No OFD packet to send [16:09:19]OFD Sender: No OFD packet to send [16:09:24]OFD Sender: No OFD packet to send [16:09:29]OFD Sender: No OFD packet to send [16:09:34]OFD Sender: No OFD packet to send [16:09:39]OFD Sender: No OFD packet to send [16:09:44]OFD Sender: No OFD packet to send [16:09:49]OFD Sender: No OFD packet to send [16:09:54]OFD Sender: No OFD packet to send [16:09:59]OFD Sender: No OFD packet to send [16:10:04]OFD Sender: No OFD packet to send [16:10:09]OFD Sender: No OFD packet to send [16:10:14]OFD Sender: No OFD packet to send [16:10:19]OFD Sender: No OFD packet to send [16:10:24]OFD Sender: No OFD packet to send [16:10:29]OFD Sender: No OFD packet to send [16:10:34]OFD Sender: No OFD packet to send [16:10:39]OFD Sender: No OFD packet to send [16:10:44]OFD Sender: No OFD packet to send [16:10:49]OFD Sender: No OFD packet to send [16:10:54]OFD Sender: No OFD packet to send [16:10:59]OFD Sender: No OFD packet to send [16:11:04]OFD Sender: No OFD packet to send [16:11:09]OFD Sender: No OFD packet to send [16:11:14]OFD Sender: No OFD packet to send [16:11:19]OFD Sender: No OFD packet to send [16:11:24]OFD Sender: No OFD packet to send [16:11:29]OFD Sender: No OFD packet to send [16:11:34]OFD Sender: No OFD packet to send [16:11:39]OFD Sender: No OFD packet to send [16:11:44]OFD Sender: No OFD packet to send [16:11:49]OFD Sender: No OFD packet to send [16:11:54]OFD Sender: No OFD packet to send [16:11:59]OFD Sender: No OFD packet to send [16:12:04]OFD Sender: No OFD packet to send [16:12:09]OFD Sender: No OFD packet to send [16:12:14]OFD Sender: No OFD packet to send [16:12:19]OFD Sender: No OFD packet to send [16:12:24]OFD Sender: No OFD packet to send [16:12:29]OFD Sender: No OFD packet to send [16:12:34]OFD Sender: No OFD packet to send [16:12:39]OFD Sender: No OFD packet to send [16:12:44]OFD Sender: No OFD packet to send [16:12:49]OFD Sender: No OFD packet to send [16:12:54]OFD Sender: No OFD packet to send [16:12:59]OFD Sender: No OFD packet to send [16:13:04]OFD Sender: No OFD packet to send [16:13:09]OFD Sender: No OFD packet to send [16:13:14]OFD Sender: No OFD packet to send [16:13:19]OFD Sender: No OFD packet to send [16:13:24]OFD Sender: No OFD packet to send [16:13:29]OFD Sender: No OFD packet to send [16:13:34]OFD Sender: No OFD packet to send [16:13:39]OFD Sender: No OFD packet to send [16:13:44]OFD Sender: No OFD packet to send [16:13:49]OFD Sender: No OFD packet to send [16:13:54]OFD Sender: No OFD packet to send [16:13:59]OFD Sender: No OFD packet to send [16:14:04]OFD Sender: No OFD packet to send [16:14:09]OFD Sender: No OFD packet to send [16:14:14]OFD Sender: No OFD packet to send [16:14:19]OFD Sender: No OFD packet to send [16:14:24]OFD Sender: No OFD packet to send [16:14:29]OFD Sender: No OFD packet to send [16:14:34]OFD Sender: No OFD packet to send [16:14:39]OFD Sender: No OFD packet to send [16:14:44]OFD Sender: No OFD packet to send [16:14:49]OFD Sender: No OFD packet to send [16:14:54]OFD Sender: No OFD packet to send [16:14:59]OFD Sender: No OFD packet to send [16:15:04]OFD Sender: No OFD packet to send [16:15:09]OFD Sender: No OFD packet to send [16:15:14]OFD Sender: No OFD packet to send [16:15:19]OFD Sender: No OFD packet to send [16:15:24]OFD Sender: No OFD packet to send [16:15:29]OFD Sender: No OFD packet to send [16:15:34]OFD Sender: No OFD packet to send [16:15:39]OFD Sender: No OFD packet to send [16:15:44]OFD Sender: No OFD packet to send [16:15:49]OFD Sender: No OFD packet to send [16:15:54]OFD Sender: No OFD packet to send [16:15:59]OFD Sender: No OFD packet to send [16:16:04]OFD Sender: No OFD packet to send [16:16:09]OFD Sender: No OFD packet to send [16:16:14]OFD Sender: No OFD packet to send [16:16:19]OFD Sender: No OFD packet to send [16:16:24]OFD Sender: No OFD packet to send [16:16:29]OFD Sender: No OFD packet to send [16:16:34]OFD Sender: No OFD packet to send [16:16:39]OFD Sender: No OFD packet to send [16:16:44]OFD Sender: No OFD packet to send [16:16:49]OFD Sender: No OFD packet to send [16:16:54]OFD Sender: No OFD packet to send [16:16:59]OFD Sender: No OFD packet to send [16:17:04]OFD Sender: No OFD packet to send [16:17:09]OFD Sender: No OFD packet to send [16:17:14]OFD Sender: No OFD packet to send [16:17:19]OFD Sender: No OFD packet to send [16:17:24]OFD Sender: No OFD packet to send [16:17:29]OFD Sender: No OFD packet to send [16:17:34]OFD Sender: No OFD packet to send [16:17:39]OFD Sender: No OFD packet to send [16:17:44]OFD Sender: No OFD packet to send [16:17:49]OFD Sender: No OFD packet to send [16:17:54]OFD Sender: No OFD packet to send [16:17:59]OFD Sender: No OFD packet to send [16:18:04]OFD Sender: No OFD packet to send [16:18:09]OFD Sender: No OFD packet to send [16:18:14]OFD Sender: No OFD packet to send [16:18:19]OFD Sender: No OFD packet to send [16:18:24]OFD Sender: No OFD packet to send [16:18:29]OFD Sender: No OFD packet to send [16:18:34]OFD Sender: No OFD packet to send [16:18:39]OFD Sender: No OFD packet to send [16:18:44]OFD Sender: No OFD packet to send [16:18:49]OFD Sender: No OFD packet to send [16:18:54]OFD Sender: No OFD packet to send [16:18:59]OFD Sender: No OFD packet to send [16:19:04]OFD Sender: No OFD packet to send [16:19:09]OFD Sender: No OFD packet to send [16:19:14]OFD Sender: No OFD packet to send [16:19:19]OFD Sender: No OFD packet to send [16:19:24]OFD Sender: No OFD packet to send [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:45]OFD Sender: No OFD packet to send [16:19:50]OFD Sender: No OFD packet to send [16:19:55]OFD Sender: No OFD packet to send [16:20:00]OFD Sender: No OFD packet to send [16:20:05]OFD Sender: No OFD packet to send [16:20:10]OFD Sender: No OFD packet to send [16:20:15]OFD Sender: No OFD packet to send [16:20:20]OFD Sender: No OFD packet to send [16:20:25]OFD Sender: No OFD packet to send [16:20:30]OFD Sender: No OFD packet to send [16:20:35]OFD Sender: No OFD packet to send [16:20:40]OFD Sender: No OFD packet to send [16:20:45]OFD Sender: No OFD packet to send [16:20:50]OFD Sender: No OFD packet to send [16:20:55]OFD Sender: No OFD packet to send [16:21:00]OFD Sender: No OFD packet to send [16:21:05]OFD Sender: No OFD packet to send [16:21:10]OFD Sender: No OFD packet to send [16:21:15]OFD Sender: No OFD packet to send [16:21:20]OFD Sender: No OFD packet to send [16:21:25]OFD Sender: No OFD packet to send [16:21:30]OFD Sender: No OFD packet to send [16:21:35]OFD Sender: No OFD packet to send [16:21:40]OFD Sender: No OFD packet to send [16:21:45]OFD Sender: No OFD packet to send [16:21:50]OFD Sender: No OFD packet to send [16:21:55]OFD Sender: No OFD packet to send [16:22:00]OFD Sender: No OFD packet to send [16:22:05]OFD Sender: No OFD packet to send [16:22:10]OFD Sender: No OFD packet to send [16:22:15]OFD Sender: No OFD packet to send [16:22:20]OFD Sender: No OFD packet to send [16:22:25]OFD Sender: No OFD packet to send [16:22:30]OFD Sender: No OFD packet to send [16:22:35]OFD Sender: No OFD packet to send [16:22:40]OFD Sender: No OFD packet to send [16:22:45]OFD Sender: No OFD packet to send [16:22:50]OFD Sender: No OFD packet to send [16:22:55]OFD Sender: No OFD packet to send [16:23:00]OFD Sender: No OFD packet to send [16:23:05]OFD Sender: No OFD packet to send [16:23:10]OFD Sender: No OFD packet to send [16:23:15]OFD Sender: No OFD packet to send [16:23:20]OFD Sender: No OFD packet to send [16:23:25]OFD Sender: No OFD packet to send [16:23:30]OFD Sender: No OFD packet to send [16:23:35]OFD Sender: No OFD packet to send [16:23:40]OFD Sender: No OFD packet to send [16:23:45]OFD Sender: No OFD packet to send [16:23:50]OFD Sender: No OFD packet to send [16:23:55]OFD Sender: No OFD packet to send [16:24:00]OFD Sender: No OFD packet to send [16:24:05]OFD Sender: No OFD packet to send [16:24:10]OFD Sender: No OFD packet to send [16:24:15]OFD Sender: No OFD packet to send [16:24:20]OFD Sender: No OFD packet to send [16:24:25]OFD Sender: No OFD packet to send [16:24:30]OFD Sender: No OFD packet to send [16:24:35]OFD Sender: No OFD packet to send [16:24:40]OFD Sender: No OFD packet to send [16:24:45]OFD Sender: No OFD packet to send [16:24:50]OFD Sender: No OFD packet to send [16:24:55]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:55]OFD Sender: No OFD packet to send [16:28:00]OFD Sender: No OFD packet to send [16:28:05]OFD Sender: No OFD packet to send [16:28:10]OFD Sender: No OFD packet to send [16:28:15]OFD Sender: No OFD packet to send [16:28:20]OFD Sender: No OFD packet to send [16:28:25]OFD Sender: No OFD packet to send [16:28:30]OFD Sender: No OFD packet to send [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: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: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:10]OFD Sender: No OFD packet to send [16:31:15]OFD Sender: No OFD packet to send [16:31:20]OFD Sender: No OFD packet to send [16:31:25]OFD Sender: No OFD packet to send [16:31:30]OFD Sender: No OFD packet to send [16:31:35]OFD Sender: No OFD packet to send [16:31:40]OFD Sender: No OFD packet to send [16:31:45]OFD Sender: No OFD packet to send [16:31:50]OFD Sender: No OFD packet to send [16:31:55]OFD Sender: No OFD packet to send [16:32:00]OFD Sender: No OFD packet to send [16:32:05]OFD Sender: No OFD packet to send [16:32:10]OFD Sender: No OFD packet to send [16:32:15]OFD Sender: No OFD packet to send [16:32:20]OFD Sender: No OFD packet to send [16:32:25]OFD Sender: No OFD packet to send [16:32:30]OFD Sender: No OFD packet to send [16:32:35]OFD Sender: No OFD packet to send [16:32:40]OFD Sender: No OFD packet to send [16:32:45]OFD Sender: No OFD packet to send [16:32:50]OFD Sender: No OFD packet to send [16:32:55]OFD Sender: No OFD packet to send [16:33:00]OFD Sender: No OFD packet to send [16:33:05]OFD Sender: No OFD packet to send [16:33:10]OFD Sender: No OFD packet to send [16:33:15]OFD Sender: No OFD packet to send [16:33:20]OFD Sender: No OFD packet to send [16:33:25]OFD Sender: No OFD packet to send [16:33:30]OFD Sender: No OFD packet to send [16:33:35]OFD Sender: No OFD packet to send [16:33:40]OFD Sender: No OFD packet to send [16:33:45]OFD Sender: No OFD packet to send [16:33:50]OFD Sender: No OFD packet to send [16:33:55]OFD Sender: No OFD packet to send [16:34:00]OFD Sender: No OFD packet to send [16:34:05]OFD Sender: No OFD packet to send [16:34:10]OFD Sender: No OFD packet to send [16:34:15]OFD Sender: No OFD packet to send [16:34:20]OFD Sender: No OFD packet to send [16:34:25]OFD Sender: No OFD packet to send [16:34:30]OFD Sender: No OFD packet to send [16:34:35]OFD Sender: No OFD packet to send [16:34:40]OFD Sender: No OFD packet to send [16:34:45]OFD Sender: No OFD packet to send [16:34:50]OFD Sender: No OFD packet to send [16:34:55]OFD Sender: No OFD packet to send [16:35:00]OFD Sender: No OFD packet to send [16:35:05]OFD Sender: No OFD packet to send [16:35:10]OFD Sender: No OFD packet to send [16:35:15]OFD Sender: No OFD packet to send [16:35:20]OFD Sender: No OFD packet to send [16:35:25]OFD Sender: No OFD packet to send [16:35:30]OFD Sender: No OFD packet to send [16:35:35]OFD Sender: No OFD packet to send [16:35:40]OFD Sender: No OFD packet to send [16:35:45]OFD Sender: No OFD packet to send [16:35:50]OFD Sender: No OFD packet to send [16:35:55]OFD Sender: No OFD packet to send [16:36:00]OFD Sender: No OFD packet to send [16:36:05]OFD Sender: No OFD packet to send [16:36:10]OFD Sender: No OFD packet to send [16:36:15]OFD Sender: No OFD packet to send [16:36:20]OFD Sender: No OFD packet to send [16:36:25]OFD Sender: No OFD packet to send [16:36:30]OFD Sender: No OFD packet to send [16:36:35]OFD Sender: No OFD packet to send [16:36:40]OFD Sender: No OFD packet to send [16:36:45]OFD Sender: No OFD packet to send [16:36:50]OFD Sender: No OFD packet to send [16:36:55]OFD Sender: No OFD packet to send [16:37:00]OFD Sender: No OFD packet to send [16:37:05]OFD Sender: No OFD packet to send [16:37:10]OFD Sender: No OFD packet to send [16:37:15]OFD Sender: No OFD packet to send [16:37:20]OFD Sender: No OFD packet to send [16:37:25]OFD Sender: No OFD packet to send [16:37:30]OFD Sender: No OFD packet to send [16:37:35]OFD Sender: No OFD packet to send [16:37:40]OFD Sender: No OFD packet to send [16:37:45]OFD Sender: No OFD packet to send [16:37:50]OFD Sender: No OFD packet to send [16:37:55]OFD Sender: No OFD packet to send [16:38:00]OFD Sender: No OFD packet to send [16:38:05]OFD Sender: No OFD packet to send [16:38:10]OFD Sender: No OFD packet to send [16:38:15]OFD Sender: No OFD packet to send [16:38:20]OFD Sender: No OFD packet to send [16:38:25]OFD Sender: No OFD packet to send [16:38:30]OFD Sender: No OFD packet to send [16:38:35]OFD Sender: No OFD packet to send [16:38:40]OFD Sender: No OFD packet to send [16:38:45]OFD Sender: No OFD packet to send [16:38:50]OFD Sender: No OFD packet to send [16:38:55]OFD Sender: No OFD packet to send [16:39:00]OFD Sender: No OFD packet to send [16:39:05]OFD Sender: No OFD packet to send [16:39:10]OFD Sender: No OFD packet to send [16:39:15]OFD Sender: No OFD packet to send [16:39:20]OFD Sender: No OFD packet to send [16:39:25]OFD Sender: No OFD packet to send [16:39:30]OFD Sender: No OFD packet to send [16:39:35]OFD Sender: No OFD packet to send [16:39:40]OFD Sender: No OFD packet to send [16:39:45]OFD Sender: No OFD packet to send [16:39:50]OFD Sender: No OFD packet to send [16:39:55]OFD Sender: No OFD packet to send [16:40:00]OFD Sender: No OFD packet to send [16:40:05]OFD Sender: No OFD packet to send [16:40:10]OFD Sender: No OFD packet to send [16:40:15]OFD Sender: No OFD packet to send [16:40:21]OFD Sender: No OFD packet to send [16:40:26]OFD Sender: No OFD packet to send [16:40:31]OFD Sender: No OFD packet to send [16:40:36]OFD Sender: No OFD packet to send [16:40:41]OFD Sender: No OFD packet to send [16:40:46]OFD Sender: No OFD packet to send [16:40:51]OFD Sender: No OFD packet to send [16:40:56]OFD Sender: No OFD packet to send [16:41:01]OFD Sender: No OFD packet to send [16:41:06]OFD Sender: No OFD packet to send [16:41:11]OFD Sender: No OFD packet to send [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:31]OFD Sender: No OFD packet to send [16:41:36]OFD Sender: No OFD packet to send [16:41:41]OFD Sender: No OFD packet to send [16:41:46]OFD Sender: No OFD packet to send [16:41:51]OFD Sender: No OFD packet to send [16:41:56]OFD Sender: No OFD packet to send [16:42:01]OFD Sender: No OFD packet to send [16:42:06]OFD Sender: No OFD packet to send [16:42:11]OFD Sender: No OFD packet to send [16:42:16]OFD Sender: No OFD packet to send [16:42:21]OFD Sender: No OFD packet to send [16:42:26]OFD Sender: No OFD packet to send [16:42:31]OFD Sender: No OFD packet to send [16:42: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:51]OFD Sender: No OFD packet to send [16:42:56]OFD Sender: No OFD packet to send [16:43:01]OFD Sender: No OFD packet to send [16:43:06]OFD Sender: No OFD packet to send [16:43:11]OFD Sender: No OFD packet to send [16:43:16]OFD Sender: No OFD packet to send [16:43:21]OFD Sender: No OFD packet to send [16:43:26]OFD Sender: No OFD packet to send [16:43:31]OFD Sender: No OFD packet to send [16:43:36]OFD Sender: No OFD packet to send [16:43:41]OFD Sender: No OFD packet to send [16:43:46]OFD Sender: No OFD packet to send [16:43:51]OFD Sender: No OFD packet to send [16:43:56]OFD Sender: No OFD packet to send [16:44:01]OFD Sender: No OFD packet to send [16:44:06]OFD Sender: No OFD packet to send [16:44:11]OFD Sender: No OFD packet to send [16:44:16]OFD Sender: No OFD packet to send [16:44:21]OFD Sender: No OFD packet to send [16:44:26]OFD Sender: No OFD packet to send [16:44:31]OFD Sender: No OFD packet to send [16:44:36]OFD Sender: No OFD packet to send [16:44:41]OFD Sender: No OFD packet to send [16:44:46]OFD Sender: No OFD packet to send [16:44:51]OFD Sender: No OFD packet to send [16:44:56]OFD Sender: No OFD packet to send [16:45:01]OFD Sender: No OFD packet to send [16:45:06]OFD Sender: No OFD packet to send [16:45:11]OFD Sender: No OFD packet to send [16:45:16]OFD Sender: No OFD packet to send [16:45:21]OFD Sender: No OFD packet to send [16:45:26]OFD Sender: No OFD packet to send [16:45:31]OFD Sender: No OFD packet to send [16:45:36]OFD Sender: No OFD packet to send [16:45:41]OFD Sender: No OFD packet to send [16:45:46]OFD Sender: No OFD packet to send [16:45:51]OFD Sender: No OFD packet to send [16:45:56]OFD Sender: No OFD packet to send [16:46:01]OFD Sender: No OFD packet to send [16:46:06]OFD Sender: No OFD packet to send [16:46:11]OFD Sender: No OFD packet to send [16:46:16]OFD Sender: No OFD packet to send [16:46:21]OFD Sender: No OFD packet to send [16:46:26]OFD Sender: No OFD packet to send [16:46:31]OFD Sender: No OFD packet to send [16:46:36]OFD Sender: No OFD packet to send [16:46:41]OFD Sender: No OFD packet to send [16:46:46]OFD Sender: No OFD packet to send [16:46:51]OFD Sender: No OFD packet to send [16:46:56]OFD Sender: No OFD packet to send [16:47:01]OFD Sender: No OFD packet to send [16:47:06]OFD Sender: No OFD packet to send [16:47:11]OFD Sender: No OFD packet to send [16:47:16]OFD Sender: No OFD packet to send [16:47:21]OFD Sender: No OFD packet to send [16:47:26]OFD Sender: No OFD packet to send [16:47:31]OFD Sender: No OFD packet to send [16:47:36]OFD Sender: No OFD packet to send [16:47:41]OFD Sender: No OFD packet to send [16:47:46]OFD Sender: No OFD packet to send [16:47:51]OFD Sender: No OFD packet to send [16:47:56]OFD Sender: No OFD packet to send [16:48:01]OFD Sender: No OFD packet to send [16:48:06]OFD Sender: No OFD packet to send [16:48:11]OFD Sender: No OFD packet to send [16:48:16]OFD Sender: No OFD packet to send [16:48:21]OFD Sender: No OFD packet to send [16:48:25]accept exits with 9 [16:48:25]New connection [16:48:25]New thread 3067157860 created [16:48:25]Thread 3067014500 joined [16:48:25]Waiting for new connection... [16:48:25] Sock 9.Parse request [16:48:25]Sock 9.Check first char [16:48:25]Sock 9.First char is OK [16:48:25]request: POST /json_proto HTTP/1.0 [16:48:25]Method: POST [16:48:25]URL: /json_proto [16:48:25]Method is POST - this is cgi request [16:48:25]url: /json_proto [16:48:25]query_string will be loaded in cgi processing [16:48:25]execute_cgi json_proto POST (null) [16:48:25]execute_cgi path=json_proto method=POST [16:48:25]POST find Content-Length [16:48:25]Host: 172.17.48.198:8080 [16:48:25]Content-Length: 622 [16:48:25]Content-Type: application/json [16:48:25] [16:48:25]POST finish read [16:48:25]Found Content-Length = 622 [16:48:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184189", "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" ] } } [16:48:25]execute_script... [16: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 : (3)184189", "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" ] } } [16:48:25]POST & json_proto [16:48:25]process_json_proto [16:48:25]json parsed OK: [16:48:25]protocol is kg_v1.0 [16:48:25]action value=close_receipt [16:48:25]process_action close_receipt [16:48:25]cmd_close_receipt [16:48:25]MH_GetDate [16:48:25]Write to MH i2c: F0 00 00 98 50 D7 [16:48:25]Write i2c OK [16:48:25]MH_I2C_Read... [16:48:25]Read from MH i2c: F0 [16:48:25]MH_I2C_Read... [16:48:25]Read from MH i2c: F0 09 00 [16:48:25]MH_I2C_Read... [16:48:25]Read from MH i2c: F0 09 00 98 50 00 E6 A9 E4 65 CE C4 D4 65 83 [16:48:25]GetLastDocTimeStamp 1709481643 [16:48:25]current date 1709484518 [16:48:25]FM_GetShiftState [16:48:25]SAM_PROTO_GetShiftState [16:48:25]wFMCommunicate request_size=4 [16:48:25]MH_SAM_APDU [16:48:25]CAPDU: 80 13 01 00 [16:48:25]Write to MH i2c: E2 08 00 99 50 80 13 01 00 00 00 00 00 66 [16:48:25]Write i2c OK [16:48:25]MH_I2C_Read... [16:48:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:25]Read from MH i2c: E2 [16:48:25]MH_I2C_Read... [16:48:25]Read from MH i2c: E2 0E 00 [16:48:25]MH_I2C_Read... [16:48:25]Read from MH i2c: E2 0E 00 99 50 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 9C [16:48:25]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [16:48:25]wFMCommunicate OK [16:48:25]SAM_PROTO_GetShiftState done [16:48:25]FM_GetShiftState done [16:48:25]opened in 1709425694 [16:48:25]opened+sec_in_day 1709512094 [16:48:25]quantity*price = 13800 [16:48:25]sum+1 = 13801 [16:48:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 138.00 НСП 1% : 1.22 НДС 12% : 14.65 Наличными: 138.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 61 03.03.2024 16:48 Смена: 331 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 ФМ: 0000000000874796 ФД: 45224 ФПД: 119248199118045 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T164838&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45224&fm=119248199118045&tin=02508201610067®Number=0000000000090572&sum=13800 0 [16:48:27]StoreToDocumentArchive [16:48:27]shift 331 fd 45224 [16:48:27]save to /storage/0331/doc_00045224 [16:48:27]save last doc name /storage/0331/doc_00045224 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=274 [16:48:27]tlvbuf is 01BA17A0 [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 A6 50 80 09 00 00 00 00 00 00 68 [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 A6 50 00 90 00 6A [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 A7 50 80 0D 01 02 00 00 00 00 70 [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 A7 50 00 90 00 6B [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 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 3D 00 00 00 F4 03 04 00 E6 A9 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 [16:48:27]Write to MH i2c: E2 02 01 A8 50 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 3D 00 00 00 F4 03 04 00 E6 A9 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 00 00 0C [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 A8 50 00 90 00 6C [16:48:27]RAPDU: 90 00 [16:48:27]wFMCommunicate OK [16:48:27]wFMCommunicate request_size=33 [16:48:27]MH_SAM_APDU [16:48:27]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 34 37 39 36 10 04 04 00 A8 B0 00 00 35 04 06 00 6C 74 A2 8C 6C DD [16:48:27]Write to MH i2c: E2 24 00 A9 50 80 0D 02 02 1C 00 30 30 30 30 38 37 34 37 39 36 10 04 04 00 A8 B0 00 00 35 04 06 00 6C 74 A2 8C 6C DD 00 00 BA [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 A9 50 00 90 00 6D [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 AA 50 80 0D 03 02 00 00 00 00 75 [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 AA 50 00 0A 19 B1 D0 23 C5 8A 55 90 00 E1 [16:48:27]RAPDU: 0A 19 B1 D0 23 C5 8A 55 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 AB 50 80 11 00 00 00 00 00 00 75 [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 AB 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 D1 [16:48:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [16:48:27]wFMCommunicate OK [16:48:27]CreateOFDProtocolMessage done [16:48:27]OFDSenderStorePacket 45224 [16:48:27]StoreOFDPacket docnum=45224 [16:48:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 26 01 00 00 DC 9A 1E 01 92 BF 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 3D 00 00 00 F4 03 04 00 E6 A9 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 A8 B0 00 00 35 04 06 00 6C 74 A2 8C 6C DD 0A 19 B1 D0 23 C5 8A 55 [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/00045224 [16:48:27]NVStorageSaveData ofd_packets/00045224 [16:48:27]File name is /storage/ofd_packets/00045224 [16:48:27]Write 324 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 AC 50 FC [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 AC 50 00 00 00 00 00 FF 0F 11 [16:48:27]RasterBufferAndPrint [16:48:27]line Счет N : (3)184189 [16:48:27]line ИНН: 02508201610067 [16:48:27]line Контрольно-Кассовый Чек [16:48:27]line ПРОДАЖА [16:48:27]line Товар: 4640030091645 [16:48:27]line Сигареты ESSE Exchange M [16:48:27]line 1.000 * 138.00 [16:48:27]line = 138.00 [16:48:27]line НДС 12% НСП 1% [16:48:27]line > о реализуемом товаре [16:48:27]line ИТОГО: 138.00 [16:48:27]line НСП 1% : 1.22 [16:48:27]line НДС 12% : 14.65 [16:48:27]line Наличными: 138.00 [16:48:27]line Безнал.: 0.00 [16:48:27]line Место: АЗС № 25 "Партнер Нефть" [16:48:27]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [16:48:27]line СНО: Общий режим [16:48:27]line Чек 61 03.03.2024 16:48 [16:48:27]line Смена: 331 ФФД: 1.0 [16:48:27]line ЗНМ: 0300000013 [16:48:27]line РНМ: 0000000000090572 [16:48:27]line Версия ККМ: 001 [16:48:27]line ФМ: 0000000000874796 [16:48:27]line ФД: 45224 [16:48:27]line ФПД: 119248199118045 [16:48:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T164838&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45224&fm=119248199118045&tin=02508201610067®Number=0000000000090572&sum=13800 [16:48:28]line 0 [16:48:28]OFD Sender: Processing packet 45224 [packets to send 17, broken 16] [16:48:28]ProducePacketName [16:48:28]name=ofd_packets/00045224 [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]Connected sock=11 [16: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 34 37 39 36 26 01 00 00 DC 9A 1E 01 92 BF 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 3D 00 00 00 F4 03 04 00 E6 A9 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 A8 B0 00 00 35 04 06 00 6C 74 A2 8C 6C DD 0A 19 B1 D0 23 C5 8A 55 [16:48:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 F9 21 47 00 27 FD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 A8 B0 00 00 F4 03 04 00 AA 55 E4 65 B6 04 01 00 00 01 94 91 29 27 45 67 79 [16:48:28]CommunicateWithHost err = 0 [16:48:28]CheckOFDResponse [16:48:28]1017 (14) - 77093643461234 [16:48:28]1041 (16) - 0000000000874796 [16:48:28]1040 (4) - 45224 [16:48:28]1012 (4) - 03.03.2024 10:49 [16:48:28]1206 (1) - 0 [16:48:28]OFD Sender: Remove packet 45224 [16:48:28]ProducePacketName [16:48:28]name=ofd_packets/00045224 [16:48:28]NVStorageDeleteData [16:48:28]Write to MH i2c: 01 00 00 D4 50 24 [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 D4 50 00 00 00 00 00 0B 0D 43 [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 3345 [16:48:28]MH_Cut [16:48:28]Write to MH i2c: D1 01 00 DB 50 01 FD [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 DB 50 00 FC [16:48:28]Write to MH i2c: 01 00 00 DC 50 2C [16:48:28]Write i2c OK [16:48:28]MH_I2C_Read... [16:48:28]OFD Sender: No OFD packet to send [16:48:29]*** Cut start [16:48:29]*** Purtial cut [16:48:29]*** Stage 1: CUTSNS_PIN = 1 [16:48:31]Read from MH i2c: 01 [16:48:31]MH_I2C_Read... [16:48:31]*** Stop cut motor [16:48:31]*** Cut end [16:48:31]Read from MH i2c: 01 07 00 [16:48:31]MH_I2C_Read... [16:48:31]Read from MH i2c: 01 07 00 DC 50 00 00 00 00 00 FF 0F 41 [16:48:31]process_action close_receipt done [16:48:31]requested_data is exist [16:48:31]produce_requested_data [16:48:31]requested_item fm.sn is exist - process it [16:48:31]wFMCommunicate request_size=4 [16:48:31]MH_SAM_APDU [16:48:31]CAPDU: 80 11 00 00 [16:48:31]Write to MH i2c: E2 08 00 DD 50 80 11 00 00 00 00 00 00 A7 [16:48:31]Write i2c OK [16:48:31]MH_I2C_Read... [16:48:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:31]Read from MH i2c: E2 [16:48:31]MH_I2C_Read... [16:48:31]Read from MH i2c: E2 17 00 [16:48:31]MH_I2C_Read... [16:48:31]Read from MH i2c: E2 17 00 DD 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 03 [16:48:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [16:48:31]wFMCommunicate OK [16:48:31]requested_item fd.num is exist - process it [16:48:31]SAM_PROTO_GetFieldsCounters [16:48:31]wFMCommunicate request_size=4 [16:48:31]MH_SAM_APDU [16:48:31]CAPDU: 80 13 00 00 [16:48:31]Write to MH i2c: E2 08 00 DE 50 80 13 00 00 00 00 00 00 AA [16:48:31]Write i2c OK [16:48:31]MH_I2C_Read... [16:48:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:48:31]Read from MH i2c: E2 [16:48:31]MH_I2C_Read... [16:48:31]Read from MH i2c: E2 62 00 [16:48:31]MH_I2C_Read... [16:48:31]Read from MH i2c: E2 62 00 DE 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 A8 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 2D [16:48:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 A8 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:48:31]wFMCommunicate OK [16:48:31]SAM_PROTO_GetFieldsCounters done [16:48:31]requested_item shift.num is exist - process it [16:48:31]requested_item shift.opened is exist - process it [16:48:31]req_shift_opened [16:48:31]FM_GetShiftState [16:48:31]SAM_PROTO_GetShiftState [16:48:31]wFMCommunicate request_size=4 [16:48:31]MH_SAM_APDU [16:48:31]CAPDU: 80 13 01 00 [16:48:31]Write to MH i2c: E2 08 00 DF 50 80 13 01 00 00 00 00 00 AC [16:48:31]Write i2c OK [16:48:31]MH_I2C_Read... [16:48:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:31]Read from MH i2c: E2 [16:48:31]MH_I2C_Read... [16:48:31]Read from MH i2c: E2 0E 00 [16:48:31]MH_I2C_Read... [16:48:31]Read from MH i2c: E2 0E 00 DF 50 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 E2 [16:48:31]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [16:48:31]wFMCommunicate OK [16:48:31]SAM_PROTO_GetShiftState done [16:48:31]FM_GetShiftState done [16:48:31]req_shift_opened done [16:48:31]requested_item shift.open_date is exist - process it [16:48:31]req_shift_open_date [16:48:31]req_shift_open_date done [16:48:31]produce_requested_data done [16:48:31]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45224,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [16:48:31]process_action_free close_receipt [16:48:31]json_value_free [16:48:31]json_value_free done [16:48:31]process_json_proto returns [16:48:31]Send response to host [16:48:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45224,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [16:48:31]free response buf [16:48:31]execute_script done [16:48:31]execute_script returns [16:48:31]free content buf [16:48:31]Sock 9.Close socket [16:48:31]Sock 9.Thread stoped [16:48:33]OFD Sender: No OFD packet to send [16:48:38]OFD Sender: No OFD packet to send [16:48:43]OFD Sender: No OFD packet to send [16:48:48]OFD Sender: No OFD packet to send [16:48:53]OFD Sender: No OFD packet to send [16:48:58]OFD Sender: No OFD packet to send [16:49:03]OFD Sender: No OFD packet to send [16:49:08]OFD Sender: No OFD packet to send [16:49:13]OFD Sender: No OFD packet to send [16:49:18]OFD Sender: No OFD packet to send [16:49:23]OFD Sender: No OFD packet to send [16:49:28]OFD Sender: No OFD packet to send [16:49:33]OFD Sender: No OFD packet to send [16:49:38]OFD Sender: No OFD packet to send [16:49:43]OFD Sender: No OFD packet to send [16:49:48]OFD Sender: No OFD packet to send [16:49:53]OFD Sender: No OFD packet to send [16:49:58]OFD Sender: No OFD packet to send [16:50:03]OFD Sender: No OFD packet to send [16:50:08]OFD Sender: No OFD packet to send [16:50:13]OFD Sender: No OFD packet to send [16:50:18]OFD Sender: No OFD packet to send [16:50:23]OFD Sender: No OFD packet to send [16:50:28]OFD Sender: No OFD packet to send [16:50:33]OFD Sender: No OFD packet to send [16:50:38]OFD Sender: No OFD packet to send [16:50:43]OFD Sender: No OFD packet to send [16:50:48]OFD Sender: No OFD packet to send [16:50:53]OFD Sender: No OFD packet to send [16:50:58]OFD Sender: No OFD packet to send [16:51:03]OFD Sender: No OFD packet to send [16:51:08]OFD Sender: No OFD packet to send [16:51:13]OFD Sender: No OFD packet to send [16:51:18]OFD Sender: No OFD packet to send [16:51:23]OFD Sender: No OFD packet to send [16:51:28]OFD Sender: No OFD packet to send [16:51:33]OFD Sender: No OFD packet to send [16:51:38]OFD Sender: No OFD packet to send [16:51:43]OFD Sender: No OFD packet to send [16:51:48]OFD Sender: No OFD packet to send [16:51:53]OFD Sender: No OFD packet to send [16:51:58]OFD Sender: No OFD packet to send [16:52:03]OFD Sender: No OFD packet to send [16:52:08]OFD Sender: No OFD packet to send [16:52:13]OFD Sender: No OFD packet to send [16:52:18]OFD Sender: No OFD packet to send [16:52:23]OFD Sender: No OFD packet to send [16:52:28]OFD Sender: No OFD packet to send [16:52:33]OFD Sender: No OFD packet to send [16:52:38]OFD Sender: No OFD packet to send [16:52:43]OFD Sender: No OFD packet to send [16:52:48]OFD Sender: No OFD packet to send [16:52:53]OFD Sender: No OFD packet to send [16:52:58]OFD Sender: No OFD packet to send [16:53:03]OFD Sender: No OFD packet to send [16:53:08]OFD Sender: No OFD packet to send [16:53:13]OFD Sender: No OFD packet to send [16:53:18]OFD Sender: No OFD packet to send [16:53:23]OFD Sender: No OFD packet to send [16:53:28]OFD Sender: No OFD packet to send [16:53:33]OFD Sender: No OFD packet to send [16:53:39]OFD Sender: No OFD packet to send [16:53:44]OFD Sender: No OFD packet to send [16:53:49]OFD Sender: No OFD packet to send [16:53:54]OFD Sender: No OFD packet to send [16:53:59]OFD Sender: No OFD packet to send [16:54:04]OFD Sender: No OFD packet to send [16:54:09]OFD Sender: No OFD packet to send [16:54:14]OFD Sender: No OFD packet to send [16:54:19]OFD Sender: No OFD packet to send [16:54:24]OFD Sender: No OFD packet to send [16:54:29]OFD Sender: No OFD packet to send [16:54:34]OFD Sender: No OFD packet to send [16:54:39]OFD Sender: No OFD packet to send [16:54:44]OFD Sender: No OFD packet to send [16:54:49]OFD Sender: No OFD packet to send [16:54:54]OFD Sender: No OFD packet to send [16:54:59]OFD Sender: No OFD packet to send [16:55:04]OFD Sender: No OFD packet to send [16:55:09]OFD Sender: No OFD packet to send [16:55:14]OFD Sender: No OFD packet to send [16:55:19]OFD Sender: No OFD packet to send [16:55:24]OFD Sender: No OFD packet to send [16:55:29]OFD Sender: No OFD packet to send [16:55:34]OFD Sender: No OFD packet to send [16:55:39]OFD Sender: No OFD packet to send [16:55:44]OFD Sender: No OFD packet to send [16:55:49]OFD Sender: No OFD packet to send [16:55:54]OFD Sender: No OFD packet to send [16:55:59]OFD Sender: No OFD packet to send [16:56:04]OFD Sender: No OFD packet to send [16:56:09]OFD Sender: No OFD packet to send [16:56:14]OFD Sender: No OFD packet to send [16:56:19]OFD Sender: No OFD packet to send [16:56:24]OFD Sender: No OFD packet to send [16:56:29]OFD Sender: No OFD packet to send [16:56:34]OFD Sender: No OFD packet to send [16:56:39]OFD Sender: No OFD packet to send [16:56:44]OFD Sender: No OFD packet to send [16:56:49]OFD Sender: No OFD packet to send [16:56:54]OFD Sender: No OFD packet to send [16:56:59]OFD Sender: No OFD packet to send [16:57:04]OFD Sender: No OFD packet to send [16:57:09]OFD Sender: No OFD packet to send [16:57:14]OFD Sender: No OFD packet to send [16:57:19]OFD Sender: No OFD packet to send [16:57:24]OFD Sender: No OFD packet to send [16:57:29]OFD Sender: No OFD packet to send [16:57:34]OFD Sender: No OFD packet to send [16:57:39]OFD Sender: No OFD packet to send [16:57:44]OFD Sender: No OFD packet to send [16:57:49]OFD Sender: No OFD packet to send [16:57:54]OFD Sender: No OFD packet to send [16:57:59]OFD Sender: No OFD packet to send [16:58:04]OFD Sender: No OFD packet to send [16:58:09]OFD Sender: No OFD packet to send [16:58:14]OFD Sender: No OFD packet to send [16:58:19]OFD Sender: No OFD packet to send [16:58:24]OFD Sender: No OFD packet to send [16:58:29]OFD Sender: No OFD packet to send [16:58:34]OFD Sender: No OFD packet to send [16:58:39]OFD Sender: No OFD packet to send [16:58:44]OFD Sender: No OFD packet to send [16:58:49]OFD Sender: No OFD packet to send [16:58:54]OFD Sender: No OFD packet to send [16:58:59]OFD Sender: No OFD packet to send [16:59:04]OFD Sender: No OFD packet to send [16:59:09]OFD Sender: No OFD packet to send [16:59:14]OFD Sender: No OFD packet to send [16:59:19]OFD Sender: No OFD packet to send [16:59:24]OFD Sender: No OFD packet to send [16:59:29]OFD Sender: No OFD packet to send [16:59:34]OFD Sender: No OFD packet to send [16:59:39]OFD Sender: No OFD packet to send [16:59:44]OFD Sender: No OFD packet to send [16:59:49]OFD Sender: No OFD packet to send [16:59:54]OFD Sender: No OFD packet to send [16:59:59]OFD Sender: No OFD packet to send [17:00:04]OFD Sender: No OFD packet to send [17:00:09]OFD Sender: No OFD packet to send [17:00:14]OFD Sender: No OFD packet to send [17:00:19]OFD Sender: No OFD packet to send [17:00:24]OFD Sender: No OFD packet to send [17:00:29]OFD Sender: No OFD packet to send [17:00:34]OFD Sender: No OFD packet to send [17:00:39]OFD Sender: No OFD packet to send [17:00:44]OFD Sender: No OFD packet to send [17:00:49]OFD Sender: No OFD packet to send [17:00:54]OFD Sender: No OFD packet to send [17:00:59]OFD Sender: No OFD packet to send [17:01:04]OFD Sender: No OFD packet to send [17:01:09]OFD Sender: No OFD packet to send [17:01:14]OFD Sender: No OFD packet to send [17:01:19]OFD Sender: No OFD packet to send [17:01:24]OFD Sender: No OFD packet to send [17:01:29]OFD Sender: No OFD packet to send [17:01:34]OFD Sender: No OFD packet to send [17:01:39]OFD Sender: No OFD packet to send [17:01:44]OFD Sender: No OFD packet to send [17:01:49]OFD Sender: No OFD packet to send [17:01:54]OFD Sender: No OFD packet to send [17:01:59]OFD Sender: No OFD packet to send [17:02:04]OFD Sender: No OFD packet to send [17:02:09]OFD Sender: No OFD packet to send [17:02:14]OFD Sender: No OFD packet to send [17:02:19]OFD Sender: No OFD packet to send [17:02:20]accept exits with 7 [17:02:20]New connection [17:02:20]New thread 3067014500 created [17:02:20]Thread 3067157860 joined [17:02:20]Waiting for new connection... [17:02:20] Sock 7.Parse request [17:02:20]Sock 7.Check first char [17:02:20]Sock 7.First char is OK [17:02:20]request: POST /json_proto HTTP/1.0 [17:02:20]Method: POST [17:02:20]URL: /json_proto [17:02:20]Method is POST - this is cgi request [17:02:20]url: /json_proto [17:02:20]query_string will be loaded in cgi processing [17:02:20]execute_cgi json_proto POST (null) [17:02:20]execute_cgi path=json_proto method=POST [17:02:20]POST find Content-Length [17:02:20]Host: 172.17.48.198:8080 [17:02:20]Content-Length: 688 [17:02:20]Content-Type: application/json [17:02:20] [17:02:20]POST finish read [17:02:20]Found Content-Length = 688 [17:02:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106240", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 70.90, "quantity" : 14.110, "sum" : 1000.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:02:20]execute_script... [17:02: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)1106240", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 70.90, "quantity" : 14.110, "sum" : 1000.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:02:20]POST & json_proto [17:02:20]process_json_proto [17:02:20]json parsed OK: [17:02:20]protocol is kg_v1.0 [17:02:20]action value=close_receipt [17:02:20]process_action close_receipt [17:02:20]cmd_close_receipt [17:02:20]MH_GetDate [17:02:20]Write to MH i2c: F0 00 00 E0 50 1F [17:02:20]Write i2c OK [17:02:20]MH_I2C_Read... [17:02:20]Read from MH i2c: F0 [17:02:20]MH_I2C_Read... [17:02:20]Read from MH i2c: F0 09 00 [17:02:20]MH_I2C_Read... [17:02:20]Read from MH i2c: F0 09 00 E0 50 00 28 AD E4 65 CE C4 D4 65 11 [17:02:20]GetLastDocTimeStamp 1709484518 [17:02:20]current date 1709485352 [17:02:20]FM_GetShiftState [17:02:20]SAM_PROTO_GetShiftState [17:02:20]wFMCommunicate request_size=4 [17:02:20]MH_SAM_APDU [17:02:20]CAPDU: 80 13 01 00 [17:02:20]Write to MH i2c: E2 08 00 E1 50 80 13 01 00 00 00 00 00 AE [17:02:20]Write i2c OK [17:02:20]MH_I2C_Read... [17:02:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:02:20]Read from MH i2c: E2 [17:02:20]MH_I2C_Read... [17:02:20]Read from MH i2c: E2 0E 00 [17:02:20]MH_I2C_Read... [17:02:20]Read from MH i2c: E2 0E 00 E1 50 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 E4 [17:02:20]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [17:02:20]wFMCommunicate OK [17:02:20]SAM_PROTO_GetShiftState done [17:02:20]FM_GetShiftState done [17:02:20]opened in 1709425694 [17:02:20]opened+sec_in_day 1709512094 [17:02:20]quantity*price = 100039 [17:02:20]sum+1 = 100041 [17:02:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 62 03.03.2024 17:02 Смена: 331 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 ФМ: 0000000000874796 ФД: 45225 ФПД: 32523846425698 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T170232&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45225&fm=32523846425698&tin=02508201610067®Number=0000000000090572&sum=100000 [17:02:21]StoreToDocumentArchive [17:02:21]shift 331 fd 45225 [17:02:21]save to /storage/0331/doc_00045225 [17:02:21]save last doc name /storage/0331/doc_00045225 to /storage/kkm_last_doc_name [17:02:21]save OK [17:02:21]Clear old archive folders... [17:02:21]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:02:21]tlvbuf is 01B8A570 [17:02:21]SAM_PROTO_ClearQueue [17:02:21]wFMCommunicate request_size=4 [17:02:21]MH_SAM_APDU [17:02:21]CAPDU: 80 09 00 00 [17:02:21]Write to MH i2c: E2 08 00 EE 50 80 09 00 00 00 00 00 00 B0 [17:02:21]Write i2c OK [17:02:21]MH_I2C_Read... [17:02:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:02:21]Read from MH i2c: E2 [17:02:21]MH_I2C_Read... [17:02:21]Read from MH i2c: E2 03 00 [17:02:21]MH_I2C_Read... [17:02:21]Read from MH i2c: E2 03 00 EE 50 00 90 00 B2 [17:02:21]RAPDU: 90 00 [17:02:21]wFMCommunicate OK [17:02:21]SAM_PROTO_ClearQueue done [17:02:21]KKMCreateOFDPacket [17:02:21]OFDProtocolAddRootSTLVToBuf [17:02:21]FM_MakeSignedData [17:02:21]FM_MakeSignedData [17:02:21]SAM_PROTO_SignData [17:02:21]wFMCommunicate request_size=4 [17:02:21]MH_SAM_APDU [17:02:21]CAPDU: 80 0D 01 02 [17:02:21]Write to MH i2c: E2 08 00 EF 50 80 0D 01 02 00 00 00 00 B8 [17:02:21]Write i2c OK [17:02:21]MH_I2C_Read... [17:02:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:02:21]Read from MH i2c: E2 [17:02:21]MH_I2C_Read... [17:02:21]Read from MH i2c: E2 03 00 [17:02:21]MH_I2C_Read... [17:02:21]Read from MH i2c: E2 03 00 EF 50 00 90 00 B3 [17:02:21]RAPDU: 90 00 [17:02:21]wFMCommunicate OK [17:02:21]wFMCommunicate request_size=255 [17:02:21]MH_SAM_APDU [17:02:21]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 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 28 AD E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 A9 B0 00 00 35 04 06 00 [17:02:21]Write to MH i2c: E2 02 01 F0 50 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 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 28 AD E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 A9 B0 00 00 35 04 06 00 00 00 E5 [17:02:21]Write i2c OK [17:02:21]MH_I2C_Read... [17:02:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:02:21]Read from MH i2c: E2 [17:02:21]MH_I2C_Read... [17:02:21]Read from MH i2c: E2 03 00 [17:02:21]MH_I2C_Read... [17:02:21]Read from MH i2c: E2 03 00 F0 50 00 90 00 B4 [17:02:21]RAPDU: 90 00 [17:02:21]wFMCommunicate OK [17:02:21]wFMCommunicate request_size=11 [17:02:21]MH_SAM_APDU [17:02:21]CAPDU: 80 0D 02 02 06 1D 94 8C 50 1C 62 [17:02:21]Write to MH i2c: E2 0E 00 F1 50 80 0D 02 02 06 00 1D 94 8C 50 1C 62 00 00 D2 [17:02:21]Write i2c OK [17:02:21]MH_I2C_Read... [17:02:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:02:21]Read from MH i2c: E2 [17:02:21]MH_I2C_Read... [17:02:21]Read from MH i2c: E2 03 00 [17:02:21]MH_I2C_Read... [17:02:21]Read from MH i2c: E2 03 00 F1 50 00 90 00 B5 [17:02:21]RAPDU: 90 00 [17:02:21]wFMCommunicate OK [17:02:21]wFMCommunicate request_size=4 [17:02:21]MH_SAM_APDU [17:02:21]CAPDU: 80 0D 03 02 [17:02:21]Write to MH i2c: E2 08 00 F2 50 80 0D 03 02 00 00 00 00 BD [17:02:21]Write i2c OK [17:02:21]MH_I2C_Read... [17:02:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:02:22]Read from MH i2c: E2 [17:02:22]MH_I2C_Read... [17:02:22]Read from MH i2c: E2 0B 00 [17:02:22]MH_I2C_Read... [17:02:22]Read from MH i2c: E2 0B 00 F2 50 00 08 25 F9 E9 29 7A D7 4D 90 00 94 [17:02:22]RAPDU: 08 25 F9 E9 29 7A D7 4D 90 00 [17:02:22]wFMCommunicate OK [17:02:22]SAM_PROTO_SignData done [17:02:22]FM_MakeSignedData done [17:02:22]CreateOFDProtocolMessage [17:02:22]wFMCommunicate request_size=4 [17:02:22]MH_SAM_APDU [17:02:22]CAPDU: 80 11 00 00 [17:02:22]Write to MH i2c: E2 08 00 F3 50 80 11 00 00 00 00 00 00 BD [17:02:22]Write i2c OK [17:02:22]MH_I2C_Read... [17:02:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:02:22]Read from MH i2c: E2 [17:02:22]MH_I2C_Read... [17:02:22]Read from MH i2c: E2 17 00 [17:02:22]MH_I2C_Read... [17:02:22]Read from MH i2c: E2 17 00 F3 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 19 [17:02:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [17:02:22]wFMCommunicate OK [17:02:22]CreateOFDProtocolMessage done [17:02:22]OFDSenderStorePacket 45225 [17:02:22]StoreOFDPacket docnum=45225 [17:02:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 01 00 00 9D DE 08 01 12 9D 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 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 28 AD E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 A9 B0 00 00 35 04 06 00 1D 94 8C 50 1C 62 08 25 F9 E9 29 7A D7 4D [17:02:22]CheckFolder [17:02:22]dirname=/storage/ofd_packets [17:02:22]CheckFolder done [17:02:22]ProducePacketName [17:02:22]name=ofd_packets/00045225 [17:02:22]NVStorageSaveData ofd_packets/00045225 [17:02:22]File name is /storage/ofd_packets/00045225 [17:02:22]Write 302 bytes [17:02:22]NVStorageSaveData done [17:02:22]OFDSenderStorePacket done [17:02:22]KKMCreateOFDPacket done [17:02:22]NVStorageSaveData kkm_last_timestamp [17:02:22]File name is /storage/kkm_last_timestamp [17:02:22]Write 4 bytes [17:02:22]NVStorageSaveData done [17:02:22]ExternCall_PrintAddStr [17:02:22]wPrintStart [17:02:22]Write to MH i2c: 01 00 00 F4 50 44 [17:02:22]Write i2c OK [17:02:22]MH_I2C_Read... [17:02:22]Read from MH i2c: 01 [17:02:22]MH_I2C_Read... [17:02:22]Read from MH i2c: 01 07 00 [17:02:22]MH_I2C_Read... [17:02:22]Read from MH i2c: 01 07 00 F4 50 00 00 00 00 00 FF 0F 59 [17:02:22]RasterBufferAndPrint [17:02:22]line Счет N : (1)1106240 [17:02:22]line ИНН: 02508201610067 [17:02:22]line Контрольно-Кассовый Чек [17:02:22]line ПРОДАЖА [17:02:22]line ТРК (МРК, ГНК) : 41 [17:02:22]line Товар: 2710194210 [17:02:22]line ДТ(л)-К-5 [17:02:22]line 14.110 * 70.90 [17:02:22]line = 1000.40 [17:02:22]line НДС 12% НСП 1% [17:02:22]line > о реализуемом товаре [17:02:22]line ОКРУГЛЕНИЕ: -0.40 [17:02:22]line ИТОГО: 1000.00 [17:02:22]line Внесено: 1000.00 [17:02:22]line СДАЧА: 0.00 [17:02:22]line НСП 1% : 8.85 [17:02:22]line НДС 12% : 106.24 [17:02:22]line Наличными: 1000.00 [17:02:22]line Безнал.: 0.00 [17:02:22]line Место: АЗС № 25 "Партнер Нефть" [17:02:22]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [17:02:22]line СНО: Общий режим [17:02:22]line Чек 62 03.03.2024 17:02 [17:02:22]line Смена: 331 ФФД: 1.0 [17:02:22]line ЗНМ: 0300000013 [17:02:22]line РНМ: 0000000000090572 [17:02:22]line Версия ККМ: 001 [17:02:22]line ФМ: 0000000000874796 [17:02:22]line ФД: 45225 [17:02:22]line ФПД: 32523846425698 [17:02:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T170232&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45225&fm=32523846425698&tin=02508201610067®Number=0000000000090572&sum=100000 [17:02:22]OFD Sender: Processing packet 45225 [packets to send 17, broken 16] [17:02:22]ProducePacketName [17:02:22]name=ofd_packets/00045225 [17:02:22]OFD Sender: To server: pG, [17:02:22]CommunicateWithHost lk.salyk.kg:30040 [17:02:22]ConnectInit lk.salyk.kg [17:02:22]written 0, free lines is 4095 [17:02:22]Connected sock=10 [17:02:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 01 00 00 9D DE 08 01 12 9D 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 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 28 AD E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 A9 B0 00 00 35 04 06 00 1D 94 8C 50 1C 62 08 25 F9 E9 29 7A D7 4D [17:02:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 BD ED 47 00 17 51 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 A9 B0 00 00 F4 03 04 00 ED 58 E4 65 B6 04 01 00 00 75 7A CC 4E 84 A4 99 30 [17:02:22]CommunicateWithHost err = 0 [17:02:22]CheckOFDResponse [17:02:22]1017 (14) - 77093643461234 [17:02:22]1041 (16) - 0000000000874796 [17:02:22]1040 (4) - 45225 [17:02:22]1012 (4) - 03.03.2024 11:03 [17:02:22]1206 (1) - 0 [17:02:22]OFD Sender: Remove packet 45225 [17:02:22]ProducePacketName [17:02:22]name=ofd_packets/00045225 [17:02:22]NVStorageDeleteData [17:02:22]Write to MH i2c: 01 00 00 1F 51 70 [17:02:22]Write i2c OK [17:02:22]MH_I2C_Read... [17:02:22]Read from MH i2c: 01 [17:02:22]MH_I2C_Read... [17:02:22]Read from MH i2c: 01 07 00 [17:02:22]MH_I2C_Read... [17:02:22]Read from MH i2c: 01 07 00 1F 51 00 00 00 00 00 DE 0C 61 [17:02:22]RasterBufferAndPrint [17:02:22]line [17:02:22]line [17:02:22]line [17:02:22]line [17:02:22]line [17:02:22]written 0, free lines is 3300 [17:02:22]MH_Cut [17:02:22]Write to MH i2c: D1 01 00 26 51 01 49 [17:02:22]Write i2c OK [17:02:22]MH_I2C_Read... [17:02:22]Read from MH i2c: D1 [17:02:22]MH_I2C_Read... [17:02:22]Read from MH i2c: D1 01 00 [17:02:22]MH_I2C_Read... [17:02:22]Read from MH i2c: D1 01 00 26 51 00 48 [17:02:22]Write to MH i2c: 01 00 00 27 51 78 [17:02:22]Write i2c OK [17:02:22]MH_I2C_Read... [17:02:23]OFD Sender: No OFD packet to send [17:02:23]*** Cut start [17:02:23]*** Purtial cut [17:02:23]*** Stage 1: CUTSNS_PIN = 1 [17:02:25]Read from MH i2c: 01 [17:02:25]MH_I2C_Read... [17:02:25]*** Stop cut motor [17:02:25]*** Cut end [17:02:25]Read from MH i2c: 01 07 00 [17:02:25]MH_I2C_Read... [17:02:25]Read from MH i2c: 01 07 00 27 51 00 00 00 00 00 FF 0F 8D [17:02:25]process_action close_receipt done [17:02:25]requested_data is exist [17:02:25]produce_requested_data [17:02:25]requested_item fm.sn is exist - process it [17:02:25]wFMCommunicate request_size=4 [17:02:25]MH_SAM_APDU [17:02:25]CAPDU: 80 11 00 00 [17:02:25]Write to MH i2c: E2 08 00 28 51 80 11 00 00 00 00 00 00 F3 [17:02:25]Write i2c OK [17:02:25]MH_I2C_Read... [17:02:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:02:25]Read from MH i2c: E2 [17:02:25]MH_I2C_Read... [17:02:25]Read from MH i2c: E2 17 00 [17:02:25]MH_I2C_Read... [17:02:25]Read from MH i2c: E2 17 00 28 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 4F [17:02:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [17:02:25]wFMCommunicate OK [17:02:25]requested_item fd.num is exist - process it [17:02:25]SAM_PROTO_GetFieldsCounters [17:02:25]wFMCommunicate request_size=4 [17:02:25]MH_SAM_APDU [17:02:25]CAPDU: 80 13 00 00 [17:02:25]Write to MH i2c: E2 08 00 29 51 80 13 00 00 00 00 00 00 F6 [17:02:25]Write i2c OK [17:02:25]MH_I2C_Read... [17:02:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:02:25]Read from MH i2c: E2 [17:02:25]MH_I2C_Read... [17:02:25]Read from MH i2c: E2 62 00 [17:02:25]MH_I2C_Read... [17:02:25]Read from MH i2c: E2 62 00 29 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 A9 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 7D [17:02:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 A9 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:02:25]wFMCommunicate OK [17:02:25]SAM_PROTO_GetFieldsCounters done [17:02:25]requested_item shift.num is exist - process it [17:02:25]requested_item shift.opened is exist - process it [17:02:25]req_shift_opened [17:02:25]FM_GetShiftState [17:02:25]SAM_PROTO_GetShiftState [17:02:25]wFMCommunicate request_size=4 [17:02:25]MH_SAM_APDU [17:02:25]CAPDU: 80 13 01 00 [17:02:25]Write to MH i2c: E2 08 00 2A 51 80 13 01 00 00 00 00 00 F8 [17:02:25]Write i2c OK [17:02:25]MH_I2C_Read... [17:02:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:02:25]Read from MH i2c: E2 [17:02:25]MH_I2C_Read... [17:02:25]Read from MH i2c: E2 0E 00 [17:02:25]MH_I2C_Read... [17:02:25]Read from MH i2c: E2 0E 00 2A 51 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 2E [17:02:25]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [17:02:25]wFMCommunicate OK [17:02:25]SAM_PROTO_GetShiftState done [17:02:25]FM_GetShiftState done [17:02:25]req_shift_opened done [17:02:25]requested_item shift.open_date is exist - process it [17:02:25]req_shift_open_date [17:02:25]req_shift_open_date done [17:02:25]produce_requested_data done [17:02:25]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45225,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [17:02:25]process_action_free close_receipt [17:02:25]json_value_free [17:02:25]json_value_free done [17:02:25]process_json_proto returns [17:02:25]Send response to host [17:02:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45225,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [17:02:25]free response buf [17:02:25]execute_script done [17:02:25]execute_script returns [17:02:25]free content buf [17:02:25]Sock 7.Close socket [17:02:25]Sock 7.Thread stoped [17:02:28]accept exits with 9 [17:02:28]New connection [17:02:28]New thread 3067157860 created [17:02:28]Thread 3067014500 joined [17:02:28]Waiting for new connection... [17:02:28] Sock 9.Parse request [17:02:28]Sock 9.Check first char [17:02:28]Sock 9.First char is OK [17:02:28]request: POST /json_proto HTTP/1.0 [17:02:28]Method: POST [17:02:28]URL: /json_proto [17:02:28]Method is POST - this is cgi request [17:02:28]url: /json_proto [17:02:28]query_string will be loaded in cgi processing [17:02:28]execute_cgi json_proto POST (null) [17:02:28]execute_cgi path=json_proto method=POST [17:02:28]POST find Content-Length [17:02:28]Host: 172.17.48.198:8080 [17:02:28]Content-Length: 744 [17:02:28]Content-Type: application/json [17:02:28] [17:02:28]POST finish read [17:02:28]Found Content-Length = 744 [17:02:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 45225, "base_FM": "0000000000874796", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106240", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 70.90, "quantity" : 14.110, "sum" : 1000.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:02:28]execute_script... [17:02:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 45225, "base_FM": "0000000000874796", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106240", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 70.90, "quantity" : 14.110, "sum" : 1000.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:02:28]POST & json_proto [17:02:28]process_json_proto [17:02:28]json parsed OK: [17:02:28]protocol is kg_v1.0 [17:02:28]action value=close_receipt [17:02:28]process_action close_receipt [17:02:28]cmd_close_receipt [17:02:28]MH_GetDate [17:02:28]Write to MH i2c: F0 00 00 2B 51 6B [17:02:28]Write i2c OK [17:02:28]MH_I2C_Read... [17:02:28]Read from MH i2c: F0 [17:02:28]MH_I2C_Read... [17:02:28]Read from MH i2c: F0 09 00 [17:02:28]MH_I2C_Read... [17:02:28]Read from MH i2c: F0 09 00 2B 51 00 30 AD E4 65 CE C4 D4 65 65 [17:02:28]GetLastDocTimeStamp 1709485352 [17:02:28]current date 1709485360 [17:02:28]FM_GetShiftState [17:02:28]SAM_PROTO_GetShiftState [17:02:28]wFMCommunicate request_size=4 [17:02:28]MH_SAM_APDU [17:02:28]CAPDU: 80 13 01 00 [17:02:28]Write to MH i2c: E2 08 00 2C 51 80 13 01 00 00 00 00 00 FA [17:02:28]Write i2c OK [17:02:28]MH_I2C_Read... [17:02:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:02:28]OFD Sender: No OFD packet to send [17:02:28]Read from MH i2c: E2 [17:02:28]MH_I2C_Read... [17:02:28]Read from MH i2c: E2 0E 00 [17:02:28]MH_I2C_Read... [17:02:28]Read from MH i2c: E2 0E 00 2C 51 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 30 [17:02:28]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [17:02:28]wFMCommunicate OK [17:02:28]SAM_PROTO_GetShiftState done [17:02:28]FM_GetShiftState done [17:02:28]opened in 1709425694 [17:02:28]opened+sec_in_day 1709512094 [17:02:28]quantity*price = 100039 [17:02:28]sum+1 = 100041 [17:02:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 1000.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 63 03.03.2024 17:02 Смена: 331 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 ФД осн.: 45225 ФМ осн.: 0000000000874796 ФМ: 0000000000874796 ФД: 45226 ФПД: 231805665793391 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T170240&type=2&operation_type=1&fn_number=0000000000874796&fd_number=45226&fm=231805665793391&tin=02508201610067®Number=0000000000090572&sum=100000 [17:02:29]StoreToDocumentArchive [17:02:29]shift 331 fd 45226 [17:02:29]save to /storage/0331/doc_00045226 [17:02:29]save last doc name /storage/0331/doc_00045226 to /storage/kkm_last_doc_name [17:02:29]save OK [17:02:29]Clear old archive folders... [17:02:29]ProcessDocumentItem done err = 0, tmpTLVsize=280 [17:02:29]tlvbuf is 01B41BB0 [17:02:29]SAM_PROTO_ClearQueue [17:02:29]wFMCommunicate request_size=4 [17:02:29]MH_SAM_APDU [17:02:29]CAPDU: 80 09 00 00 [17:02:29]Write to MH i2c: E2 08 00 3B 51 80 09 00 00 00 00 00 00 FE [17:02:29]Write i2c OK [17:02:29]MH_I2C_Read... [17:02:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:02:29]Read from MH i2c: E2 [17:02:29]MH_I2C_Read... [17:02:29]Read from MH i2c: E2 03 00 [17:02:29]MH_I2C_Read... [17:02:29]Read from MH i2c: E2 03 00 3B 51 00 90 00 00 [17:02:29]RAPDU: 90 00 [17:02:29]wFMCommunicate OK [17:02:29]SAM_PROTO_ClearQueue done [17:02:29]KKMCreateOFDPacket [17:02:29]OFDProtocolAddRootSTLVToBuf [17:02:29]FM_MakeSignedData [17:02:29]FM_MakeSignedData [17:02:29]SAM_PROTO_SignData [17:02:29]wFMCommunicate request_size=4 [17:02:29]MH_SAM_APDU [17:02:29]CAPDU: 80 0D 01 02 [17:02:29]Write to MH i2c: E2 08 00 3C 51 80 0D 01 02 00 00 00 00 06 [17:02:29]Write i2c OK [17:02:29]MH_I2C_Read... [17:02:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:02:29]Read from MH i2c: E2 [17:02:29]MH_I2C_Read... [17:02:29]Read from MH i2c: E2 03 00 [17:02:29]MH_I2C_Read... [17:02:29]Read from MH i2c: E2 03 00 3C 51 00 90 00 01 [17:02:29]RAPDU: 90 00 [17:02:29]wFMCommunicate OK [17:02:29]wFMCommunicate request_size=255 [17:02:29]MH_SAM_APDU [17:02:29]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 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 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 30 AD E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 27 04 04 00 A9 B0 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 11 04 10 00 [17:02:29]Write to MH i2c: E2 02 01 3D 51 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 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 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 30 AD E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 27 04 04 00 A9 B0 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 11 04 10 00 00 00 6E [17:02:29]Write i2c OK [17:02:29]MH_I2C_Read... [17:02:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:02:29]Read from MH i2c: E2 [17:02:29]MH_I2C_Read... [17:02:29]Read from MH i2c: E2 03 00 [17:02:29]MH_I2C_Read... [17:02:29]Read from MH i2c: E2 03 00 3D 51 00 90 00 02 [17:02:29]RAPDU: 90 00 [17:02:29]wFMCommunicate OK [17:02:29]wFMCommunicate request_size=39 [17:02:29]MH_SAM_APDU [17:02:29]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 AA B0 00 00 35 04 06 00 D2 D3 76 5D D5 6F [17:02:29]Write to MH i2c: E2 2A 00 3E 51 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 AA B0 00 00 35 04 06 00 D2 D3 76 5D D5 6F 00 00 E3 [17:02:29]Write i2c OK [17:02:29]MH_I2C_Read... [17:02:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:02:29]Read from MH i2c: E2 [17:02:29]MH_I2C_Read... [17:02:29]Read from MH i2c: E2 03 00 [17:02:29]MH_I2C_Read... [17:02:29]Read from MH i2c: E2 03 00 3E 51 00 90 00 03 [17:02:29]RAPDU: 90 00 [17:02:29]wFMCommunicate OK [17:02:29]wFMCommunicate request_size=4 [17:02:29]MH_SAM_APDU [17:02:29]CAPDU: 80 0D 03 02 [17:02:29]Write to MH i2c: E2 08 00 3F 51 80 0D 03 02 00 00 00 00 0B [17:02:29]Write i2c OK [17:02:29]MH_I2C_Read... [17:02:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:02:29]Read from MH i2c: E2 [17:02:29]MH_I2C_Read... [17:02:29]Read from MH i2c: E2 0B 00 [17:02:29]MH_I2C_Read... [17:02:29]Read from MH i2c: E2 0B 00 3F 51 00 30 50 7F 6F 08 F8 62 20 90 00 FC [17:02:29]RAPDU: 30 50 7F 6F 08 F8 62 20 90 00 [17:02:29]wFMCommunicate OK [17:02:29]SAM_PROTO_SignData done [17:02:29]FM_MakeSignedData done [17:02:29]CreateOFDProtocolMessage [17:02:29]wFMCommunicate request_size=4 [17:02:29]MH_SAM_APDU [17:02:29]CAPDU: 80 11 00 00 [17:02:29]Write to MH i2c: E2 08 00 40 51 80 11 00 00 00 00 00 00 0B [17:02:29]Write i2c OK [17:02:29]MH_I2C_Read... [17:02:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:02:30]Read from MH i2c: E2 [17:02:30]MH_I2C_Read... [17:02:30]Read from MH i2c: E2 17 00 [17:02:30]MH_I2C_Read... [17:02:30]Read from MH i2c: E2 17 00 40 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 67 [17:02:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [17:02:30]wFMCommunicate OK [17:02:30]CreateOFDProtocolMessage done [17:02:30]OFDSenderStorePacket 45226 [17:02:30]StoreOFDPacket docnum=45226 [17:02:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 2C 01 00 00 BD FB 24 01 BD E0 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 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 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 30 AD E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 27 04 04 00 A9 B0 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 AA B0 00 00 35 04 06 00 D2 D3 76 5D D5 6F 30 50 7F 6F 08 F8 62 20 [17:02:30]CheckFolder [17:02:30]dirname=/storage/ofd_packets [17:02:30]CheckFolder done [17:02:30]ProducePacketName [17:02:30]name=ofd_packets/00045226 [17:02:30]NVStorageSaveData ofd_packets/00045226 [17:02:30]File name is /storage/ofd_packets/00045226 [17:02:30]Write 330 bytes [17:02:30]NVStorageSaveData done [17:02:30]OFDSenderStorePacket done [17:02:30]KKMCreateOFDPacket done [17:02:30]NVStorageSaveData kkm_last_timestamp [17:02:30]File name is /storage/kkm_last_timestamp [17:02:30]Write 4 bytes [17:02:30]NVStorageSaveData done [17:02:30]ExternCall_PrintAddStr [17:02:30]wPrintStart [17:02:30]Write to MH i2c: 01 00 00 41 51 92 [17:02:30]Write i2c OK [17:02:30]MH_I2C_Read... [17:02:30]Read from MH i2c: 01 [17:02:30]MH_I2C_Read... [17:02:30]Read from MH i2c: 01 07 00 [17:02:30]MH_I2C_Read... [17:02:30]Read from MH i2c: 01 07 00 41 51 00 00 00 00 00 FF 0F A7 [17:02:30]RasterBufferAndPrint [17:02:30]line Счет N : (1)1106240 [17:02:30]line ИНН: 02508201610067 [17:02:30]line Контрольно-Кассовый Чек [17:02:30]line ВОЗВРАТ ПРОДАЖИ [17:02:30]line ТРК (МРК, ГНК) : 41 [17:02:30]line Товар: 2710194210 [17:02:30]line ДТ(л)-К-5 [17:02:30]line 14.110 * 70.90 [17:02:30]line = 1000.40 [17:02:30]line НДС 12% НСП 1% [17:02:30]line > о реализуемом товаре [17:02:30]line ОКРУГЛЕНИЕ: -0.40 [17:02:30]line ИТОГО: 1000.00 [17:02:30]line НСП 1% : 8.85 [17:02:30]line НДС 12% : 106.24 [17:02:30]line Наличными: 1000.00 [17:02:30]line Безнал.: 0.00 [17:02:30]line Место: АЗС № 25 "Партнер Нефть" [17:02:30]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [17:02:30]line СНО: Общий режим [17:02:30]line Чек 63 03.03.2024 17:02 [17:02:30]line Смена: 331 ФФД: 1.0 [17:02:30]line ЗНМ: 0300000013 [17:02:30]line РНМ: 0000000000090572 [17:02:30]line Версия ККМ: 001 [17:02:30]line ФД осн.: 45225 [17:02:30]line ФМ осн.: 0000000000874796 [17:02:30]line ФМ: 0000000000874796 [17:02:30]line ФД: 45226 [17:02:30]line ФПД: 231805665793391 [17:02:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T170240&type=2&operation_type=1&fn_number=0000000000874796&fd_number=45226&fm=231805665793391&tin=02508201610067®Number=0000000000090572&sum=100000 [17:02:30]OFD Sender: Processing packet 45226 [packets to send 17, broken 16] [17:02:30]ProducePacketName [17:02:30]name=ofd_packets/00045226 [17:02:30]OFD Sender: To server: pG, [17:02:30]CommunicateWithHost lk.salyk.kg:30040 [17:02:30]ConnectInit lk.salyk.kg [17:02:30]written 0, free lines is 4095 [17:02:30]Connected sock=10 [17:02:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 2C 01 00 00 BD FB 24 01 BD E0 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 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 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 30 AD E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 27 04 04 00 A9 B0 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 AA B0 00 00 35 04 06 00 D2 D3 76 5D D5 6F 30 50 7F 6F 08 F8 62 20 [17:02:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 C4 E6 47 00 E5 5D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 AA B0 00 00 F4 03 04 00 F5 58 E4 65 B6 04 01 00 00 B8 57 65 CA 21 F8 7C 20 [17:02:30]CommunicateWithHost err = 0 [17:02:30]CheckOFDResponse [17:02:30]1017 (14) - 77093643461234 [17:02:30]1041 (16) - 0000000000874796 [17:02:30]1040 (4) - 45226 [17:02:30]1012 (4) - 03.03.2024 11:03 [17:02:30]1206 (1) - 0 [17:02:30]OFD Sender: Remove packet 45226 [17:02:30]ProducePacketName [17:02:30]name=ofd_packets/00045226 [17:02:30]NVStorageDeleteData [17:02:30]Write to MH i2c: 01 00 00 6C 51 BD [17:02:30]Write i2c OK [17:02:30]MH_I2C_Read... [17:02:30]Read from MH i2c: 01 [17:02:30]MH_I2C_Read... [17:02:30]Read from MH i2c: 01 07 00 [17:02:30]MH_I2C_Read... [17:02:30]Read from MH i2c: 01 07 00 6C 51 00 00 00 00 00 F5 0C C5 [17:02:30]RasterBufferAndPrint [17:02:30]line [17:02:30]line [17:02:30]line [17:02:30]line [17:02:30]line [17:02:30]written 0, free lines is 3328 [17:02:30]MH_Cut [17:02:30]Write to MH i2c: D1 01 00 73 51 01 96 [17:02:30]Write i2c OK [17:02:30]MH_I2C_Read... [17:02:30]Read from MH i2c: D1 [17:02:30]MH_I2C_Read... [17:02:30]Read from MH i2c: D1 01 00 [17:02:30]MH_I2C_Read... [17:02:30]Read from MH i2c: D1 01 00 73 51 00 95 [17:02:30]Write to MH i2c: 01 00 00 74 51 C5 [17:02:30]Write i2c OK [17:02:30]MH_I2C_Read... [17:02:31]OFD Sender: No OFD packet to send [17:02:31]*** Cut start [17:02:31]*** Purtial cut [17:02:31]*** Stage 1: CUTSNS_PIN = 1 [17:02:33]Read from MH i2c: 01 [17:02:33]MH_I2C_Read... [17:02:33]*** Stop cut motor [17:02:33]*** Cut end [17:02:33]Read from MH i2c: 01 07 00 [17:02:33]MH_I2C_Read... [17:02:33]Read from MH i2c: 01 07 00 74 51 00 00 00 00 00 FF 0F DA [17:02:33]process_action close_receipt done [17:02:33]requested_data is exist [17:02:33]produce_requested_data [17:02:33]requested_item fm.sn is exist - process it [17:02:33]wFMCommunicate request_size=4 [17:02:33]MH_SAM_APDU [17:02:33]CAPDU: 80 11 00 00 [17:02:33]Write to MH i2c: E2 08 00 75 51 80 11 00 00 00 00 00 00 40 [17:02:33]Write i2c OK [17:02:33]MH_I2C_Read... [17:02:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:02:33]Read from MH i2c: E2 [17:02:33]MH_I2C_Read... [17:02:33]Read from MH i2c: E2 17 00 [17:02:33]MH_I2C_Read... [17:02:33]Read from MH i2c: E2 17 00 75 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 9C [17:02:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [17:02:33]wFMCommunicate OK [17:02:33]requested_item fd.num is exist - process it [17:02:33]SAM_PROTO_GetFieldsCounters [17:02:33]wFMCommunicate request_size=4 [17:02:33]MH_SAM_APDU [17:02:33]CAPDU: 80 13 00 00 [17:02:33]Write to MH i2c: E2 08 00 76 51 80 13 00 00 00 00 00 00 43 [17:02:33]Write i2c OK [17:02:33]MH_I2C_Read... [17:02:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:02:33]Read from MH i2c: E2 [17:02:33]MH_I2C_Read... [17:02:33]Read from MH i2c: E2 62 00 [17:02:33]MH_I2C_Read... [17:02:33]Read from MH i2c: E2 62 00 76 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 AA B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 CE [17:02:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 AA B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:02:33]wFMCommunicate OK [17:02:33]SAM_PROTO_GetFieldsCounters done [17:02:33]requested_item shift.num is exist - process it [17:02:33]requested_item shift.opened is exist - process it [17:02:33]req_shift_opened [17:02:33]FM_GetShiftState [17:02:33]SAM_PROTO_GetShiftState [17:02:33]wFMCommunicate request_size=4 [17:02:33]MH_SAM_APDU [17:02:33]CAPDU: 80 13 01 00 [17:02:33]Write to MH i2c: E2 08 00 77 51 80 13 01 00 00 00 00 00 45 [17:02:33]Write i2c OK [17:02:33]MH_I2C_Read... [17:02:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:02:33]Read from MH i2c: E2 [17:02:33]MH_I2C_Read... [17:02:33]Read from MH i2c: E2 0E 00 [17:02:33]MH_I2C_Read... [17:02:33]Read from MH i2c: E2 0E 00 77 51 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 7B [17:02:33]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [17:02:33]wFMCommunicate OK [17:02:33]SAM_PROTO_GetShiftState done [17:02:33]FM_GetShiftState done [17:02:33]req_shift_opened done [17:02:33]requested_item shift.open_date is exist - process it [17:02:33]req_shift_open_date [17:02:33]req_shift_open_date done [17:02:33]produce_requested_data done [17:02:33]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45226,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [17:02:33]process_action_free close_receipt [17:02:33]json_value_free [17:02:33]json_value_free done [17:02:33]process_json_proto returns [17:02:33]Send response to host [17:02:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45226,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [17:02:33]free response buf [17:02:33]execute_script done [17:02:33]execute_script returns [17:02:33]free content buf [17:02:33]Sock 9.Close socket [17:02:33]Sock 9.Thread stoped [17:02:36]OFD Sender: No OFD packet to send [17:02:41]OFD Sender: No OFD packet to send [17:02:46]OFD Sender: No OFD packet to send [17:02:51]OFD Sender: No OFD packet to send [17:02:56]OFD Sender: No OFD packet to send [17:03:01]OFD Sender: No OFD packet to send [17:03:06]OFD Sender: No OFD packet to send [17:03:11]OFD Sender: No OFD packet to send [17:03:16]OFD Sender: No OFD packet to send [17:03:21]OFD Sender: No OFD packet to send [17:03:26]OFD Sender: No OFD packet to send [17:03:31]OFD Sender: No OFD packet to send [17:03:36]OFD Sender: No OFD packet to send [17:03:41]OFD Sender: No OFD packet to send [17:03:46]OFD Sender: No OFD packet to send [17:03:51]OFD Sender: No OFD packet to send [17:03:56]OFD Sender: No OFD packet to send [17:04:01]OFD Sender: No OFD packet to send [17:04:06]OFD Sender: No OFD packet to send [17:04:11]OFD Sender: No OFD packet to send [17:04:16]OFD Sender: No OFD packet to send [17:04:19]accept exits with 7 [17:04:19]New connection [17:04:19]New thread 3067014500 created [17:04:19]Thread 3067157860 joined [17:04:19]Waiting for new connection... [17:04:19] Sock 7.Parse request [17:04:19]Sock 7.Check first char [17:04:19]Sock 7.First char is OK [17:04:19]request: POST /json_proto HTTP/1.0 [17:04:19]Method: POST [17:04:19]URL: /json_proto [17:04:19]Method is POST - this is cgi request [17:04:19]url: /json_proto [17:04:19]query_string will be loaded in cgi processing [17:04:19]execute_cgi json_proto POST (null) [17:04:19]execute_cgi path=json_proto method=POST [17:04:19]POST find Content-Length [17:04:19]Host: 172.17.48.198:8080 [17:04:19]Content-Length: 1215 [17:04:19]Content-Type: application/json [17:04:19] [17:04:19]POST finish read [17:04:19]Found Content-Length = 1215 [17:04:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106239\u000A03.03.2024 16:59\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 14.110 x 70.90\u000A\u0418\u0422\u041E\u0413: 1000.40\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A00350\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:04:19]execute_script... [17:04:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106239\u000A03.03.2024 16:59\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 14.110 x 70.90\u000A\u0418\u0422\u041E\u0413: 1000.40\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A00350\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:04:19]POST & json_proto [17:04:19]process_json_proto [17:04:19]json parsed OK: [17:04:19]protocol is kg_v1.0 [17:04:19]action value=print_text [17:04:19]process_action print_text [17:04:19]cmd_print_text [17:04:19]ExternCall_PrintAddStr [17:04:19]wPrintStart [17:04:19]Write to MH i2c: 01 00 00 78 51 C9 [17:04:19]Write i2c OK [17:04:19]MH_I2C_Read... [17:04:19]Read from MH i2c: 01 [17:04:19]MH_I2C_Read... [17:04:19]Read from MH i2c: 01 07 00 [17:04:19]MH_I2C_Read... [17:04:19]Read from MH i2c: 01 07 00 78 51 00 00 00 00 00 FF 0F DE [17:04:19]RasterBufferAndPrint [17:04:19]line *****ТОВАРНЫЙ ЧЕК***** [17:04:19]line АЗС 25 [17:04:19]line Партнер нефть [17:04:19]line 02508201610067 [17:04:19]line Кассир : Турдумбек у. К. [17:04:19]line Счет N : (1)1106239 [17:04:19]line 03.03.2024 16:59 [17:04:19]line ПРОДАЖА [17:04:19]line ТРК (МРК, ГНК): 61 [17:04:19]line Вид ГСМ : 2710194210 [17:04:19]line ДТ(л)-К-5 [17:04:19]line 14.110 x 70.90 [17:04:19]line ИТОГ: 1000.40 [17:04:19]line Тип оплаты: Талоны: Топливная Карта [17:04:19]line 00350 [17:04:19]line ______________________ [17:04:19]line (подпись) [17:04:19]written 0, free lines is 4095 [17:04:19]Write to MH i2c: 01 00 00 8D 51 DE [17:04:19]Write i2c OK [17:04:19]MH_I2C_Read... [17:04:19]Read from MH i2c: 01 [17:04:19]MH_I2C_Read... [17:04:19]Read from MH i2c: 01 07 00 [17:04:19]MH_I2C_Read... [17:04:19]Read from MH i2c: 01 07 00 8D 51 00 00 00 00 00 F3 0D E5 [17:04:19]RasterBufferAndPrint [17:04:19]line [17:04:19]line [17:04:19]line [17:04:19]line [17:04:19]line [17:04:19]written 0, free lines is 3573 [17:04:19]MH_Cut [17:04:19]Write to MH i2c: D1 01 00 94 51 01 B7 [17:04:19]Write i2c OK [17:04:19]MH_I2C_Read... [17:04:19]Read from MH i2c: D1 [17:04:19]MH_I2C_Read... [17:04:19]Read from MH i2c: D1 01 00 [17:04:19]MH_I2C_Read... [17:04:19]Read from MH i2c: D1 01 00 94 51 00 B6 [17:04:19]Write to MH i2c: 01 00 00 95 51 E6 [17:04:19]Write i2c OK [17:04:19]MH_I2C_Read... [17:04:19]*** Cut start [17:04:19]*** Purtial cut [17:04:19]*** Stage 1: CUTSNS_PIN = 1 [17:04:21]OFD Sender: No OFD packet to send [17:04:21]Read from MH i2c: 01 [17:04:21]MH_I2C_Read... [17:04:21]Read from MH i2c: 01 07 00 [17:04:21]MH_I2C_Read... [17:04:21]*** Stop cut motor [17:04:21]*** Cut end [17:04:21]Read from MH i2c: 01 07 00 95 51 00 00 00 00 00 FF 0F FB [17:04:21]process_action print_text done [17:04:21]requested_data is exist [17:04:21]produce_requested_data [17:04:21]requested_item fm.sn is exist - process it [17:04:21]wFMCommunicate request_size=4 [17:04:21]MH_SAM_APDU [17:04:21]CAPDU: 80 11 00 00 [17:04:21]Write to MH i2c: E2 08 00 96 51 80 11 00 00 00 00 00 00 61 [17:04:21]Write i2c OK [17:04:21]MH_I2C_Read... [17:04:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:04:21]Read from MH i2c: E2 [17:04:21]MH_I2C_Read... [17:04:21]Read from MH i2c: E2 17 00 [17:04:21]MH_I2C_Read... [17:04:21]Read from MH i2c: E2 17 00 96 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 BD [17:04:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [17:04:21]wFMCommunicate OK [17:04:21]requested_item fd.num is exist - process it [17:04:21]SAM_PROTO_GetFieldsCounters [17:04:21]wFMCommunicate request_size=4 [17:04:21]MH_SAM_APDU [17:04:21]CAPDU: 80 13 00 00 [17:04:21]Write to MH i2c: E2 08 00 97 51 80 13 00 00 00 00 00 00 64 [17:04:21]Write i2c OK [17:04:21]MH_I2C_Read... [17:04:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:04:21]Read from MH i2c: E2 [17:04:21]MH_I2C_Read... [17:04:21]Read from MH i2c: E2 62 00 [17:04:21]MH_I2C_Read... [17:04:21]Read from MH i2c: E2 62 00 97 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 AA B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 EF [17:04:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 AA B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:04:21]wFMCommunicate OK [17:04:21]SAM_PROTO_GetFieldsCounters done [17:04:21]requested_item shift.num is exist - process it [17:04:21]requested_item shift.opened is exist - process it [17:04:21]req_shift_opened [17:04:21]FM_GetShiftState [17:04:21]SAM_PROTO_GetShiftState [17:04:21]wFMCommunicate request_size=4 [17:04:21]MH_SAM_APDU [17:04:21]CAPDU: 80 13 01 00 [17:04:21]Write to MH i2c: E2 08 00 98 51 80 13 01 00 00 00 00 00 66 [17:04:21]Write i2c OK [17:04:21]MH_I2C_Read... [17:04:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:04:22]Read from MH i2c: E2 [17:04:22]MH_I2C_Read... [17:04:22]Read from MH i2c: E2 0E 00 [17:04:22]MH_I2C_Read... [17:04:22]Read from MH i2c: E2 0E 00 98 51 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 9C [17:04:22]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [17:04:22]wFMCommunicate OK [17:04:22]SAM_PROTO_GetShiftState done [17:04:22]FM_GetShiftState done [17:04:22]req_shift_opened done [17:04:22]requested_item shift.open_date is exist - process it [17:04:22]req_shift_open_date [17:04:22]req_shift_open_date done [17:04:22]produce_requested_data done [17:04:22]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45226,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [17:04:22]process_action_free print_text [17:04:22]json_value_free [17:04:22]json_value_free done [17:04:22]process_json_proto returns [17:04:22]Send response to host [17:04:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45226,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [17:04:22]free response buf [17:04:22]execute_script done [17:04:22]execute_script returns [17:04:22]free content buf [17:04:22]Sock 7.Close socket [17:04:22]Sock 7.Thread stoped [17:04:26]OFD Sender: No OFD packet to send [17:04:31]OFD Sender: No OFD packet to send [17:04:36]OFD Sender: No OFD packet to send [17:04:41]OFD Sender: No OFD packet to send [17:04:46]OFD Sender: No OFD packet to send [17:04:51]OFD Sender: No OFD packet to send [17:04:56]OFD Sender: No OFD packet to send [17:05:01]OFD Sender: No OFD packet to send [17:05:06]OFD Sender: No OFD packet to send [17:05:11]OFD Sender: No OFD packet to send [17:05:16]OFD Sender: No OFD packet to send [17:05:21]OFD Sender: No OFD packet to send [17:05:26]OFD Sender: No OFD packet to send [17:05:31]OFD Sender: No OFD packet to send [17:05:36]OFD Sender: No OFD packet to send [17:05:41]OFD Sender: No OFD packet to send [17:05:46]OFD Sender: No OFD packet to send [17:05:51]OFD Sender: No OFD packet to send [17:05:56]OFD Sender: No OFD packet to send [17:06:01]OFD Sender: No OFD packet to send [17:06:06]OFD Sender: No OFD packet to send [17:06:11]OFD Sender: No OFD packet to send [17:06:16]OFD Sender: No OFD packet to send [17:06:21]OFD Sender: No OFD packet to send [17:06:26]OFD Sender: No OFD packet to send [17:06:31]OFD Sender: No OFD packet to send [17:06:36]OFD Sender: No OFD packet to send [17:06:41]OFD Sender: No OFD packet to send [17:06:46]OFD Sender: No OFD packet to send [17:06:51]OFD Sender: No OFD packet to send [17:06:56]OFD Sender: No OFD packet to send [17:07:01]OFD Sender: No OFD packet to send [17:07:06]OFD Sender: No OFD packet to send [17:07:11]OFD Sender: No OFD packet to send [17:07:16]OFD Sender: No OFD packet to send [17:07:21]OFD Sender: No OFD packet to send [17:07:26]OFD Sender: No OFD packet to send [17:07:31]OFD Sender: No OFD packet to send [17:07:36]OFD Sender: No OFD packet to send [17:07:41]OFD Sender: No OFD packet to send [17:07:46]OFD Sender: No OFD packet to send [17:07:51]OFD Sender: No OFD packet to send [17:07:56]OFD Sender: No OFD packet to send [17:08:01]OFD Sender: No OFD packet to send [17:08:06]OFD Sender: No OFD packet to send [17:08:11]OFD Sender: No OFD packet to send [17:08:16]OFD Sender: No OFD packet to send [17:08:21]OFD Sender: No OFD packet to send [17:08:26]OFD Sender: No OFD packet to send [17:08:31]OFD Sender: No OFD packet to send [17:08:36]OFD Sender: No OFD packet to send [17:08:41]OFD Sender: No OFD packet to send [17:08:46]OFD Sender: No OFD packet to send [17:08:51]OFD Sender: No OFD packet to send [17:08:56]OFD Sender: No OFD packet to send [17:09:01]OFD Sender: No OFD packet to send [17:09:06]OFD Sender: No OFD packet to send [17:09:11]OFD Sender: No OFD packet to send [17:09:16]OFD Sender: No OFD packet to send [17:09:21]OFD Sender: No OFD packet to send [17:09:26]OFD Sender: No OFD packet to send [17:09:31]OFD Sender: No OFD packet to send [17:09:36]OFD Sender: No OFD packet to send [17:09:41]OFD Sender: No OFD packet to send [17:09:46]OFD Sender: No OFD packet to send [17:09:51]OFD Sender: No OFD packet to send [17:09:56]OFD Sender: No OFD packet to send [17:10:01]OFD Sender: No OFD packet to send [17:10:06]OFD Sender: No OFD packet to send [17:10:11]OFD Sender: No OFD packet to send [17:10:16]OFD Sender: No OFD packet to send [17:10:21]OFD Sender: No OFD packet to send [17:10:26]OFD Sender: No OFD packet to send [17:10:31]OFD Sender: No OFD packet to send [17:10:36]OFD Sender: No OFD packet to send [17:10:41]OFD Sender: No OFD packet to send [17:10:46]OFD Sender: No OFD packet to send [17:10:51]OFD Sender: No OFD packet to send [17:10:56]OFD Sender: No OFD packet to send [17:11:01]OFD Sender: No OFD packet to send [17:11:06]OFD Sender: No OFD packet to send [17:11:11]OFD Sender: No OFD packet to send [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: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:36]OFD Sender: No OFD packet to send [17:14:41]OFD Sender: No OFD packet to send [17:14:46]OFD Sender: No OFD packet to send [17:14:51]OFD Sender: No OFD packet to send [17:14:56]OFD Sender: No OFD packet to send [17:15:01]OFD Sender: No OFD packet to send [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: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:21]OFD Sender: No OFD packet to send [17:17:26]OFD Sender: No OFD packet to send [17:17:31]OFD Sender: No OFD packet to send [17:17:36]OFD Sender: No OFD packet to send [17:17:41]OFD Sender: No OFD packet to send [17:17:46]OFD Sender: No OFD packet to send [17:17:51]OFD Sender: No OFD packet to send [17:17:56]OFD Sender: No OFD packet to send [17:18:01]OFD Sender: No OFD packet to send [17:18:06]OFD Sender: No OFD packet to send [17:18:11]OFD Sender: No OFD packet to send [17:18:16]OFD Sender: No OFD packet to send [17:18:21]OFD Sender: No OFD packet to send [17:18:26]OFD Sender: No OFD packet to send [17:18:31]OFD Sender: No OFD packet to send [17:18:36]OFD Sender: No OFD packet to send [17:18:41]OFD Sender: No OFD packet to send [17:18:46]OFD Sender: No OFD packet to send [17:18:51]OFD Sender: No OFD packet to send [17:18:56]OFD Sender: No OFD packet to send [17:19:01]OFD Sender: No OFD packet to send [17:19:06]OFD Sender: No OFD packet to send [17:19:11]OFD Sender: No OFD packet to send [17:19:16]OFD Sender: No OFD packet to send [17:19:21]OFD Sender: No OFD packet to send [17:19:26]OFD Sender: No OFD packet to send [17:19:31]OFD Sender: No OFD packet to send [17:19:36]OFD Sender: No OFD packet to send [17:19:41]OFD Sender: No OFD packet to send [17:19:46]OFD Sender: No OFD packet to send [17:19:51]OFD Sender: No OFD packet to send [17:19:56]OFD Sender: No OFD packet to send [17:20:01]OFD Sender: No OFD packet to send [17:20:06]OFD Sender: No OFD packet to send [17:20:11]OFD Sender: No OFD packet to send [17:20:16]OFD Sender: No OFD packet to send [17:20:21]OFD Sender: No OFD packet to send [17:20:26]OFD Sender: No OFD packet to send [17:20:31]OFD Sender: No OFD packet to send [17:20:36]OFD Sender: No OFD packet to send [17:20:41]OFD Sender: No OFD packet to send [17:20:46]OFD Sender: No OFD packet to send [17:20:51]OFD Sender: No OFD packet to send [17:20:56]OFD Sender: No OFD packet to send [17:21:01]OFD Sender: No OFD packet to send [17:21:06]OFD Sender: No OFD packet to send [17:21:11]OFD Sender: No OFD packet to send [17:21:16]OFD Sender: No OFD packet to send [17:21:21]OFD Sender: No OFD packet to send [17:21:26]OFD Sender: No OFD packet to send [17:21:32]OFD Sender: No OFD packet to send [17:21:37]OFD Sender: No OFD packet to send [17:21:42]OFD Sender: No OFD packet to send [17:21:47]OFD Sender: No OFD packet to send [17:21:52]OFD Sender: No OFD packet to send [17:21:57]OFD Sender: No OFD packet to send [17:22:02]OFD Sender: No OFD packet to send [17:22:07]OFD Sender: No OFD packet to send [17:22:12]OFD Sender: No OFD packet to send [17:22:17]OFD Sender: No OFD packet to send [17:22:22]OFD Sender: No OFD packet to send [17:22:27]OFD Sender: No OFD packet to send [17:22:32]OFD Sender: No OFD packet to send [17:22:37]OFD Sender: No OFD packet to send [17:22:42]OFD Sender: No OFD packet to send [17:22:47]OFD Sender: No OFD packet to send [17:22:52]OFD Sender: No OFD packet to send [17:22:57]OFD Sender: No OFD packet to send [17:23:02]OFD Sender: No OFD packet to send [17:23:07]OFD Sender: No OFD packet to send [17:23:12]OFD Sender: No OFD packet to send [17:23:17]OFD Sender: No OFD packet to send [17:23:22]OFD Sender: No OFD packet to send [17:23:27]OFD Sender: No OFD packet to send [17:23:32]OFD Sender: No OFD packet to send [17:23:37]OFD Sender: No OFD packet to send [17:23:42]OFD Sender: No OFD packet to send [17:23:47]OFD Sender: No OFD packet to send [17:23:52]OFD Sender: No OFD packet to send [17:23:54]accept exits with 9 [17:23:54]New connection [17:23:54]New thread 3067157860 created [17:23:54]Thread 3067014500 joined [17:23:54]Waiting for new connection... [17:23:54] Sock 9.Parse request [17:23:54]Sock 9.Check first char [17:23:54]Sock 9.First char is OK [17:23:54]request: POST /json_proto HTTP/1.0 [17:23:54]Method: POST [17:23:54]URL: /json_proto [17:23:54]Method is POST - this is cgi request [17:23:54]url: /json_proto [17:23:54]query_string will be loaded in cgi processing [17:23:54]execute_cgi json_proto POST (null) [17:23:54]execute_cgi path=json_proto method=POST [17:23:54]POST find Content-Length [17:23:54]Host: 172.17.48.198:8080 [17:23:54]Content-Length: 976 [17:23:54]Content-Type: application/json [17:23:54] [17:23:54]POST finish read [17:23:54]Found Content-Length = 976 [17:23:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184190", "tax_sys" : 0, "items" : [ { "code": "4690329016705", "name": "\u0428\u043E\u043A\u043E\u043B\u0430\u0434 \u0433\u043E\u0440\u044C\u043A\u0438\u0439 OZera Dark 90\u0433", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607014824583", "name": "\u041B\u044E\u0431\u0438\u043C\u044B\u0439 \u041D\u0430\u043F \u0410\u043F\u041C\u0430\u043D\u0433\u043E\u041C\u0430\u043D\u0434 0.95\u043B", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 215.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:23:54]execute_script... [17:23:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184190", "tax_sys" : 0, "items" : [ { "code": "4690329016705", "name": "\u0428\u043E\u043A\u043E\u043B\u0430\u0434 \u0433\u043E\u0440\u044C\u043A\u0438\u0439 OZera Dark 90\u0433", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607014824583", "name": "\u041B\u044E\u0431\u0438\u043C\u044B\u0439 \u041D\u0430\u043F \u0410\u043F\u041C\u0430\u043D\u0433\u043E\u041C\u0430\u043D\u0434 0.95\u043B", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 215.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:23:54]POST & json_proto [17:23:54]process_json_proto [17:23:54]json parsed OK: [17:23:54]protocol is kg_v1.0 [17:23:54]action value=close_receipt [17:23:54]process_action close_receipt [17:23:54]cmd_close_receipt [17:23:54]MH_GetDate [17:23:54]Write to MH i2c: F0 00 00 99 51 D9 [17:23:54]Write i2c OK [17:23:54]MH_I2C_Read... [17:23:54]Read from MH i2c: F0 [17:23:54]MH_I2C_Read... [17:23:54]Read from MH i2c: F0 09 00 [17:23:54]MH_I2C_Read... [17:23:54]Read from MH i2c: F0 09 00 99 51 00 37 B2 E4 65 CE C4 D4 65 DF [17:23:54]GetLastDocTimeStamp 1709485360 [17:23:54]current date 1709486647 [17:23:54]FM_GetShiftState [17:23:54]SAM_PROTO_GetShiftState [17:23:54]wFMCommunicate request_size=4 [17:23:54]MH_SAM_APDU [17:23:54]CAPDU: 80 13 01 00 [17:23:54]Write to MH i2c: E2 08 00 9A 51 80 13 01 00 00 00 00 00 68 [17:23:54]Write i2c OK [17:23:54]MH_I2C_Read... [17:23:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:23:54]Read from MH i2c: E2 [17:23:54]MH_I2C_Read... [17:23:54]Read from MH i2c: E2 0E 00 [17:23:54]MH_I2C_Read... [17:23:54]Read from MH i2c: E2 0E 00 9A 51 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 9E [17:23:54]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [17:23:54]wFMCommunicate OK [17:23:54]SAM_PROTO_GetShiftState done [17:23:54]FM_GetShiftState done [17:23:54]opened in 1709425694 [17:23:54]opened+sec_in_day 1709512094 [17:23:54]quantity*price = 10000 [17:23:54]sum+1 = 10001 [17:23:54]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4607014824583 Любимый Нап АпМангоМанд 0.95л 1.000 * 115.00 = 115.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 215.00 НСП 1% : 1.90 НДС 12% : 22.83 Наличными: 215.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 64 03.03.2024 17:24 Смена: 331 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 ФМ: 0000000000874796 ФД: 45227 ФПД: 96224978359448 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T172407&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45227&fm=96224978359448&tin=02508201610067®Number=0000000000090572&sum=21500 0 [17:23:56]StoreToDocumentArchive [17:23:56]shift 331 fd 45227 [17:23:56]save to /storage/0331/doc_00045227 [17:23:56]save last doc name /storage/0331/doc_00045227 to /storage/kkm_last_doc_name [17:23:56]save OK [17:23:56]Clear old archive folders... [17:23:56]ProcessDocumentItem done err = 0, tmpTLVsize=410 [17:23:56]tlvbuf is 01AFA150 [17:23:56]SAM_PROTO_ClearQueue [17:23:56]wFMCommunicate request_size=4 [17:23:56]MH_SAM_APDU [17:23:56]CAPDU: 80 09 00 00 [17:23:56]Write to MH i2c: E2 08 00 A7 51 80 09 00 00 00 00 00 00 6A [17:23:56]Write i2c OK [17:23:56]MH_I2C_Read... [17:23:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:23:56]Read from MH i2c: E2 [17:23:56]MH_I2C_Read... [17:23:56]Read from MH i2c: E2 03 00 [17:23:56]MH_I2C_Read... [17:23:56]Read from MH i2c: E2 03 00 A7 51 00 90 00 6C [17:23:56]RAPDU: 90 00 [17:23:56]wFMCommunicate OK [17:23:56]SAM_PROTO_ClearQueue done [17:23:56]KKMCreateOFDPacket [17:23:56]OFDProtocolAddRootSTLVToBuf [17:23:56]FM_MakeSignedData [17:23:56]FM_MakeSignedData [17:23:56]SAM_PROTO_SignData [17:23:56]wFMCommunicate request_size=4 [17:23:56]MH_SAM_APDU [17:23:56]CAPDU: 80 0D 01 02 [17:23:56]Write to MH i2c: E2 08 00 A8 51 80 0D 01 02 00 00 00 00 72 [17:23:56]Write i2c OK [17:23:56]MH_I2C_Read... [17:23:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:23:56]Read from MH i2c: E2 [17:23:56]MH_I2C_Read... [17:23:56]Read from MH i2c: E2 03 00 [17:23:56]MH_I2C_Read... [17:23:56]Read from MH i2c: E2 03 00 A8 51 00 90 00 6D [17:23:56]RAPDU: 90 00 [17:23:56]wFMCommunicate OK [17:23:56]wFMCommunicate request_size=255 [17:23:56]MH_SAM_APDU [17:23:56]CAPDU: 80 0D 02 02 FA 03 00 9A 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 36 39 30 33 32 39 30 31 36 37 30 35 06 04 2D 00 D0 A8 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 D0 B3 D0 BE D1 80 D1 8C D0 BA D0 B8 D0 B9 20 4F 5A 65 72 61 20 44 61 72 6B 20 39 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 36 30 37 30 31 34 38 32 34 35 38 33 06 04 33 00 D0 9B D1 8E D0 B1 D0 B8 D0 BC D1 8B D0 B9 20 D0 9D D0 B0 D0 BF 20 D0 90 D0 BF D0 9C D0 B0 D0 BD D0 B3 D0 BE D0 9C D0 B0 D0 BD D0 B4 20 30 2E 39 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC [17:23:56]Write to MH i2c: E2 02 01 A9 51 80 0D 02 02 FA 00 03 00 9A 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 36 39 30 33 32 39 30 31 36 37 30 35 06 04 2D 00 D0 A8 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 D0 B3 D0 BE D1 80 D1 8C D0 BA D0 B8 D0 B9 20 4F 5A 65 72 61 20 44 61 72 6B 20 39 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 36 30 37 30 31 34 38 32 34 35 38 33 06 04 33 00 D0 9B D1 8E D0 B1 D0 B8 D0 BC D1 8B D0 B9 20 D0 9D D0 B0 D0 BF 20 D0 90 D0 BF D0 9C D0 B0 D0 BD D0 B3 D0 BE D0 9C D0 B0 D0 BD D0 B4 20 30 2E 39 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 00 00 C4 [17:23:56]Write i2c OK [17:23:56]MH_I2C_Read... [17:23:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:23:56]Read from MH i2c: E2 [17:23:56]MH_I2C_Read... [17:23:56]Read from MH i2c: E2 03 00 [17:23:56]MH_I2C_Read... [17:23:56]Read from MH i2c: E2 03 00 A9 51 00 90 00 6E [17:23:56]RAPDU: 90 00 [17:23:56]wFMCommunicate OK [17:23:56]wFMCommunicate request_size=169 [17:23:56]MH_SAM_APDU [17:23:56]CAPDU: 80 0D 02 02 A4 03 06 00 FC 53 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 08 00 00 00 00 07 04 06 00 FC 53 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 37 B2 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 AB B0 00 00 35 04 06 00 57 84 1F A7 54 98 [17:23:56]Write to MH i2c: E2 AC 00 AA 51 80 0D 02 02 A4 00 03 06 00 FC 53 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 08 00 00 00 00 07 04 06 00 FC 53 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 37 B2 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 AB B0 00 00 35 04 06 00 57 84 1F A7 54 98 00 00 FF [17:23:56]Write i2c OK [17:23:56]MH_I2C_Read... [17:23:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:23:56]Read from MH i2c: E2 [17:23:56]MH_I2C_Read... [17:23:56]Read from MH i2c: E2 03 00 [17:23:56]MH_I2C_Read... [17:23:56]Read from MH i2c: E2 03 00 AA 51 00 90 00 6F [17:23:56]RAPDU: 90 00 [17:23:56]wFMCommunicate OK [17:23:56]wFMCommunicate request_size=4 [17:23:56]MH_SAM_APDU [17:23:56]CAPDU: 80 0D 03 02 [17:23:56]Write to MH i2c: E2 08 00 AB 51 80 0D 03 02 00 00 00 00 77 [17:23:56]Write i2c OK [17:23:56]MH_I2C_Read... [17:23:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:23:56]Read from MH i2c: E2 [17:23:56]MH_I2C_Read... [17:23:56]Read from MH i2c: E2 0B 00 [17:23:56]MH_I2C_Read... [17:23:56]Read from MH i2c: E2 0B 00 AB 51 00 DB FC 6D D0 30 99 F3 B1 90 00 F9 [17:23:56]RAPDU: DB FC 6D D0 30 99 F3 B1 90 00 [17:23:56]wFMCommunicate OK [17:23:56]SAM_PROTO_SignData done [17:23:56]FM_MakeSignedData done [17:23:56]CreateOFDProtocolMessage [17:23:56]wFMCommunicate request_size=4 [17:23:56]MH_SAM_APDU [17:23:56]CAPDU: 80 11 00 00 [17:23:56]Write to MH i2c: E2 08 00 AC 51 80 11 00 00 00 00 00 00 77 [17:23:56]Write i2c OK [17:23:56]MH_I2C_Read... [17:23:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:23:56]Read from MH i2c: E2 [17:23:56]MH_I2C_Read... [17:23:56]Read from MH i2c: E2 17 00 [17:23:56]MH_I2C_Read... [17:23:56]Read from MH i2c: E2 17 00 AC 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 D3 [17:23:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [17:23:56]wFMCommunicate OK [17:23:56]CreateOFDProtocolMessage done [17:23:56]OFDSenderStorePacket 45227 [17:23:56]StoreOFDPacket docnum=45227 [17:23:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 AE 01 00 00 BE 7A A6 01 EC 14 5A 03 01 00 03 00 9A 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 36 39 30 33 32 39 30 31 36 37 30 35 06 04 2D 00 D0 A8 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 D0 B3 D0 BE D1 80 D1 8C D0 BA D0 B8 D0 B9 20 4F 5A 65 72 61 20 44 61 72 6B 20 39 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 36 30 37 30 31 34 38 32 34 35 38 33 06 04 33 00 D0 9B D1 8E D0 B1 D0 B8 D0 BC D1 8B D0 B9 20 D0 9D D0 B0 D0 BF 20 D0 90 D0 BF D0 9C D0 B0 D0 BD D0 B3 D0 BE D0 9C D0 B0 D0 BD D0 B4 20 30 2E 39 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 53 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 08 00 00 00 00 07 04 06 00 FC 53 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 37 B2 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 AB B0 00 00 35 04 06 00 57 84 1F A7 54 98 DB FC 6D D0 30 99 F3 B1 [17:23:56]CheckFolder [17:23:56]dirname=/storage/ofd_packets [17:23:56]CheckFolder done [17:23:56]ProducePacketName [17:23:56]name=ofd_packets/00045227 [17:23:56]NVStorageSaveData ofd_packets/00045227 [17:23:56]File name is /storage/ofd_packets/00045227 [17:23:56]Write 460 bytes [17:23:56]NVStorageSaveData done [17:23:56]OFDSenderStorePacket done [17:23:56]KKMCreateOFDPacket done [17:23:56]NVStorageSaveData kkm_last_timestamp [17:23:56]File name is /storage/kkm_last_timestamp [17:23:56]Write 4 bytes [17:23:56]NVStorageSaveData done [17:23:56]ExternCall_PrintAddStr [17:23:56]wPrintStart [17:23:56]Write to MH i2c: 01 00 00 AD 51 FE [17:23:56]Write i2c OK [17:23:56]MH_I2C_Read... [17:23:56]Read from MH i2c: 01 [17:23:56]MH_I2C_Read... [17:23:56]Read from MH i2c: 01 07 00 [17:23:57]MH_I2C_Read... [17:23:57]OFD Sender: Processing packet 45227 [packets to send 17, broken 16] [17:23:57]ProducePacketName [17:23:57]name=ofd_packets/00045227 [17:23:57]Read from MH i2c: OFD Sender: To server: pG, [17:23:57]01 CommunicateWithHost lk.salyk.kg:30040 [17:23:57]07 ConnectInit lk.salyk.kg [17:23:57]00 AD 51 00 00 00 00 00 FF 0F 13 [17:23:57]RasterBufferAndPrint [17:23:57]line Счет N : (3)184190 [17:23:57]line ИНН: 02508201610067 [17:23:57]line Контрольно-Кассовый Чек [17:23:57]line ПРОДАЖА [17:23:57]line Товар: 4690329016705 [17:23:57]line Шоколад горький OZera Dark 90г [17:23:57]line 1.000 * 100.00 [17:23:57]line = 100.00 [17:23:57]line НДС 12% НСП 1% [17:23:57]line > о реализуемом товаре [17:23:57]line Товар: 4607014824583 [17:23:57]line Любимый Нап АпМангоМанд 0.95л [17:23:57]line 1.000 * 115.00 [17:23:57]line = 115.00 [17:23:57]line НДС 12% НСП 1% [17:23:57]line > о реализуемом товаре [17:23:57]line ИТОГО: 215.00 [17:23:57]line НСП 1% : 1.90 [17:23:57]line НДС 12% : 22.83 [17:23:57]line Наличными: 215.00 [17:23:57]line Безнал.: 0.00 [17:23:57]line Место: АЗС № 25 "Партнер Нефть" [17:23:57]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [17:23:57]line СНО: Общий режим [17:23:57]line Чек 64 03.03.2024 17:24 [17:23:57]line Смена: 331 ФФД: 1.0 [17:23:57]line ЗНМ: 0300000013 [17:23:57]line РНМ: 0000000000090572 [17:23:57]line Версия ККМ: 001 [17:23:57]line ФМ: 0000000000874796 [17:23:57]line ФД: 45227 [17:23:57]line ФПД: 96224978359448 [17:23:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T172407&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45227&fm=96224978359448&tin=02508201610067®Number=0000000000090572&sum=21500 [17:23:57]line 0 [17:23:57]written 0, free lines is 4095 [17:23:57]Connected sock=11 [17:23:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 AE 01 00 00 BE 7A A6 01 EC 14 5A 03 01 00 03 00 9A 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 36 39 30 33 32 39 30 31 36 37 30 35 06 04 2D 00 D0 A8 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 D0 B3 D0 BE D1 80 D1 8C D0 BA D0 B8 D0 B9 20 4F 5A 65 72 61 20 44 61 72 6B 20 39 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 36 30 37 30 31 34 38 32 34 35 38 33 06 04 33 00 D0 9B D1 8E D0 B1 D0 B8 D0 BC D1 8B D0 B9 20 D0 9D D0 B0 D0 BF 20 D0 90 D0 BF D0 9C D0 B0 D0 BD D0 B3 D0 BE D0 9C D0 B0 D0 BD D0 B4 20 30 2E 39 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 53 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 08 00 00 00 00 07 04 06 00 FC 53 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 37 B2 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 AB B0 00 00 35 04 06 00 57 84 1F A7 54 98 DB FC 6D D0 30 99 F3 B1 [17:23:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 7C 61 47 00 34 70 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 AB B0 00 00 F4 03 04 00 FC 5D E4 65 B6 04 01 00 00 0F A3 62 34 FD 67 5F 4F [17:23:57]CommunicateWithHost err = 0 [17:23:57]CheckOFDResponse [17:23:57]1017 (14) - 77093643461234 [17:23:57]1041 (16) - 0000000000874796 [17:23:57]1040 (4) - 45227 [17:23:57]1012 (4) - 03.03.2024 11:24 [17:23:57]1206 (1) - 0 [17:23:57]OFD Sender: Remove packet 45227 [17:23:57]ProducePacketName [17:23:57]name=ofd_packets/00045227 [17:23:57]NVStorageDeleteData [17:23:57]Write to MH i2c: 01 00 00 DD 51 2E [17:23:57]Write i2c OK [17:23:57]MH_I2C_Read... [17:23:57]Read from MH i2c: 01 [17:23:57]MH_I2C_Read... [17:23:57]Read from MH i2c: 01 07 00 [17:23:57]MH_I2C_Read... [17:23:57]Read from MH i2c: 01 07 00 DD 51 00 00 00 00 00 9D 0C DE [17:23:57]RasterBufferAndPrint [17:23:57]line [17:23:57]line [17:23:57]line [17:23:57]line [17:23:57]line [17:23:57]written 0, free lines is 3238 [17:23:57]MH_Cut [17:23:57]Write to MH i2c: D1 01 00 E4 51 01 07 [17:23:57]Write i2c OK [17:23:57]MH_I2C_Read... [17:23:57]Read from MH i2c: D1 [17:23:57]MH_I2C_Read... [17:23:57]Read from MH i2c: D1 01 00 [17:23:57]MH_I2C_Read... [17:23:57]Read from MH i2c: D1 01 00 E4 51 00 06 [17:23:57]Write to MH i2c: 01 00 00 E5 51 36 [17:23:57]Write i2c OK [17:23:57]MH_I2C_Read... [17:23:57]OFD Sender: No OFD packet to send [17:23:58]*** Cut start [17:23:58]*** Purtial cut [17:23:58]*** Stage 1: CUTSNS_PIN = 1 [17:24:00]Read from MH i2c: 01 [17:24:00]MH_I2C_Read... [17:24:00]*** Stop cut motor [17:24:00]*** Cut end [17:24:00]Read from MH i2c: 01 07 00 [17:24:00]MH_I2C_Read... [17:24:00]Read from MH i2c: 01 07 00 E5 51 00 00 00 00 00 FF 0F 4B [17:24:00]process_action close_receipt done [17:24:00]requested_data is exist [17:24:00]produce_requested_data [17:24:00]requested_item fm.sn is exist - process it [17:24:00]wFMCommunicate request_size=4 [17:24:00]MH_SAM_APDU [17:24:00]CAPDU: 80 11 00 00 [17:24:00]Write to MH i2c: E2 08 00 E6 51 80 11 00 00 00 00 00 00 B1 [17:24:00]Write i2c OK [17:24:00]MH_I2C_Read... [17:24:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:00]Read from MH i2c: E2 [17:24:00]MH_I2C_Read... [17:24:00]Read from MH i2c: E2 17 00 [17:24:00]MH_I2C_Read... [17:24:00]Read from MH i2c: E2 17 00 E6 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 0D [17:24:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [17:24:00]wFMCommunicate OK [17:24:00]requested_item fd.num is exist - process it [17:24:00]SAM_PROTO_GetFieldsCounters [17:24:00]wFMCommunicate request_size=4 [17:24:00]MH_SAM_APDU [17:24:00]CAPDU: 80 13 00 00 [17:24:00]Write to MH i2c: E2 08 00 E7 51 80 13 00 00 00 00 00 00 B4 [17:24:00]Write i2c OK [17:24:00]MH_I2C_Read... [17:24:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:24:00]Read from MH i2c: E2 [17:24:00]MH_I2C_Read... [17:24:00]Read from MH i2c: E2 62 00 [17:24:00]MH_I2C_Read... [17:24:00]Read from MH i2c: E2 62 00 E7 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 AB B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 43 [17:24:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 AB B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:24:00]wFMCommunicate OK [17:24:00]SAM_PROTO_GetFieldsCounters done [17:24:00]requested_item shift.num is exist - process it [17:24:00]requested_item shift.opened is exist - process it [17:24:00]req_shift_opened [17:24:00]FM_GetShiftState [17:24:00]SAM_PROTO_GetShiftState [17:24:00]wFMCommunicate request_size=4 [17:24:00]MH_SAM_APDU [17:24:00]CAPDU: 80 13 01 00 [17:24:00]Write to MH i2c: E2 08 00 E8 51 80 13 01 00 00 00 00 00 B6 [17:24:00]Write i2c OK [17:24:00]MH_I2C_Read... [17:24:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:00]Read from MH i2c: E2 [17:24:00]MH_I2C_Read... [17:24:00]Read from MH i2c: E2 0E 00 [17:24:00]MH_I2C_Read... [17:24:00]Read from MH i2c: E2 0E 00 E8 51 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 EC [17:24:00]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [17:24:00]wFMCommunicate OK [17:24:00]SAM_PROTO_GetShiftState done [17:24:00]FM_GetShiftState done [17:24:00]req_shift_opened done [17:24:00]requested_item shift.open_date is exist - process it [17:24:00]req_shift_open_date [17:24:00]req_shift_open_date done [17:24:00]produce_requested_data done [17:24:00]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45227,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [17:24:00]process_action_free close_receipt [17:24:00]json_value_free [17:24:00]json_value_free done [17:24:00]process_json_proto returns [17:24:00]Send response to host [17:24:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45227,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [17:24:00]free response buf [17:24:00]execute_script done [17:24:00]execute_script returns [17:24:00]free content buf [17:24:00]Sock 9.Close socket [17:24:00]Sock 9.Thread stoped [17:24:02]OFD Sender: No OFD packet to send [17:24:07]OFD Sender: No OFD packet to send [17:24:12]OFD Sender: No OFD packet to send [17:24:17]OFD Sender: No OFD packet to send [17:24:22]OFD Sender: No OFD packet to send [17:24:27]OFD Sender: No OFD packet to send [17:24:32]OFD Sender: No OFD packet to send [17:24:37]OFD Sender: No OFD packet to send [17:24:42]OFD Sender: No OFD packet to send [17:24:47]OFD Sender: No OFD packet to send [17:24:52]OFD Sender: No OFD packet to send [17:24:57]OFD Sender: No OFD packet to send [17:25:02]OFD Sender: No OFD packet to send [17:25:07]OFD Sender: No OFD packet to send [17:25:12]OFD Sender: No OFD packet to send [17:25:17]OFD Sender: No OFD packet to send [17:25:22]OFD Sender: No OFD packet to send [17:25:27]OFD Sender: No OFD packet to send [17:25:32]OFD Sender: No OFD packet to send [17:25:37]OFD Sender: No OFD packet to send [17:25:42]OFD Sender: No OFD packet to send [17:25:47]OFD Sender: No OFD packet to send [17:25:52]OFD Sender: No OFD packet to send [17:25:57]OFD Sender: No OFD packet to send [17:26:02]OFD Sender: No OFD packet to send [17:26:07]OFD Sender: No OFD packet to send [17:26:12]OFD Sender: No OFD packet to send [17:26:17]OFD Sender: No OFD packet to send [17:26:22]OFD Sender: No OFD packet to send [17:26:27]OFD Sender: No OFD packet to send [17:26:32]OFD Sender: No OFD packet to send [17:26:37]OFD Sender: No OFD packet to send [17:26:42]OFD Sender: No OFD packet to send [17:26:47]OFD Sender: No OFD packet to send [17:26:52]OFD Sender: No OFD packet to send [17:26:58]OFD Sender: No OFD packet to send [17:27:03]OFD Sender: No OFD packet to send [17:27:08]OFD Sender: No OFD packet to send [17:27:13]OFD Sender: No OFD packet to send [17:27:18]OFD Sender: No OFD packet to send [17:27:23]OFD Sender: No OFD packet to send [17:27:28]OFD Sender: No OFD packet to send [17:27:33]OFD Sender: No OFD packet to send [17:27:38]OFD Sender: No OFD packet to send [17:27:43]OFD Sender: No OFD packet to send [17:27:48]OFD Sender: No OFD packet to send [17:27:53]OFD Sender: No OFD packet to send [17:27:58]OFD Sender: No OFD packet to send [17:28:02]accept exits with 7 [17:28:02]New connection [17:28:02]New thread 3067014500 created [17:28:02]Thread 3067157860 joined [17:28:02]Waiting for new connection... [17:28:02] Sock 7.Parse request [17:28:02]Sock 7.Check first char [17:28:02]Sock 7.First char is OK [17:28:02]request: POST /json_proto HTTP/1.0 [17:28:02]Method: POST [17:28:02]URL: /json_proto [17:28:02]Method is POST - this is cgi request [17:28:02]url: /json_proto [17:28:02]query_string will be loaded in cgi processing [17:28:02]execute_cgi json_proto POST (null) [17:28:02]execute_cgi path=json_proto method=POST [17:28:02]POST find Content-Length [17:28:02]Host: 172.17.48.198:8080 [17:28:02]Content-Length: 969 [17:28:02]Content-Type: application/json [17:28:02] [17:28:02]POST finish read [17:28:02]Found Content-Length = 969 [17:28:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184191", "tax_sys" : 0, "items" : [ { "code": "5449000189349", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E \u0430\u043D\u0430\u043D\u0430\u0441 0,5\u043B", "price" : 75.00, "quantity" : 3.000, "sum" : 225.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "90162602", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red bull 0,25\u043B", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 395.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:28:02]execute_script... [17:28:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184191", "tax_sys" : 0, "items" : [ { "code": "5449000189349", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E \u0430\u043D\u0430\u043D\u0430\u0441 0,5\u043B", "price" : 75.00, "quantity" : 3.000, "sum" : 225.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "90162602", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red bull 0,25\u043B", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 395.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:28:02]POST & json_proto [17:28:02]process_json_proto [17:28:02]json parsed OK: [17:28:02]protocol is kg_v1.0 [17:28:02]action value=close_receipt [17:28:02]process_action close_receipt [17:28:02]cmd_close_receipt [17:28:02]MH_GetDate [17:28:02]Write to MH i2c: F0 00 00 E9 51 29 [17:28:02]Write i2c OK [17:28:02]MH_I2C_Read... [17:28:02]Read from MH i2c: F0 [17:28:02]MH_I2C_Read... [17:28:02]Read from MH i2c: F0 09 00 [17:28:02]MH_I2C_Read... [17:28:02]Read from MH i2c: F0 09 00 E9 51 00 2F B3 E4 65 CE C4 D4 65 28 [17:28:02]GetLastDocTimeStamp 1709486647 [17:28:02]current date 1709486895 [17:28:02]FM_GetShiftState [17:28:02]SAM_PROTO_GetShiftState [17:28:02]wFMCommunicate request_size=4 [17:28:02]MH_SAM_APDU [17:28:02]CAPDU: 80 13 01 00 [17:28:02]Write to MH i2c: E2 08 00 EA 51 80 13 01 00 00 00 00 00 B8 [17:28:02]Write i2c OK [17:28:02]MH_I2C_Read... [17:28:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:28:02]Read from MH i2c: E2 [17:28:02]MH_I2C_Read... [17:28:02]Read from MH i2c: E2 0E 00 [17:28:02]MH_I2C_Read... [17:28:02]Read from MH i2c: E2 0E 00 EA 51 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 EE [17:28:02]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [17:28:02]wFMCommunicate OK [17:28:02]SAM_PROTO_GetShiftState done [17:28:02]FM_GetShiftState done [17:28:02]opened in 1709425694 [17:28:02]opened+sec_in_day 1709512094 [17:28:02]quantity*price = 22500 [17:28:02]sum+1 = 22501 [17:28:02]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 90162602 Энерг напиток Red bull 0,25л 1.000 * 170.00 = 170.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 395.00 НСП 1% : 3.49 НДС 12% : 41.94 Наличными: 395.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 65 03.03.2024 17:28 Смена: 331 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 ФМ: 0000000000874796 ФД: 45228 ФПД: 80688931922945 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T172815&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45228&fm=80688931922945&tin=02508201610067®Number=0000000000090572&sum=39500 0 [17:28:04]StoreToDocumentArchive [17:28:04]shift 331 fd 45228 [17:28:04]save to /storage/0331/doc_00045228 [17:28:04]save last doc name /storage/0331/doc_00045228 to /storage/kkm_last_doc_name [17:28:04]save OK [17:28:04]Clear old archive folders... [17:28:04]ProcessDocumentItem done err = 0, tmpTLVsize=408 [17:28:04]tlvbuf is 01B242C0 [17:28:04]SAM_PROTO_ClearQueue [17:28:04]wFMCommunicate request_size=4 [17:28:04]MH_SAM_APDU [17:28:04]CAPDU: 80 09 00 00 [17:28:04]Write to MH i2c: E2 08 00 F7 51 80 09 00 00 00 00 00 00 BA [17:28:04]Write i2c OK [17:28:04]MH_I2C_Read... [17:28:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:28:04]Read from MH i2c: E2 [17:28:04]MH_I2C_Read... [17:28:04]Read from MH i2c: E2 03 00 [17:28:04]MH_I2C_Read... [17:28:04]Read from MH i2c: E2 03 00 F7 51 00 90 00 BC [17:28:04]RAPDU: 90 00 [17:28:04]wFMCommunicate OK [17:28:04]SAM_PROTO_ClearQueue done [17:28:04]KKMCreateOFDPacket [17:28:04]OFDProtocolAddRootSTLVToBuf [17:28:04]FM_MakeSignedData [17:28:04]FM_MakeSignedData [17:28:04]SAM_PROTO_SignData [17:28:04]wFMCommunicate request_size=4 [17:28:04]MH_SAM_APDU [17:28:04]CAPDU: 80 0D 01 02 [17:28:04]Write to MH i2c: E2 08 00 F8 51 80 0D 01 02 00 00 00 00 C2 [17:28:04]Write i2c OK [17:28:04]MH_I2C_Read... [17:28:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:28:04]Read from MH i2c: E2 [17:28:04]MH_I2C_Read... [17:28:04]Read from MH i2c: E2 03 00 [17:28:04]MH_I2C_Read... [17:28:04]Read from MH i2c: E2 03 00 F8 51 00 90 00 BD [17:28:04]RAPDU: 90 00 [17:28:04]wFMCommunicate OK [17:28:04]wFMCommunicate request_size=255 [17:28:04]MH_SAM_APDU [17:28:04]CAPDU: 80 0D 02 02 FA 03 00 98 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 34 39 06 04 3A 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 30 2C 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 [17:28:04]Write to MH i2c: E2 02 01 F9 51 80 0D 02 02 FA 00 03 00 98 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 34 39 06 04 3A 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 30 2C 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 62 [17:28:04]Write i2c OK [17:28:04]MH_I2C_Read... [17:28:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:28:04]Read from MH i2c: E2 [17:28:04]MH_I2C_Read... [17:28:04]Read from MH i2c: E2 03 00 [17:28:04]MH_I2C_Read... [17:28:04]Read from MH i2c: E2 03 00 F9 51 00 90 00 BE [17:28:04]RAPDU: 90 00 [17:28:04]wFMCommunicate OK [17:28:04]wFMCommunicate request_size=167 [17:28:04]MH_SAM_APDU [17:28:04]CAPDU: 80 0D 02 02 A2 00 4C 9A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 10 00 00 00 00 07 04 06 00 4C 9A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 2F B3 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 AC B0 00 00 35 04 06 00 49 62 DB 1F E4 01 [17:28:04]Write to MH i2c: E2 AA 00 FA 51 80 0D 02 02 A2 00 00 4C 9A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 10 00 00 00 00 07 04 06 00 4C 9A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 2F B3 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 AC B0 00 00 35 04 06 00 49 62 DB 1F E4 01 00 00 87 [17:28:04]Write i2c OK [17:28:04]MH_I2C_Read... [17:28:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:28:04]Read from MH i2c: E2 [17:28:04]MH_I2C_Read... [17:28:04]Read from MH i2c: E2 03 00 [17:28:04]MH_I2C_Read... [17:28:04]Read from MH i2c: E2 03 00 FA 51 00 90 00 BF [17:28:04]RAPDU: 90 00 [17:28:04]wFMCommunicate OK [17:28:04]wFMCommunicate request_size=4 [17:28:04]MH_SAM_APDU [17:28:04]CAPDU: 80 0D 03 02 [17:28:04]Write to MH i2c: E2 08 00 FB 51 80 0D 03 02 00 00 00 00 C7 [17:28:04]Write i2c OK [17:28:04]MH_I2C_Read... [17:28:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:28:04]Read from MH i2c: E2 [17:28:04]MH_I2C_Read... [17:28:04]Read from MH i2c: E2 0B 00 [17:28:04]MH_I2C_Read... [17:28:04]Read from MH i2c: E2 0B 00 FB 51 00 CC AA AD 11 4C 1F 33 B8 90 00 52 [17:28:04]RAPDU: CC AA AD 11 4C 1F 33 B8 90 00 [17:28:04]wFMCommunicate OK [17:28:04]SAM_PROTO_SignData done [17:28:04]FM_MakeSignedData done [17:28:04]CreateOFDProtocolMessage [17:28:04]wFMCommunicate request_size=4 [17:28:04]MH_SAM_APDU [17:28:04]CAPDU: 80 11 00 00 [17:28:04]Write to MH i2c: E2 08 00 FC 51 80 11 00 00 00 00 00 00 C7 [17:28:04]Write i2c OK [17:28:04]MH_I2C_Read... [17:28:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:28:04]Read from MH i2c: E2 [17:28:04]MH_I2C_Read... [17:28:04]Read from MH i2c: E2 17 00 [17:28:04]MH_I2C_Read... [17:28:04]Read from MH i2c: E2 17 00 FC 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 23 [17:28:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [17:28:04]wFMCommunicate OK [17:28:04]CreateOFDProtocolMessage done [17:28:04]OFDSenderStorePacket 45228 [17:28:04]StoreOFDPacket docnum=45228 [17:28:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 AC 01 00 00 C2 9B A4 01 3E C0 5A 03 01 00 03 00 98 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 34 39 06 04 3A 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 30 2C 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 9A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 10 00 00 00 00 07 04 06 00 4C 9A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 2F B3 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 AC B0 00 00 35 04 06 00 49 62 DB 1F E4 01 CC AA AD 11 4C 1F 33 B8 [17:28:04]CheckFolder [17:28:04]dirname=/storage/ofd_packets [17:28:04]CheckFolder done [17:28:04]ProducePacketName [17:28:04]name=ofd_packets/00045228 [17:28:04]NVStorageSaveData ofd_packets/00045228 [17:28:04]File name is /storage/ofd_packets/00045228 [17:28:04]Write 458 bytes [17:28:04]NVStorageSaveData done [17:28:04]OFDSenderStorePacket done [17:28:04]KKMCreateOFDPacket done [17:28:04]NVStorageSaveData kkm_last_timestamp [17:28:04]File name is /storage/kkm_last_timestamp [17:28:04]Write 4 bytes [17:28:04]NVStorageSaveData done [17:28:04]ExternCall_PrintAddStr [17:28:04]wPrintStart [17:28:04]Write to MH i2c: 01 00 00 FD 51 4E [17:28:04]Write i2c OK [17:28:04]MH_I2C_Read... [17:28:04]Read from MH i2c: 01 [17:28:04]MH_I2C_Read... [17:28:04]Read from MH i2c: 01 07 00 [17:28:05]MH_I2C_Read... [17:28:05]OFD Sender: Processing packet 45228 [packets to send 17, broken 16] [17:28:05]ProducePacketName [17:28:05]name=ofd_packets/00045228 [17:28:05]OFD Sender: To server: pG, [17:28:05]CommunicateWithHost lk.salyk.kg:30040 [17:28:05]ConnectInit lk.salyk.kg [17:28:05]Read from MH i2c: 01 07 00 FD 51 00 00 00 00 00 FF 0F 63 [17:28:05]RasterBufferAndPrint [17:28:05]line Счет N : (3)184191 [17:28:05]line ИНН: 02508201610067 [17:28:05]line Контрольно-Кассовый Чек [17:28:05]line ПРОДАЖА [17:28:05]line Товар: 5449000189349 [17:28:05]line Холодный чай Fuse манго ананас 0,5л [17:28:05]line 3.000 * 75.00 [17:28:05]line = 225.00 [17:28:05]line НДС 12% НСП 1% [17:28:05]line > о реализуемом товаре [17:28:05]line Товар: 90162602 [17:28:05]line Энерг напиток Red bull 0,25л [17:28:05]line 1.000 * 170.00 [17:28:05]line = 170.00 [17:28:05]line НДС 12% НСП 1% [17:28:05]line > о реализуемом товаре [17:28:05]line ИТОГО: 395.00 [17:28:05]line НСП 1% : 3.49 [17:28:05]line НДС 12% : 41.94 [17:28:05]line Наличными: 395.00 [17:28:05]line Безнал.: 0.00 [17:28:05]line Место: АЗС № 25 "Партнер Нефть" [17:28:05]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [17:28:05]line СНО: Общий режим [17:28:05]line Чек 65 03.03.2024 17:28 [17:28:05]line Смена: 331 ФФД: 1.0 [17:28:05]line ЗНМ: 0300000013 [17:28:05]line РНМ: 0000000000090572 [17:28:05]line Версия ККМ: 001 [17:28:05]line ФМ: 0000000000874796 [17:28:05]line ФД: 45228 [17:28:05]line ФПД: 80688931922945 [17:28:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T172815&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45228&fm=80688931922945&tin=02508201610067®Number=0000000000090572&sum=39500 [17:28:05]line 0 [17:28:05]written 0, free lines is 4095 [17:28:05]Connected sock=10 [17:28:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 AC 01 00 00 C2 9B A4 01 3E C0 5A 03 01 00 03 00 98 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 34 39 06 04 3A 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 30 2C 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 9A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 10 00 00 00 00 07 04 06 00 4C 9A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 2F B3 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 AC B0 00 00 35 04 06 00 49 62 DB 1F E4 01 CC AA AD 11 4C 1F 33 B8 [17:28:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 D5 B9 47 00 09 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 AC B0 00 00 F4 03 04 00 F3 5E E4 65 B6 04 01 00 00 94 97 8E 70 2F 78 9E FF [17:28:05]CommunicateWithHost err = 0 [17:28:05]CheckOFDResponse [17:28:05]1017 (14) - 77093643461234 [17:28:05]1041 (16) - 0000000000874796 [17:28:05]1040 (4) - 45228 [17:28:05]1012 (4) - 03.03.2024 11:28 [17:28:05]1206 (1) - 0 [17:28:05]OFD Sender: Remove packet 45228 [17:28:05]ProducePacketName [17:28:05]name=ofd_packets/00045228 [17:28:05]NVStorageDeleteData [17:28:05]Write to MH i2c: 01 00 00 2C 52 7E [17:28:05]Write i2c OK [17:28:05]MH_I2C_Read... [17:28:05]Read from MH i2c: 01 [17:28:05]MH_I2C_Read... [17:28:05]Read from MH i2c: 01 07 00 [17:28:05]MH_I2C_Read... [17:28:05]Read from MH i2c: 01 07 00 2C 52 00 00 00 00 00 B7 0C 48 [17:28:05]RasterBufferAndPrint [17:28:05]line [17:28:05]line [17:28:05]line [17:28:05]line [17:28:05]line [17:28:05]written 0, free lines is 3264 [17:28:05]MH_Cut [17:28:05]Write to MH i2c: D1 01 00 33 52 01 57 [17:28:05]Write i2c OK [17:28:05]MH_I2C_Read... [17:28:05]Read from MH i2c: D1 [17:28:05]MH_I2C_Read... [17:28:05]Read from MH i2c: D1 01 00 [17:28:05]MH_I2C_Read... [17:28:05]Read from MH i2c: D1 01 00 33 52 00 56 [17:28:05]Write to MH i2c: 01 00 00 34 52 86 [17:28:05]Write i2c OK [17:28:05]MH_I2C_Read... [17:28:05]OFD Sender: No OFD packet to send [17:28:06]*** Cut start [17:28:06]*** Purtial cut [17:28:06]*** Stage 1: CUTSNS_PIN = 1 [17:28:08]Read from MH i2c: 01 [17:28:08]MH_I2C_Read... [17:28:08]*** Stop cut motor [17:28:08]*** Cut end [17:28:08]Read from MH i2c: 01 07 00 [17:28:08]MH_I2C_Read... [17:28:08]Read from MH i2c: 01 07 00 34 52 00 00 00 00 00 FF 0F 9B [17:28:08]process_action close_receipt done [17:28:08]requested_data is exist [17:28:08]produce_requested_data [17:28:08]requested_item fm.sn is exist - process it [17:28:08]wFMCommunicate request_size=4 [17:28:08]MH_SAM_APDU [17:28:08]CAPDU: 80 11 00 00 [17:28:08]Write to MH i2c: E2 08 00 35 52 80 11 00 00 00 00 00 00 01 [17:28:08]Write i2c OK [17:28:08]MH_I2C_Read... [17:28:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:28:08]Read from MH i2c: E2 [17:28:08]MH_I2C_Read... [17:28:08]Read from MH i2c: E2 17 00 [17:28:08]MH_I2C_Read... [17:28:08]Read from MH i2c: E2 17 00 35 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 5D [17:28:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [17:28:08]wFMCommunicate OK [17:28:08]requested_item fd.num is exist - process it [17:28:08]SAM_PROTO_GetFieldsCounters [17:28:08]wFMCommunicate request_size=4 [17:28:08]MH_SAM_APDU [17:28:08]CAPDU: 80 13 00 00 [17:28:08]Write to MH i2c: E2 08 00 36 52 80 13 00 00 00 00 00 00 04 [17:28:08]Write i2c OK [17:28:08]MH_I2C_Read... [17:28:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:28:08]Read from MH i2c: E2 [17:28:08]MH_I2C_Read... [17:28:08]Read from MH i2c: E2 62 00 [17:28:08]MH_I2C_Read... [17:28:08]Read from MH i2c: E2 62 00 36 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 AC B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 97 [17:28:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 AC B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:28:08]wFMCommunicate OK [17:28:08]SAM_PROTO_GetFieldsCounters done [17:28:08]requested_item shift.num is exist - process it [17:28:08]requested_item shift.opened is exist - process it [17:28:08]req_shift_opened [17:28:08]FM_GetShiftState [17:28:08]SAM_PROTO_GetShiftState [17:28:08]wFMCommunicate request_size=4 [17:28:08]MH_SAM_APDU [17:28:08]CAPDU: 80 13 01 00 [17:28:08]Write to MH i2c: E2 08 00 37 52 80 13 01 00 00 00 00 00 06 [17:28:08]Write i2c OK [17:28:08]MH_I2C_Read... [17:28:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:28:08]Read from MH i2c: E2 [17:28:08]MH_I2C_Read... [17:28:08]Read from MH i2c: E2 0E 00 [17:28:08]MH_I2C_Read... [17:28:08]Read from MH i2c: E2 0E 00 37 52 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 3C [17:28:08]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [17:28:08]wFMCommunicate OK [17:28:08]SAM_PROTO_GetShiftState done [17:28:08]FM_GetShiftState done [17:28:08]req_shift_opened done [17:28:08]requested_item shift.open_date is exist - process it [17:28:08]req_shift_open_date [17:28:08]req_shift_open_date done [17:28:08]produce_requested_data done [17:28:08]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45228,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [17:28:08]process_action_free close_receipt [17:28:08]json_value_free [17:28:08]json_value_free done [17:28:08]process_json_proto returns [17:28:08]Send response to host [17:28:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45228,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [17:28:08]free response buf [17:28:08]execute_script done [17:28:08]execute_script returns [17:28:08]free content buf [17:28:08]Sock 7.Close socket [17:28:08]Sock 7.Thread stoped [17:28:10]OFD Sender: No OFD packet to send [17:28:15]OFD Sender: No OFD packet to send [17:28:20]OFD Sender: No OFD packet to send [17:28:25]OFD Sender: No OFD packet to send [17:28:30]OFD Sender: No OFD packet to send [17:28:35]OFD Sender: No OFD packet to send [17:28:40]OFD Sender: No OFD packet to send [17:28:45]OFD Sender: No OFD packet to send [17:28:50]OFD Sender: No OFD packet to send [17:28:55]OFD Sender: No OFD packet to send [17:29:00]OFD Sender: No OFD packet to send [17:29:05]OFD Sender: No OFD packet to send [17:29:10]OFD Sender: No OFD packet to send [17:29:15]OFD Sender: No OFD packet to send [17:29:20]OFD Sender: No OFD packet to send [17:29:25]OFD Sender: No OFD packet to send [17:29:30]OFD Sender: No OFD packet to send [17:29:35]OFD Sender: No OFD packet to send [17:29:40]OFD Sender: No OFD packet to send [17:29:45]OFD Sender: No OFD packet to send [17:29:50]OFD Sender: No OFD packet to send [17:29:55]OFD Sender: No OFD packet to send [17:30:00]OFD Sender: No OFD packet to send [17:30:05]OFD Sender: No OFD packet to send [17:30:10]OFD Sender: No OFD packet to send [17:30:15]OFD Sender: No OFD packet to send [17:30:20]OFD Sender: No OFD packet to send [17:30:25]OFD Sender: No OFD packet to send [17:30:30]OFD Sender: No OFD packet to send [17:30:35]OFD Sender: No OFD packet to send [17:30:40]OFD Sender: No OFD packet to send [17:30:45]OFD Sender: No OFD packet to send [17:30:50]OFD Sender: No OFD packet to send [17:30:55]OFD Sender: No OFD packet to send [17:31:01]OFD Sender: No OFD packet to send [17:31:06]OFD Sender: No OFD packet to send [17:31:11]OFD Sender: No OFD packet to send [17:31:16]OFD Sender: No OFD packet to send [17:31:21]OFD Sender: No OFD packet to send [17:31:26]OFD Sender: No OFD packet to send [17:31:31]OFD Sender: No OFD packet to send [17:31:36]OFD Sender: No OFD packet to send [17:31:41]OFD Sender: No OFD packet to send [17:31:46]OFD Sender: No OFD packet to send [17:31:51]OFD Sender: No OFD packet to send [17:31:56]OFD Sender: No OFD packet to send [17:32:01]OFD Sender: No OFD packet to send [17:32:06]OFD Sender: No OFD packet to send [17:32:11]OFD Sender: No OFD packet to send [17:32:16]OFD Sender: No OFD packet to send [17:32:21]OFD Sender: No OFD packet to send [17:32:26]OFD Sender: No OFD packet to send [17:32:31]OFD Sender: No OFD packet to send [17:32:36]OFD Sender: No OFD packet to send [17:32:41]OFD Sender: No OFD packet to send [17:32:46]OFD Sender: No OFD packet to send [17:32:51]OFD Sender: No OFD packet to send [17:32:56]OFD Sender: No OFD packet to send [17:33:01]OFD Sender: No OFD packet to send [17:33:06]OFD Sender: No OFD packet to send [17:33:11]OFD Sender: No OFD packet to send [17:33:16]OFD Sender: No OFD packet to send [17:33:21]OFD Sender: No OFD packet to send [17:33:26]OFD Sender: No OFD packet to send [17:33:31]OFD Sender: No OFD packet to send [17:33:36]OFD Sender: No OFD packet to send [17:33:41]OFD Sender: No OFD packet to send [17:33:46]OFD Sender: No OFD packet to send [17:33:51]OFD Sender: No OFD packet to send [17:33:56]OFD Sender: No OFD packet to send [17:34:01]OFD Sender: No OFD packet to send [17:34:06]OFD Sender: No OFD packet to send [17:34:11]OFD Sender: No OFD packet to send [17:34:16]OFD Sender: No OFD packet to send [17:34:21]OFD Sender: No OFD packet to send [17:34:26]OFD Sender: No OFD packet to send [17:34:31]OFD Sender: No OFD packet to send [17:34:36]OFD Sender: No OFD packet to send [17:34:41]OFD Sender: No OFD packet to send [17:34:46]OFD Sender: No OFD packet to send [17:34:51]OFD Sender: No OFD packet to send [17:34:56]OFD Sender: No OFD packet to send [17:35:01]OFD Sender: No OFD packet to send [17:35:06]OFD Sender: No OFD packet to send [17:35:11]OFD Sender: No OFD packet to send [17:35:16]OFD Sender: No OFD packet to send [17:35:21]OFD Sender: No OFD packet to send [17:35:26]OFD Sender: No OFD packet to send [17:35:31]OFD Sender: No OFD packet to send [17:35:36]OFD Sender: No OFD packet to send [17:35:41]OFD Sender: No OFD packet to send [17:35:46]OFD Sender: No OFD packet to send [17:35:51]OFD Sender: No OFD packet to send [17:35:56]OFD Sender: No OFD packet to send [17:36:01]OFD Sender: No OFD packet to send [17:36:06]OFD Sender: No OFD packet to send [17:36:11]OFD Sender: No OFD packet to send [17:36:16]OFD Sender: No OFD packet to send [17:36:21]OFD Sender: No OFD packet to send [17:36:26]OFD Sender: No OFD packet to send [17:36:31]OFD Sender: No OFD packet to send [17:36:36]OFD Sender: No OFD packet to send [17:36:41]OFD Sender: No OFD packet to send [17:36:46]OFD Sender: No OFD packet to send [17:36:51]OFD Sender: No OFD packet to send [17:36:56]OFD Sender: No OFD packet to send [17:37:01]OFD Sender: No OFD packet to send [17:37:06]OFD Sender: No OFD packet to send [17:37:11]OFD Sender: No OFD packet to send [17:37:16]OFD Sender: No OFD packet to send [17:37:21]OFD Sender: No OFD packet to send [17:37:26]OFD Sender: No OFD packet to send [17:37:31]OFD Sender: No OFD packet to send [17:37:36]OFD Sender: No OFD packet to send [17:37:41]OFD Sender: No OFD packet to send [17:37:46]OFD Sender: No OFD packet to send [17:37:51]OFD Sender: No OFD packet to send [17:37:56]OFD Sender: No OFD packet to send [17:38:01]OFD Sender: No OFD packet to send [17:38:06]OFD Sender: No OFD packet to send [17:38:11]OFD Sender: No OFD packet to send [17:38:16]OFD Sender: No OFD packet to send [17:38:21]OFD Sender: No OFD packet to send [17:38:26]OFD Sender: No OFD packet to send [17:38:31]OFD Sender: No OFD packet to send [17:38:36]OFD Sender: No OFD packet to send [17:38:41]OFD Sender: No OFD packet to send [17:38:46]OFD Sender: No OFD packet to send [17:38:51]OFD Sender: No OFD packet to send [17:38:56]OFD Sender: No OFD packet to send [17:39:01]OFD Sender: No OFD packet to send [17:39:06]OFD Sender: No OFD packet to send [17:39:11]OFD Sender: No OFD packet to send [17:39:16]OFD Sender: No OFD packet to send [17:39:21]OFD Sender: No OFD packet to send [17:39:26]OFD Sender: No OFD packet to send [17:39:31]OFD Sender: No OFD packet to send [17:39:36]OFD Sender: No OFD packet to send [17:39:41]OFD Sender: No OFD packet to send [17:39:46]OFD Sender: No OFD packet to send [17:39:51]OFD Sender: No OFD packet to send [17:39:56]OFD Sender: No OFD packet to send [17:40:01]OFD Sender: No OFD packet to send [17:40:06]OFD Sender: No OFD packet to send [17:40:11]OFD Sender: No OFD packet to send [17:40:16]OFD Sender: No OFD packet to send [17:40:21]OFD Sender: No OFD packet to send [17:40:26]OFD Sender: No OFD packet to send [17:40:31]OFD Sender: No OFD packet to send [17:40:36]OFD Sender: No OFD packet to send [17:40:41]OFD Sender: No OFD packet to send [17:40:46]OFD Sender: No OFD packet to send [17:40:51]OFD Sender: No OFD packet to send [17:40:56]OFD Sender: No OFD packet to send [17:41:01]OFD Sender: No OFD packet to send [17:41:06]OFD Sender: No OFD packet to send [17:41:11]OFD Sender: No OFD packet to send [17:41:16]OFD Sender: No OFD packet to send [17:41:21]OFD Sender: No OFD packet to send [17:41:26]OFD Sender: No OFD packet to send [17:41:31]OFD Sender: No OFD packet to send [17:41:36]OFD Sender: No OFD packet to send [17:41:41]OFD Sender: No OFD packet to send [17:41:46]OFD Sender: No OFD packet to send [17:41:49]accept exits with 9 [17:41:49]New connection [17:41:49]New thread 3067157860 created [17:41:49]Thread 3067014500 joined [17:41:49]Waiting for new connection... [17:41:49] Sock 9.Parse request [17:41:49]Sock 9.Check first char [17:41:49]Sock 9.First char is OK [17:41:49]request: POST /json_proto HTTP/1.0 [17:41:49]Method: POST [17:41:49]URL: /json_proto [17:41:49]Method is POST - this is cgi request [17:41:49]url: /json_proto [17:41:49]query_string will be loaded in cgi processing [17:41:49]execute_cgi json_proto POST (null) [17:41:49]execute_cgi path=json_proto method=POST [17:41:49]POST find Content-Length [17:41:49]Host: 172.17.48.198:8080 [17:41:49]Content-Length: 658 [17:41:49]Content-Type: application/json [17:41:49] [17:41:49]POST finish read [17:41:49]Found Content-Length = 658 [17:41:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184192", "tax_sys" : 0, "items" : [ { "code": "4870216764968", "name": "\u041D\u0430\u0433\u0440.\u0422\u0430\u0431.\u041F\u0430\u043B\u043E\u0447. HEETS Torquoise Selectio", "price" : 141.00, "quantity" : 1.000, "sum" : 141.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 141.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:41:49]execute_script... [17: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 : (3)184192", "tax_sys" : 0, "items" : [ { "code": "4870216764968", "name": "\u041D\u0430\u0433\u0440.\u0422\u0430\u0431.\u041F\u0430\u043B\u043E\u0447. HEETS Torquoise Selectio", "price" : 141.00, "quantity" : 1.000, "sum" : 141.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 141.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:41:49]POST & json_proto [17:41:49]process_json_proto [17:41:49]json parsed OK: [17:41:49]protocol is kg_v1.0 [17:41:49]action value=close_receipt [17:41:49]process_action close_receipt [17:41:49]cmd_close_receipt [17:41:49]MH_GetDate [17:41:49]Write to MH i2c: F0 00 00 38 52 79 [17:41:49]Write i2c OK [17:41:49]MH_I2C_Read... [17:41:49]Read from MH i2c: F0 [17:41:49]MH_I2C_Read... [17:41:49]Read from MH i2c: F0 09 00 [17:41:49]MH_I2C_Read... [17:41:49]Read from MH i2c: F0 09 00 38 52 00 6A B6 E4 65 CE C4 D4 65 B6 [17:41:49]GetLastDocTimeStamp 1709486895 [17:41:49]current date 1709487722 [17:41:49]FM_GetShiftState [17:41:49]SAM_PROTO_GetShiftState [17:41:49]wFMCommunicate request_size=4 [17:41:49]MH_SAM_APDU [17:41:49]CAPDU: 80 13 01 00 [17:41:49]Write to MH i2c: E2 08 00 39 52 80 13 01 00 00 00 00 00 08 [17:41:49]Write i2c OK [17:41:49]MH_I2C_Read... [17:41:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:41:49]Read from MH i2c: E2 [17:41:49]MH_I2C_Read... [17:41:49]Read from MH i2c: E2 0E 00 [17:41:49]MH_I2C_Read... [17:41:49]Read from MH i2c: E2 0E 00 39 52 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 3E [17:41:49]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [17:41:49]wFMCommunicate OK [17:41:49]SAM_PROTO_GetShiftState done [17:41:49]FM_GetShiftState done [17:41:49]opened in 1709425694 [17:41:49]opened+sec_in_day 1709512094 [17:41:49]quantity*price = 14100 [17:41:49]sum+1 = 14101 [17:41:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 141.00 НСП 1% : 1.25 НДС 12% : 14.97 Наличными: 141.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 66 03.03.2024 17:42 Смена: 331 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 ФМ: 0000000000874796 ФД: 45229 ФПД: 161913772731983 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T174202&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45229&fm=161913772731983&tin=02508201610067®Number=0000000000090572&sum=14100 0 [17:41:50]StoreToDocumentArchive [17:41:50]shift 331 fd 45229 [17:41:50]save to /storage/0331/doc_00045229 [17:41:50]save last doc name /storage/0331/doc_00045229 to /storage/kkm_last_doc_name [17:41:50]save OK [17:41:50]Clear old archive folders... [17:41:50]ProcessDocumentItem done err = 0, tmpTLVsize=294 [17:41:50]tlvbuf is 01B04D50 [17:41:50]SAM_PROTO_ClearQueue [17:41:50]wFMCommunicate request_size=4 [17:41:50]MH_SAM_APDU [17:41:50]CAPDU: 80 09 00 00 [17:41:50]Write to MH i2c: E2 08 00 46 52 80 09 00 00 00 00 00 00 0A [17:41:50]Write i2c OK [17:41:50]MH_I2C_Read... [17:41:50]Read from MH i2c: E2 [17:41:50]MH_I2C_Read... [17:41:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:41:51]Read from MH i2c: E2 03 00 [17:41:51]MH_I2C_Read... [17:41:51]Read from MH i2c: E2 03 00 46 52 00 90 00 0C [17:41:51]RAPDU: 90 00 [17:41:51]wFMCommunicate OK [17:41:51]SAM_PROTO_ClearQueue done [17:41:51]KKMCreateOFDPacket [17:41:51]OFDProtocolAddRootSTLVToBuf [17:41:51]FM_MakeSignedData [17:41:51]FM_MakeSignedData [17:41:51]SAM_PROTO_SignData [17:41:51]wFMCommunicate request_size=4 [17:41:51]MH_SAM_APDU [17:41:51]CAPDU: 80 0D 01 02 [17:41:51]Write to MH i2c: E2 08 00 47 52 80 0D 01 02 00 00 00 00 12 [17:41:51]Write i2c OK [17:41:51]MH_I2C_Read... [17:41:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:41:51]Read from MH i2c: E2 [17:41:51]MH_I2C_Read... [17:41:51]Read from MH i2c: E2 03 00 [17:41:51]MH_I2C_Read... [17:41:51]Read from MH i2c: E2 03 00 47 52 00 90 00 0D [17:41:51]RAPDU: 90 00 [17:41:51]wFMCommunicate OK [17:41:51]wFMCommunicate request_size=255 [17:41:51]MH_SAM_APDU [17:41:51]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 34 39 36 38 06 04 34 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 54 6F 72 71 75 6F 69 73 65 20 53 65 6C 65 63 74 69 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 05 00 00 00 00 07 04 06 00 14 37 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 6A B6 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [17:41:51]Write to MH i2c: E2 02 01 48 52 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 34 39 36 38 06 04 34 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 54 6F 72 71 75 6F 69 73 65 20 53 65 6C 65 63 74 69 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 05 00 00 00 00 07 04 06 00 14 37 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 6A B6 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 B2 [17:41:51]Write i2c OK [17:41:51]MH_I2C_Read... [17:41:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:41:51]Read from MH i2c: E2 [17:41:51]MH_I2C_Read... [17:41:51]Read from MH i2c: E2 03 00 [17:41:51]MH_I2C_Read... [17:41:51]Read from MH i2c: E2 03 00 48 52 00 90 00 0E [17:41:51]RAPDU: 90 00 [17:41:51]wFMCommunicate OK [17:41:51]wFMCommunicate request_size=53 [17:41:51]MH_SAM_APDU [17:41:51]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 AD B0 00 00 35 04 06 00 93 42 7C E8 6E 4F [17:41:51]Write to MH i2c: E2 38 00 49 52 80 0D 02 02 30 00 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 AD B0 00 00 35 04 06 00 93 42 7C E8 6E 4F 00 00 64 [17:41:51]Write i2c OK [17:41:51]MH_I2C_Read... [17:41:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:41:51]Read from MH i2c: E2 [17:41:51]MH_I2C_Read... [17:41:51]Read from MH i2c: E2 03 00 [17:41:51]MH_I2C_Read... [17:41:51]Read from MH i2c: E2 03 00 49 52 00 90 00 0F [17:41:51]RAPDU: 90 00 [17:41:51]wFMCommunicate OK [17:41:51]wFMCommunicate request_size=4 [17:41:51]MH_SAM_APDU [17:41:51]CAPDU: 80 0D 03 02 [17:41:51]Write to MH i2c: E2 08 00 4A 52 80 0D 03 02 00 00 00 00 17 [17:41:51]Write i2c OK [17:41:51]MH_I2C_Read... [17:41:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:41:51]Read from MH i2c: E2 [17:41:51]MH_I2C_Read... [17:41:51]Read from MH i2c: E2 0B 00 [17:41:51]MH_I2C_Read... [17:41:51]Read from MH i2c: E2 0B 00 4A 52 00 B7 1A A5 22 60 34 A2 93 90 00 79 [17:41:51]RAPDU: B7 1A A5 22 60 34 A2 93 90 00 [17:41:51]wFMCommunicate OK [17:41:51]SAM_PROTO_SignData done [17:41:51]FM_MakeSignedData done [17:41:51]CreateOFDProtocolMessage [17:41:51]wFMCommunicate request_size=4 [17:41:51]MH_SAM_APDU [17:41:51]CAPDU: 80 11 00 00 [17:41:51]Write to MH i2c: E2 08 00 4B 52 80 11 00 00 00 00 00 00 17 [17:41:51]Write i2c OK [17:41:51]MH_I2C_Read... [17:41:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:41:51]Read from MH i2c: E2 [17:41:51]MH_I2C_Read... [17:41:51]Read from MH i2c: E2 17 00 [17:41:51]MH_I2C_Read... [17:41:51]Read from MH i2c: E2 17 00 4B 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 73 [17:41:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [17:41:51]wFMCommunicate OK [17:41:51]CreateOFDProtocolMessage done [17:41:51]OFDSenderStorePacket 45229 [17:41:51]StoreOFDPacket docnum=45229 [17:41:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 3A 01 00 00 91 92 32 01 7C AF 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 34 39 36 38 06 04 34 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 54 6F 72 71 75 6F 69 73 65 20 53 65 6C 65 63 74 69 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 05 00 00 00 00 07 04 06 00 14 37 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 6A B6 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 AD B0 00 00 35 04 06 00 93 42 7C E8 6E 4F B7 1A A5 22 60 34 A2 93 [17:41:51]CheckFolder [17:41:51]dirname=/storage/ofd_packets [17:41:51]CheckFolder done [17:41:51]ProducePacketName [17:41:51]name=ofd_packets/00045229 [17:41:51]NVStorageSaveData ofd_packets/00045229 [17:41:51]File name is /storage/ofd_packets/00045229 [17:41:51]Write 344 bytes [17:41:51]NVStorageSaveData done [17:41:51]OFDSenderStorePacket done [17:41:51]KKMCreateOFDPacket done [17:41:51]NVStorageSaveData kkm_last_timestamp [17:41:51]File name is /storage/kkm_last_timestamp [17:41:51]Write 4 bytes [17:41:51]NVStorageSaveData done [17:41:51]ExternCall_PrintAddStr [17:41:51]wPrintStart [17:41:51]Write to MH i2c: 01 00 00 4C 52 9E [17:41:51]Write i2c OK [17:41:51]MH_I2C_Read... [17:41:51]Read from MH i2c: 01 [17:41:51]MH_I2C_Read... [17:41:51]Read from MH i2c: 01 07 00 [17:41:51]MH_I2C_Read... [17:41:51]Read from MH i2c: 01 07 00 4C 52 00 00 00 00 00 FF 0F B3 [17:41:51]RasterBufferAndPrint [17:41:51]line Счет N : (3)184192 [17:41:51]line ИНН: 02508201610067 [17:41:51]line Контрольно-Кассовый Чек [17:41:51]line ПРОДАЖА [17:41:51]line Товар: 4870216764968 [17:41:51]line Нагр.Таб.Палоч. HEETS Torquoise Selectio [17:41:51]line 1.000 * 141.00 [17:41:51]line = 141.00 [17:41:51]line НДС 12% НСП 1% [17:41:51]line > о реализуемом товаре [17:41:51]line ИТОГО: 141.00 [17:41:51]line НСП 1% : 1.25 [17:41:51]line НДС 12% : 14.97 [17:41:51]line Наличными: 141.00 [17:41:51]line Безнал.: 0.00 [17:41:51]line Место: АЗС № 25 "Партнер Нефть" [17:41:51]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [17:41:51]line СНО: Общий режим [17:41:51]line Чек 66 03.03.2024 17:42 [17:41:51]line Смена: 331 ФФД: 1.0 [17:41:51]line ЗНМ: 0300000013 [17:41:51]line РНМ: 0000000000090572 [17:41:51]line Версия ККМ: 001 [17:41:51]line ФМ: 0000000000874796 [17:41:51]line ФД: 45229 [17:41:51]line ФПД: 161913772731983 [17:41:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T174202&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45229&fm=161913772731983&tin=02508201610067®Number=0000000000090572&sum=14100 [17:41:51]OFD Sender: Processing packet 45229 [packets to send 17, broken 16] [17:41:51]ProducePacketName [17:41:51]name=ofd_packets/00045229 [17:41:51]OFD Sender: To server: pG, [17:41:51]CommunicateWithHost lk.salyk.kg:30040 [17:41:51]ConnectInit lk.salyk.kg [17:41:51]line 0 [17:41:51]written 0, free lines is 4095 [17:41:51]Connected sock=10 [17:41:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 3A 01 00 00 91 92 32 01 7C AF 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 34 39 36 38 06 04 34 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 54 6F 72 71 75 6F 69 73 65 20 53 65 6C 65 63 74 69 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 05 00 00 00 00 07 04 06 00 14 37 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 6A B6 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 AD B0 00 00 35 04 06 00 93 42 7C E8 6E 4F B7 1A A5 22 60 34 A2 93 [17:41:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 A8 0B 47 00 5A 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 34 37 39 36 10 04 04 00 AD B0 00 00 F4 03 04 00 2E 62 E4 65 B6 04 01 00 00 A3 85 C3 F3 68 DB 50 46 [17:41:52]CommunicateWithHost err = 0 [17:41:52]CheckOFDResponse [17:41:52]1017 (14) - 77093643461234 [17:41:52]1041 (16) - 0000000000874796 [17:41:52]1040 (4) - 45229 [17:41:52]1012 (4) - 03.03.2024 11:42 [17:41:52]1206 (1) - 0 [17:41:52]OFD Sender: Remove packet 45229 [17:41:52]ProducePacketName [17:41:52]name=ofd_packets/00045229 [17:41:52]NVStorageDeleteData [17:41:52]Write to MH i2c: 01 00 00 75 52 C7 [17:41:52]Write i2c OK [17:41:52]MH_I2C_Read... [17:41:52]Read from MH i2c: 01 [17:41:52]MH_I2C_Read... [17:41:52]Read from MH i2c: 01 07 00 [17:41:52]MH_I2C_Read... [17:41:52]Read from MH i2c: 01 07 00 75 52 00 00 00 00 00 0F 0D EA [17:41:52]RasterBufferAndPrint [17:41:52]line [17:41:52]line [17:41:52]line [17:41:52]line [17:41:52]line [17:41:52]written 0, free lines is 3349 [17:41:52]MH_Cut [17:41:52]Write to MH i2c: D1 01 00 7C 52 01 A0 [17:41:52]Write i2c OK [17:41:52]MH_I2C_Read... [17:41:52]Read from MH i2c: D1 [17:41:52]MH_I2C_Read... [17:41:52]Read from MH i2c: D1 01 00 [17:41:52]MH_I2C_Read... [17:41:52]Read from MH i2c: D1 01 00 7C 52 00 9F [17:41:52]Write to MH i2c: 01 00 00 7D 52 CF [17:41:52]Write i2c OK [17:41:52]MH_I2C_Read... [17:41:52]OFD Sender: No OFD packet to send [17:41:52]*** Cut start [17:41:52]*** Purtial cut [17:41:52]*** Stage 1: CUTSNS_PIN = 1 [17:41:54]Read from MH i2c: 01 [17:41:54]MH_I2C_Read... [17:41:54]*** Stop cut motor [17:41:55]*** Cut end [17:41:55]Read from MH i2c: 01 07 00 [17:41:55]MH_I2C_Read... [17:41:55]Read from MH i2c: 01 07 00 7D 52 00 00 00 00 00 FF 0F E4 [17:41:55]process_action close_receipt done [17:41:55]requested_data is exist [17:41:55]produce_requested_data [17:41:55]requested_item fm.sn is exist - process it [17:41:55]wFMCommunicate request_size=4 [17:41:55]MH_SAM_APDU [17:41:55]CAPDU: 80 11 00 00 [17:41:55]Write to MH i2c: E2 08 00 7E 52 80 11 00 00 00 00 00 00 4A [17:41:55]Write i2c OK [17:41:55]MH_I2C_Read... [17:41:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:41:55]Read from MH i2c: E2 [17:41:55]MH_I2C_Read... [17:41:55]Read from MH i2c: E2 17 00 [17:41:55]MH_I2C_Read... [17:41:55]Read from MH i2c: E2 17 00 7E 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 A6 [17:41:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [17:41:55]wFMCommunicate OK [17:41:55]requested_item fd.num is exist - process it [17:41:55]SAM_PROTO_GetFieldsCounters [17:41:55]wFMCommunicate request_size=4 [17:41:55]MH_SAM_APDU [17:41:55]CAPDU: 80 13 00 00 [17:41:55]Write to MH i2c: E2 08 00 7F 52 80 13 00 00 00 00 00 00 4D [17:41:55]Write i2c OK [17:41:55]MH_I2C_Read... [17:41:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:41:55]Read from MH i2c: E2 [17:41:55]MH_I2C_Read... [17:41:55]Read from MH i2c: E2 62 00 [17:41:55]MH_I2C_Read... [17:41:55]Read from MH i2c: E2 62 00 7F 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 AD B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 E4 [17:41:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 AD B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:41:55]wFMCommunicate OK [17:41:55]SAM_PROTO_GetFieldsCounters done [17:41:55]requested_item shift.num is exist - process it [17:41:55]requested_item shift.opened is exist - process it [17:41:55]req_shift_opened [17:41:55]FM_GetShiftState [17:41:55]SAM_PROTO_GetShiftState [17:41:55]wFMCommunicate request_size=4 [17:41:55]MH_SAM_APDU [17:41:55]CAPDU: 80 13 01 00 [17:41:55]Write to MH i2c: E2 08 00 80 52 80 13 01 00 00 00 00 00 4F [17:41:55]Write i2c OK [17:41:55]MH_I2C_Read... [17:41:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:41:55]Read from MH i2c: E2 [17:41:55]MH_I2C_Read... [17:41:55]Read from MH i2c: E2 0E 00 [17:41:55]MH_I2C_Read... [17:41:55]Read from MH i2c: E2 0E 00 80 52 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 85 [17:41:55]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [17:41:55]wFMCommunicate OK [17:41:55]SAM_PROTO_GetShiftState done [17:41:55]FM_GetShiftState done [17:41:55]req_shift_opened done [17:41:55]requested_item shift.open_date is exist - process it [17:41:55]req_shift_open_date [17:41:55]req_shift_open_date done [17:41:55]produce_requested_data done [17:41:55]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45229,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [17:41:55]process_action_free close_receipt [17:41:55]json_value_free [17:41:55]json_value_free done [17:41:55]process_json_proto returns [17:41:55]Send response to host [17:41:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45229,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [17:41:55]free response buf [17:41:55]execute_script done [17:41:55]execute_script returns [17:41:55]free content buf [17:41:55]Sock 9.Close socket [17:41:55]Sock 9.Thread stoped [17:41:57]OFD Sender: No OFD packet to send [17:42:02]OFD Sender: No OFD packet to send [17:42:07]OFD Sender: No OFD packet to send [17:42:12]OFD Sender: No OFD packet to send [17:42:17]OFD Sender: No OFD packet to send [17:42:22]OFD Sender: No OFD packet to send [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:42]OFD Sender: No OFD packet to send [17:42:47]OFD Sender: No OFD packet to send [17:42:52]OFD Sender: No OFD packet to send [17:42:57]OFD Sender: No OFD packet to send [17:43:02]OFD Sender: No OFD packet to send [17:43:07]OFD Sender: No OFD packet to send [17:43:12]OFD Sender: No OFD packet to send [17:43:17]OFD Sender: No OFD packet to send [17:43:22]OFD Sender: No OFD packet to send [17:43:27]OFD Sender: No OFD packet to send [17:43:32]OFD Sender: No OFD packet to send [17:43:37]OFD Sender: No OFD packet to send [17:43:42]OFD Sender: No OFD packet to send [17:43:47]OFD Sender: No OFD packet to send [17:43:52]OFD Sender: No OFD packet to send [17:43:57]OFD Sender: No OFD packet to send [17:44:02]OFD Sender: No OFD packet to send [17:44:07]OFD Sender: No OFD packet to send [17:44:12]OFD Sender: No OFD packet to send [17:44:17]OFD Sender: No OFD packet to send [17:44:22]OFD Sender: No OFD packet to send [17:44:27]OFD Sender: No OFD packet to send [17:44:32]OFD Sender: No OFD packet to send [17:44:37]OFD Sender: No OFD packet to send [17:44:42]OFD Sender: No OFD packet to send [17:44:47]OFD Sender: No OFD packet to send [17:44:52]OFD Sender: No OFD packet to send [17:44:57]OFD Sender: No OFD packet to send [17:45:02]OFD Sender: No OFD packet to send [17:45:07]OFD Sender: No OFD packet to send [17:45:12]OFD Sender: No OFD packet to send [17:45:17]OFD Sender: No OFD packet to send [17:45:22]OFD Sender: No OFD packet to send [17:45:27]OFD Sender: No OFD packet to send [17:45:32]OFD Sender: No OFD packet to send [17:45:37]OFD Sender: No OFD packet to send [17:45:42]OFD Sender: No OFD packet to send [17:45:47]OFD Sender: No OFD packet to send [17:45:52]OFD Sender: No OFD packet to send [17:45:57]OFD Sender: No OFD packet to send [17:46:02]OFD Sender: No OFD packet to send [17:46:07]OFD Sender: No OFD packet to send [17:46:12]OFD Sender: No OFD packet to send [17:46:17]OFD Sender: No OFD packet to send [17:46:22]OFD Sender: No OFD packet to send [17:46:27]OFD Sender: No OFD packet to send [17:46:32]OFD Sender: No OFD packet to send [17:46:37]OFD Sender: No OFD packet to send [17:46:42]OFD Sender: No OFD packet to send [17:46:47]OFD Sender: No OFD packet to send [17:46:52]OFD Sender: No OFD packet to send [17:46:57]OFD Sender: No OFD packet to send [17:47:02]OFD Sender: No OFD packet to send [17:47:07]OFD Sender: No OFD packet to send [17:47:12]OFD Sender: No OFD packet to send [17:47:17]OFD Sender: No OFD packet to send [17:47:22]OFD Sender: No OFD packet to send [17:47:27]OFD Sender: No OFD packet to send [17:47:32]OFD Sender: No OFD packet to send [17:47:37]OFD Sender: No OFD packet to send [17:47:42]OFD Sender: No OFD packet to send [17:47:47]OFD Sender: No OFD packet to send [17:47:52]OFD Sender: No OFD packet to send [17:47:57]OFD Sender: No OFD packet to send [17:48:02]OFD Sender: No OFD packet to send [17:48:07]OFD Sender: No OFD packet to send [17:48:12]OFD Sender: No OFD packet to send [17:48:17]OFD Sender: No OFD packet to send [17:48:22]OFD Sender: No OFD packet to send [17:48:27]OFD Sender: No OFD packet to send [17:48:32]OFD Sender: No OFD packet to send [17:48:37]OFD Sender: No OFD packet to send [17:48:42]OFD Sender: No OFD packet to send [17:48:47]OFD Sender: No OFD packet to send [17:48:52]OFD Sender: No OFD packet to send [17:48:57]OFD Sender: No OFD packet to send [17:49:02]OFD Sender: No OFD packet to send [17:49:07]OFD Sender: No OFD packet to send [17:49:12]OFD Sender: No OFD packet to send [17:49:17]OFD Sender: No OFD packet to send [17:49:22]OFD Sender: No OFD packet to send [17:49:28]OFD Sender: No OFD packet to send [17:49:33]OFD Sender: No OFD packet to send [17:49:38]OFD Sender: No OFD packet to send [17:49:43]OFD Sender: No OFD packet to send [17:49:48]OFD Sender: No OFD packet to send [17:49:53]OFD Sender: No OFD packet to send [17:49:58]OFD Sender: No OFD packet to send [17:50:03]OFD Sender: No OFD packet to send [17:50:08]OFD Sender: No OFD packet to send [17:50:13]OFD Sender: No OFD packet to send [17:50:18]OFD Sender: No OFD packet to send [17:50:23]OFD Sender: No OFD packet to send [17:50:28]OFD Sender: No OFD packet to send [17:50:33]OFD Sender: No OFD packet to send [17:50:38]OFD Sender: No OFD packet to send [17:50:43]OFD Sender: No OFD packet to send [17:50:48]OFD Sender: No OFD packet to send [17:50:53]OFD Sender: No OFD packet to send [17:50:58]OFD Sender: No OFD packet to send [17:51:03]OFD Sender: No OFD packet to send [17:51:08]OFD Sender: No OFD packet to send [17:51:13]OFD Sender: No OFD packet to send [17:51:18]OFD Sender: No OFD packet to send [17:51:23]OFD Sender: No OFD packet to send [17:51:28]OFD Sender: No OFD packet to send [17:51:33]OFD Sender: No OFD packet to send [17:51:38]OFD Sender: No OFD packet to send [17:51:43]OFD Sender: No OFD packet to send [17:51:48]OFD Sender: No OFD packet to send [17:51:53]OFD Sender: No OFD packet to send [17:51:58]OFD Sender: No OFD packet to send [17:52:03]OFD Sender: No OFD packet to send [17:52:08]OFD Sender: No OFD packet to send [17:52:13]OFD Sender: No OFD packet to send [17:52:18]OFD Sender: No OFD packet to send [17:52:23]OFD Sender: No OFD packet to send [17:52:28]OFD Sender: No OFD packet to send [17:52:33]OFD Sender: No OFD packet to send [17:52:38]OFD Sender: No OFD packet to send [17:52:43]OFD Sender: No OFD packet to send [17:52:48]OFD Sender: No OFD packet to send [17:52:53]OFD Sender: No OFD packet to send [17:52:58]OFD Sender: No OFD packet to send [17:53:03]OFD Sender: No OFD packet to send [17:53:08]OFD Sender: No OFD packet to send [17:53:13]OFD Sender: No OFD packet to send [17:53:18]OFD Sender: No OFD packet to send [17:53:23]OFD Sender: No OFD packet to send [17:53:28]OFD Sender: No OFD packet to send [17:53:33]OFD Sender: No OFD packet to send [17:53:38]OFD Sender: No OFD packet to send [17:53:43]OFD Sender: No OFD packet to send [17:53:48]OFD Sender: No OFD packet to send [17:53:53]OFD Sender: No OFD packet to send [17:53:58]OFD Sender: No OFD packet to send [17:54:03]OFD Sender: No OFD packet to send [17:54:08]OFD Sender: No OFD packet to send [17:54:13]OFD Sender: No OFD packet to send [17:54:18]OFD Sender: No OFD packet to send [17:54:23]OFD Sender: No OFD packet to send [17:54:28]OFD Sender: No OFD packet to send [17:54:33]OFD Sender: No OFD packet to send [17:54:38]OFD Sender: No OFD packet to send [17:54:43]OFD Sender: No OFD packet to send [17:54:48]OFD Sender: No OFD packet to send [17:54:53]OFD Sender: No OFD packet to send [17:54:58]OFD Sender: No OFD packet to send [17:55:03]OFD Sender: No OFD packet to send [17:55:08]OFD Sender: No OFD packet to send [17:55:13]OFD Sender: No OFD packet to send [17:55:18]OFD Sender: No OFD packet to send [17:55:23]OFD Sender: No OFD packet to send [17:55:28]OFD Sender: No OFD packet to send [17:55:33]OFD Sender: No OFD packet to send [17:55:38]OFD Sender: No OFD packet to send [17:55:43]OFD Sender: No OFD packet to send [17:55:48]OFD Sender: No OFD packet to send [17:55:53]OFD Sender: No OFD packet to send [17:55:58]OFD Sender: No OFD packet to send [17:56:03]OFD Sender: No OFD packet to send [17:56:08]OFD Sender: No OFD packet to send [17:56:13]OFD Sender: No OFD packet to send [17:56:18]OFD Sender: No OFD packet to send [17:56:23]OFD Sender: No OFD packet to send [17:56:28]OFD Sender: No OFD packet to send [17:56:33]OFD Sender: No OFD packet to send [17:56:38]OFD Sender: No OFD packet to send [17:56:43]OFD Sender: No OFD packet to send [17:56:48]OFD Sender: No OFD packet to send [17:56:53]OFD Sender: No OFD packet to send [17:56:58]OFD Sender: No OFD packet to send [17:57:03]OFD Sender: No OFD packet to send [17:57:08]OFD Sender: No OFD packet to send [17:57:13]OFD Sender: No OFD packet to send [17:57:18]OFD Sender: No OFD packet to send [17:57:23]OFD Sender: No OFD packet to send [17:57:28]OFD Sender: No OFD packet to send [17:57:33]OFD Sender: No OFD packet to send [17:57:38]OFD Sender: No OFD packet to send [17:57:43]OFD Sender: No OFD packet to send [17:57:48]OFD Sender: No OFD packet to send [17:57:53]OFD Sender: No OFD packet to send [17:57:58]OFD Sender: No OFD packet to send [17:58:03]OFD Sender: No OFD packet to send [17:58:08]OFD Sender: No OFD packet to send [17:58:13]OFD Sender: No OFD packet to send [17:58:18]OFD Sender: No OFD packet to send [17:58:23]OFD Sender: No OFD packet to send [17:58:28]OFD Sender: No OFD packet to send [17:58:33]OFD Sender: No OFD packet to send [17:58:38]OFD Sender: No OFD packet to send [17:58:43]OFD Sender: No OFD packet to send [17:58:48]OFD Sender: No OFD packet to send [17:58:53]OFD Sender: No OFD packet to send [17:58:58]OFD Sender: No OFD packet to send [17:59:03]OFD Sender: No OFD packet to send [17:59:08]OFD Sender: No OFD packet to send [17:59:13]OFD Sender: No OFD packet to send [17:59:18]OFD Sender: No OFD packet to send [17:59:23]OFD Sender: No OFD packet to send [17:59:28]OFD Sender: No OFD packet to send [17:59:33]OFD Sender: No OFD packet to send [17:59:38]OFD Sender: No OFD packet to send [17:59:43]OFD Sender: No OFD packet to send [17:59:48]OFD Sender: No OFD packet to send [17:59:53]OFD Sender: No OFD packet to send [17:59:58]OFD Sender: No OFD packet to send [18:00:03]OFD Sender: No OFD packet to send [18:00:08]OFD Sender: No OFD packet to send [18:00:13]OFD Sender: No OFD packet to send [18:00:18]OFD Sender: No OFD packet to send [18:00:23]OFD Sender: No OFD packet to send [18:00:28]OFD Sender: No OFD packet to send [18:00:33]OFD Sender: No OFD packet to send [18:00:38]OFD Sender: No OFD packet to send [18:00:43]OFD Sender: No OFD packet to send [18:00:48]OFD Sender: No OFD packet to send [18:00:53]OFD Sender: No OFD packet to send [18:00:58]OFD Sender: No OFD packet to send [18:01:03]OFD Sender: No OFD packet to send [18:01:08]OFD Sender: No OFD packet to send [18:01:13]OFD Sender: No OFD packet to send [18:01:18]OFD Sender: No OFD packet to send [18:01:23]OFD Sender: No OFD packet to send [18:01:28]OFD Sender: No OFD packet to send [18:01:33]OFD Sender: No OFD packet to send [18:01:38]OFD Sender: No OFD packet to send [18:01:43]OFD Sender: No OFD packet to send [18:01:48]OFD Sender: No OFD packet to send [18:01:53]OFD Sender: No OFD packet to send [18:01:58]OFD Sender: No OFD packet to send [18:02:03]OFD Sender: No OFD packet to send [18:02:08]OFD Sender: No OFD packet to send [18:02:13]OFD Sender: No OFD packet to send [18:02:18]OFD Sender: No OFD packet to send [18:02:23]OFD Sender: No OFD packet to send [18:02:28]OFD Sender: No OFD packet to send [18:02:33]OFD Sender: No OFD packet to send [18:02:38]OFD Sender: No OFD packet to send [18:02:43]OFD Sender: No OFD packet to send [18:02:48]OFD Sender: No OFD packet to send [18:02:53]OFD Sender: No OFD packet to send [18:02:58]OFD Sender: No OFD packet to send [18:03:03]OFD Sender: No OFD packet to send [18:03:08]OFD Sender: No OFD packet to send [18:03:13]OFD Sender: No OFD packet to send [18:03:18]OFD Sender: No OFD packet to send [18:03:23]OFD Sender: No OFD packet to send [18:03:28]OFD Sender: No OFD packet to send [18:03:33]OFD Sender: No OFD packet to send [18:03:38]OFD Sender: No OFD packet to send [18:03:43]OFD Sender: No OFD packet to send [18:03:48]OFD Sender: No OFD packet to send [18:03:53]OFD Sender: No OFD packet to send [18:03:58]OFD Sender: No OFD packet to send [18:04:03]OFD Sender: No OFD packet to send [18:04:08]OFD Sender: No OFD packet to send [18:04:13]OFD Sender: No OFD packet to send [18:04:18]OFD Sender: No OFD packet to send [18:04:23]OFD Sender: No OFD packet to send [18:04:28]OFD Sender: No OFD packet to send [18:04:33]OFD Sender: No OFD packet to send [18:04:38]OFD Sender: No OFD packet to send [18:04:43]OFD Sender: No OFD packet to send [18:04:48]OFD Sender: No OFD packet to send [18:04:53]OFD Sender: No OFD packet to send [18:04:58]OFD Sender: No OFD packet to send [18:05:03]OFD Sender: No OFD packet to send [18:05:08]OFD Sender: No OFD packet to send [18:05:13]OFD Sender: No OFD packet to send [18:05:18]OFD Sender: No OFD packet to send [18:05:23]OFD Sender: No OFD packet to send [18:05:28]OFD Sender: No OFD packet to send [18:05:33]OFD Sender: No OFD packet to send [18:05:38]OFD Sender: No OFD packet to send [18:05:43]OFD Sender: No OFD packet to send [18:05:48]OFD Sender: No OFD packet to send [18:05:53]OFD Sender: No OFD packet to send [18:05:58]OFD Sender: No OFD packet to send [18:06:03]OFD Sender: No OFD packet to send [18:06:08]OFD Sender: No OFD packet to send [18:06:13]OFD Sender: No OFD packet to send [18:06:18]OFD Sender: No OFD packet to send [18:06:23]OFD Sender: No OFD packet to send [18:06:28]OFD Sender: No OFD packet to send [18:06:33]OFD Sender: No OFD packet to send [18:06:38]OFD Sender: No OFD packet to send [18:06:43]OFD Sender: No OFD packet to send [18:06:48]OFD Sender: No OFD packet to send [18:06:53]OFD Sender: No OFD packet to send [18:06:58]OFD Sender: No OFD packet to send [18:07:03]OFD Sender: No OFD packet to send [18:07:08]OFD Sender: No OFD packet to send [18:07:13]OFD Sender: No OFD packet to send [18:07:18]OFD Sender: No OFD packet to send [18:07:23]OFD Sender: No OFD packet to send [18:07:28]OFD Sender: No OFD packet to send [18:07:33]OFD Sender: No OFD packet to send [18:07:38]OFD Sender: No OFD packet to send [18:07:43]OFD Sender: No OFD packet to send [18:07:48]OFD Sender: No OFD packet to send [18:07:53]OFD Sender: No OFD packet to send [18:07:58]OFD Sender: No OFD packet to send [18:08:03]OFD Sender: No OFD packet to send [18:08:08]OFD Sender: No OFD packet to send [18:08:13]OFD Sender: No OFD packet to send [18:08:18]OFD Sender: No OFD packet to send [18:08:23]OFD Sender: No OFD packet to send [18:08:28]OFD Sender: No OFD packet to send [18:08:33]OFD Sender: No OFD packet to send [18:08:38]OFD Sender: No OFD packet to send [18:08:43]OFD Sender: No OFD packet to send [18:08:48]OFD Sender: No OFD packet to send [18:08:53]OFD Sender: No OFD packet to send [18:08:58]OFD Sender: No OFD packet to send [18:09:03]OFD Sender: No OFD packet to send [18:09:08]OFD Sender: No OFD packet to send [18:09:13]OFD Sender: No OFD packet to send [18:09:18]OFD Sender: No OFD packet to send [18:09:23]OFD Sender: No OFD packet to send [18:09:28]OFD Sender: No OFD packet to send [18:09:33]OFD Sender: No OFD packet to send [18:09:38]OFD Sender: No OFD packet to send [18:09:43]OFD Sender: No OFD packet to send [18:09:48]OFD Sender: No OFD packet to send [18:09:53]OFD Sender: No OFD packet to send [18:09:58]OFD Sender: No OFD packet to send [18:10:03]OFD Sender: No OFD packet to send [18:10:09]OFD Sender: No OFD packet to send [18:10:14]OFD Sender: No OFD packet to send [18:10:19]OFD Sender: No OFD packet to send [18:10:24]OFD Sender: No OFD packet to send [18:10:29]OFD Sender: No OFD packet to send [18:10:34]OFD Sender: No OFD packet to send [18:10:39]OFD Sender: No OFD packet to send [18:10:44]OFD Sender: No OFD packet to send [18:10:49]OFD Sender: No OFD packet to send [18:10:54]OFD Sender: No OFD packet to send [18:10:59]OFD Sender: No OFD packet to send [18:11:04]OFD Sender: No OFD packet to send [18:11:09]OFD Sender: No OFD packet to send [18:11:14]OFD Sender: No OFD packet to send [18:11:19]OFD Sender: No OFD packet to send [18:11:24]OFD Sender: No OFD packet to send [18:11:29]OFD Sender: No OFD packet to send [18:11:34]OFD Sender: No OFD packet to send [18:11:39]OFD Sender: No OFD packet to send [18:11:44]OFD Sender: No OFD packet to send [18:11:49]OFD Sender: No OFD packet to send [18:11:54]OFD Sender: No OFD packet to send [18:11:59]OFD Sender: No OFD packet to send [18:12:04]OFD Sender: No OFD packet to send [18:12:09]OFD Sender: No OFD packet to send [18:12:14]OFD Sender: No OFD packet to send [18:12:19]OFD Sender: No OFD packet to send [18:12:24]OFD Sender: No OFD packet to send [18:12:29]OFD Sender: No OFD packet to send [18:12:34]OFD Sender: No OFD packet to send [18:12:39]OFD Sender: No OFD packet to send [18:12:44]OFD Sender: No OFD packet to send [18:12:49]OFD Sender: No OFD packet to send [18:12:54]OFD Sender: No OFD packet to send [18:12:59]OFD Sender: No OFD packet to send [18:13:04]OFD Sender: No OFD packet to send [18:13:09]OFD Sender: No OFD packet to send [18:13:14]OFD Sender: No OFD packet to send [18:13:19]OFD Sender: No OFD packet to send [18:13:24]OFD Sender: No OFD packet to send [18:13:29]OFD Sender: No OFD packet to send [18:13:34]OFD Sender: No OFD packet to send [18:13:39]OFD Sender: No OFD packet to send [18:13:44]OFD Sender: No OFD packet to send [18:13:49]OFD Sender: No OFD packet to send [18:13:54]OFD Sender: No OFD packet to send [18:13:59]OFD Sender: No OFD packet to send [18:14:04]OFD Sender: No OFD packet to send [18:14:09]OFD Sender: No OFD packet to send [18:14:14]OFD Sender: No OFD packet to send [18:14:19]OFD Sender: No OFD packet to send [18:14:24]OFD Sender: No OFD packet to send [18:14:29]OFD Sender: No OFD packet to send [18:14:34]OFD Sender: No OFD packet to send [18:14:39]OFD Sender: No OFD packet to send [18:14:44]OFD Sender: No OFD packet to send [18:14:49]OFD Sender: No OFD packet to send [18:14:49]accept exits with 7 [18:14:49]New connection [18:14:49]New thread 3067014500 created [18:14:49]Thread 3067157860 joined [18:14:49]Waiting for new connection... [18:14:49] Sock 7.Parse request [18:14:49]Sock 7.Check first char [18:14:49]Sock 7.First char is OK [18:14:49]request: POST /json_proto HTTP/1.0 [18:14:49]Method: POST [18:14:49]URL: /json_proto [18:14:49]Method is POST - this is cgi request [18:14:49]url: /json_proto [18:14:49]query_string will be loaded in cgi processing [18:14:49]execute_cgi json_proto POST (null) [18:14:49]execute_cgi path=json_proto method=POST [18:14:49]POST find Content-Length [18:14:49]Host: 172.17.48.198:8080 [18:14:49]Content-Length: 1034 [18:14:49]Content-Type: application/json [18:14:49] [18:14:49]POST finish read [18:14:49]Found Content-Length = 1034 [18:14:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184193", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48744683", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Caster+", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 268.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:14:49]execute_script... [18:14:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184193", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48744683", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Caster+", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 268.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:14:49]POST & json_proto [18:14:49]process_json_proto [18:14:49]json parsed OK: [18:14:49]protocol is kg_v1.0 [18:14:49]action value=close_receipt [18:14:49]process_action close_receipt [18:14:49]cmd_close_receipt [18:14:49]MH_GetDate [18:14:49]Write to MH i2c: F0 00 00 81 52 C2 [18:14:49]Write i2c OK [18:14:49]MH_I2C_Read... [18:14:49]Read from MH i2c: F0 [18:14:49]MH_I2C_Read... [18:14:49]Read from MH i2c: F0 09 00 [18:14:49]MH_I2C_Read... [18:14:49]Read from MH i2c: F0 09 00 81 52 00 26 BE E4 65 CE C4 D4 65 C3 [18:14:49]GetLastDocTimeStamp 1709487722 [18:14:49]current date 1709489702 [18:14:49]FM_GetShiftState [18:14:49]SAM_PROTO_GetShiftState [18:14:49]wFMCommunicate request_size=4 [18:14:49]MH_SAM_APDU [18:14:49]CAPDU: 80 13 01 00 [18:14:49]Write to MH i2c: E2 08 00 82 52 80 13 01 00 00 00 00 00 51 [18:14:49]Write i2c OK [18:14:49]MH_I2C_Read... [18:14:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:14:49]Read from MH i2c: E2 [18:14:49]MH_I2C_Read... [18:14:49]Read from MH i2c: E2 0E 00 [18:14:49]MH_I2C_Read... [18:14:49]Read from MH i2c: E2 0E 00 82 52 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 87 [18:14:49]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [18:14:49]wFMCommunicate OK [18:14:49]SAM_PROTO_GetShiftState done [18:14:49]FM_GetShiftState done [18:14:49]opened in 1709425694 [18:14:49]opened+sec_in_day 1709512094 [18:14:49]quantity*price = 13000 [18:14:49]sum+1 = 13001 [18:14:49]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48744683 Сигареты Winston XStyle Caster+ 1.000 * 138.00 = 138.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 268.00 НСП 1% : 2.37 НДС 12% : 28.45 Наличными: 0.00 Безнал.: 268.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 67 03.03.2024 18:15 Смена: 331 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874796 ФД: 45230 ФПД: 37222911574641 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T181502&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45230&fm=37222911574641&tin=02508201610067®Number=0000000000090572&sum=26800 0 [18:14:51]StoreToDocumentArchive [18:14:51]shift 331 fd 45230 [18:14:51]save to /storage/0331/doc_00045230 [18:14:51]save last doc name /storage/0331/doc_00045230 to /storage/kkm_last_doc_name [18:14:51]save OK [18:14:51]Clear old archive folders... [18:14:51]ProcessDocumentItem done err = 0, tmpTLVsize=382 [18:14:51]tlvbuf is 01C44540 [18:14:51]SAM_PROTO_ClearQueue [18:14:51]wFMCommunicate request_size=4 [18:14:51]MH_SAM_APDU [18:14:51]CAPDU: 80 09 00 00 [18:14:51]Write to MH i2c: E2 08 00 8F 52 80 09 00 00 00 00 00 00 53 [18:14:51]Write i2c OK [18:14:51]MH_I2C_Read... [18:14:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:14:51]Read from MH i2c: E2 [18:14:51]MH_I2C_Read... [18:14:51]Read from MH i2c: E2 03 00 [18:14:51]MH_I2C_Read... [18:14:51]Read from MH i2c: E2 03 00 8F 52 00 90 00 55 [18:14:51]RAPDU: 90 00 [18:14:51]wFMCommunicate OK [18:14:51]SAM_PROTO_ClearQueue done [18:14:51]KKMCreateOFDPacket [18:14:51]OFDProtocolAddRootSTLVToBuf [18:14:51]FM_MakeSignedData [18:14:51]FM_MakeSignedData [18:14:51]SAM_PROTO_SignData [18:14:51]wFMCommunicate request_size=4 [18:14:51]MH_SAM_APDU [18:14:51]CAPDU: 80 0D 01 02 [18:14:51]Write to MH i2c: E2 08 00 90 52 80 0D 01 02 00 00 00 00 5B [18:14:51]Write i2c OK [18:14:51]MH_I2C_Read... [18:14:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:14:51]Read from MH i2c: E2 [18:14:51]MH_I2C_Read... [18:14:51]Read from MH i2c: E2 03 00 [18:14:51]MH_I2C_Read... [18:14:51]Read from MH i2c: E2 03 00 90 52 00 90 00 56 [18:14:51]RAPDU: 90 00 [18:14:51]wFMCommunicate OK [18:14:51]wFMCommunicate request_size=255 [18:14:51]MH_SAM_APDU [18:14:51]CAPDU: 80 0D 02 02 FA 03 00 7E 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 B0 68 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 00 [18:14:51]Write to MH i2c: E2 02 01 91 52 80 0D 02 02 FA 00 03 00 7E 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 B0 68 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 00 00 00 AC [18:14:51]Write i2c OK [18:14:51]MH_I2C_Read... [18:14:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:14:51]Read from MH i2c: E2 [18:14:51]MH_I2C_Read... [18:14:51]Read from MH i2c: E2 03 00 [18:14:51]MH_I2C_Read... [18:14:51]Read from MH i2c: E2 03 00 91 52 00 90 00 57 [18:14:51]RAPDU: 90 00 [18:14:51]wFMCommunicate OK [18:14:51]wFMCommunicate request_size=141 [18:14:51]MH_SAM_APDU [18:14:51]CAPDU: 80 0D 02 02 88 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1D 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 68 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 26 BE E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 AE B0 00 00 35 04 06 00 21 DA A2 6C 02 71 [18:14:51]Write to MH i2c: E2 90 00 92 52 80 0D 02 02 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1D 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 68 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 26 BE E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 AE B0 00 00 35 04 06 00 21 DA A2 6C 02 71 00 00 78 [18:14:51]Write i2c OK [18:14:51]MH_I2C_Read... [18:14:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:14:51]Read from MH i2c: E2 [18:14:51]MH_I2C_Read... [18:14:51]Read from MH i2c: E2 03 00 [18:14:51]MH_I2C_Read... [18:14:51]Read from MH i2c: E2 03 00 92 52 00 90 00 58 [18:14:51]RAPDU: 90 00 [18:14:51]wFMCommunicate OK [18:14:51]wFMCommunicate request_size=4 [18:14:51]MH_SAM_APDU [18:14:51]CAPDU: 80 0D 03 02 [18:14:51]Write to MH i2c: E2 08 00 93 52 80 0D 03 02 00 00 00 00 60 [18:14:51]Write i2c OK [18:14:51]MH_I2C_Read... [18:14:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:14:51]Read from MH i2c: E2 [18:14:51]MH_I2C_Read... [18:14:51]Read from MH i2c: E2 0B 00 [18:14:51]MH_I2C_Read... [18:14:51]Read from MH i2c: E2 0B 00 93 52 00 A0 BA BE DA 30 F0 CF CB 90 00 0D [18:14:51]RAPDU: A0 BA BE DA 30 F0 CF CB 90 00 [18:14:51]wFMCommunicate OK [18:14:51]SAM_PROTO_SignData done [18:14:51]FM_MakeSignedData done [18:14:51]CreateOFDProtocolMessage [18:14:51]wFMCommunicate request_size=4 [18:14:51]MH_SAM_APDU [18:14:51]CAPDU: 80 11 00 00 [18:14:51]Write to MH i2c: E2 08 00 94 52 80 11 00 00 00 00 00 00 60 [18:14:51]Write i2c OK [18:14:51]MH_I2C_Read... [18:14:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:14:51]Read from MH i2c: E2 [18:14:51]MH_I2C_Read... [18:14:51]Read from MH i2c: E2 17 00 [18:14:51]MH_I2C_Read... [18:14:51]Read from MH i2c: E2 17 00 94 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 BC [18:14:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [18:14:51]wFMCommunicate OK [18:14:51]CreateOFDProtocolMessage done [18:14:51]OFDSenderStorePacket 45230 [18:14:51]StoreOFDPacket docnum=45230 [18:14:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 92 01 00 00 EA D4 8A 01 BE C2 5A 03 01 00 03 00 7E 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 B0 68 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1D 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 68 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 26 BE E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 AE B0 00 00 35 04 06 00 21 DA A2 6C 02 71 A0 BA BE DA 30 F0 CF CB [18:14:51]CheckFolder [18:14:51]dirname=/storage/ofd_packets [18:14:51]CheckFolder done [18:14:51]ProducePacketName [18:14:51]name=ofd_packets/00045230 [18:14:51]NVStorageSaveData ofd_packets/00045230 [18:14:51]File name is /storage/ofd_packets/00045230 [18:14:51]Write 432 bytes [18:14:51]NVStorageSaveData done [18:14:51]OFDSenderStorePacket done [18:14:51]KKMCreateOFDPacket done [18:14:51]NVStorageSaveData kkm_last_timestamp [18:14:51]File name is /storage/kkm_last_timestamp [18:14:51]Write 4 bytes [18:14:51]NVStorageSaveData done [18:14:51]ExternCall_PrintAddStr [18:14:51]wPrintStart [18:14:51]Write to MH i2c: 01 00 00 95 52 E7 [18:14:52]OFD Sender: Processing packet 45230 [packets to send 17, broken 16] [18:14:52]ProducePacketName [18:14:52]name=ofd_packets/00045230 [18:14:52]OFD Sender: To server: pG, [18:14:52]CommunicateWithHost lk.salyk.kg:30040 [18:14:52]ConnectInit lk.salyk.kg [18:14:52]Write i2c OK [18:14:52]MH_I2C_Read... [18:14:52]Read from MH i2c: 01 [18:14:52]MH_I2C_Read... [18:14:52]Read from MH i2c: 01 07 00 [18:14:52]MH_I2C_Read... [18:14:52]Read from MH i2c: 01 07 00 95 52 00 00 00 00 00 FF 0F FC [18:14:52]RasterBufferAndPrint [18:14:52]line Счет N : (3)184193 [18:14:52]line ИНН: 02508201610067 [18:14:52]line Контрольно-Кассовый Чек [18:14:52]line ПРОДАЖА [18:14:52]line Товар: 2000036230011 [18:14:52]line Кофе Латте XL(GABB TRADE) [18:14:52]line 1.000 * 130.00 [18:14:52]line = 130.00 [18:14:52]line НДС 12% НСП 1% [18:14:52]line > о реализуемом товаре [18:14:52]line Товар: 48744683 [18:14:52]line Сигареты Winston XStyle Caster+ [18:14:52]line 1.000 * 138.00 [18:14:52]line = 138.00 [18:14:52]line НДС 12% НСП 1% [18:14:52]line > о реализуемом товаре [18:14:52]line ИТОГО: 268.00 [18:14:52]line НСП 1% : 2.37 [18:14:52]line НДС 12% : 28.45 [18:14:52]line Наличными: 0.00 [18:14:52]line Безнал.: 268.00 [18:14:52]line Место: АЗС № 25 "Партнер Нефть" [18:14:52]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [18:14:52]line СНО: Общий режим [18:14:52]line Чек 67 03.03.2024 18:15 [18:14:52]line Смена: 331 ФФД: 1.0 [18:14:52]line ЗНМ: 0300000013 [18:14:52]line РНМ: 0000000000090572 [18:14:52]line Версия ККМ: 001 [18:14:52]line Платежная система: О! деньги [18:14:52]line ФМ: 0000000000874796 [18:14:52]line ФД: 45230 [18:14:52]line ФПД: 37222911574641 [18:14:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T181502&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45230&fm=37222911574641&tin=02508201610067®Number=0000000000090572&sum=26800 [18:14:52]line 0 [18:14:52]written 0, free lines is 4095 [18:14:52]Connected sock=10 [18:14:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 92 01 00 00 EA D4 8A 01 BE C2 5A 03 01 00 03 00 7E 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 B0 68 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1D 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 68 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 26 BE E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 AE B0 00 00 35 04 06 00 21 DA A2 6C 02 71 A0 BA BE DA 30 F0 CF CB [18:14:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 3D 45 47 00 02 71 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 AE B0 00 00 F4 03 04 00 EB 69 E4 65 B6 04 01 00 00 13 6E 70 9C B7 B4 40 9D [18:14:52]CommunicateWithHost err = 0 [18:14:52]CheckOFDResponse [18:14:52]1017 (14) - 77093643461234 [18:14:52]1041 (16) - 0000000000874796 [18:14:52]1040 (4) - 45230 [18:14:52]1012 (4) - 03.03.2024 12:15 [18:14:52]1206 (1) - 0 [18:14:52]OFD Sender: Remove packet 45230 [18:14:52]ProducePacketName [18:14:52]name=ofd_packets/00045230 [18:14:52]NVStorageDeleteData [18:14:52]Write to MH i2c: 01 00 00 C6 52 18 [18:14:52]Write i2c OK [18:14:52]MH_I2C_Read... [18:14:52]Read from MH i2c: 01 [18:14:52]MH_I2C_Read... [18:14:52]Read from MH i2c: 01 07 00 [18:14:52]MH_I2C_Read... [18:14:52]Read from MH i2c: 01 07 00 C6 52 00 00 00 00 00 83 0C AE [18:14:52]RasterBufferAndPrint [18:14:52]line [18:14:52]line [18:14:52]line [18:14:52]line [18:14:52]line [18:14:52]written 0, free lines is 3212 [18:14:52]MH_Cut [18:14:52]Write to MH i2c: D1 01 00 CD 52 01 F1 [18:14:52]Write i2c OK [18:14:52]MH_I2C_Read... [18:14:52]Read from MH i2c: D1 [18:14:52]MH_I2C_Read... [18:14:52]Read from MH i2c: D1 01 00 [18:14:52]MH_I2C_Read... [18:14:52]Read from MH i2c: D1 01 00 CD 52 00 F0 [18:14:52]Write to MH i2c: 01 00 00 CE 52 20 [18:14:52]Write i2c OK [18:14:52]MH_I2C_Read... [18:14:52]OFD Sender: No OFD packet to send [18:14:53]*** Cut start [18:14:53]*** Purtial cut [18:14:53]*** Stage 1: CUTSNS_PIN = 1 [18:14:55]Read from MH i2c: 01 [18:14:55]MH_I2C_Read... [18:14:55]*** Stop cut motor [18:14:55]*** Cut end [18:14:55]Read from MH i2c: 01 07 00 [18:14:55]MH_I2C_Read... [18:14:55]Read from MH i2c: 01 07 00 CE 52 00 00 00 00 00 FF 0F 35 [18:14:55]process_action close_receipt done [18:14:55]requested_data is exist [18:14:55]produce_requested_data [18:14:55]requested_item fm.sn is exist - process it [18:14:55]wFMCommunicate request_size=4 [18:14:55]MH_SAM_APDU [18:14:55]CAPDU: 80 11 00 00 [18:14:55]Write to MH i2c: E2 08 00 CF 52 80 11 00 00 00 00 00 00 9B [18:14:55]Write i2c OK [18:14:55]MH_I2C_Read... [18:14:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:14:55]Read from MH i2c: E2 [18:14:55]MH_I2C_Read... [18:14:55]Read from MH i2c: E2 17 00 [18:14:55]MH_I2C_Read... [18:14:55]Read from MH i2c: E2 17 00 CF 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 F7 [18:14:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [18:14:55]wFMCommunicate OK [18:14:55]requested_item fd.num is exist - process it [18:14:55]SAM_PROTO_GetFieldsCounters [18:14:55]wFMCommunicate request_size=4 [18:14:55]MH_SAM_APDU [18:14:55]CAPDU: 80 13 00 00 [18:14:55]Write to MH i2c: E2 08 00 D0 52 80 13 00 00 00 00 00 00 9E [18:14:55]Write i2c OK [18:14:55]MH_I2C_Read... [18:14:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:14:55]Read from MH i2c: E2 [18:14:55]MH_I2C_Read... [18:14:55]Read from MH i2c: E2 62 00 [18:14:55]MH_I2C_Read... [18:14:55]Read from MH i2c: E2 62 00 D0 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 AE B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 39 [18:14:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 AE B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:14:55]wFMCommunicate OK [18:14:55]SAM_PROTO_GetFieldsCounters done [18:14:55]requested_item shift.num is exist - process it [18:14:55]requested_item shift.opened is exist - process it [18:14:55]req_shift_opened [18:14:55]FM_GetShiftState [18:14:55]SAM_PROTO_GetShiftState [18:14:55]wFMCommunicate request_size=4 [18:14:55]MH_SAM_APDU [18:14:55]CAPDU: 80 13 01 00 [18:14:55]Write to MH i2c: E2 08 00 D1 52 80 13 01 00 00 00 00 00 A0 [18:14:55]Write i2c OK [18:14:55]MH_I2C_Read... [18:14:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:14:55]Read from MH i2c: E2 [18:14:55]MH_I2C_Read... [18:14:55]Read from MH i2c: E2 0E 00 [18:14:55]MH_I2C_Read... [18:14:55]Read from MH i2c: E2 0E 00 D1 52 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 D6 [18:14:55]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [18:14:55]wFMCommunicate OK [18:14:55]SAM_PROTO_GetShiftState done [18:14:55]FM_GetShiftState done [18:14:55]req_shift_opened done [18:14:55]requested_item shift.open_date is exist - process it [18:14:55]req_shift_open_date [18:14:55]req_shift_open_date done [18:14:55]produce_requested_data done [18:14:55]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45230,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [18:14:55]process_action_free close_receipt [18:14:55]json_value_free [18:14:55]json_value_free done [18:14:55]process_json_proto returns [18:14:55]Send response to host [18:14:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45230,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [18:14:55]free response buf [18:14:55]execute_script done [18:14:55]execute_script returns [18:14:55]free content buf [18:14:55]Sock 7.Close socket [18:14:55]Sock 7.Thread stoped [18:14:57]OFD Sender: No OFD packet to send [18:15:02]OFD Sender: No OFD packet to send [18:15:07]OFD Sender: No OFD packet to send [18:15:12]OFD Sender: No OFD packet to send [18:15:17]OFD Sender: No OFD packet to send [18:15:22]int [18:15:22]Write to MH i2c: 01 00 00 D2 52 24 [18:15:22]*** FLAG_PRN_PAP1 set [18:15:22]Write i2c OK [18:15:22]MH_I2C_Read... [18:15:22]Read from MH i2c: 01 [18:15:22]MH_I2C_Read... [18:15:22]Read from MH i2c: 01 07 00 [18:15:22]MH_I2C_Read... [18:15:22]Read from MH i2c: 01 07 00 D2 52 00 01 00 00 00 FF 0F 3A [18:15:22]state=0 [18:15:22]No paper [18:15:22]int [18:15:22]Write to MH i2c: 01 00 00 D3 52 25 [18:15:22]*** FLAG_PRN_PAP2 set [18:15:22]Write i2c OK [18:15:22]MH_I2C_Read... [18:15:22]Read from MH i2c: 01 [18:15:22]MH_I2C_Read... [18:15:22]Read from MH i2c: 01 07 00 [18:15:22]MH_I2C_Read... [18:15:22]Read from MH i2c: 01 07 00 D3 52 00 03 00 00 00 FF 0F 3D [18:15:22]state=0 [18:15:22]No paper [18:15:22]Cover opened [18:15:22]OFD Sender: No OFD packet to send [18:15:27]Write to MH i2c: 01 00 00 D4 52 26 [18:15:27]Write i2c OK [18:15:27]MH_I2C_Read... [18:15:27]Read from MH i2c: 01 [18:15:27]MH_I2C_Read... [18:15:27]Read from MH i2c: 01 07 00 [18:15:27]MH_I2C_Read... [18:15:27]Read from MH i2c: 01 07 00 D4 52 00 03 00 00 00 FF 0F 3E [18:15:27]state=3 [18:15:27]No paper [18:15:27]Cover opened [18:15:27]OFD Sender: No OFD packet to send [18:15:32]Write to MH i2c: 01 00 00 D5 52 27 [18:15:32]Write i2c OK [18:15:32]MH_I2C_Read... [18:15:32]Read from MH i2c: 01 [18:15:32]MH_I2C_Read... [18:15:32]Read from MH i2c: 01 07 00 [18:15:32]MH_I2C_Read... [18:15:32]Read from MH i2c: 01 07 00 D5 52 00 03 00 00 00 FF 0F 3F [18:15:32]state=3 [18:15:32]No paper [18:15:32]Cover opened [18:15:32]OFD Sender: No OFD packet to send [18:15:37]Write to MH i2c: 01 00 00 D6 52 28 [18:15:37]Write i2c OK [18:15:37]MH_I2C_Read... [18:15:37]Read from MH i2c: 01 [18:15:37]MH_I2C_Read... [18:15:37]Read from MH i2c: 01 07 00 [18:15:37]MH_I2C_Read... [18:15:37]Read from MH i2c: 01 07 00 D6 52 00 03 00 00 00 FF 0F 40 [18:15:37]state=3 [18:15:37]No paper [18:15:37]Cover opened [18:15:37]OFD Sender: No OFD packet to send [18:15:42]Write to MH i2c: 01 00 00 D7 52 29 [18:15:42]Write i2c OK [18:15:42]MH_I2C_Read... [18:15:42]Read from MH i2c: 01 [18:15:42]MH_I2C_Read... [18:15:42]Read from MH i2c: 01 07 00 [18:15:42]MH_I2C_Read... [18:15:42]Read from MH i2c: 01 07 00 D7 52 00 03 00 00 00 FF 0F 41 [18:15:42]state=3 [18:15:42]No paper [18:15:42]Cover opened [18:15:42]OFD Sender: No OFD packet to send [18:15:47]Write to MH i2c: 01 00 00 D8 52 2A [18:15:47]Write i2c OK [18:15:47]MH_I2C_Read... [18:15:47]Read from MH i2c: 01 [18:15:47]MH_I2C_Read... [18:15:47]Read from MH i2c: 01 07 00 [18:15:47]MH_I2C_Read... [18:15:47]Read from MH i2c: 01 07 00 D8 52 00 03 00 00 00 FF 0F 42 [18:15:47]state=3 [18:15:47]No paper [18:15:47]Cover opened [18:15:47]OFD Sender: No OFD packet to send [18:15:52]Write to MH i2c: 01 00 00 D9 52 2B [18:15:52]Write i2c OK [18:15:52]MH_I2C_Read... [18:15:52]Read from MH i2c: 01 [18:15:52]MH_I2C_Read... [18:15:52]Read from MH i2c: 01 07 00 [18:15:52]MH_I2C_Read... [18:15:52]Read from MH i2c: 01 07 00 D9 52 00 03 00 00 00 FF 0F 43 [18:15:52]state=3 [18:15:52]No paper [18:15:52]Cover opened [18:15:52]OFD Sender: No OFD packet to send [18:15:53]accept exits with 9 [18:15:53]New connection [18:15:53]New thread 3067157860 created [18:15:53]Thread 3067014500 joined [18:15:53]Waiting for new connection... [18:15:53] Sock 9.Parse request [18:15:53]Sock 9.Check first char [18:15:53]Sock 9.First char is OK [18:15:53]request: POST /json_proto HTTP/1.0 [18:15:53]Method: POST [18:15:53]URL: /json_proto [18:15:53]Method is POST - this is cgi request [18:15:53]url: /json_proto [18:15:53]query_string will be loaded in cgi processing [18:15:53]execute_cgi json_proto POST (null) [18:15:53]execute_cgi path=json_proto method=POST [18:15:53]POST find Content-Length [18:15:53]Host: 172.17.48.198:8080 [18:15:53]Content-Length: 817 [18:15:53]Content-Type: application/json [18:15:53] [18:15:53]POST finish read [18:15:53]Found Content-Length = 817 [18:15:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106260", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.080, "sum" : 500.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:15:53]execute_script... [18:15: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)1106260", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.080, "sum" : 500.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:15:53]POST & json_proto [18:15:53]process_json_proto [18:15:53]json parsed OK: [18:15:53]protocol is kg_v1.0 [18:15:53]action value=close_receipt [18:15:53]process_action close_receipt [18:15:53]cmd_close_receipt [18:15:53]MH_GetDate [18:15:53]Write to MH i2c: F0 00 00 DA 52 1B [18:15:53]Write i2c OK [18:15:53]MH_I2C_Read... [18:15:53]Read from MH i2c: F0 [18:15:53]MH_I2C_Read... [18:15:53]Read from MH i2c: F0 09 00 [18:15:53]MH_I2C_Read... [18:15:53]Read from MH i2c: F0 09 00 DA 52 00 66 BE E4 65 CE C4 D4 65 5C [18:15:53]GetLastDocTimeStamp 1709489702 [18:15:53]current date 1709489766 [18:15:53]FM_GetShiftState [18:15:53]SAM_PROTO_GetShiftState [18:15:53]wFMCommunicate request_size=4 [18:15:53]MH_SAM_APDU [18:15:53]CAPDU: 80 13 01 00 [18:15:53]Write to MH i2c: E2 08 00 DB 52 80 13 01 00 00 00 00 00 AA [18:15:53]Write i2c OK [18:15:53]MH_I2C_Read... [18:15:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:15:53]Read from MH i2c: E2 [18:15:53]MH_I2C_Read... [18:15:53]Read from MH i2c: E2 0E 00 [18:15:53]MH_I2C_Read... [18:15:53]Read from MH i2c: E2 0E 00 DB 52 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 E0 [18:15:53]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [18:15:53]wFMCommunicate OK [18:15:53]SAM_PROTO_GetShiftState done [18:15:53]FM_GetShiftState done [18:15:53]opened in 1709425694 [18:15:53]opened+sec_in_day 1709512094 [18:15:53]quantity*price = 50015 [18:15:53]sum+1 = 50016 [18:15:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.15 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.15 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 68 03.03.2024 18:16 Смена: 331 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874796 ФД: 45231 ФПД: 248410403557390 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T181606&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45231&fm=248410403557390&tin=02508201610067®Number=0000000000090572&sum=50015 [18:15:54]StoreToDocumentArchive [18:15:54]shift 331 fd 45231 [18:15:54]save to /storage/0331/doc_00045231 [18:15:54]save last doc name /storage/0331/doc_00045231 to /storage/kkm_last_doc_name [18:15:54]save OK [18:15:54]Clear old archive folders... [18:15:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:15:54]tlvbuf is B6F871F0 [18:15:54]SAM_PROTO_ClearQueue [18:15:54]wFMCommunicate request_size=4 [18:15:54]MH_SAM_APDU [18:15:54]CAPDU: 80 09 00 00 [18:15:54]Write to MH i2c: E2 08 00 E8 52 80 09 00 00 00 00 00 00 AC [18:15:54]Write i2c OK [18:15:54]MH_I2C_Read... [18:15:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:15:54]Read from MH i2c: E2 [18:15:54]MH_I2C_Read... [18:15:54]Read from MH i2c: E2 03 00 [18:15:54]MH_I2C_Read... [18:15:54]Read from MH i2c: E2 03 00 E8 52 00 90 00 AE [18:15:54]RAPDU: 90 00 [18:15:54]wFMCommunicate OK [18:15:54]SAM_PROTO_ClearQueue done [18:15:54]KKMCreateOFDPacket [18:15:54]OFDProtocolAddRootSTLVToBuf [18:15:54]FM_MakeSignedData [18:15:54]FM_MakeSignedData [18:15:54]SAM_PROTO_SignData [18:15:54]wFMCommunicate request_size=4 [18:15:54]MH_SAM_APDU [18:15:54]CAPDU: 80 0D 01 02 [18:15:54]Write to MH i2c: E2 08 00 E9 52 80 0D 01 02 00 00 00 00 B4 [18:15:54]Write i2c OK [18:15:54]MH_I2C_Read... [18:15:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:15:54]Read from MH i2c: E2 [18:15:54]MH_I2C_Read... [18:15:54]Read from MH i2c: E2 03 00 [18:15:54]MH_I2C_Read... [18:15:54]Read from MH i2c: E2 03 00 E9 52 00 90 00 AF [18:15:54]RAPDU: 90 00 [18:15:54]wFMCommunicate OK [18:15:54]wFMCommunicate request_size=255 [18:15:54]MH_SAM_APDU [18:15:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 66 BE E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 AF B0 00 00 35 04 06 00 E1 [18:15:54]Write to MH i2c: E2 02 01 EA 52 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 66 BE E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 AF B0 00 00 35 04 06 00 E1 00 00 EC [18:15:54]Write i2c OK [18:15:54]MH_I2C_Read... [18:15:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:15:54]Read from MH i2c: E2 [18:15:54]MH_I2C_Read... [18:15:54]Read from MH i2c: E2 03 00 [18:15:54]MH_I2C_Read... [18:15:54]Read from MH i2c: E2 03 00 EA 52 00 90 00 B0 [18:15:54]RAPDU: 90 00 [18:15:54]wFMCommunicate OK [18:15:54]wFMCommunicate request_size=10 [18:15:54]MH_SAM_APDU [18:15:54]CAPDU: 80 0D 02 02 05 ED 8D DC D0 0E [18:15:54]Write to MH i2c: E2 0D 00 EB 52 80 0D 02 02 05 00 ED 8D DC D0 0E 00 00 F5 [18:15:54]Write i2c OK [18:15:54]MH_I2C_Read... [18:15:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:15:54]Read from MH i2c: E2 [18:15:54]MH_I2C_Read... [18:15:54]Read from MH i2c: E2 03 00 [18:15:54]MH_I2C_Read... [18:15:54]Read from MH i2c: E2 03 00 EB 52 00 90 00 B1 [18:15:54]RAPDU: 90 00 [18:15:54]wFMCommunicate OK [18:15:54]wFMCommunicate request_size=4 [18:15:54]MH_SAM_APDU [18:15:54]CAPDU: 80 0D 03 02 [18:15:54]Write to MH i2c: E2 08 00 EC 52 80 0D 03 02 00 00 00 00 B9 [18:15:54]Write i2c OK [18:15:54]MH_I2C_Read... [18:15:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:15:54]Read from MH i2c: E2 [18:15:54]MH_I2C_Read... [18:15:54]Read from MH i2c: E2 0B 00 [18:15:54]MH_I2C_Read... [18:15:54]Read from MH i2c: E2 0B 00 EC 52 00 5C DD E5 96 4D 9E BD E2 90 00 F8 [18:15:54]RAPDU: 5C DD E5 96 4D 9E BD E2 90 00 [18:15:54]wFMCommunicate OK [18:15:54]SAM_PROTO_SignData done [18:15:54]FM_MakeSignedData done [18:15:54]CreateOFDProtocolMessage [18:15:54]wFMCommunicate request_size=4 [18:15:54]MH_SAM_APDU [18:15:54]CAPDU: 80 11 00 00 [18:15:54]Write to MH i2c: E2 08 00 ED 52 80 11 00 00 00 00 00 00 B9 [18:15:54]Write i2c OK [18:15:54]MH_I2C_Read... [18:15:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:15:54]Read from MH i2c: E2 [18:15:54]MH_I2C_Read... [18:15:54]Read from MH i2c: E2 17 00 [18:15:54]MH_I2C_Read... [18:15:54]Read from MH i2c: E2 17 00 ED 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 15 [18:15:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [18:15:54]wFMCommunicate OK [18:15:54]CreateOFDProtocolMessage done [18:15:54]OFDSenderStorePacket 45231 [18:15:54]StoreOFDPacket docnum=45231 [18:15:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0F 01 00 00 24 A6 07 01 B9 E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 66 BE E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 AF B0 00 00 35 04 06 00 E1 ED 8D DC D0 0E 5C DD E5 96 4D 9E BD E2 [18:15:54]CheckFolder [18:15:54]dirname=/storage/ofd_packets [18:15:54]CheckFolder done [18:15:54]ProducePacketName [18:15:54]name=ofd_packets/00045231 [18:15:54]NVStorageSaveData ofd_packets/00045231 [18:15:54]File name is /storage/ofd_packets/00045231 [18:15:54]Write 301 bytes [18:15:54]NVStorageSaveData done [18:15:54]OFDSenderStorePacket done [18:15:54]KKMCreateOFDPacket done [18:15:54]NVStorageSaveData kkm_last_timestamp [18:15:54]File name is /storage/kkm_last_timestamp [18:15:54]Write 4 bytes [18:15:54]NVStorageSaveData done [18:15:54]ExternCall_PrintAddStr [18:15:54]wPrintStart [18:15:54]Write to MH i2c: 01 00 00 EE 52 40 [18:15:54]Write i2c OK [18:15:54]MH_I2C_Read... [18:15:54]Read from MH i2c: 01 [18:15:54]MH_I2C_Read... [18:15:54]Read from MH i2c: 01 07 00 [18:15:54]MH_I2C_Read... [18:15:54]Read from MH i2c: 01 07 00 EE 52 00 03 00 00 00 FF 0F 58 [18:15:54]RasterBufferAndPrint [18:15:54]line Счет N : (1)1106260 [18:15:54]line ИНН: 02508201610067 [18:15:54]line Контрольно-Кассовый Чек [18:15:54]line ПРОДАЖА [18:15:54]line ТРК (МРК, ГНК) : 11 [18:15:54]line Товар: 2710124130 [18:15:54]line Аи-92-К-5 [18:15:54]line 8.080 * 61.90 [18:15:54]line = 500.15 [18:15:54]line НДС 12% НСП 1% [18:15:54]line > о реализуемом товаре [18:15:54]line ИТОГО: 500.15 [18:15:54]line НСП 1% : 4.43 [18:15:54]line НДС 12% : 53.11 [18:15:54]line Наличными: 0.00 [18:15:54]line Безнал.: 500.15 [18:15:54]line Место: АЗС № 25 "Партнер Нефть" [18:15:54]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [18:15:54]line СНО: Общий режим [18:15:54]line Чек 68 03.03.2024 18:16 [18:15:54]line Смена: 331 ФФД: 1.0 [18:15:54]line ЗНМ: 0300000013 [18:15:54]line РНМ: 0000000000090572 [18:15:54]line Версия ККМ: 001 [18:15:54]line Платежная система: Бакай Банк [18:15:54]line ФМ: 0000000000874796 [18:15:54]line ФД: 45231 [18:15:54]line ФПД: 248410403557390 [18:15:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T181606&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45231&fm=248410403557390&tin=02508201610067®Number=0000000000090572&sum=50015 [18:15:55]OFD Sender: Processing packet 45231 [packets to send 17, broken 16] [18:15:55]ProducePacketName [18:15:55]name=ofd_packets/00045231 [18:15:55]OFD Sender: To server: pG, [18:15:55]CommunicateWithHost lk.salyk.kg:30040 [18:15:55]ConnectInit lk.salyk.kg [18:15:55]written 0, free lines is 4095 [18:15:55]Error from MH - 05 [18:15:55]process_action_free close_receipt [18:15:55]json_value_free [18:15:55]json_value_free done [18:15:55]process_json_proto returns [18:15:55]Send response to host [18:15:55]{"protocol":"kg_v1.0","response":{"error":1033,"error_desc":"No paper"}} [18:15:55]free response buf [18:15:55]execute_script done [18:15:55]execute_script returns [18:15:55]free content buf [18:15:55]Sock 9.Close socket [18:15:55]Sock 9.Thread stoped [18:15:55]Connected sock=10 [18:15:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0F 01 00 00 24 A6 07 01 B9 E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 66 BE E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 AF B0 00 00 35 04 06 00 E1 ED 8D DC D0 0E 5C DD E5 96 4D 9E BD E2 [18:15:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 68 F1 47 00 48 B6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 AF B0 00 00 F4 03 04 00 2A 6A E4 65 B6 04 01 00 00 86 7C D6 0A FD 46 33 FC [18:15:55]CommunicateWithHost err = 0 [18:15:55]CheckOFDResponse [18:15:55]1017 (14) - 77093643461234 [18:15:55]1041 (16) - 0000000000874796 [18:15:55]1040 (4) - 45231 [18:15:55]1012 (4) - 03.03.2024 12:16 [18:15:55]1206 (1) - 0 [18:15:55]OFD Sender: Remove packet 45231 [18:15:55]ProducePacketName [18:15:55]name=ofd_packets/00045231 [18:15:55]NVStorageDeleteData [18:15:56]OFD Sender: No OFD packet to send [18:15:57]Write to MH i2c: 01 00 00 F1 52 43 [18:15:57]Write i2c OK [18:15:57]MH_I2C_Read... [18:15:57]Read from MH i2c: 01 [18:15:57]MH_I2C_Read... [18:15:57]Read from MH i2c: 01 07 00 [18:15:57]MH_I2C_Read... [18:15:57]Read from MH i2c: 01 07 00 F1 52 00 03 00 00 00 FF 0F 5B [18:15:57]state=3 [18:15:57]No paper [18:15:57]Cover opened [18:16:01]OFD Sender: No OFD packet to send [18:16:02]Write to MH i2c: 01 00 00 F2 52 44 [18:16:02]Write i2c OK [18:16:02]MH_I2C_Read... [18:16:02]Read from MH i2c: 01 [18:16:02]MH_I2C_Read... [18:16:02]Read from MH i2c: 01 07 00 [18:16:02]MH_I2C_Read... [18:16:02]Read from MH i2c: 01 07 00 F2 52 00 03 00 00 00 FF 0F 5C [18:16:02]state=3 [18:16:02]No paper [18:16:02]Cover opened [18:16:06]OFD Sender: No OFD packet to send [18:16:07]Write to MH i2c: 01 00 00 F3 52 45 [18:16:07]Write i2c OK [18:16:07]MH_I2C_Read... [18:16:07]Read from MH i2c: 01 [18:16:07]MH_I2C_Read... [18:16:07]Read from MH i2c: 01 07 00 [18:16:07]MH_I2C_Read... [18:16:07]Read from MH i2c: 01 07 00 F3 52 00 03 00 00 00 FF 0F 5D [18:16:07]state=3 [18:16:07]No paper [18:16:07]Cover opened [18:16:11]OFD Sender: No OFD packet to send [18:16:12]Write to MH i2c: 01 00 00 F4 52 46 [18:16:12]Write i2c OK [18:16:12]MH_I2C_Read... [18:16:12]Read from MH i2c: 01 [18:16:12]MH_I2C_Read... [18:16:12]Read from MH i2c: 01 07 00 [18:16:12]MH_I2C_Read... [18:16:12]Read from MH i2c: 01 07 00 F4 52 00 03 00 00 00 FF 0F 5E [18:16:12]state=3 [18:16:12]No paper [18:16:12]Cover opened [18:16:16]OFD Sender: No OFD packet to send [18:16:17]Write to MH i2c: 01 00 00 F5 52 47 [18:16:17]Write i2c OK [18:16:17]MH_I2C_Read... [18:16:17]Read from MH i2c: 01 [18:16:17]MH_I2C_Read... [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 F5 52 00 03 00 00 00 FF 0F 5F [18:16:17]state=3 [18:16:17]No paper [18:16:17]Cover opened [18:16:21]OFD Sender: No OFD packet to send [18:16:22]Write to MH i2c: 01 00 00 F6 52 48 [18:16:22]Write i2c OK [18:16:22]MH_I2C_Read... [18:16:22]Read from MH i2c: 01 [18:16:22]MH_I2C_Read... [18:16:22]Read from MH i2c: 01 07 00 [18:16:22]MH_I2C_Read... [18:16:22]Read from MH i2c: 01 07 00 F6 52 00 03 00 00 00 FF 0F 60 [18:16:22]state=3 [18:16:22]No paper [18:16:22]Cover opened [18:16:26]OFD Sender: No OFD packet to send [18:16:27]Write to MH i2c: 01 00 00 F7 52 49 [18:16:27]Write i2c OK [18:16:27]MH_I2C_Read... [18:16:27]Read from MH i2c: 01 [18:16:27]MH_I2C_Read... [18:16:27]Read from MH i2c: 01 07 00 [18:16:27]MH_I2C_Read... [18:16:27]Read from MH i2c: 01 07 00 F7 52 00 03 00 00 00 FF 0F 61 [18:16:27]state=3 [18:16:27]No paper [18:16:27]Cover opened [18:16:27]int [18:16:27]Write to MH i2c: 01 00 00 F8 52 4A [18:16:27]*** FLAG_PRN_PAP2 reset [18:16:27]Write i2c OK [18:16:27]MH_I2C_Read... [18:16:27]Read from MH i2c: 01 [18:16:27]MH_I2C_Read... [18:16:27]Read from MH i2c: 01 07 00 [18:16:27]MH_I2C_Read... [18:16:27]Read from MH i2c: 01 07 00 F8 52 00 01 00 00 00 FF 0F 60 [18:16:27]state=3 [18:16:27]No paper [18:16:27]Cover closed [18:16:27]*** FLAG_PRN_PAP1 reset [18:16:31]OFD Sender: No OFD packet to send [18:16:32]int line is 0 - check status [18:16:32]Write to MH i2c: 01 00 00 F9 52 4B [18:16:32]Write i2c OK [18:16:32]MH_I2C_Read... [18:16:32]Read from MH i2c: 01 [18:16:32]MH_I2C_Read... [18:16:32]Read from MH i2c: 01 07 00 [18:16:32]MH_I2C_Read... [18:16:32]Read from MH i2c: 01 07 00 F9 52 00 00 00 00 00 FF 0F 60 [18:16:32]state=0 [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:07]int [18:17:07]Write to MH i2c: 01 00 00 FA 52 4C [18:17:07]*** FLAG_PRN_PAP1 set [18:17:07]Write i2c OK [18:17:07]MH_I2C_Read... [18:17:07]Read from MH i2c: 01 [18:17:07]MH_I2C_Read... [18:17:07]Read from MH i2c: 01 07 00 [18:17:07]MH_I2C_Read... [18:17:07]Read from MH i2c: 01 07 00 FA 52 00 01 00 00 00 FF 0F 62 [18:17:07]state=0 [18:17:07]No paper [18:17:07]int [18:17:07]Write to MH i2c: 01 00 00 FB 52 4D [18:17:07]*** FLAG_PRN_PAP2 set [18:17:07]Write i2c OK [18:17:07]MH_I2C_Read... [18:17:07]Read from MH i2c: 01 [18:17:07]MH_I2C_Read... [18:17:07]Read from MH i2c: 01 07 00 [18:17:07]MH_I2C_Read... [18:17:07]Read from MH i2c: 01 07 00 FB 52 00 03 00 00 00 FF 0F 65 [18:17:07]state=0 [18:17:07]No paper [18:17:07]Cover opened [18:17:10]int [18:17:10]Write to MH i2c: 01 00 00 FC 52 4E [18:17:10]*** FLAG_PRN_PAP2 reset [18:17:10]Write i2c OK [18:17:10]MH_I2C_Read... [18:17:10]Read from MH i2c: 01 [18:17:10]MH_I2C_Read... [18:17:10]Read from MH i2c: 01 07 00 [18:17:10]MH_I2C_Read... [18:17:10]Read from MH i2c: 01 07 00 FC 52 00 01 00 00 00 FF 0F 64 [18:17:10]state=3 [18:17:10]No paper [18:17:10]Cover closed [18:17:10]*** FLAG_PRN_PAP1 reset [18:17:11]OFD Sender: No OFD packet to send [18:17:15]int line is 0 - check status [18:17:15]Write to MH i2c: 01 00 00 FD 52 4F [18:17:15]Write i2c OK [18:17:15]MH_I2C_Read... [18:17:15]Read from MH i2c: 01 [18:17:15]MH_I2C_Read... [18:17:15]Read from MH i2c: 01 07 00 [18:17:15]MH_I2C_Read... [18:17:15]Read from MH i2c: 01 07 00 FD 52 00 00 00 00 00 FF 0F 64 [18:17:15]state=0 [18:17:16]OFD Sender: No OFD packet to send [18:17:18]accept exits with 7 [18:17:18]New connection [18:17:18]New thread 3067014500 created [18:17:18]Thread 3067157860 joined [18:17:18]Waiting for new connection... [18:17:18] Sock 7.Parse request [18:17:18]Sock 7.Check first char [18:17:18]Sock 7.First char is OK [18:17:18]request: POST /json_proto HTTP/1.0 [18:17:18]Method: POST [18:17:18]URL: /json_proto [18:17:18]Method is POST - this is cgi request [18:17:18]url: /json_proto [18:17:18]query_string will be loaded in cgi processing [18:17:18]execute_cgi json_proto POST (null) [18:17:18]execute_cgi path=json_proto method=POST [18:17:18]POST find Content-Length [18:17:18]Host: 172.17.48.198:8080 [18:17:18]Content-Length: 215 [18:17:18]Content-Type: application/json [18:17:18] [18:17:18]POST finish read [18:17:18]Found Content-Length = 215 [18:17:18]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:17:18]execute_script... [18:17:18]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:17:18]POST & json_proto [18:17:18]process_json_proto [18:17:18]json parsed OK: [18:17:18]protocol is kg_v1.0 [18:17:18]action value=get_value [18:17:18]process_action get_value [18:17:18]cmd_get_value [18:17:18]process_action get_value done [18:17:18]requested_data is exist [18:17:18]produce_requested_data [18:17:18]requested_item kkm.sn is exist - process it [18:17:18]requested_item kkm.ver is exist - process it [18:17:18]requested_item fm.sn is exist - process it [18:17:18]wFMCommunicate request_size=4 [18:17:18]MH_SAM_APDU [18:17:18]CAPDU: 80 11 00 00 [18:17:18]Write to MH i2c: E2 08 00 FE 52 80 11 00 00 00 00 00 00 CA [18:17:18]Write i2c OK [18:17:18]MH_I2C_Read... [18:17:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:17:18]Read from MH i2c: E2 [18:17:18]MH_I2C_Read... [18:17:18]Read from MH i2c: E2 17 00 [18:17:18]MH_I2C_Read... [18:17:18]Read from MH i2c: E2 17 00 FE 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 26 [18:17:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [18:17:18]wFMCommunicate OK [18:17:18]requested_item fd.num is exist - process it [18:17:18]SAM_PROTO_GetFieldsCounters [18:17:18]wFMCommunicate request_size=4 [18:17:18]MH_SAM_APDU [18:17:18]CAPDU: 80 13 00 00 [18:17:18]Write to MH i2c: E2 08 00 FF 52 80 13 00 00 00 00 00 00 CD [18:17:18]Write i2c OK [18:17:18]MH_I2C_Read... [18:17:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:17:18]Read from MH i2c: E2 [18:17:18]MH_I2C_Read... [18:17:18]Read from MH i2c: E2 62 00 [18:17:18]MH_I2C_Read... [18:17:18]Read from MH i2c: E2 62 00 FF 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 AF B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 6C [18:17:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 AF B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:17:18]wFMCommunicate OK [18:17:18]SAM_PROTO_GetFieldsCounters done [18:17:18]requested_item shift.num is exist - process it [18:17:18]requested_item shift.opened is exist - process it [18:17:18]req_shift_opened [18:17:18]FM_GetShiftState [18:17:18]SAM_PROTO_GetShiftState [18:17:18]wFMCommunicate request_size=4 [18:17:18]MH_SAM_APDU [18:17:18]CAPDU: 80 13 01 00 [18:17:18]Write to MH i2c: E2 08 00 00 53 80 13 01 00 00 00 00 00 D0 [18:17:18]Write i2c OK [18:17:18]MH_I2C_Read... [18:17:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:17:18]Read from MH i2c: E2 [18:17:18]MH_I2C_Read... [18:17:18]Read from MH i2c: E2 0E 00 [18:17:18]MH_I2C_Read... [18:17:18]Read from MH i2c: E2 0E 00 00 53 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 06 [18:17:18]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [18:17:18]wFMCommunicate OK [18:17:18]SAM_PROTO_GetShiftState done [18:17:18]FM_GetShiftState done [18:17:18]req_shift_opened done [18:17:18]requested_item shift.open_date is exist - process it [18:17:18]req_shift_open_date [18:17:18]req_shift_open_date done [18:17:18]produce_requested_data done [18:17:18]produce_requested_data return {"kkm.sn":"0300000013","kkm.ver":"001","fm.sn":"0000000000874796","fd.num":45231,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [18:17:18]process_action_free get_value [18:17:18]json_value_free [18:17:18]json_value_free done [18:17:18]process_json_proto returns [18:17:18]Send response to host [18:17:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000013","kkm.ver":"001","fm.sn":"0000000000874796","fd.num":45231,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [18:17:18]free response buf [18:17:18]execute_script done [18:17:18]execute_script returns [18:17:18]free content buf [18:17:18]Sock 7.Close socket [18:17:18]Sock 7.Thread stoped [18:17:18]accept exits with 9 [18:17:18]New connection [18:17:18]New thread 3067157860 created [18:17:18]Thread 3067014500 joined [18:17:18]Waiting for new connection... [18:17:18] Sock 9.Parse request [18:17:18]Sock 9.Check first char [18:17:18]Sock 9.First char is OK [18:17:18]request: POST /json_proto HTTP/1.0 [18:17:18]Method: POST [18:17:18]URL: /json_proto [18:17:18]Method is POST - this is cgi request [18:17:18]url: /json_proto [18:17:18]query_string will be loaded in cgi processing [18:17:18]execute_cgi json_proto POST (null) [18:17:18]execute_cgi path=json_proto method=POST [18:17:18]POST find Content-Length [18:17:18]Host: 172.17.48.198:8080 [18:17:18]Content-Length: 331 [18:17:18]Content-Type: application/json [18:17:18] [18:17:18]POST finish read [18:17:18]Found Content-Length = 331 [18:17:18]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:17:18]execute_script... [18:17:18]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:17:18]POST & json_proto [18:17:18]process_json_proto [18:17:18]json parsed OK: [18:17:18]protocol is kg_v1.0 [18:17:18]action value=get_value [18:17:18]process_action get_value [18:17:18]cmd_get_value [18:17:18]process_action get_value done [18:17:18]requested_data is exist [18:17:18]produce_requested_data [18:17:18]requested_item fm.sale.total is exist - process it [18:17:18]SAM_PROTO_GetFMData [18:17:18]wFMCommunicate request_size=4 [18:17:18]MH_SAM_APDU [18:17:18]CAPDU: 80 13 03 00 [18:17:18]Write to MH i2c: E2 08 00 01 53 80 13 03 00 00 00 00 00 D3 [18:17:18]Write i2c OK [18:17:18]MH_I2C_Read... [18:17:19]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [18:17:19]Read from MH i2c: E2 [18:17:19]MH_I2C_Read... [18:17:19]Read from MH i2c: E2 FD 00 [18:17:19]MH_I2C_Read... [18:17:19]Read from MH i2c: E2 FD 00 01 53 00 C4 04 85 04 C0 04 6E 04 04 00 15 AE 00 00 69 04 A0 00 6F 04 04 00 22 AB 00 00 B1 04 04 00 7F D3 22 4A 70 04 04 00 F3 4D 11 37 72 04 04 00 8C 85 11 13 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 3F 89 DF 07 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 2A E5 A7 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F3 02 00 00 B1 04 04 00 7E 52 2A 05 70 04 04 00 06 A1 03 05 72 04 03 00 78 B1 26 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 C6 6F 8C EF 03 09 00 90 00 11 [18:17:19]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 15 AE 00 00 69 04 A0 00 6F 04 04 00 22 AB 00 00 B1 04 04 00 7F D3 22 4A 70 04 04 00 F3 4D 11 37 72 04 04 00 8C 85 11 13 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 3F 89 DF 07 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 2A E5 A7 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F3 02 00 00 B1 04 04 00 7E 52 2A 05 70 04 04 00 06 A1 03 05 72 04 03 00 78 B1 26 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 C6 6F 8C EF 03 09 00 90 00 [18:17:19]wFMCommunicate OK [18:17:19]wFMCommunicate request_size=4 [18:17:19]MH_SAM_APDU [18:17:19]CAPDU: 80 17 00 00 [18:17:19]Write to MH i2c: E2 08 00 02 53 80 17 00 00 00 00 00 00 D5 [18:17:19]Write i2c OK [18:17:19]MH_I2C_Read... [18:17:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:17:19]Read from MH i2c: E2 [18:17:19]MH_I2C_Read... [18:17:19]Read from MH i2c: E2 FD 00 [18:17:19]MH_I2C_Read... [18:17:19]Read from MH i2c: E2 FD 00 02 53 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AE B3 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 F7 [18:17:19]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AE B3 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [18:17:19]wFMCommunicate OK [18:17:19]wFMCommunicate request_size=4 [18:17:19]MH_SAM_APDU [18:17:19]CAPDU: 80 17 00 00 [18:17:19]Write to MH i2c: E2 08 00 03 53 80 17 00 00 00 00 00 00 D6 [18:17:19]Write i2c OK [18:17:19]MH_I2C_Read... [18:17:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:17:19]Read from MH i2c: E2 [18:17:19]MH_I2C_Read... [18:17:19]Read from MH i2c: E2 FD 00 [18:17:19]MH_I2C_Read... [18:17:19]Read from MH i2c: E2 FD 00 03 53 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 EB [18:17:19]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [18:17:19]wFMCommunicate OK [18:17:19]wFMCommunicate request_size=4 [18:17:19]MH_SAM_APDU [18:17:19]CAPDU: 80 17 00 00 [18:17:19]Write to MH i2c: E2 08 00 04 53 80 17 00 00 00 00 00 00 D7 [18:17:19]Write i2c OK [18:17:19]MH_I2C_Read... [18:17:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:17:20]Read from MH i2c: E2 [18:17:20]MH_I2C_Read... [18:17:20]Read from MH i2c: E2 FD 00 [18:17:20]MH_I2C_Read... [18:17:20]Read from MH i2c: E2 FD 00 04 53 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 4F [18:17:20]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [18:17:20]wFMCommunicate OK [18:17:20]wFMCommunicate request_size=4 [18:17:20]MH_SAM_APDU [18:17:20]CAPDU: 80 17 00 00 [18:17:20]Write to MH i2c: E2 08 00 05 53 80 17 00 00 00 00 00 00 D8 [18:17:20]Write i2c OK [18:17:20]MH_I2C_Read... [18:17:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [18:17:20]Read from MH i2c: E2 [18:17:20]MH_I2C_Read... [18:17:20]Read from MH i2c: E2 E1 00 [18:17:20]MH_I2C_Read... [18:17:20]Read from MH i2c: E2 E1 00 05 53 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 C6 [18:17:20]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:17:20]wFMCommunicate OK [18:17:20]SAM_PROTO_GetFMData done [18:17:20]requested_item fm.sale_refund.total is exist - process it [18:17:20]requested_item fm.buy.total is exist - process it [18:17:20]requested_item shift.sale.total is exist - process it [18:17:20]SAM_PROTO_GetShiftData [18:17:20]wFMCommunicate request_size=4 [18:17:20]MH_SAM_APDU [18:17:20]CAPDU: 80 13 02 00 [18:17:20]Write to MH i2c: E2 08 00 06 53 80 13 02 00 00 00 00 00 D7 [18:17:20]Write i2c OK [18:17:20]MH_I2C_Read... [18:17:20]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [18:17:20]Read from MH i2c: E2 [18:17:20]MH_I2C_Read... [18:17:20]Read from MH i2c: E2 FD 00 [18:17:20]MH_I2C_Read... [18:17:20]Read from MH i2c: E2 FD 00 06 53 00 B8 04 AA 04 B4 04 6E 04 04 00 44 00 00 00 69 04 9B 00 6F 04 04 00 42 00 00 00 B1 04 03 00 73 12 16 70 04 03 00 B4 50 0F 72 04 03 00 BF C1 06 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 07 58 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 F4 31 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 02 00 00 00 B1 04 03 00 B0 AD 01 70 04 03 00 B0 AD 01 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 A9 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 9D [18:17:20]RAPDU: B8 04 AA 04 B4 04 6E 04 04 00 44 00 00 00 69 04 9B 00 6F 04 04 00 42 00 00 00 B1 04 03 00 73 12 16 70 04 03 00 B4 50 0F 72 04 03 00 BF C1 06 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 07 58 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 F4 31 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 02 00 00 00 B1 04 03 00 B0 AD 01 70 04 03 00 B0 AD 01 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 A9 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [18:17:20]wFMCommunicate OK [18:17:20]wFMCommunicate request_size=4 [18:17:20]MH_SAM_APDU [18:17:20]CAPDU: 80 17 00 00 [18:17:20]Write to MH i2c: E2 08 00 07 53 80 17 00 00 00 00 00 00 DA [18:17:20]Write i2c OK [18:17:20]MH_I2C_Read... [18:17:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:17:21]Read from MH i2c: E2 [18:17:21]MH_I2C_Read... [18:17:21]Read from MH i2c: E2 FD 00 [18:17:21]MH_I2C_Read... [18:17:21]Read from MH i2c: E2 FD 00 07 53 00 0B 00 F6 03 01 00 01 F7 03 02 00 CE 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 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 DC [18:17:21]RAPDU: 0B 00 F6 03 01 00 01 F7 03 02 00 CE 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 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:17:21]wFMCommunicate OK [18:17:21]wFMCommunicate request_size=4 [18:17:21]MH_SAM_APDU [18:17:21]CAPDU: 80 17 00 00 [18:17:21]Write to MH i2c: E2 08 00 08 53 80 17 00 00 00 00 00 00 DB [18:17:21]Write i2c OK [18:17:21]MH_I2C_Read... [18:17:21]OFD Sender: No OFD packet to send [18:17:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:17:21]Read from MH i2c: E2 [18:17:21]MH_I2C_Read... [18:17:21]Read from MH i2c: E2 FD 00 [18:17:21]MH_I2C_Read... [18:17:21]Read from MH i2c: E2 FD 00 08 53 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 7D [18:17:21]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:17:21]wFMCommunicate OK [18:17:21]wFMCommunicate request_size=4 [18:17:21]MH_SAM_APDU [18:17:21]CAPDU: 80 17 00 00 [18:17:21]Write to MH i2c: E2 08 00 09 53 80 17 00 00 00 00 00 00 DC [18:17:21]Write i2c OK [18:17:21]MH_I2C_Read... [18:17:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:17:21]Read from MH i2c: E2 [18:17:21]MH_I2C_Read... [18:17:21]Read from MH i2c: E2 FD 00 [18:17:21]MH_I2C_Read... [18:17:21]Read from MH i2c: E2 FD 00 09 53 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 65 [18:17:21]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:17:21]wFMCommunicate OK [18:17:21]wFMCommunicate request_size=4 [18:17:21]MH_SAM_APDU [18:17:21]CAPDU: 80 17 00 00 [18:17:21]Write to MH i2c: E2 08 00 0A 53 80 17 00 00 00 00 00 00 DD [18:17:21]Write i2c OK [18:17:21]MH_I2C_Read... [18:17:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [18:17:21]Read from MH i2c: E2 [18:17:21]MH_I2C_Read... [18:17:21]Read from MH i2c: E2 D5 00 [18:17:21]MH_I2C_Read... [18:17:21]Read from MH i2c: E2 D5 00 0A 53 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 BE [18:17:21]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:17:21]wFMCommunicate OK [18:17:21]SAM_PROTO_GetShiftData done [18:17:21]requested_item shift.sale.total_cash is exist - process it [18:17:21]requested_item shift.sale_refund.total is exist - process it [18:17:21]requested_item shift.sale_refund.total_cash is exist - process it [18:17:21]requested_item shift.buy.total is exist - process it [18:17:21]requested_item shift.buy.total_cash is exist - process it [18:17:21]produce_requested_data done [18:17:21]produce_requested_data return {"fm.sale.total":12437963.51,"fm.sale_refund.total":866597.10,"fm.buy.total":0.00,"shift.sale.total":14465.15,"shift.sale.total_cash":10037.00,"shift.sale_refund.total":1100.00,"shift.sale_refund.total_cash":1100.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [18:17:21]process_action_free get_value [18:17:21]json_value_free [18:17:21]json_value_free done [18:17:21]process_json_proto returns [18:17:21]Send response to host [18:17:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":12437963.51,"fm.sale_refund.total":866597.10,"fm.buy.total":0.00,"shift.sale.total":14465.15,"shift.sale.total_cash":10037.00,"shift.sale_refund.total":1100.00,"shift.sale_refund.total_cash":1100.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [18:17:21]free response buf [18:17:21]execute_script done [18:17:21]execute_script returns [18:17:21]free content buf [18:17:21]Sock 9.Close socket [18:17:21]Sock 9.Thread stoped [18:17:22]accept exits with 7 [18:17:22]New connection [18:17:22]New thread 3067014500 created [18:17:22]Thread 3067157860 joined [18:17:22]Waiting for new connection... [18:17:22] Sock 7.Parse request [18:17:22]Sock 7.Check first char [18:17:22]Sock 7.First char is OK [18:17:22]request: POST /json_proto HTTP/1.0 [18:17:22]Method: POST [18:17:22]URL: /json_proto [18:17:22]Method is POST - this is cgi request [18:17:22]url: /json_proto [18:17:22]query_string will be loaded in cgi processing [18:17:22]execute_cgi json_proto POST (null) [18:17:22]execute_cgi path=json_proto method=POST [18:17:22]POST find Content-Length [18:17:22]Host: 172.17.48.198:8080 [18:17:22]Content-Length: 144 [18:17:22]Content-Type: application/json [18:17:22] [18:17:22]POST finish read [18:17:22]Found Content-Length = 144 [18:17:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [18:17:22]execute_script... [18:17:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [18:17:22]POST & json_proto [18:17:22]process_json_proto [18:17:22]json parsed OK: [18:17:22]protocol is kg_v1.0 [18:17:22]action value=print_doc [18:17:22]process_action print_doc [18:17:22]ExternCall_PrintAddStr [18:17:22]wPrintStart [18:17:22]Write to MH i2c: 01 00 00 0B 53 5E [18:17:22]Write i2c OK [18:17:22]MH_I2C_Read... [18:17:22]Read from MH i2c: 01 [18:17:22]MH_I2C_Read... [18:17:22]Read from MH i2c: 01 07 00 [18:17:22]MH_I2C_Read... [18:17:22]Read from MH i2c: 01 07 00 0B 53 00 00 00 00 00 FF 0F 73 [18:17:22]RasterBufferAndPrint [18:17:22]line Счет N : (1)1106260 [18:17:22]line ИНН: 02508201610067 [18:17:22]line Контрольно-Кассовый Чек [18:17:22]line ПРОДАЖА [18:17:22]line ТРК (МРК, ГНК) : 11 [18:17:22]line Товар: 2710124130 [18:17:22]line Аи-92-К-5 [18:17:22]line 8.080 * 61.90 [18:17:22]line = 500.15 [18:17:22]line НДС 12% НСП 1% [18:17:22]line > о реализуемом товаре [18:17:22]line ИТОГО: 500.15 [18:17:22]line НСП 1% : 4.43 [18:17:22]line НДС 12% : 53.11 [18:17:22]line Наличными: 0.00 [18:17:22]line Безнал.: 500.15 [18:17:22]line Место: АЗС № 25 "Партнер Нефть" [18:17:22]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [18:17:22]line СНО: Общий режим [18:17:22]line Чек 68 03.03.2024 18:16 [18:17:22]line Смена: 331 ФФД: 1.0 [18:17:22]line ЗНМ: 0300000013 [18:17:22]line РНМ: 0000000000090572 [18:17:22]line Версия ККМ: 001 [18:17:22]line Платежная система: Бакай Банк [18:17:22]line ФМ: 0000000000874796 [18:17:22]line ФД: 45231 [18:17:22]line ФПД: 248410403557390 [18:17:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T181606&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45231&fm=248410403557390&tin=02508201610067®Number=0000000000090572&sum=50015 [18:17:22]written 0, free lines is 4095 [18:17:22]Write to MH i2c: 01 00 00 35 53 88 [18:17:22]Write i2c OK [18:17:22]MH_I2C_Read... [18:17:22]Read from MH i2c: 01 [18:17:22]MH_I2C_Read... [18:17:22]Read from MH i2c: 01 07 00 [18:17:22]MH_I2C_Read... [18:17:22]Read from MH i2c: 01 07 00 35 53 00 00 00 00 00 EC 0C 87 [18:17:22]RasterBufferAndPrint [18:17:22]line [18:17:22]line [18:17:22]line [18:17:22]line [18:17:22]line [18:17:22]written 0, free lines is 3319 [18:17:22]MH_Cut [18:17:22]Write to MH i2c: D1 01 00 3C 53 01 61 [18:17:22]Write i2c OK [18:17:22]MH_I2C_Read... [18:17:22]Read from MH i2c: D1 [18:17:22]MH_I2C_Read... [18:17:22]Read from MH i2c: D1 01 00 [18:17:22]MH_I2C_Read... [18:17:22]Read from MH i2c: D1 01 00 3C 53 00 60 [18:17:22]Write to MH i2c: 01 00 00 3D 53 90 [18:17:22]Write i2c OK [18:17:22]MH_I2C_Read... [18:17:23]*** Cut start [18:17:23]*** Purtial cut [18:17:23]*** Stage 1: CUTSNS_PIN = 1 [18:17:25]Read from MH i2c: 01 [18:17:25]MH_I2C_Read... [18:17:25]*** Stop cut motor [18:17:25]*** Cut end [18:17:25]Read from MH i2c: 01 07 00 [18:17:25]MH_I2C_Read... [18:17:25]Read from MH i2c: 01 07 00 3D 53 00 00 00 00 00 FF 0F A5 [18:17:25]process_action print_doc done [18:17:25]requested_data is exist [18:17:25]produce_requested_data [18:17:25]produce_requested_data return (null) [18:17:25]process_action_free print_doc [18:17:25]json_value_free [18:17:25]json_value_free done [18:17:25]process_json_proto returns [18:17:25]Send response to host [18:17:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [18:17:25]free response buf [18:17:25]execute_script done [18:17:25]execute_script returns [18:17:25]free content buf [18:17:25]Sock 7.Close socket [18:17:25]Sock 7.Thread stoped [18:17:26]OFD Sender: No OFD packet to send [18:17:31]OFD Sender: No OFD packet to send [18:17:36]OFD Sender: No OFD packet to send [18:17:41]OFD Sender: No OFD packet to send [18:17:46]OFD Sender: No OFD packet to send [18:17:51]OFD Sender: No OFD packet to send [18:17:56]OFD Sender: No OFD packet to send [18:18:01]OFD Sender: No OFD packet to send [18:18:06]OFD Sender: No OFD packet to send [18:18:11]OFD Sender: No OFD packet to send [18:18:16]OFD Sender: No OFD packet to send [18:18:21]OFD Sender: No OFD packet to send [18:18:26]OFD Sender: No OFD packet to send [18:18:31]OFD Sender: No OFD packet to send [18:18:32]accept exits with 9 [18:18:32]New connection [18:18:32]New thread 3067157860 created [18:18:32]Thread 3067014500 joined [18:18:32]Waiting for new connection... [18:18:32] Sock 9.Parse request [18:18:32]Sock 9.Check first char [18:18:32]Sock 9.First char is OK [18:18:32]request: POST /json_proto HTTP/1.0 [18:18:32]Method: POST [18:18:32]URL: /json_proto [18:18:32]Method is POST - this is cgi request [18:18:32]url: /json_proto [18:18:32]query_string will be loaded in cgi processing [18:18:32]execute_cgi json_proto POST (null) [18:18:32]execute_cgi path=json_proto method=POST [18:18:32]POST find Content-Length [18:18:32]Host: 172.17.48.198:8080 [18:18:32]Content-Length: 809 [18:18:32]Content-Type: application/json [18:18:32] [18:18:32]POST finish read [18:18:32]Found Content-Length = 809 [18:18:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106262", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 14.390, "sum" : 1000.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:18:32]execute_script... [18:18:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106262", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 14.390, "sum" : 1000.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:18:32]POST & json_proto [18:18:32]process_json_proto [18:18:32]json parsed OK: [18:18:32]protocol is kg_v1.0 [18:18:32]action value=close_receipt [18:18:32]process_action close_receipt [18:18:32]cmd_close_receipt [18:18:32]MH_GetDate [18:18:32]Write to MH i2c: F0 00 00 3E 53 80 [18:18:32]Write i2c OK [18:18:32]MH_I2C_Read... [18:18:32]Read from MH i2c: F0 [18:18:32]MH_I2C_Read... [18:18:32]Read from MH i2c: F0 09 00 [18:18:32]MH_I2C_Read... [18:18:32]Read from MH i2c: F0 09 00 3E 53 00 05 BF E4 65 CE C4 D4 65 61 [18:18:32]GetLastDocTimeStamp 1709489766 [18:18:32]current date 1709489925 [18:18:32]FM_GetShiftState [18:18:32]SAM_PROTO_GetShiftState [18:18:32]wFMCommunicate request_size=4 [18:18:32]MH_SAM_APDU [18:18:32]CAPDU: 80 13 01 00 [18:18:32]Write to MH i2c: E2 08 00 3F 53 80 13 01 00 00 00 00 00 0F [18:18:32]Write i2c OK [18:18:32]MH_I2C_Read... [18:18:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:18:32]Read from MH i2c: E2 [18:18:32]MH_I2C_Read... [18:18:32]Read from MH i2c: E2 0E 00 [18:18:32]MH_I2C_Read... [18:18:32]Read from MH i2c: E2 0E 00 3F 53 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 45 [18:18:32]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [18:18:32]wFMCommunicate OK [18:18:32]SAM_PROTO_GetShiftState done [18:18:32]FM_GetShiftState done [18:18:32]opened in 1709425694 [18:18:32]opened+sec_in_day 1709512094 [18:18:32]quantity*price = 100010 [18:18:32]sum+1 = 100012 [18:18:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.11 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.11 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 69 03.03.2024 18:18 Смена: 331 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874796 ФД: 45232 ФПД: 183147764569553 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T181845&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45232&fm=183147764569553&tin=02508201610067®Number=0000000000090572&sum=100011 [18:18:34]StoreToDocumentArchive [18:18:34]shift 331 fd 45232 [18:18:34]save to /storage/0331/doc_00045232 [18:18:34]save last doc name /storage/0331/doc_00045232 to /storage/kkm_last_doc_name [18:18:34]save OK [18:18:34]Clear old archive folders... [18:18:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:18:34]tlvbuf is 01B6B910 [18:18:34]SAM_PROTO_ClearQueue [18:18:34]wFMCommunicate request_size=4 [18:18:34]MH_SAM_APDU [18:18:34]CAPDU: 80 09 00 00 [18:18:34]Write to MH i2c: E2 08 00 4C 53 80 09 00 00 00 00 00 00 11 [18:18:34]Write i2c OK [18:18:34]MH_I2C_Read... [18:18:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:18:34]Read from MH i2c: E2 [18:18:34]MH_I2C_Read... [18:18:34]Read from MH i2c: E2 03 00 [18:18:34]MH_I2C_Read... [18:18:34]Read from MH i2c: E2 03 00 4C 53 00 90 00 13 [18:18:34]RAPDU: 90 00 [18:18:34]wFMCommunicate OK [18:18:34]SAM_PROTO_ClearQueue done [18:18:34]KKMCreateOFDPacket [18:18:34]OFDProtocolAddRootSTLVToBuf [18:18:34]FM_MakeSignedData [18:18:34]FM_MakeSignedData [18:18:34]SAM_PROTO_SignData [18:18:34]wFMCommunicate request_size=4 [18:18:34]MH_SAM_APDU [18:18:34]CAPDU: 80 0D 01 02 [18:18:34]Write to MH i2c: E2 08 00 4D 53 80 0D 01 02 00 00 00 00 19 [18:18:34]Write i2c OK [18:18:34]MH_I2C_Read... [18:18:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:18:34]Read from MH i2c: E2 [18:18:34]MH_I2C_Read... [18:18:34]Read from MH i2c: E2 03 00 [18:18:34]MH_I2C_Read... [18:18:34]Read from MH i2c: E2 03 00 4D 53 00 90 00 14 [18:18:34]RAPDU: 90 00 [18:18:34]wFMCommunicate OK [18:18:34]wFMCommunicate request_size=255 [18:18:34]MH_SAM_APDU [18:18:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 05 BF E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 B0 B0 00 00 35 04 06 00 A6 [18:18:34]Write to MH i2c: E2 02 01 4E 53 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 05 BF E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 B0 B0 00 00 35 04 06 00 A6 00 00 35 [18:18:34]Write i2c OK [18:18:34]MH_I2C_Read... [18:18:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:18:34]Read from MH i2c: E2 [18:18:34]MH_I2C_Read... [18:18:34]Read from MH i2c: E2 03 00 [18:18:34]MH_I2C_Read... [18:18:34]Read from MH i2c: E2 03 00 4E 53 00 90 00 15 [18:18:34]RAPDU: 90 00 [18:18:34]wFMCommunicate OK [18:18:34]wFMCommunicate request_size=10 [18:18:34]MH_SAM_APDU [18:18:34]CAPDU: 80 0D 02 02 05 92 69 72 D5 D1 [18:18:34]Write to MH i2c: E2 0D 00 4F 53 80 0D 02 02 05 00 92 69 72 D5 D1 00 00 39 [18:18:34]Write i2c OK [18:18:34]MH_I2C_Read... [18:18:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:18:34]Read from MH i2c: E2 [18:18:34]MH_I2C_Read... [18:18:34]Read from MH i2c: E2 03 00 [18:18:34]MH_I2C_Read... [18:18:34]Read from MH i2c: E2 03 00 4F 53 00 90 00 16 [18:18:34]RAPDU: 90 00 [18:18:34]wFMCommunicate OK [18:18:34]wFMCommunicate request_size=4 [18:18:34]MH_SAM_APDU [18:18:34]CAPDU: 80 0D 03 02 [18:18:34]Write to MH i2c: E2 08 00 50 53 80 0D 03 02 00 00 00 00 1E [18:18:34]Write i2c OK [18:18:34]MH_I2C_Read... [18:18:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:18:34]Read from MH i2c: E2 [18:18:34]MH_I2C_Read... [18:18:34]Read from MH i2c: E2 0B 00 [18:18:34]MH_I2C_Read... [18:18:34]Read from MH i2c: E2 0B 00 50 53 00 5D B5 D9 93 FC 77 1A 93 90 00 BD [18:18:34]RAPDU: 5D B5 D9 93 FC 77 1A 93 90 00 [18:18:34]wFMCommunicate OK [18:18:34]SAM_PROTO_SignData done [18:18:34]FM_MakeSignedData done [18:18:34]CreateOFDProtocolMessage [18:18:34]wFMCommunicate request_size=4 [18:18:34]MH_SAM_APDU [18:18:34]CAPDU: 80 11 00 00 [18:18:34]Write to MH i2c: E2 08 00 51 53 80 11 00 00 00 00 00 00 1E [18:18:34]Write i2c OK [18:18:34]MH_I2C_Read... [18:18:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:18:34]Read from MH i2c: E2 [18:18:34]MH_I2C_Read... [18:18:34]Read from MH i2c: E2 17 00 [18:18:34]MH_I2C_Read... [18:18:34]Read from MH i2c: E2 17 00 51 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 7A [18:18:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [18:18:34]wFMCommunicate OK [18:18:34]CreateOFDProtocolMessage done [18:18:34]OFDSenderStorePacket 45232 [18:18:34]StoreOFDPacket docnum=45232 [18:18:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0F 01 00 00 49 01 07 01 12 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 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 05 BF E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 B0 B0 00 00 35 04 06 00 A6 92 69 72 D5 D1 5D B5 D9 93 FC 77 1A 93 [18:18:34]CheckFolder [18:18:34]dirname=/storage/ofd_packets [18:18:34]CheckFolder done [18:18:34]ProducePacketName [18:18:34]name=ofd_packets/00045232 [18:18:34]NVStorageSaveData ofd_packets/00045232 [18:18:34]File name is /storage/ofd_packets/00045232 [18:18:34]Write 301 bytes [18:18:34]NVStorageSaveData done [18:18:34]OFDSenderStorePacket done [18:18:34]KKMCreateOFDPacket done [18:18:34]NVStorageSaveData kkm_last_timestamp [18:18:34]File name is /storage/kkm_last_timestamp [18:18:34]Write 4 bytes [18:18:34]NVStorageSaveData done [18:18:34]ExternCall_PrintAddStr [18:18:34]wPrintStart [18:18:34]Write to MH i2c: 01 00 00 52 53 A5 [18:18:34]Write i2c OK [18:18:34]MH_I2C_Read... [18:18:34]Read from MH i2c: 01 [18:18:34]MH_I2C_Read... [18:18:34]Read from MH i2c: 01 07 00 [18:18:34]MH_I2C_Read... [18:18:34]Read from MH i2c: 01 07 00 52 53 00 00 00 00 00 FF 0F BA [18:18:34]RasterBufferAndPrint [18:18:34]line Счет N : (1)1106262 [18:18:34]line ИНН: 02508201610067 [18:18:34]line Контрольно-Кассовый Чек [18:18:34]line ПРОДАЖА [18:18:34]line ТРК (МРК, ГНК) : 13 [18:18:34]line Товар: 2710124500 [18:18:34]line Аи-95-К-5 [18:18:34]line 14.390 * 69.50 [18:18:34]line = 1000.11 [18:18:34]line НДС 12% НСП 1% [18:18:34]line > о реализуемом товаре [18:18:34]line ИТОГО: 1000.11 [18:18:34]line НСП 1% : 8.85 [18:18:34]line НДС 12% : 106.21 [18:18:34]line Наличными: 0.00 [18:18:34]line Безнал.: 1000.11 [18:18:34]line Место: АЗС № 25 "Партнер Нефть" [18:18:34]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [18:18:34]line СНО: Общий режим [18:18:34]line Чек 69 03.03.2024 18:18 [18:18:34]line Смена: 331 ФФД: 1.0 [18:18:34]line ЗНМ: 0300000013 [18:18:34]line РНМ: 0000000000090572 [18:18:34]line Версия ККМ: 001 [18:18:34]line Платежная система: О! деньги [18:18:34]line ФМ: 0000000000874796 [18:18:34]line ФД: 45232 [18:18:34]line ФПД: 183147764569553 [18:18:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T181845&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45232&fm=183147764569553&tin=02508201610067®Number=0000000000090572&sum=100011 [18:18:34]OFD Sender: Processing packet 45232 [packets to send 17, broken 16] [18:18:34]ProducePacketName [18:18:34]name=ofd_packets/00045232 [18:18:34]OFD Sender: To server: pG, [18:18:34]CommunicateWithHost lk.salyk.kg:30040 [18:18:34]ConnectInit lk.salyk.kg [18:18:34]written 0, free lines is 4095 [18:18:35]Connected sock=11 [18:18:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0F 01 00 00 49 01 07 01 12 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 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 05 BF E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 B0 B0 00 00 35 04 06 00 A6 92 69 72 D5 D1 5D B5 D9 93 FC 77 1A 93 [18:18:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 61 F1 47 00 50 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 34 37 39 36 10 04 04 00 B0 B0 00 00 F4 03 04 00 C9 6A E4 65 B6 04 01 00 00 21 96 77 2C 3B A9 AA 65 [18:18:35]CommunicateWithHost err = 0 [18:18:35]CheckOFDResponse [18:18:35]1017 (14) - 77093643461234 [18:18:35]1041 (16) - 0000000000874796 [18:18:35]1040 (4) - 45232 [18:18:35]1012 (4) - 03.03.2024 12:19 [18:18:35]1206 (1) - 0 [18:18:35]OFD Sender: Remove packet 45232 [18:18:35]ProducePacketName [18:18:35]name=ofd_packets/00045232 [18:18:35]NVStorageDeleteData [18:18:35]Write to MH i2c: 01 00 00 7C 53 CF [18:18:35]Write i2c OK [18:18:35]MH_I2C_Read... [18:18:35]Read from MH i2c: 01 [18:18:35]MH_I2C_Read... [18:18:35]Read from MH i2c: 01 07 00 [18:18:35]MH_I2C_Read... [18:18:35]Read from MH i2c: 01 07 00 7C 53 00 00 00 00 00 F7 0C D9 [18:18:35]RasterBufferAndPrint [18:18:35]line [18:18:35]line [18:18:35]line [18:18:35]line [18:18:35]line [18:18:35]written 0, free lines is 3326 [18:18:35]MH_Cut [18:18:35]Write to MH i2c: D1 01 00 83 53 01 A8 [18:18:35]Write i2c OK [18:18:35]MH_I2C_Read... [18:18:35]Read from MH i2c: D1 [18:18:35]MH_I2C_Read... [18:18:35]Read from MH i2c: D1 01 00 [18:18:35]MH_I2C_Read... [18:18:35]Read from MH i2c: D1 01 00 83 53 00 A7 [18:18:35]Write to MH i2c: 01 00 00 84 53 D7 [18:18:35]Write i2c OK [18:18:35]MH_I2C_Read... [18:18:35]OFD Sender: No OFD packet to send [18:18:36]*** Cut start [18:18:36]*** Purtial cut [18:18:36]*** Stage 1: CUTSNS_PIN = 1 [18:18:38]Read from MH i2c: 01 [18:18:38]MH_I2C_Read... [18:18:38]*** Stop cut motor [18:18:38]*** Cut end [18:18:38]Read from MH i2c: 01 07 00 [18:18:38]MH_I2C_Read... [18:18:38]Read from MH i2c: 01 07 00 84 53 00 00 00 00 00 FF 0F EC [18:18:38]process_action close_receipt done [18:18:38]requested_data is exist [18:18:38]produce_requested_data [18:18:38]requested_item fm.sn is exist - process it [18:18:38]wFMCommunicate request_size=4 [18:18:38]MH_SAM_APDU [18:18:38]CAPDU: 80 11 00 00 [18:18:38]Write to MH i2c: E2 08 00 85 53 80 11 00 00 00 00 00 00 52 [18:18:38]Write i2c OK [18:18:38]MH_I2C_Read... [18:18:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:18:38]Read from MH i2c: E2 [18:18:38]MH_I2C_Read... [18:18:38]Read from MH i2c: E2 17 00 [18:18:38]MH_I2C_Read... [18:18:38]Read from MH i2c: E2 17 00 85 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 AE [18:18:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [18:18:38]wFMCommunicate OK [18:18:38]requested_item fd.num is exist - process it [18:18:38]SAM_PROTO_GetFieldsCounters [18:18:38]wFMCommunicate request_size=4 [18:18:38]MH_SAM_APDU [18:18:38]CAPDU: 80 13 00 00 [18:18:38]Write to MH i2c: E2 08 00 86 53 80 13 00 00 00 00 00 00 55 [18:18:38]Write i2c OK [18:18:38]MH_I2C_Read... [18:18:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:18:38]Read from MH i2c: E2 [18:18:38]MH_I2C_Read... [18:18:38]Read from MH i2c: E2 62 00 [18:18:38]MH_I2C_Read... [18:18:38]Read from MH i2c: E2 62 00 86 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 B0 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 F8 [18:18:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 B0 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:18:38]wFMCommunicate OK [18:18:38]SAM_PROTO_GetFieldsCounters done [18:18:38]requested_item shift.num is exist - process it [18:18:38]requested_item shift.opened is exist - process it [18:18:38]req_shift_opened [18:18:38]FM_GetShiftState [18:18:38]SAM_PROTO_GetShiftState [18:18:38]wFMCommunicate request_size=4 [18:18:38]MH_SAM_APDU [18:18:38]CAPDU: 80 13 01 00 [18:18:38]Write to MH i2c: E2 08 00 87 53 80 13 01 00 00 00 00 00 57 [18:18:38]Write i2c OK [18:18:38]MH_I2C_Read... [18:18:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:18:38]Read from MH i2c: E2 [18:18:38]MH_I2C_Read... [18:18:38]Read from MH i2c: E2 0E 00 [18:18:38]MH_I2C_Read... [18:18:38]Read from MH i2c: E2 0E 00 87 53 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 8D [18:18:38]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [18:18:38]wFMCommunicate OK [18:18:38]SAM_PROTO_GetShiftState done [18:18:38]FM_GetShiftState done [18:18:38]req_shift_opened done [18:18:38]requested_item shift.open_date is exist - process it [18:18:38]req_shift_open_date [18:18:38]req_shift_open_date done [18:18:38]produce_requested_data done [18:18:38]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45232,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [18:18:38]process_action_free close_receipt [18:18:38]json_value_free [18:18:38]json_value_free done [18:18:38]process_json_proto returns [18:18:38]Send response to host [18:18:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45232,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [18:18:38]free response buf [18:18:38]execute_script done [18:18:38]execute_script returns [18:18:38]free content buf [18:18:38]Sock 9.Close socket [18:18:38]Sock 9.Thread stoped [18:18:40]OFD Sender: No OFD packet to send [18:18:45]OFD Sender: No OFD packet to send [18:18:50]OFD Sender: No OFD packet to send [18:18:55]OFD Sender: No OFD packet to send [18:19:00]OFD Sender: No OFD packet to send [18:19:05]OFD Sender: No OFD packet to send [18:19:10]OFD Sender: No OFD packet to send [18:19:15]OFD Sender: No OFD packet to send [18:19:20]OFD Sender: No OFD packet to send [18:19:25]OFD Sender: No OFD packet to send [18:19:30]OFD Sender: No OFD packet to send [18:19:35]OFD Sender: No OFD packet to send [18:19:40]OFD Sender: No OFD packet to send [18:19:45]OFD Sender: No OFD packet to send [18:19:50]OFD Sender: No OFD packet to send [18:19:55]OFD Sender: No OFD packet to send [18:20:00]OFD Sender: No OFD packet to send [18:20:05]OFD Sender: No OFD packet to send [18:20:10]OFD Sender: No OFD packet to send [18:20:15]OFD Sender: No OFD packet to send [18:20:20]OFD Sender: No OFD packet to send [18:20:25]OFD Sender: No OFD packet to send [18:20:30]OFD Sender: No OFD packet to send [18:20:35]OFD Sender: No OFD packet to send [18:20:40]OFD Sender: No OFD packet to send [18:20:45]OFD Sender: No OFD packet to send [18:20:50]OFD Sender: No OFD packet to send [18:20:55]OFD Sender: No OFD packet to send [18:21:00]OFD Sender: No OFD packet to send [18:21:05]OFD Sender: No OFD packet to send [18:21:10]OFD Sender: No OFD packet to send [18:21:15]OFD Sender: No OFD packet to send [18:21:20]OFD Sender: No OFD packet to send [18:21:25]OFD Sender: No OFD packet to send [18:21:30]OFD Sender: No OFD packet to send [18:21:35]OFD Sender: No OFD packet to send [18:21:40]OFD Sender: No OFD packet to send [18:21:45]OFD Sender: No OFD packet to send [18:21:50]OFD Sender: No OFD packet to send [18:21:55]OFD Sender: No OFD packet to send [18:22:00]OFD Sender: No OFD packet to send [18:22:05]OFD Sender: No OFD packet to send [18:22:10]OFD Sender: No OFD packet to send [18:22:15]OFD Sender: No OFD packet to send [18:22:20]OFD Sender: No OFD packet to send [18:22:25]OFD Sender: No OFD packet to send [18:22:30]OFD Sender: No OFD packet to send [18:22:35]OFD Sender: No OFD packet to send [18:22:40]OFD Sender: No OFD packet to send [18:22:45]OFD Sender: No OFD packet to send [18:22:50]OFD Sender: No OFD packet to send [18:22:55]OFD Sender: No OFD packet to send [18:23:00]OFD Sender: No OFD packet to send [18:23:05]OFD Sender: No OFD packet to send [18:23:10]OFD Sender: No OFD packet to send [18:23:15]OFD Sender: No OFD packet to send [18:23:20]OFD Sender: No OFD packet to send [18:23:25]OFD Sender: No OFD packet to send [18:23:30]OFD Sender: No OFD packet to send [18:23:35]OFD Sender: No OFD packet to send [18:23:40]OFD Sender: No OFD packet to send [18:23:45]OFD Sender: No OFD packet to send [18:23:50]OFD Sender: No OFD packet to send [18:23:55]OFD Sender: No OFD packet to send [18:24:00]OFD Sender: No OFD packet to send [18:24:05]OFD Sender: No OFD packet to send [18:24:10]OFD Sender: No OFD packet to send [18:24:16]OFD Sender: No OFD packet to send [18:24:21]OFD Sender: No OFD packet to send [18:24:26]OFD Sender: No OFD packet to send [18:24:31]OFD Sender: No OFD packet to send [18:24:36]OFD Sender: No OFD packet to send [18:24:41]OFD Sender: No OFD packet to send [18:24:46]OFD Sender: No OFD packet to send [18:24:51]OFD Sender: No OFD packet to send [18:24:56]OFD Sender: No OFD packet to send [18:25:01]OFD Sender: No OFD packet to send [18:25:06]OFD Sender: No OFD packet to send [18:25:11]OFD Sender: No OFD packet to send [18:25:16]OFD Sender: No OFD packet to send [18:25:21]OFD Sender: No OFD packet to send [18:25:26]OFD Sender: No OFD packet to send [18:25:31]OFD Sender: No OFD packet to send [18:25:36]OFD Sender: No OFD packet to send [18:25:41]OFD Sender: No OFD packet to send [18:25:46]OFD Sender: No OFD packet to send [18:25:51]OFD Sender: No OFD packet to send [18:25:56]OFD Sender: No OFD packet to send [18:26:01]OFD Sender: No OFD packet to send [18:26:06]OFD Sender: No OFD packet to send [18:26:11]OFD Sender: No OFD packet to send [18:26:16]OFD Sender: No OFD packet to send [18:26:21]OFD Sender: No OFD packet to send [18:26:26]OFD Sender: No OFD packet to send [18:26:31]OFD Sender: No OFD packet to send [18:26:36]OFD Sender: No OFD packet to send [18:26:41]OFD Sender: No OFD packet to send [18:26:46]OFD Sender: No OFD packet to send [18:26:51]OFD Sender: No OFD packet to send [18:26:56]OFD Sender: No OFD packet to send [18:27:01]OFD Sender: No OFD packet to send [18:27:06]OFD Sender: No OFD packet to send [18:27:11]OFD Sender: No OFD packet to send [18:27:16]OFD Sender: No OFD packet to send [18:27:21]OFD Sender: No OFD packet to send [18:27:26]OFD Sender: No OFD packet to send [18:27:31]OFD Sender: No OFD packet to send [18:27:36]OFD Sender: No OFD packet to send [18:27:41]OFD Sender: No OFD packet to send [18:27:46]OFD Sender: No OFD packet to send [18:27:51]OFD Sender: No OFD packet to send [18:27:56]OFD Sender: No OFD packet to send [18:28:01]OFD Sender: No OFD packet to send [18:28:06]OFD Sender: No OFD packet to send [18:28:11]OFD Sender: No OFD packet to send [18:28:16]OFD Sender: No OFD packet to send [18:28:21]OFD Sender: No OFD packet to send [18:28:26]OFD Sender: No OFD packet to send [18:28:31]OFD Sender: No OFD packet to send [18:28:36]OFD Sender: No OFD packet to send [18:28:41]OFD Sender: No OFD packet to send [18:28:46]OFD Sender: No OFD packet to send [18:28:51]OFD Sender: No OFD packet to send [18:28:56]OFD Sender: No OFD packet to send [18:29:01]OFD Sender: No OFD packet to send [18:29:06]OFD Sender: No OFD packet to send [18:29:11]OFD Sender: No OFD packet to send [18:29:16]OFD Sender: No OFD packet to send [18:29:21]OFD Sender: No OFD packet to send [18:29:26]OFD Sender: No OFD packet to send [18:29:31]OFD Sender: No OFD packet to send [18:29:36]OFD Sender: No OFD packet to send [18:29:41]OFD Sender: No OFD packet to send [18:29:46]OFD Sender: No OFD packet to send [18:29:51]OFD Sender: No OFD packet to send [18:29:56]OFD Sender: No OFD packet to send [18:30:01]OFD Sender: No OFD packet to send [18:30:06]OFD Sender: No OFD packet to send [18:30:11]OFD Sender: No OFD packet to send [18:30:16]OFD Sender: No OFD packet to send [18:30:21]OFD Sender: No OFD packet to send [18:30:26]OFD Sender: No OFD packet to send [18:30:31]OFD Sender: No OFD packet to send [18:30:36]OFD Sender: No OFD packet to send [18:30:41]OFD Sender: No OFD packet to send [18:30:46]OFD Sender: No OFD packet to send [18:30:51]OFD Sender: No OFD packet to send [18:30:56]OFD Sender: No OFD packet to send [18:31:01]OFD Sender: No OFD packet to send [18:31:06]OFD Sender: No OFD packet to send [18:31:11]OFD Sender: No OFD packet to send [18:31:16]OFD Sender: No OFD packet to send [18:31:21]OFD Sender: No OFD packet to send [18:31:26]OFD Sender: No OFD packet to send [18:31:31]OFD Sender: No OFD packet to send [18:31:36]OFD Sender: No OFD packet to send [18:31:41]OFD Sender: No OFD packet to send [18:31:46]OFD Sender: No OFD packet to send [18:31:51]OFD Sender: No OFD packet to send [18:31:56]OFD Sender: No OFD packet to send [18:32:01]OFD Sender: No OFD packet to send [18:32:06]OFD Sender: No OFD packet to send [18:32:11]OFD Sender: No OFD packet to send [18:32:16]OFD Sender: No OFD packet to send [18:32:21]OFD Sender: No OFD packet to send [18:32:26]OFD Sender: No OFD packet to send [18:32:31]OFD Sender: No OFD packet to send [18:32:36]OFD Sender: No OFD packet to send [18:32:41]OFD Sender: No OFD packet to send [18:32:46]OFD Sender: No OFD packet to send [18:32:51]OFD Sender: No OFD packet to send [18:32:56]OFD Sender: No OFD packet to send [18:33:01]OFD Sender: No OFD packet to send [18:33:06]OFD Sender: No OFD packet to send [18:33:11]OFD Sender: No OFD packet to send [18:33:16]OFD Sender: No OFD packet to send [18:33:21]OFD Sender: No OFD packet to send [18:33:26]OFD Sender: No OFD packet to send [18:33:31]OFD Sender: No OFD packet to send [18:33:36]OFD Sender: No OFD packet to send [18:33:41]OFD Sender: No OFD packet to send [18:33:46]OFD Sender: No OFD packet to send [18:33:51]OFD Sender: No OFD packet to send [18:33:56]OFD Sender: No OFD packet to send [18:34:01]OFD Sender: No OFD packet to send [18:34:06]OFD Sender: No OFD packet to send [18:34:11]OFD Sender: No OFD packet to send [18:34:16]OFD Sender: No OFD packet to send [18:34:21]OFD Sender: No OFD packet to send [18:34:26]OFD Sender: No OFD packet to send [18:34:31]OFD Sender: No OFD packet to send [18:34:36]OFD Sender: No OFD packet to send [18:34:41]OFD Sender: No OFD packet to send [18:34:46]OFD Sender: No OFD packet to send [18:34:51]OFD Sender: No OFD packet to send [18:34:56]OFD Sender: No OFD packet to send [18:35:01]OFD Sender: No OFD packet to send [18:35:04]accept exits with 7 [18:35:04]New connection [18:35:04]New thread 3067014500 created [18:35:04]Thread 3067157860 joined [18:35:04]Waiting for new connection... [18:35:04] Sock 7.Parse request [18:35:04]Sock 7.Check first char [18:35:04]Sock 7.First char is OK [18:35:04]request: POST /json_proto HTTP/1.0 [18:35:04]Method: POST [18:35:04]URL: /json_proto [18:35:04]Method is POST - this is cgi request [18:35:04]url: /json_proto [18:35:04]query_string will be loaded in cgi processing [18:35:04]execute_cgi json_proto POST (null) [18:35:04]execute_cgi path=json_proto method=POST [18:35:04]POST find Content-Length [18:35:04]Host: 172.17.48.198:8080 [18:35:04]Content-Length: 637 [18:35:04]Content-Type: application/json [18:35:04] [18:35:04]POST finish read [18:35:04]Found Content-Length = 637 [18:35:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184194", "tax_sys" : 0, "items" : [ { "code": "4700003610546", "name": "\u0412\u043E\u0434\u0430 \u0421orona Ice \u043D\u0435\u0433\u0430\u0437 6\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:35:04]execute_script... [18:35:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184194", "tax_sys" : 0, "items" : [ { "code": "4700003610546", "name": "\u0412\u043E\u0434\u0430 \u0421orona Ice \u043D\u0435\u0433\u0430\u0437 6\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:35:04]POST & json_proto [18:35:04]process_json_proto [18:35:04]json parsed OK: [18:35:04]protocol is kg_v1.0 [18:35:04]action value=close_receipt [18:35:04]process_action close_receipt [18:35:04]cmd_close_receipt [18:35:04]MH_GetDate [18:35:04]Write to MH i2c: F0 00 00 88 53 CA [18:35:04]Write i2c OK [18:35:04]MH_I2C_Read... [18:35:04]Read from MH i2c: F0 [18:35:04]MH_I2C_Read... [18:35:04]Read from MH i2c: F0 09 00 [18:35:04]MH_I2C_Read... [18:35:04]Read from MH i2c: F0 09 00 88 53 00 E5 C2 E4 65 CE C4 D4 65 8E [18:35:04]GetLastDocTimeStamp 1709489925 [18:35:04]current date 1709490917 [18:35:04]FM_GetShiftState [18:35:04]SAM_PROTO_GetShiftState [18:35:04]wFMCommunicate request_size=4 [18:35:04]MH_SAM_APDU [18:35:04]CAPDU: 80 13 01 00 [18:35:04]Write to MH i2c: E2 08 00 89 53 80 13 01 00 00 00 00 00 59 [18:35:04]Write i2c OK [18:35:04]MH_I2C_Read... [18:35:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:35:04]Read from MH i2c: E2 [18:35:04]MH_I2C_Read... [18:35:04]Read from MH i2c: E2 0E 00 [18:35:04]MH_I2C_Read... [18:35:04]Read from MH i2c: E2 0E 00 89 53 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 8F [18:35:04]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [18:35:04]wFMCommunicate OK [18:35:04]SAM_PROTO_GetShiftState done [18:35:04]FM_GetShiftState done [18:35:04]opened in 1709425694 [18:35:04]opened+sec_in_day 1709512094 [18:35:04]quantity*price = 10000 [18:35:04]sum+1 = 10001 [18:35:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 100.00 НСП 1% : 0.88 НДС 12% : 10.62 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 70 03.03.2024 18:35 Смена: 331 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 ФМ: 0000000000874796 ФД: 45233 ФПД: 10006271079512 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T183517&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45233&fm=10006271079512&tin=02508201610067®Number=0000000000090572&sum=10000 0 [18:35:05]StoreToDocumentArchive [18:35:05]shift 331 fd 45233 [18:35:05]save to /storage/0331/doc_00045233 [18:35:05]save last doc name /storage/0331/doc_00045233 to /storage/kkm_last_doc_name [18:35:05]save OK [18:35:05]Clear old archive folders... [18:35:05]ProcessDocumentItem done err = 0, tmpTLVsize=277 [18:35:05]tlvbuf is 01C63990 [18:35:05]SAM_PROTO_ClearQueue [18:35:05]wFMCommunicate request_size=4 [18:35:05]MH_SAM_APDU [18:35:05]CAPDU: 80 09 00 00 [18:35:05]Write to MH i2c: E2 08 00 96 53 80 09 00 00 00 00 00 00 5B [18:35:05]Write i2c OK [18:35:05]MH_I2C_Read... [18:35:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:35:05]Read from MH i2c: E2 [18:35:05]MH_I2C_Read... [18:35:05]Read from MH i2c: E2 03 00 [18:35:05]MH_I2C_Read... [18:35:05]Read from MH i2c: E2 03 00 96 53 00 90 00 5D [18:35:05]RAPDU: 90 00 [18:35:05]wFMCommunicate OK [18:35:05]SAM_PROTO_ClearQueue done [18:35:05]KKMCreateOFDPacket [18:35:05]OFDProtocolAddRootSTLVToBuf [18:35:05]FM_MakeSignedData [18:35:05]FM_MakeSignedData [18:35:05]SAM_PROTO_SignData [18:35:05]wFMCommunicate request_size=4 [18:35:05]MH_SAM_APDU [18:35:05]CAPDU: 80 0D 01 02 [18:35:05]Write to MH i2c: E2 08 00 97 53 80 0D 01 02 00 00 00 00 63 [18:35:05]Write i2c OK [18:35:05]MH_I2C_Read... [18:35:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:35:05]Read from MH i2c: E2 [18:35:05]MH_I2C_Read... [18:35:05]Read from MH i2c: E2 03 00 [18:35:05]MH_I2C_Read... [18:35:05]Read from MH i2c: E2 03 00 97 53 00 90 00 5E [18:35:05]RAPDU: 90 00 [18:35:05]wFMCommunicate OK [18:35:05]wFMCommunicate request_size=255 [18:35:05]MH_SAM_APDU [18:35:05]CAPDU: 80 0D 02 02 FA 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 30 33 36 31 30 35 34 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 A1 6F 72 6F 6E 61 20 49 63 65 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 20 36 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 E5 C2 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 [18:35:05]Write to MH i2c: E2 02 01 98 53 80 0D 02 02 FA 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 30 33 36 31 30 35 34 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 A1 6F 72 6F 6E 61 20 49 63 65 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 20 36 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 E5 C2 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 00 00 36 [18:35:05]Write i2c OK [18:35:05]MH_I2C_Read... [18:35:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:35:06]Read from MH i2c: E2 [18:35:06]MH_I2C_Read... [18:35:06]Read from MH i2c: E2 03 00 [18:35:06]MH_I2C_Read... [18:35:06]Read from MH i2c: E2 03 00 98 53 00 90 00 5F [18:35:06]RAPDU: 90 00 [18:35:06]wFMCommunicate OK [18:35:06]wFMCommunicate request_size=36 [18:35:06]MH_SAM_APDU [18:35:06]CAPDU: 80 0D 02 02 1F 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 B1 B0 00 00 35 04 06 00 09 19 C4 3B B4 58 [18:35:06]Write to MH i2c: E2 27 00 99 53 80 0D 02 02 1F 00 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 B1 B0 00 00 35 04 06 00 09 19 C4 3B B4 58 00 00 22 [18:35:06]Write i2c OK [18:35:06]MH_I2C_Read... [18:35:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:35:06]Read from MH i2c: E2 [18:35:06]MH_I2C_Read... [18:35:06]Read from MH i2c: E2 03 00 [18:35:06]MH_I2C_Read... [18:35:06]Read from MH i2c: E2 03 00 99 53 00 90 00 60 [18:35:06]RAPDU: 90 00 [18:35:06]wFMCommunicate OK [18:35:06]wFMCommunicate request_size=4 [18:35:06]MH_SAM_APDU [18:35:06]CAPDU: 80 0D 03 02 [18:35:06]Write to MH i2c: E2 08 00 9A 53 80 0D 03 02 00 00 00 00 68 [18:35:06]Write i2c OK [18:35:06]MH_I2C_Read... [18:35:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:35:06]Read from MH i2c: E2 [18:35:06]MH_I2C_Read... [18:35:06]Read from MH i2c: E2 0B 00 [18:35:06]MH_I2C_Read... [18:35:06]Read from MH i2c: E2 0B 00 9A 53 00 1E 20 6E 8F F7 6B D9 CC 90 00 AB [18:35:06]RAPDU: 1E 20 6E 8F F7 6B D9 CC 90 00 [18:35:06]wFMCommunicate OK [18:35:06]SAM_PROTO_SignData done [18:35:06]FM_MakeSignedData done [18:35:06]CreateOFDProtocolMessage [18:35:06]wFMCommunicate request_size=4 [18:35:06]MH_SAM_APDU [18:35:06]CAPDU: 80 11 00 00 [18:35:06]Write to MH i2c: E2 08 00 9B 53 80 11 00 00 00 00 00 00 68 [18:35:06]Write i2c OK [18:35:06]MH_I2C_Read... [18:35:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:35:06]Read from MH i2c: E2 [18:35:06]MH_I2C_Read... [18:35:06]Read from MH i2c: E2 17 00 [18:35:06]MH_I2C_Read... [18:35:06]Read from MH i2c: E2 17 00 9B 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 C4 [18:35:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [18:35:06]wFMCommunicate OK [18:35:06]CreateOFDProtocolMessage done [18:35:06]OFDSenderStorePacket 45233 [18:35:06]StoreOFDPacket docnum=45233 [18:35:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 29 01 00 00 D6 90 21 01 DF 19 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 30 33 36 31 30 35 34 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 A1 6F 72 6F 6E 61 20 49 63 65 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 20 36 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 E5 C2 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 B1 B0 00 00 35 04 06 00 09 19 C4 3B B4 58 1E 20 6E 8F F7 6B D9 CC [18:35:06]CheckFolder [18:35:06]dirname=/storage/ofd_packets [18:35:06]CheckFolder done [18:35:06]ProducePacketName [18:35:06]name=ofd_packets/00045233 [18:35:06]NVStorageSaveData ofd_packets/00045233 [18:35:06]File name is /storage/ofd_packets/00045233 [18:35:06]Write 327 bytes [18:35:06]NVStorageSaveData done [18:35:06]OFDSenderStorePacket done [18:35:06]KKMCreateOFDPacket done [18:35:06]NVStorageSaveData kkm_last_timestamp [18:35:06]File name is /storage/kkm_last_timestamp [18:35:06]Write 4 bytes [18:35:06]NVStorageSaveData done [18:35:06]ExternCall_PrintAddStr [18:35:06]wPrintStart [18:35:06]Write to MH i2c: 01 00 00 9C 53 EF [18:35:06]Write i2c OK [18:35:06]MH_I2C_Read... [18:35:06]Read from MH i2c: 01 [18:35:06]MH_I2C_Read... [18:35:06]Read from MH i2c: 01 07 00 [18:35:06]MH_I2C_Read... [18:35:06]Read from MH i2c: 01 07 00 9C 53 00 00 00 00 00 FF 0F 04 [18:35:06]RasterBufferAndPrint [18:35:06]line Счет N : (3)184194 [18:35:06]line ИНН: 02508201610067 [18:35:06]line Контрольно-Кассовый Чек [18:35:06]line ПРОДАЖА [18:35:06]line Товар: 4700003610546 [18:35:06]line Вода Сorona Ice негаз 6л [18:35:06]line 1.000 * 100.00 [18:35:06]line = 100.00 [18:35:06]line НДС 12% НСП 1% [18:35:06]line > о реализуемом товаре [18:35:06]line ИТОГО: 100.00 [18:35:06]line НСП 1% : 0.88 [18:35:06]line НДС 12% : 10.62 [18:35:06]line Наличными: 100.00 [18:35:06]line Безнал.: 0.00 [18:35:06]line Место: АЗС № 25 "Партнер Нефть" [18:35:06]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [18:35:06]line СНО: Общий режим [18:35:06]line Чек 70 03.03.2024 18:35 [18:35:06]line Смена: 331 ФФД: 1.0 [18:35:06]line ЗНМ: 0300000013 [18:35:06]line РНМ: 0000000000090572 [18:35:06]line Версия ККМ: 001 [18:35:06]line ФМ: 0000000000874796 [18:35:06]line ФД: 45233 [18:35:06]line ФПД: 10006271079512 [18:35:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T183517&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45233&fm=10006271079512&tin=02508201610067®Number=0000000000090572&sum=10000 [18:35:06]line 0 [18:35:06]OFD Sender: Processing packet 45233 [packets to send 17, broken 16] [18:35:06]ProducePacketName [18:35:06]name=ofd_packets/00045233 [18:35:06]OFD Sender: To server: pG, [18:35:06]CommunicateWithHost lk.salyk.kg:30040 [18:35:06]ConnectInit lk.salyk.kg [18:35:06]written 0, free lines is 4095 [18:35:06]Connected sock=10 [18:35:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 29 01 00 00 D6 90 21 01 DF 19 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 30 33 36 31 30 35 34 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 A1 6F 72 6F 6E 61 20 49 63 65 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 20 36 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 E5 C2 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 B1 B0 00 00 35 04 06 00 09 19 C4 3B B4 58 1E 20 6E 8F F7 6B D9 CC [18:35:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 E5 AB 47 00 F7 70 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 B1 B0 00 00 F4 03 04 00 A9 6E E4 65 B6 04 01 00 00 86 18 07 0F 31 51 1F D3 [18:35:06]CommunicateWithHost err = 0 [18:35:06]CheckOFDResponse [18:35:06]1017 (14) - 77093643461234 [18:35:06]1041 (16) - 0000000000874796 [18:35:06]1040 (4) - 45233 [18:35:06]1012 (4) - 03.03.2024 12:35 [18:35:06]1206 (1) - 0 [18:35:06]OFD Sender: Remove packet 45233 [18:35:06]ProducePacketName [18:35:06]name=ofd_packets/00045233 [18:35:06]NVStorageDeleteData [18:35:07]Write to MH i2c: 01 00 00 C4 53 17 [18:35:07]Write i2c OK [18:35:07]MH_I2C_Read... [18:35:07]Read from MH i2c: 01 [18:35:07]MH_I2C_Read... [18:35:07]Read from MH i2c: 01 07 00 [18:35:07]MH_I2C_Read... [18:35:07]Read from MH i2c: 01 07 00 C4 53 00 00 00 00 00 0E 0D 39 [18:35:07]RasterBufferAndPrint [18:35:07]line [18:35:07]line [18:35:07]line [18:35:07]line [18:35:07]line [18:35:07]written 0, free lines is 3348 [18:35:07]MH_Cut [18:35:07]Write to MH i2c: D1 01 00 CB 53 01 F0 [18:35:07]Write i2c OK [18:35:07]MH_I2C_Read... [18:35:07]Read from MH i2c: D1 [18:35:07]MH_I2C_Read... [18:35:07]Read from MH i2c: D1 01 00 [18:35:07]MH_I2C_Read... [18:35:07]Read from MH i2c: D1 01 00 CB 53 00 EF [18:35:07]Write to MH i2c: 01 00 00 CC 53 1F [18:35:07]Write i2c OK [18:35:07]MH_I2C_Read... [18:35:07]OFD Sender: No OFD packet to send [18:35:07]*** Cut start [18:35:07]*** Purtial cut [18:35:07]*** Stage 1: CUTSNS_PIN = 1 [18:35:09]Read from MH i2c: 01 [18:35:09]MH_I2C_Read... [18:35:09]*** Stop cut motor [18:35:09]*** Cut end [18:35:09]Read from MH i2c: 01 07 00 [18:35:09]MH_I2C_Read... [18:35:09]Read from MH i2c: 01 07 00 CC 53 00 00 00 00 00 FF 0F 34 [18:35:09]process_action close_receipt done [18:35:09]requested_data is exist [18:35:09]produce_requested_data [18:35:09]requested_item fm.sn is exist - process it [18:35:09]wFMCommunicate request_size=4 [18:35:09]MH_SAM_APDU [18:35:09]CAPDU: 80 11 00 00 [18:35:09]Write to MH i2c: E2 08 00 CD 53 80 11 00 00 00 00 00 00 9A [18:35:09]Write i2c OK [18:35:09]MH_I2C_Read... [18:35:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:35:09]Read from MH i2c: E2 [18:35:09]MH_I2C_Read... [18:35:09]Read from MH i2c: E2 17 00 [18:35:09]MH_I2C_Read... [18:35:09]Read from MH i2c: E2 17 00 CD 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 F6 [18:35:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [18:35:09]wFMCommunicate OK [18:35:09]requested_item fd.num is exist - process it [18:35:09]SAM_PROTO_GetFieldsCounters [18:35:09]wFMCommunicate request_size=4 [18:35:09]MH_SAM_APDU [18:35:09]CAPDU: 80 13 00 00 [18:35:09]Write to MH i2c: E2 08 00 CE 53 80 13 00 00 00 00 00 00 9D [18:35:09]Write i2c OK [18:35:09]MH_I2C_Read... [18:35:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:35:09]Read from MH i2c: E2 [18:35:09]MH_I2C_Read... [18:35:09]Read from MH i2c: E2 62 00 [18:35:09]MH_I2C_Read... [18:35:09]Read from MH i2c: E2 62 00 CE 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 B1 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 44 [18:35:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 B1 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:35:09]wFMCommunicate OK [18:35:09]SAM_PROTO_GetFieldsCounters done [18:35:09]requested_item shift.num is exist - process it [18:35:09]requested_item shift.opened is exist - process it [18:35:09]req_shift_opened [18:35:09]FM_GetShiftState [18:35:09]SAM_PROTO_GetShiftState [18:35:09]wFMCommunicate request_size=4 [18:35:09]MH_SAM_APDU [18:35:09]CAPDU: 80 13 01 00 [18:35:09]Write to MH i2c: E2 08 00 CF 53 80 13 01 00 00 00 00 00 9F [18:35:09]Write i2c OK [18:35:09]MH_I2C_Read... [18:35:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:35:10]Read from MH i2c: E2 [18:35:10]MH_I2C_Read... [18:35:10]Read from MH i2c: E2 0E 00 [18:35:10]MH_I2C_Read... [18:35:10]Read from MH i2c: E2 0E 00 CF 53 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 D5 [18:35:10]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [18:35:10]wFMCommunicate OK [18:35:10]SAM_PROTO_GetShiftState done [18:35:10]FM_GetShiftState done [18:35:10]req_shift_opened done [18:35:10]requested_item shift.open_date is exist - process it [18:35:10]req_shift_open_date [18:35:10]req_shift_open_date done [18:35:10]produce_requested_data done [18:35:10]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45233,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [18:35:10]process_action_free close_receipt [18:35:10]json_value_free [18:35:10]json_value_free done [18:35:10]process_json_proto returns [18:35:10]Send response to host [18:35:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45233,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [18:35:10]free response buf [18:35:10]execute_script done [18:35:10]execute_script returns [18:35:10]free content buf [18:35:10]Sock 7.Close socket [18:35:10]Sock 7.Thread stoped [18:35:12]OFD Sender: No OFD packet to send [18:35:17]OFD Sender: No OFD packet to send [18:35:22]OFD Sender: No OFD packet to send [18:35:27]OFD Sender: No OFD packet to send [18:35:32]OFD Sender: No OFD packet to send [18:35:37]OFD Sender: No OFD packet to send [18:35:42]OFD Sender: No OFD packet to send [18:35:47]OFD Sender: No OFD packet to send [18:35:52]OFD Sender: No OFD packet to send [18:35:57]OFD Sender: No OFD packet to send [18:36:02]OFD Sender: No OFD packet to send [18:36:07]OFD Sender: No OFD packet to send [18:36:12]OFD Sender: No OFD packet to send [18:36:17]OFD Sender: No OFD packet to send [18:36:22]OFD Sender: No OFD packet to send [18:36:27]OFD Sender: No OFD packet to send [18:36:32]OFD Sender: No OFD packet to send [18:36:37]OFD Sender: No OFD packet to send [18:36:42]OFD Sender: No OFD packet to send [18:36:47]OFD Sender: No OFD packet to send [18:36:52]OFD Sender: No OFD packet to send [18:36:57]OFD Sender: No OFD packet to send [18:37:02]OFD Sender: No OFD packet to send [18:37:07]OFD Sender: No OFD packet to send [18:37:12]OFD Sender: No OFD packet to send [18:37:17]OFD Sender: No OFD packet to send [18:37:22]OFD Sender: No OFD packet to send [18:37:27]OFD Sender: No OFD packet to send [18:37:32]OFD Sender: No OFD packet to send [18:37:37]OFD Sender: No OFD packet to send [18:37:42]OFD Sender: No OFD packet to send [18:37:47]OFD Sender: No OFD packet to send [18:37:52]OFD Sender: No OFD packet to send [18:37:57]OFD Sender: No OFD packet to send [18:38:02]OFD Sender: No OFD packet to send [18:38:07]OFD Sender: No OFD packet to send [18:38:12]OFD Sender: No OFD packet to send [18:38:17]OFD Sender: No OFD packet to send [18:38:22]OFD Sender: No OFD packet to send [18:38:27]OFD Sender: No OFD packet to send [18:38:32]OFD Sender: No OFD packet to send [18:38:37]OFD Sender: No OFD packet to send [18:38:42]OFD Sender: No OFD packet to send [18:38:47]OFD Sender: No OFD packet to send [18:38:52]OFD Sender: No OFD packet to send [18:38:57]OFD Sender: No OFD packet to send [18:39:02]OFD Sender: No OFD packet to send [18:39:07]OFD Sender: No OFD packet to send [18:39:12]OFD Sender: No OFD packet to send [18:39:17]OFD Sender: No OFD packet to send [18:39:22]OFD Sender: No OFD packet to send [18:39:27]OFD Sender: No OFD packet to send [18:39:32]OFD Sender: No OFD packet to send [18:39:37]OFD Sender: No OFD packet to send [18:39:42]OFD Sender: No OFD packet to send [18:39:47]OFD Sender: No OFD packet to send [18:39:52]OFD Sender: No OFD packet to send [18:39:57]OFD Sender: No OFD packet to send [18:40:02]OFD Sender: No OFD packet to send [18:40:07]OFD Sender: No OFD packet to send [18:40:12]OFD Sender: No OFD packet to send [18:40:17]OFD Sender: No OFD packet to send [18:40:22]OFD Sender: No OFD packet to send [18:40:27]OFD Sender: No OFD packet to send [18:40:32]OFD Sender: No OFD packet to send [18:40:37]OFD Sender: No OFD packet to send [18:40:42]OFD Sender: No OFD packet to send [18:40:47]OFD Sender: No OFD packet to send [18:40:52]OFD Sender: No OFD packet to send [18:40:57]OFD Sender: No OFD packet to send [18:41:02]OFD Sender: No OFD packet to send [18:41:07]OFD Sender: No OFD packet to send [18:41:12]OFD Sender: No OFD packet to send [18:41:17]OFD Sender: No OFD packet to send [18:41:22]OFD Sender: No OFD packet to send [18:41:27]OFD Sender: No OFD packet to send [18:41:32]OFD Sender: No OFD packet to send [18:41:37]OFD Sender: No OFD packet to send [18:41:42]OFD Sender: No OFD packet to send [18:41:47]OFD Sender: No OFD packet to send [18:41:52]OFD Sender: No OFD packet to send [18:41:57]OFD Sender: No OFD packet to send [18:42:02]OFD Sender: No OFD packet to send [18:42:07]OFD Sender: No OFD packet to send [18:42:12]OFD Sender: No OFD packet to send [18:42:17]OFD Sender: No OFD packet to send [18:42:22]OFD Sender: No OFD packet to send [18:42:27]OFD Sender: No OFD packet to send [18:42:32]OFD Sender: No OFD packet to send [18:42:37]OFD Sender: No OFD packet to send [18:42:42]OFD Sender: No OFD packet to send [18:42:47]OFD Sender: No OFD packet to send [18:42:52]OFD Sender: No OFD packet to send [18:42:57]OFD Sender: No OFD packet to send [18:43:02]OFD Sender: No OFD packet to send [18:43:07]OFD Sender: No OFD packet to send [18:43:12]OFD Sender: No OFD packet to send [18:43:17]OFD Sender: No OFD packet to send [18:43:22]OFD Sender: No OFD packet to send [18:43:27]OFD Sender: No OFD packet to send [18:43:32]OFD Sender: No OFD packet to send [18:43:37]OFD Sender: No OFD packet to send [18:43:42]OFD Sender: No OFD packet to send [18:43:47]OFD Sender: No OFD packet to send [18:43:52]OFD Sender: No OFD packet to send [18:43:57]OFD Sender: No OFD packet to send [18:44:02]OFD Sender: No OFD packet to send [18:44:07]OFD Sender: No OFD packet to send [18:44:12]OFD Sender: No OFD packet to send [18:44:17]OFD Sender: No OFD packet to send [18:44:22]OFD Sender: No OFD packet to send [18:44:27]OFD Sender: No OFD packet to send [18:44:32]OFD Sender: No OFD packet to send [18:44:37]OFD Sender: No OFD packet to send [18:44:42]OFD Sender: No OFD packet to send [18:44:47]OFD Sender: No OFD packet to send [18:44:52]OFD Sender: No OFD packet to send [18:44:57]OFD Sender: No OFD packet to send [18:45:02]OFD Sender: No OFD packet to send [18:45:07]OFD Sender: No OFD packet to send [18:45:12]OFD Sender: No OFD packet to send [18:45:17]OFD Sender: No OFD packet to send [18:45:22]OFD Sender: No OFD packet to send [18:45:27]OFD Sender: No OFD packet to send [18:45:32]OFD Sender: No OFD packet to send [18:45:37]OFD Sender: No OFD packet to send [18:45:42]OFD Sender: No OFD packet to send [18:45:47]OFD Sender: No OFD packet to send [18:45:52]OFD Sender: No OFD packet to send [18:45:57]OFD Sender: No OFD packet to send [18:46:02]OFD Sender: No OFD packet to send [18:46:07]OFD Sender: No OFD packet to send [18:46:12]OFD Sender: No OFD packet to send [18:46:17]OFD Sender: No OFD packet to send [18:46:22]OFD Sender: No OFD packet to send [18:46:27]OFD Sender: No OFD packet to send [18:46:32]OFD Sender: No OFD packet to send [18:46:37]OFD Sender: No OFD packet to send [18:46:42]OFD Sender: No OFD packet to send [18:46:47]OFD Sender: No OFD packet to send [18:46:52]OFD Sender: No OFD packet to send [18:46:57]OFD Sender: No OFD packet to send [18:47:02]OFD Sender: No OFD packet to send [18:47:07]OFD Sender: No OFD packet to send [18:47:13]OFD Sender: No OFD packet to send [18:47:18]OFD Sender: No OFD packet to send [18:47:23]OFD Sender: No OFD packet to send [18:47:28]OFD Sender: No OFD packet to send [18:47:33]OFD Sender: No OFD packet to send [18:47:38]OFD Sender: No OFD packet to send [18:47:43]OFD Sender: No OFD packet to send [18:47:48]OFD Sender: No OFD packet to send [18:47:53]OFD Sender: No OFD packet to send [18:47:58]OFD Sender: No OFD packet to send [18:48:03]OFD Sender: No OFD packet to send [18:48:08]OFD Sender: No OFD packet to send [18:48:13]OFD Sender: No OFD packet to send [18:48:18]OFD Sender: No OFD packet to send [18:48:23]OFD Sender: No OFD packet to send [18:48:28]OFD Sender: No OFD packet to send [18:48:33]OFD Sender: No OFD packet to send [18:48:38]OFD Sender: No OFD packet to send [18:48:43]OFD Sender: No OFD packet to send [18:48:48]OFD Sender: No OFD packet to send [18:48:53]OFD Sender: No OFD packet to send [18:48:58]OFD Sender: No OFD packet to send [18:49:03]OFD Sender: No OFD packet to send [18:49:08]OFD Sender: No OFD packet to send [18:49:13]OFD Sender: No OFD packet to send [18:49:18]OFD Sender: No OFD packet to send [18:49:23]OFD Sender: No OFD packet to send [18:49:28]OFD Sender: No OFD packet to send [18:49:33]OFD Sender: No OFD packet to send [18:49:38]OFD Sender: No OFD packet to send [18:49:43]OFD Sender: No OFD packet to send [18:49:48]OFD Sender: No OFD packet to send [18:49:53]OFD Sender: No OFD packet to send [18:49:58]OFD Sender: No OFD packet to send [18:50:03]OFD Sender: No OFD packet to send [18:50:08]OFD Sender: No OFD packet to send [18:50:13]OFD Sender: No OFD packet to send [18:50:18]OFD Sender: No OFD packet to send [18:50:23]OFD Sender: No OFD packet to send [18:50:28]OFD Sender: No OFD packet to send [18:50:33]OFD Sender: No OFD packet to send [18:50:38]OFD Sender: No OFD packet to send [18:50:43]OFD Sender: No OFD packet to send [18:50:48]OFD Sender: No OFD packet to send [18:50:53]OFD Sender: No OFD packet to send [18:50:58]OFD Sender: No OFD packet to send [18:51:03]OFD Sender: No OFD packet to send [18:51:08]OFD Sender: No OFD packet to send [18:51:13]OFD Sender: No OFD packet to send [18:51:18]OFD Sender: No OFD packet to send [18:51:23]OFD Sender: No OFD packet to send [18:51:28]OFD Sender: No OFD packet to send [18:51:33]OFD Sender: No OFD packet to send [18:51:38]OFD Sender: No OFD packet to send [18:51:43]OFD Sender: No OFD packet to send [18:51:48]OFD Sender: No OFD packet to send [18:51:53]OFD Sender: No OFD packet to send [18:51:58]OFD Sender: No OFD packet to send [18:52:03]OFD Sender: No OFD packet to send [18:52:08]OFD Sender: No OFD packet to send [18:52:13]OFD Sender: No OFD packet to send [18:52:18]OFD Sender: No OFD packet to send [18:52:23]OFD Sender: No OFD packet to send [18:52:28]OFD Sender: No OFD packet to send [18:52:33]OFD Sender: No OFD packet to send [18:52:38]OFD Sender: No OFD packet to send [18:52:43]OFD Sender: No OFD packet to send [18:52:48]OFD Sender: No OFD packet to send [18:52:53]OFD Sender: No OFD packet to send [18:52:58]OFD Sender: No OFD packet to send [18:53:03]OFD Sender: No OFD packet to send [18:53:08]OFD Sender: No OFD packet to send [18:53:13]OFD Sender: No OFD packet to send [18:53:13]accept exits with 9 [18:53:13]New connection [18:53:13]New thread 3067157860 created [18:53:13]Thread 3067014500 joined [18:53:13]Waiting for new connection... [18:53:13] Sock 9.Parse request [18:53:13]Sock 9.Check first char [18:53:13]Sock 9.First char is OK [18:53:13]request: POST /json_proto HTTP/1.0 [18:53:13]Method: POST [18:53:13]URL: /json_proto [18:53:13]Method is POST - this is cgi request [18:53:13]url: /json_proto [18:53:13]query_string will be loaded in cgi processing [18:53:13]execute_cgi json_proto POST (null) [18:53:13]execute_cgi path=json_proto method=POST [18:53:13]POST find Content-Length [18:53:13]Host: 172.17.48.198:8080 [18:53:13]Content-Length: 623 [18:53:13]Content-Type: application/json [18:53:13] [18:53:13]POST finish read [18:53:13]Found Content-Length = 623 [18:53:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184196", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:53:13]execute_script... [18:53:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184196", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:53:13]POST & json_proto [18:53:13]process_json_proto [18:53:13]json parsed OK: [18:53:13]protocol is kg_v1.0 [18:53:13]action value=close_receipt [18:53:13]process_action close_receipt [18:53:13]cmd_close_receipt [18:53:13]MH_GetDate [18:53:13]Write to MH i2c: F0 00 00 D0 53 12 [18:53:13]Write i2c OK [18:53:13]MH_I2C_Read... [18:53:13]Read from MH i2c: F0 [18:53:13]MH_I2C_Read... [18:53:13]Read from MH i2c: F0 09 00 [18:53:13]MH_I2C_Read... [18:53:13]Read from MH i2c: F0 09 00 D0 53 00 26 C7 E4 65 CE C4 D4 65 1C [18:53:13]GetLastDocTimeStamp 1709490917 [18:53:13]current date 1709492006 [18:53:13]FM_GetShiftState [18:53:13]SAM_PROTO_GetShiftState [18:53:13]wFMCommunicate request_size=4 [18:53:13]MH_SAM_APDU [18:53:13]CAPDU: 80 13 01 00 [18:53:13]Write to MH i2c: E2 08 00 D1 53 80 13 01 00 00 00 00 00 A1 [18:53:13]Write i2c OK [18:53:13]MH_I2C_Read... [18:53:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:53:13]Read from MH i2c: E2 [18:53:13]MH_I2C_Read... [18:53:13]Read from MH i2c: E2 0E 00 [18:53:13]MH_I2C_Read... [18:53:13]Read from MH i2c: E2 0E 00 D1 53 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 D7 [18:53:13]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [18:53:13]wFMCommunicate OK [18:53:13]SAM_PROTO_GetShiftState done [18:53:13]FM_GetShiftState done [18:53:13]opened in 1709425694 [18:53:13]opened+sec_in_day 1709512094 [18:53:13]quantity*price = 13500 [18:53:13]sum+1 = 13501 [18:53:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 135.00 НСП 1% : 1.19 НДС 12% : 14.34 Наличными: 135.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 71 03.03.2024 18:53 Смена: 331 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 ФМ: 0000000000874796 ФД: 45234 ФПД: 215365544183786 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T185326&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45234&fm=215365544183786&tin=02508201610067®Number=0000000000090572&sum=13500 0 [18:53:14]StoreToDocumentArchive [18:53:14]shift 331 fd 45234 [18:53:14]save to /storage/0331/doc_00045234 [18:53:14]save last doc name /storage/0331/doc_00045234 to /storage/kkm_last_doc_name [18:53:14]save OK [18:53:14]Clear old archive folders... [18:53:14]ProcessDocumentItem done err = 0, tmpTLVsize=275 [18:53:14]tlvbuf is 01BA0C50 [18:53:14]SAM_PROTO_ClearQueue [18:53:14]wFMCommunicate request_size=4 [18:53:14]MH_SAM_APDU [18:53:14]CAPDU: 80 09 00 00 [18:53:14]Write to MH i2c: E2 08 00 DE 53 80 09 00 00 00 00 00 00 A3 [18:53:14]Write i2c OK [18:53:14]MH_I2C_Read... [18:53:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:53:14]Read from MH i2c: E2 [18:53:14]MH_I2C_Read... [18:53:14]Read from MH i2c: E2 03 00 [18:53:14]MH_I2C_Read... [18:53:14]Read from MH i2c: E2 03 00 DE 53 00 90 00 A5 [18:53:14]RAPDU: 90 00 [18:53:14]wFMCommunicate OK [18:53:14]SAM_PROTO_ClearQueue done [18:53:14]KKMCreateOFDPacket [18:53:14]OFDProtocolAddRootSTLVToBuf [18:53:14]FM_MakeSignedData [18:53:14]FM_MakeSignedData [18:53:14]SAM_PROTO_SignData [18:53:14]wFMCommunicate request_size=4 [18:53:14]MH_SAM_APDU [18:53:14]CAPDU: 80 0D 01 02 [18:53:14]Write to MH i2c: E2 08 00 DF 53 80 0D 01 02 00 00 00 00 AB [18:53:14]Write i2c OK [18:53:14]MH_I2C_Read... [18:53:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:53:14]Read from MH i2c: E2 [18:53:14]MH_I2C_Read... [18:53:14]Read from MH i2c: E2 03 00 [18:53:14]MH_I2C_Read... [18:53:14]Read from MH i2c: E2 03 00 DF 53 00 90 00 A6 [18:53:14]RAPDU: 90 00 [18:53:14]wFMCommunicate OK [18:53:14]wFMCommunicate request_size=255 [18:53:14]MH_SAM_APDU [18:53:14]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 26 C7 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 [18:53:14]Write to MH i2c: E2 02 01 E0 53 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 26 C7 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 00 00 F0 [18:53:14]Write i2c OK [18:53:14]MH_I2C_Read... [18:53:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:53:15]Read from MH i2c: E2 [18:53:15]MH_I2C_Read... [18:53:15]Read from MH i2c: E2 03 00 [18:53:15]MH_I2C_Read... [18:53:15]Read from MH i2c: E2 03 00 E0 53 00 90 00 A7 [18:53:15]RAPDU: 90 00 [18:53:15]wFMCommunicate OK [18:53:15]wFMCommunicate request_size=34 [18:53:15]MH_SAM_APDU [18:53:15]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 B2 B0 00 00 35 04 06 00 C3 DF B2 C2 07 EA [18:53:15]Write to MH i2c: E2 25 00 E1 53 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 B2 B0 00 00 35 04 06 00 C3 DF B2 C2 07 EA 00 00 E1 [18:53:15]Write i2c OK [18:53:15]MH_I2C_Read... [18:53:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:53:15]Read from MH i2c: E2 [18:53:15]MH_I2C_Read... [18:53:15]Read from MH i2c: E2 03 00 [18:53:15]MH_I2C_Read... [18:53:15]Read from MH i2c: E2 03 00 E1 53 00 90 00 A8 [18:53:15]RAPDU: 90 00 [18:53:15]wFMCommunicate OK [18:53:15]wFMCommunicate request_size=4 [18:53:15]MH_SAM_APDU [18:53:15]CAPDU: 80 0D 03 02 [18:53:15]Write to MH i2c: E2 08 00 E2 53 80 0D 03 02 00 00 00 00 B0 [18:53:15]Write i2c OK [18:53:15]MH_I2C_Read... [18:53:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:53:15]Read from MH i2c: E2 [18:53:15]MH_I2C_Read... [18:53:15]Read from MH i2c: E2 0B 00 [18:53:15]MH_I2C_Read... [18:53:15]Read from MH i2c: E2 0B 00 E2 53 00 73 C9 10 E9 C3 4C 04 7C 90 00 75 [18:53:15]RAPDU: 73 C9 10 E9 C3 4C 04 7C 90 00 [18:53:15]wFMCommunicate OK [18:53:15]SAM_PROTO_SignData done [18:53:15]FM_MakeSignedData done [18:53:15]CreateOFDProtocolMessage [18:53:15]wFMCommunicate request_size=4 [18:53:15]MH_SAM_APDU [18:53:15]CAPDU: 80 11 00 00 [18:53:15]Write to MH i2c: E2 08 00 E3 53 80 11 00 00 00 00 00 00 B0 [18:53:15]Write i2c OK [18:53:15]MH_I2C_Read... [18:53:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:53:15]Read from MH i2c: E2 [18:53:15]MH_I2C_Read... [18:53:15]Read from MH i2c: E2 17 00 [18:53:15]MH_I2C_Read... [18:53:15]Read from MH i2c: E2 17 00 E3 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 0C [18:53:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [18:53:15]wFMCommunicate OK [18:53:15]CreateOFDProtocolMessage done [18:53:15]OFDSenderStorePacket 45234 [18:53:15]StoreOFDPacket docnum=45234 [18:53:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 27 01 00 00 A8 10 1F 01 91 02 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 26 C7 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 B2 B0 00 00 35 04 06 00 C3 DF B2 C2 07 EA 73 C9 10 E9 C3 4C 04 7C [18:53:15]CheckFolder [18:53:15]dirname=/storage/ofd_packets [18:53:15]CheckFolder done [18:53:15]ProducePacketName [18:53:15]name=ofd_packets/00045234 [18:53:15]NVStorageSaveData ofd_packets/00045234 [18:53:15]File name is /storage/ofd_packets/00045234 [18:53:15]Write 325 bytes [18:53:15]NVStorageSaveData done [18:53:15]OFDSenderStorePacket done [18:53:15]KKMCreateOFDPacket done [18:53:15]NVStorageSaveData kkm_last_timestamp [18:53:15]File name is /storage/kkm_last_timestamp [18:53:15]Write 4 bytes [18:53:15]NVStorageSaveData done [18:53:15]ExternCall_PrintAddStr [18:53:15]wPrintStart [18:53:15]Write to MH i2c: 01 00 00 E4 53 37 [18:53:15]Write i2c OK [18:53:15]MH_I2C_Read... [18:53:15]Read from MH i2c: 01 [18:53:15]MH_I2C_Read... [18:53:15]Read from MH i2c: 01 07 00 [18:53:15]MH_I2C_Read... [18:53:15]Read from MH i2c: 01 07 00 E4 53 00 00 00 00 00 FF 0F 4C [18:53:15]RasterBufferAndPrint [18:53:15]line Счет N : (3)184196 [18:53:15]line ИНН: 02508201610067 [18:53:15]line Контрольно-Кассовый Чек [18:53:15]line ПРОДАЖА [18:53:15]line Товар: 48743587 [18:53:15]line Сигареты Winston XStyle Silver [18:53:15]line 1.000 * 135.00 [18:53:15]line = 135.00 [18:53:15]line НДС 12% НСП 1% [18:53:15]line > о реализуемом товаре [18:53:15]line ИТОГО: 135.00 [18:53:15]line НСП 1% : 1.19 [18:53:15]line НДС 12% : 14.34 [18:53:15]line Наличными: 135.00 [18:53:15]line Безнал.: 0.00 [18:53:15]line Место: АЗС № 25 "Партнер Нефть" [18:53:15]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [18:53:15]line СНО: Общий режим [18:53:15]line Чек 71 03.03.2024 18:53 [18:53:15]line Смена: 331 ФФД: 1.0 [18:53:15]line ЗНМ: 0300000013 [18:53:15]line РНМ: 0000000000090572 [18:53:15]line Версия ККМ: 001 [18:53:15]line ФМ: 0000000000874796 [18:53:15]line ФД: 45234 [18:53:15]line ФПД: 215365544183786 [18:53:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T185326&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45234&fm=215365544183786&tin=02508201610067®Number=0000000000090572&sum=13500 [18:53:15]line 0 [18:53:15]OFD Sender: Processing packet 45234 [packets to send 17, broken 16] [18:53:15]ProducePacketName [18:53:15]name=ofd_packets/00045234 [18:53:15]OFD Sender: To server: pG, [18:53:15]CommunicateWithHost lk.salyk.kg:30040 [18:53:15]ConnectInit lk.salyk.kg [18:53:15]written 0, free lines is 4095 [18:53:15]Connected sock=10 [18:53:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 27 01 00 00 A8 10 1F 01 91 02 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 26 C7 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 B2 B0 00 00 35 04 06 00 C3 DF B2 C2 07 EA 73 C9 10 E9 C3 4C 04 7C [18:53:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 B0 AE 47 00 E4 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 34 37 39 36 10 04 04 00 B2 B0 00 00 F4 03 04 00 EA 72 E4 65 B6 04 01 00 00 7C 1C 70 9D 8A AD 5F F3 [18:53:15]CommunicateWithHost err = 0 [18:53:15]CheckOFDResponse [18:53:15]1017 (14) - 77093643461234 [18:53:15]1041 (16) - 0000000000874796 [18:53:15]1040 (4) - 45234 [18:53:15]1012 (4) - 03.03.2024 12:54 [18:53:15]1206 (1) - 0 [18:53:15]OFD Sender: Remove packet 45234 [18:53:15]ProducePacketName [18:53:15]name=ofd_packets/00045234 [18:53:15]NVStorageDeleteData [18:53:16]Write to MH i2c: 01 00 00 0D 54 61 [18:53:16]Write i2c OK [18:53:16]MH_I2C_Read... [18:53:16]Read from MH i2c: 01 [18:53:16]MH_I2C_Read... [18:53:16]Read from MH i2c: 01 07 00 [18:53:16]MH_I2C_Read... [18:53:16]Read from MH i2c: 01 07 00 0D 54 00 00 00 00 00 03 0D 78 [18:53:16]RasterBufferAndPrint [18:53:16]line [18:53:16]line [18:53:16]line [18:53:16]line [18:53:16]line [18:53:16]written 0, free lines is 3337 [18:53:16]MH_Cut [18:53:16]Write to MH i2c: D1 01 00 14 54 01 3A [18:53:16]Write i2c OK [18:53:16]MH_I2C_Read... [18:53:16]Read from MH i2c: D1 [18:53:16]MH_I2C_Read... [18:53:16]Read from MH i2c: D1 01 00 [18:53:16]MH_I2C_Read... [18:53:16]Read from MH i2c: D1 01 00 14 54 00 39 [18:53:16]Write to MH i2c: 01 00 00 15 54 69 [18:53:16]Write i2c OK [18:53:16]MH_I2C_Read... [18:53:16]OFD Sender: No OFD packet to send [18:53:16]*** Cut start [18:53:16]*** Purtial cut [18:53:16]*** Stage 1: CUTSNS_PIN = 1 [18:53:18]Read from MH i2c: 01 [18:53:18]MH_I2C_Read... [18:53:18]*** Stop cut motor [18:53:18]*** Cut end [18:53:18]Read from MH i2c: 01 07 00 [18:53:18]MH_I2C_Read... [18:53:18]Read from MH i2c: 01 07 00 15 54 00 00 00 00 00 FF 0F 7E [18:53:18]process_action close_receipt done [18:53:18]requested_data is exist [18:53:18]produce_requested_data [18:53:18]requested_item fm.sn is exist - process it [18:53:18]wFMCommunicate request_size=4 [18:53:18]MH_SAM_APDU [18:53:18]CAPDU: 80 11 00 00 [18:53:18]Write to MH i2c: E2 08 00 16 54 80 11 00 00 00 00 00 00 E4 [18:53:18]Write i2c OK [18:53:18]MH_I2C_Read... [18:53:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:53:18]Read from MH i2c: E2 [18:53:18]MH_I2C_Read... [18:53:18]Read from MH i2c: E2 17 00 [18:53:18]MH_I2C_Read... [18:53:18]Read from MH i2c: E2 17 00 16 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 40 [18:53:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [18:53:18]wFMCommunicate OK [18:53:18]requested_item fd.num is exist - process it [18:53:18]SAM_PROTO_GetFieldsCounters [18:53:18]wFMCommunicate request_size=4 [18:53:18]MH_SAM_APDU [18:53:18]CAPDU: 80 13 00 00 [18:53:18]Write to MH i2c: E2 08 00 17 54 80 13 00 00 00 00 00 00 E7 [18:53:18]Write i2c OK [18:53:18]MH_I2C_Read... [18:53:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:53:18]Read from MH i2c: E2 [18:53:18]MH_I2C_Read... [18:53:18]Read from MH i2c: E2 62 00 [18:53:18]MH_I2C_Read... [18:53:18]Read from MH i2c: E2 62 00 17 54 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 B2 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 92 [18:53:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 B2 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:53:18]wFMCommunicate OK [18:53:18]SAM_PROTO_GetFieldsCounters done [18:53:18]requested_item shift.num is exist - process it [18:53:18]requested_item shift.opened is exist - process it [18:53:18]req_shift_opened [18:53:18]FM_GetShiftState [18:53:18]SAM_PROTO_GetShiftState [18:53:18]wFMCommunicate request_size=4 [18:53:18]MH_SAM_APDU [18:53:18]CAPDU: 80 13 01 00 [18:53:18]Write to MH i2c: E2 08 00 18 54 80 13 01 00 00 00 00 00 E9 [18:53:18]Write i2c OK [18:53:18]MH_I2C_Read... [18:53:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:53:19]Read from MH i2c: E2 [18:53:19]MH_I2C_Read... [18:53:19]Read from MH i2c: E2 0E 00 [18:53:19]MH_I2C_Read... [18:53:19]Read from MH i2c: E2 0E 00 18 54 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 1F [18:53:19]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [18:53:19]wFMCommunicate OK [18:53:19]SAM_PROTO_GetShiftState done [18:53:19]FM_GetShiftState done [18:53:19]req_shift_opened done [18:53:19]requested_item shift.open_date is exist - process it [18:53:19]req_shift_open_date [18:53:19]req_shift_open_date done [18:53:19]produce_requested_data done [18:53:19]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45234,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [18:53:19]process_action_free close_receipt [18:53:19]json_value_free [18:53:19]json_value_free done [18:53:19]process_json_proto returns [18:53:19]Send response to host [18:53:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45234,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [18:53:19]free response buf [18:53:19]execute_script done [18:53:19]execute_script returns [18:53:19]free content buf [18:53:19]Sock 9.Close socket [18:53:19]Sock 9.Thread stoped [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:53]accept exits with 7 [18:55:53]New connection [18:55:53]New thread 3067014500 created [18:55:53]Thread 3067157860 joined [18:55:53]Waiting for new connection... [18:55:53] Sock 7.Parse request [18:55:53]Sock 7.Check first char [18:55:53]Sock 7.First char is OK [18:55:53]request: POST /json_proto HTTP/1.0 [18:55:53]Method: POST [18:55:53]URL: /json_proto [18:55:53]Method is POST - this is cgi request [18:55:53]url: /json_proto [18:55:53]query_string will be loaded in cgi processing [18:55:53]execute_cgi json_proto POST (null) [18:55:53]execute_cgi path=json_proto method=POST [18:55:53]POST find Content-Length [18:55:53]Host: 172.17.48.198:8080 [18:55:53]Content-Length: 624 [18:55:53]Content-Type: application/json [18:55:53] [18:55:53]POST finish read [18:55:53]Found Content-Length = 624 [18:55:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184197", "tax_sys" : 0, "items" : [ { "code": "46177872", "name": "\u0416\u0435\u0432 Orbit \u043F\u043E\u0434\u0443\u0448\u043A\u0438 Citrus", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:55:53]execute_script... [18:55:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184197", "tax_sys" : 0, "items" : [ { "code": "46177872", "name": "\u0416\u0435\u0432 Orbit \u043F\u043E\u0434\u0443\u0448\u043A\u0438 Citrus", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:55:53]POST & json_proto [18:55:53]process_json_proto [18:55:53]json parsed OK: [18:55:53]protocol is kg_v1.0 [18:55:53]action value=close_receipt [18:55:53]process_action close_receipt [18:55:53]cmd_close_receipt [18:55:53]MH_GetDate [18:55:53]Write to MH i2c: F0 00 00 19 54 5C [18:55:53]Write i2c OK [18:55:53]MH_I2C_Read... [18:55:53]Read from MH i2c: F0 [18:55:53]MH_I2C_Read... [18:55:53]Read from MH i2c: F0 09 00 [18:55:53]MH_I2C_Read... [18:55:53]Read from MH i2c: F0 09 00 19 54 00 C6 C7 E4 65 CE C4 D4 65 06 [18:55:53]GetLastDocTimeStamp 1709492006 [18:55:53]current date 1709492166 [18:55:53]FM_GetShiftState [18:55:53]SAM_PROTO_GetShiftState [18:55:53]wFMCommunicate request_size=4 [18:55:53]MH_SAM_APDU [18:55:53]CAPDU: 80 13 01 00 [18:55:53]Write to MH i2c: E2 08 00 1A 54 80 13 01 00 00 00 00 00 EB [18:55:53]Write i2c OK [18:55:53]MH_I2C_Read... [18:55:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:55:53]Read from MH i2c: E2 [18:55:53]MH_I2C_Read... [18:55:53]Read from MH i2c: E2 0E 00 [18:55:53]MH_I2C_Read... [18:55:53]Read from MH i2c: E2 0E 00 1A 54 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 21 [18:55:53]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [18:55:53]wFMCommunicate OK [18:55:53]SAM_PROTO_GetShiftState done [18:55:53]FM_GetShiftState done [18:55:53]opened in 1709425694 [18:55:53]opened+sec_in_day 1709512094 [18:55:53]quantity*price = 4000 [18:55:53]sum+1 = 4001 [18:55:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 40.00 НСП 1% : 0.35 НДС 12% : 4.25 Наличными: 40.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 72 03.03.2024 18:56 Смена: 331 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 ФМ: 0000000000874796 ФД: 45235 ФПД: 266553398030366 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T185606&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45235&fm=266553398030366&tin=02508201610067®Number=0000000000090572&sum=4000 0 [18:55:54]StoreToDocumentArchive [18:55:54]shift 331 fd 45235 [18:55:54]save to /storage/0331/doc_00045235 [18:55:54]save last doc name /storage/0331/doc_00045235 to /storage/kkm_last_doc_name [18:55:54]save OK [18:55:54]Clear old archive folders... [18:55:54]ProcessDocumentItem done err = 0, tmpTLVsize=271 [18:55:54]tlvbuf is 01AFC620 [18:55:54]SAM_PROTO_ClearQueue [18:55:54]wFMCommunicate request_size=4 [18:55:54]MH_SAM_APDU [18:55:54]CAPDU: 80 09 00 00 [18:55:54]Write to MH i2c: E2 08 00 27 54 80 09 00 00 00 00 00 00 ED [18:55:54]Write i2c OK [18:55:54]MH_I2C_Read... [18:55:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:55:54]Read from MH i2c: E2 [18:55:54]MH_I2C_Read... [18:55:54]Read from MH i2c: E2 03 00 [18:55:54]MH_I2C_Read... [18:55:54]Read from MH i2c: E2 03 00 27 54 00 90 00 EF [18:55:54]RAPDU: 90 00 [18:55:54]wFMCommunicate OK [18:55:54]SAM_PROTO_ClearQueue done [18:55:54]KKMCreateOFDPacket [18:55:54]OFDProtocolAddRootSTLVToBuf [18:55:54]FM_MakeSignedData [18:55:54]FM_MakeSignedData [18:55:54]SAM_PROTO_SignData [18:55:54]wFMCommunicate request_size=4 [18:55:54]MH_SAM_APDU [18:55:54]CAPDU: 80 0D 01 02 [18:55:54]Write to MH i2c: E2 08 00 28 54 80 0D 01 02 00 00 00 00 F5 [18:55:54]Write i2c OK [18:55:54]MH_I2C_Read... [18:55:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:55:54]Read from MH i2c: E2 [18:55:54]MH_I2C_Read... [18:55:54]Read from MH i2c: E2 03 00 [18:55:54]MH_I2C_Read... [18:55:54]Read from MH i2c: E2 03 00 28 54 00 90 00 F0 [18:55:54]RAPDU: 90 00 [18:55:54]wFMCommunicate OK [18:55:54]wFMCommunicate request_size=255 [18:55:54]MH_SAM_APDU [18:55:54]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 36 31 37 37 38 37 32 06 04 22 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 BF D0 BE D0 B4 D1 83 D1 88 D0 BA D0 B8 20 43 69 74 72 75 73 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 C6 C7 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 [18:55:54]Write to MH i2c: E2 02 01 29 54 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 36 31 37 37 38 37 32 06 04 22 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 BF D0 BE D0 B4 D1 83 D1 88 D0 BA D0 B8 20 43 69 74 72 75 73 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 C6 C7 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 34 [18:55:54]Write i2c OK [18:55:54]MH_I2C_Read... [18:55:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:55:55]Read from MH i2c: E2 [18:55:55]MH_I2C_Read... [18:55:55]Read from MH i2c: E2 03 00 [18:55:55]MH_I2C_Read... [18:55:55]Read from MH i2c: E2 03 00 29 54 00 90 00 F1 [18:55:55]RAPDU: 90 00 [18:55:55]wFMCommunicate OK [18:55:55]wFMCommunicate request_size=30 [18:55:55]MH_SAM_APDU [18:55:55]CAPDU: 80 0D 02 02 19 30 38 37 34 37 39 36 10 04 04 00 B3 B0 00 00 35 04 06 00 F2 6D CC 9A 70 1E [18:55:55]Write to MH i2c: E2 21 00 2A 54 80 0D 02 02 19 00 30 38 37 34 37 39 36 10 04 04 00 B3 B0 00 00 35 04 06 00 F2 6D CC 9A 70 1E 00 00 B0 [18:55:55]Write i2c OK [18:55:55]MH_I2C_Read... [18:55:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:55:55]Read from MH i2c: E2 [18:55:55]MH_I2C_Read... [18:55:55]Read from MH i2c: E2 03 00 [18:55:55]MH_I2C_Read... [18:55:55]Read from MH i2c: E2 03 00 2A 54 00 90 00 F2 [18:55:55]RAPDU: 90 00 [18:55:55]wFMCommunicate OK [18:55:55]wFMCommunicate request_size=4 [18:55:55]MH_SAM_APDU [18:55:55]CAPDU: 80 0D 03 02 [18:55:55]Write to MH i2c: E2 08 00 2B 54 80 0D 03 02 00 00 00 00 FA [18:55:55]Write i2c OK [18:55:55]MH_I2C_Read... [18:55:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:55:55]Read from MH i2c: E2 [18:55:55]MH_I2C_Read... [18:55:55]Read from MH i2c: E2 0B 00 [18:55:55]MH_I2C_Read... [18:55:55]Read from MH i2c: E2 0B 00 2B 54 00 79 5F 64 AC BA B1 8E D0 90 00 AC [18:55:55]RAPDU: 79 5F 64 AC BA B1 8E D0 90 00 [18:55:55]wFMCommunicate OK [18:55:55]SAM_PROTO_SignData done [18:55:55]FM_MakeSignedData done [18:55:55]CreateOFDProtocolMessage [18:55:55]wFMCommunicate request_size=4 [18:55:55]MH_SAM_APDU [18:55:55]CAPDU: 80 11 00 00 [18:55:55]Write to MH i2c: E2 08 00 2C 54 80 11 00 00 00 00 00 00 FA [18:55:55]Write i2c OK [18:55:55]MH_I2C_Read... [18:55:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:55:55]Read from MH i2c: E2 [18:55:55]MH_I2C_Read... [18:55:55]Read from MH i2c: E2 17 00 [18:55:55]MH_I2C_Read... [18:55:55]Read from MH i2c: E2 17 00 2C 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 56 [18:55:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [18:55:55]wFMCommunicate OK [18:55:55]CreateOFDProtocolMessage done [18:55:55]OFDSenderStorePacket 45235 [18:55:55]StoreOFDPacket docnum=45235 [18:55:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 23 01 00 00 71 52 1B 01 5F 09 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 36 31 37 37 38 37 32 06 04 22 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 BF D0 BE D0 B4 D1 83 D1 88 D0 BA D0 B8 20 43 69 74 72 75 73 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 C6 C7 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 B3 B0 00 00 35 04 06 00 F2 6D CC 9A 70 1E 79 5F 64 AC BA B1 8E D0 [18:55:55]CheckFolder [18:55:55]dirname=/storage/ofd_packets [18:55:55]CheckFolder done [18:55:55]ProducePacketName [18:55:55]name=ofd_packets/00045235 [18:55:55]NVStorageSaveData ofd_packets/00045235 [18:55:55]File name is /storage/ofd_packets/00045235 [18:55:55]Write 321 bytes [18:55:55]NVStorageSaveData done [18:55:55]OFDSenderStorePacket done [18:55:55]KKMCreateOFDPacket done [18:55:55]NVStorageSaveData kkm_last_timestamp [18:55:55]File name is /storage/kkm_last_timestamp [18:55:55]Write 4 bytes [18:55:55]NVStorageSaveData done [18:55:55]ExternCall_PrintAddStr [18:55:55]wPrintStart [18:55:55]Write to MH i2c: 01 00 00 2D 54 81 [18:55:55]Write i2c OK [18:55:55]MH_I2C_Read... [18:55:55]Read from MH i2c: 01 [18:55:55]MH_I2C_Read... [18:55:55]Read from MH i2c: 01 07 00 [18:55:55]MH_I2C_Read... [18:55:55]Read from MH i2c: 01 07 00 2D 54 00 00 00 00 00 FF 0F 96 [18:55:55]RasterBufferAndPrint [18:55:55]line Счет N : (3)184197 [18:55:55]line ИНН: 02508201610067 [18:55:55]line Контрольно-Кассовый Чек [18:55:55]line ПРОДАЖА [18:55:55]line Товар: 46177872 [18:55:55]line Жев Orbit подушки Citrus [18:55:55]line 1.000 * 40.00 [18:55:55]line = 40.00 [18:55:55]line НДС 12% НСП 1% [18:55:55]line > о реализуемом товаре [18:55:55]line ИТОГО: 40.00 [18:55:55]line НСП 1% : 0.35 [18:55:55]line НДС 12% : 4.25 [18:55:55]line Наличными: 40.00 [18:55:55]line Безнал.: 0.00 [18:55:55]line Место: АЗС № 25 "Партнер Нефть" [18:55:55]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [18:55:55]line СНО: Общий режим [18:55:55]line Чек 72 03.03.2024 18:56 [18:55:55]line Смена: 331 ФФД: 1.0 [18:55:55]line ЗНМ: 0300000013 [18:55:55]line РНМ: 0000000000090572 [18:55:55]line Версия ККМ: 001 [18:55:55]line ФМ: 0000000000874796 [18:55:55]line ФД: 45235 [18:55:55]line ФПД: 266553398030366 [18:55:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T185606&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45235&fm=266553398030366&tin=02508201610067®Number=0000000000090572&sum=4000 [18:55:55]line 0 [18:55:55]written 0, free lines is 4095 [18:55:55]OFD Sender: Processing packet 45235 [packets to send 17, broken 16] [18:55:55]ProducePacketName [18:55:55]name=ofd_packets/00045235 [18:55:55]OFD Sender: To server: pG, [18:55:55]CommunicateWithHost lk.salyk.kg:30040 [18:55:55]ConnectInit lk.salyk.kg [18:55:55]Connected sock=9 [18:55:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 23 01 00 00 71 52 1B 01 5F 09 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 36 31 37 37 38 37 32 06 04 22 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 BF D0 BE D0 B4 D1 83 D1 88 D0 BA D0 B8 20 43 69 74 72 75 73 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 C6 C7 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 B3 B0 00 00 35 04 06 00 F2 6D CC 9A 70 1E 79 5F 64 AC BA B1 8E D0 [18:55:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 BA B5 47 00 B9 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 34 37 39 36 10 04 04 00 B3 B0 00 00 F4 03 04 00 8A 73 E4 65 B6 04 01 00 00 50 D9 C8 34 9C 48 13 31 [18:55:55]CommunicateWithHost err = 0 [18:55:55]CheckOFDResponse [18:55:55]1017 (14) - 77093643461234 [18:55:55]1041 (16) - 0000000000874796 [18:55:55]1040 (4) - 45235 [18:55:55]1012 (4) - 03.03.2024 12:56 [18:55:55]1206 (1) - 0 [18:55:55]OFD Sender: Remove packet 45235 [18:55:55]ProducePacketName [18:55:55]name=ofd_packets/00045235 [18:55:55]NVStorageDeleteData [18:55:55]Write to MH i2c: 01 00 00 55 54 A9 [18:55:55]Write i2c OK [18:55:55]MH_I2C_Read... [18:55:55]Read from MH i2c: 01 [18:55:55]MH_I2C_Read... [18:55:55]Read from MH i2c: 01 07 00 [18:55:55]MH_I2C_Read... [18:55:55]Read from MH i2c: 01 07 00 55 54 00 00 00 00 00 1B 0D D8 [18:55:55]RasterBufferAndPrint [18:55:55]line [18:55:55]line [18:55:55]line [18:55:55]line [18:55:55]line [18:55:55]written 0, free lines is 3361 [18:55:55]MH_Cut [18:55:55]Write to MH i2c: D1 01 00 5C 54 01 82 [18:55:55]Write i2c OK [18:55:55]MH_I2C_Read... [18:55:55]Read from MH i2c: D1 [18:55:55]MH_I2C_Read... [18:55:55]Read from MH i2c: D1 01 00 [18:55:55]MH_I2C_Read... [18:55:55]Read from MH i2c: D1 01 00 5C 54 00 81 [18:55:55]Write to MH i2c: 01 00 00 5D 54 B1 [18:55:55]Write i2c OK [18:55:55]MH_I2C_Read... [18:55:56]OFD Sender: No OFD packet to send [18:55:56]*** Cut start [18:55:56]*** Purtial cut [18:55:56]*** Stage 1: CUTSNS_PIN = 1 [18:55:58]Read from MH i2c: 01 [18:55:58]MH_I2C_Read... [18:55:58]*** Stop cut motor [18:55:58]*** Cut end [18:55:58]Read from MH i2c: 01 07 00 [18:55:58]MH_I2C_Read... [18:55:58]Read from MH i2c: 01 07 00 5D 54 00 00 00 00 00 FF 0F C6 [18:55:58]process_action close_receipt done [18:55:58]requested_data is exist [18:55:58]produce_requested_data [18:55:58]requested_item fm.sn is exist - process it [18:55:58]wFMCommunicate request_size=4 [18:55:58]MH_SAM_APDU [18:55:58]CAPDU: 80 11 00 00 [18:55:58]Write to MH i2c: E2 08 00 5E 54 80 11 00 00 00 00 00 00 2C [18:55:58]Write i2c OK [18:55:58]MH_I2C_Read... [18:55:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:55:58]Read from MH i2c: E2 [18:55:58]MH_I2C_Read... [18:55:58]Read from MH i2c: E2 17 00 [18:55:58]MH_I2C_Read... [18:55:58]Read from MH i2c: E2 17 00 5E 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 88 [18:55:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [18:55:58]wFMCommunicate OK [18:55:58]requested_item fd.num is exist - process it [18:55:58]SAM_PROTO_GetFieldsCounters [18:55:58]wFMCommunicate request_size=4 [18:55:58]MH_SAM_APDU [18:55:58]CAPDU: 80 13 00 00 [18:55:58]Write to MH i2c: E2 08 00 5F 54 80 13 00 00 00 00 00 00 2F [18:55:58]Write i2c OK [18:55:58]MH_I2C_Read... [18:55:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:55:58]Read from MH i2c: E2 [18:55:58]MH_I2C_Read... [18:55:58]Read from MH i2c: E2 62 00 [18:55:58]MH_I2C_Read... [18:55:58]Read from MH i2c: E2 62 00 5F 54 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 B3 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 DE [18: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 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 B3 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:55:58]wFMCommunicate OK [18:55:58]SAM_PROTO_GetFieldsCounters done [18:55:58]requested_item shift.num is exist - process it [18:55:58]requested_item shift.opened is exist - process it [18:55:58]req_shift_opened [18:55:58]FM_GetShiftState [18:55:58]SAM_PROTO_GetShiftState [18:55:58]wFMCommunicate request_size=4 [18:55:58]MH_SAM_APDU [18:55:58]CAPDU: 80 13 01 00 [18:55:58]Write to MH i2c: E2 08 00 60 54 80 13 01 00 00 00 00 00 31 [18:55:58]Write i2c OK [18:55:58]MH_I2C_Read... [18:55:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:55:58]Read from MH i2c: E2 [18:55:58]MH_I2C_Read... [18:55:58]Read from MH i2c: E2 0E 00 [18:55:58]MH_I2C_Read... [18:55:58]Read from MH i2c: E2 0E 00 60 54 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 67 [18:55:58]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [18:55:58]wFMCommunicate OK [18:55:58]SAM_PROTO_GetShiftState done [18:55:58]FM_GetShiftState done [18:55:58]req_shift_opened done [18:55:58]requested_item shift.open_date is exist - process it [18:55:58]req_shift_open_date [18:55:58]req_shift_open_date done [18:55:58]produce_requested_data done [18:55:58]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45235,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [18:55:58]process_action_free close_receipt [18:55:58]json_value_free [18:55:58]json_value_free done [18:55:58]process_json_proto returns [18:55:58]Send response to host [18:55:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45235,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [18:55:58]free response buf [18:55:58]execute_script done [18:55:58]execute_script returns [18:55:58]free content buf [18:55:58]Sock 7.Close socket [18:55:58]Sock 7.Thread stoped [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:31]OFD Sender: No OFD packet to send [18:56:36]OFD Sender: No OFD packet to send [18:56:41]OFD Sender: No OFD packet to send [18:56:46]OFD Sender: No OFD packet to send [18:56:51]OFD Sender: No OFD packet to send [18:56:56]OFD Sender: No OFD packet to send [18:57:01]OFD Sender: No OFD packet to send [18:57:06]OFD Sender: No OFD packet to send [18:57:11]OFD Sender: No OFD packet to send [18:57:16]OFD Sender: No OFD packet to send [18:57:21]OFD Sender: No OFD packet to send [18:57:26]OFD Sender: No OFD packet to send [18:57:31]OFD Sender: No OFD packet to send [18:57:36]OFD Sender: No OFD packet to send [18:57: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:58:01]OFD Sender: No OFD packet to send [18:58:06]OFD Sender: No OFD packet to send [18:58:11]OFD Sender: No OFD packet to send [18:58:16]OFD Sender: No OFD packet to send [18:58:16]int [18:58:16]Write to MH i2c: 01 00 00 61 54 B5 [18:58:16]*** FLAG_PRN_KEY set [18:58:16]Write i2c OK [18:58:16]MH_I2C_Read... [18:58:16]Read from MH i2c: 01 [18:58:16]MH_I2C_Read... [18:58:16]Read from MH i2c: 01 07 00 [18:58:16]MH_I2C_Read... [18:58:16]Read from MH i2c: 01 07 00 61 54 00 08 00 00 00 FF 0F D2 [18:58:16]state=0 [18:58:16]Key pressed [18:58:16]Feed [18:58:16]Write to MH i2c: D8 00 00 62 54 8D [18:58:16]Write i2c OK [18:58:16]MH_I2C_Read... [18:58:16]Read from MH i2c: D8 [18:58:16]MH_I2C_Read... [18:58:16]Read from MH i2c: D8 01 00 [18:58:16]MH_I2C_Read... [18:58:16]Read from MH i2c: D8 01 00 62 54 00 8E [18:58:16]int [18:58:16]Write to MH i2c: 01 00 00 63 54 B7 [18:58:16]Write i2c OK [18:58:16]MH_I2C_Read... [18:58:16]Read from MH i2c: 01 [18:58:16]MH_I2C_Read... [18:58:16]Read from MH i2c: 01 07 00 [18:58:16]MH_I2C_Read... [18:58:16]Read from MH i2c: 01 07 00 63 54 00 48 00 00 00 3C 00 42 [18:58:16]state=2 [18:58:16]Key pressed [18:58:17]int [18:58:17]Write to MH i2c: 01 00 00 64 54 B8 [18:58:17]*** FLAG_PRN_KEY reset [18:58:17]Write i2c OK [18:58:17]MH_I2C_Read... [18:58:17]Read from MH i2c: 01 [18:58:17]MH_I2C_Read... [18:58:17]Read from MH i2c: 01 07 00 [18:58:17]MH_I2C_Read... [18:58:17]Read from MH i2c: 01 07 00 64 54 00 00 00 00 00 F6 0F C4 [18:58:17]state=2 [18:58:17]Stop feed [18:58:21]OFD Sender: No OFD packet to send [18:58:26]OFD Sender: No OFD packet to send [18:58:31]OFD Sender: No OFD packet to send [18:58:36]OFD Sender: No OFD packet to send [18:58:41]OFD Sender: No OFD packet to send [18:58:46]OFD Sender: No OFD packet to send [18:58:51]OFD Sender: No OFD packet to send [18:58:56]OFD Sender: No OFD packet to send [18:59:01]OFD Sender: No OFD packet to send [18:59:06]OFD Sender: No OFD packet to send [18:59:11]OFD Sender: No OFD packet to send [18:59:16]OFD Sender: No OFD packet to send [18:59:21]OFD Sender: No OFD packet to send [18:59:26]OFD Sender: No OFD packet to send [18:59:31]OFD Sender: No OFD packet to send [18:59:36]OFD Sender: No OFD packet to send [18:59:41]OFD Sender: No OFD packet to send [18:59:46]OFD Sender: No OFD packet to send [18:59:51]OFD Sender: No OFD packet to send [18:59:56]OFD Sender: No OFD packet to send [19:00:01]OFD Sender: No OFD packet to send [19:00:06]OFD Sender: No OFD packet to send [19:00:11]OFD Sender: No OFD packet to send [19:00:16]OFD Sender: No OFD packet to send [19:00:21]OFD Sender: No OFD packet to send [19:00:26]OFD Sender: No OFD packet to send [19:00:31]OFD Sender: No OFD packet to send [19:00:36]OFD Sender: No OFD packet to send [19:00:41]OFD Sender: No OFD packet to send [19:00:46]OFD Sender: No OFD packet to send [19:00:51]OFD Sender: No OFD packet to send [19:00:56]OFD Sender: No OFD packet to send [19:01:01]OFD Sender: No OFD packet to send [19:01:06]OFD Sender: No OFD packet to send [19:01:11]OFD Sender: No OFD packet to send [19:01:16]OFD Sender: No OFD packet to send [19:01:21]OFD Sender: No OFD packet to send [19:01:26]OFD Sender: No OFD packet to send [19:01:31]OFD Sender: No OFD packet to send [19:01:36]OFD Sender: No OFD packet to send [19:01:41]OFD Sender: No OFD packet to send [19:01:46]OFD Sender: No OFD packet to send [19:01:51]OFD Sender: No OFD packet to send [19:01:56]OFD Sender: No OFD packet to send [19:02:01]OFD Sender: No OFD packet to send [19:02:06]OFD Sender: No OFD packet to send [19:02:11]OFD Sender: No OFD packet to send [19:02:16]OFD Sender: No OFD packet to send [19:02:21]OFD Sender: No OFD packet to send [19:02:26]OFD Sender: No OFD packet to send [19:02:31]OFD Sender: No OFD packet to send [19:02:36]OFD Sender: No OFD packet to send [19:02:41]OFD Sender: No OFD packet to send [19:02:46]OFD Sender: No OFD packet to send [19:02:51]OFD Sender: No OFD packet to send [19:02:56]OFD Sender: No OFD packet to send [19:03:01]OFD Sender: No OFD packet to send [19:03:06]OFD Sender: No OFD packet to send [19:03:11]OFD Sender: No OFD packet to send [19:03:16]OFD Sender: No OFD packet to send [19:03:21]OFD Sender: No OFD packet to send [19:03:26]OFD Sender: No OFD packet to send [19:03:31]OFD Sender: No OFD packet to send [19:03:36]OFD Sender: No OFD packet to send [19:03:41]OFD Sender: No OFD packet to send [19:03:46]OFD Sender: No OFD packet to send [19:03:51]OFD Sender: No OFD packet to send [19:03:56]OFD Sender: No OFD packet to send [19:04:01]OFD Sender: No OFD packet to send [19:04:06]OFD Sender: No OFD packet to send [19:04:11]OFD Sender: No OFD packet to send [19:04:16]OFD Sender: No OFD packet to send [19:04:21]OFD Sender: No OFD packet to send [19:04:26]OFD Sender: No OFD packet to send [19:04:31]OFD Sender: No OFD packet to send [19:04:36]OFD Sender: No OFD packet to send [19:04:41]OFD Sender: No OFD packet to send [19:04:46]OFD Sender: No OFD packet to send [19:04:51]OFD Sender: No OFD packet to send [19:04:56]OFD Sender: No OFD packet to send [19:05:01]OFD Sender: No OFD packet to send [19:05:06]OFD Sender: No OFD packet to send [19:05:11]OFD Sender: No OFD packet to send [19:05:16]OFD Sender: No OFD packet to send [19:05:21]OFD Sender: No OFD packet to send [19:05:26]OFD Sender: No OFD packet to send [19:05:31]OFD Sender: No OFD packet to send [19:05:36]OFD Sender: No OFD packet to send [19:05:41]OFD Sender: No OFD packet to send [19:05:46]OFD Sender: No OFD packet to send [19:05:51]OFD Sender: No OFD packet to send [19:05:56]OFD Sender: No OFD packet to send [19:05:58]accept exits with 10 [19:05:58]New connection [19:05:58]New thread 3067157860 created [19:05:58]Thread 3067014500 joined [19:05:58]Waiting for new connection... [19:05:58] Sock 10.Parse request [19:05:58]Sock 10.Check first char [19:05:58]Sock 10.First char is OK [19:05:58]request: POST /json_proto HTTP/1.0 [19:05:58]Method: POST [19:05:58]URL: /json_proto [19:05:58]Method is POST - this is cgi request [19:05:58]url: /json_proto [19:05:58]query_string will be loaded in cgi processing [19:05:58]execute_cgi json_proto POST (null) [19:05:58]execute_cgi path=json_proto method=POST [19:05:58]POST find Content-Length [19:05:58]Host: 172.17.48.198:8080 [19:05:58]Content-Length: 628 [19:05:58]Content-Type: application/json [19:05:58] [19:05:58]POST finish read [19:05:58]Found Content-Length = 628 [19:05:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184198", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:05:58]execute_script... [19:05:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184198", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:05:58]POST & json_proto [19:05:58]process_json_proto [19:05:58]json parsed OK: [19:05:58]protocol is kg_v1.0 [19:05:58]action value=close_receipt [19:05:58]process_action close_receipt [19:05:58]cmd_close_receipt [19:05:58]MH_GetDate [19:05:58]Write to MH i2c: F0 00 00 65 54 A8 [19:05:58]Write i2c OK [19:05:58]MH_I2C_Read... [19:05:58]Read from MH i2c: F0 [19:05:58]MH_I2C_Read... [19:05:58]Read from MH i2c: F0 09 00 [19:05:58]MH_I2C_Read... [19:05:58]Read from MH i2c: F0 09 00 65 54 00 23 CA E4 65 CE C4 D4 65 B2 [19:05:58]GetLastDocTimeStamp 1709492166 [19:05:58]current date 1709492771 [19:05:58]FM_GetShiftState [19:05:58]SAM_PROTO_GetShiftState [19:05:58]wFMCommunicate request_size=4 [19:05:58]MH_SAM_APDU [19:05:58]CAPDU: 80 13 01 00 [19:05:58]Write to MH i2c: E2 08 00 66 54 80 13 01 00 00 00 00 00 37 [19:05:58]Write i2c OK [19:05:58]MH_I2C_Read... [19:05:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:05:58]Read from MH i2c: E2 [19:05:58]MH_I2C_Read... [19:05:58]Read from MH i2c: E2 0E 00 [19:05:58]MH_I2C_Read... [19:05:58]Read from MH i2c: E2 0E 00 66 54 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 6D [19:05:58]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [19:05:58]wFMCommunicate OK [19:05:58]SAM_PROTO_GetShiftState done [19:05:58]FM_GetShiftState done [19:05:58]opened in 1709425694 [19:05:58]opened+sec_in_day 1709512094 [19:05:58]quantity*price = 13000 [19:05:58]sum+1 = 13001 [19:05:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 73 03.03.2024 19:06 Смена: 331 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 ФМ: 0000000000874796 ФД: 45236 ФПД: 151221441204474 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T190611&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45236&fm=151221441204474&tin=02508201610067®Number=0000000000090572&sum=13000 0 [19:05:59]StoreToDocumentArchive [19:05:59]shift 331 fd 45236 [19:05:59]save to /storage/0331/doc_00045236 [19:05:59]save last doc name /storage/0331/doc_00045236 to /storage/kkm_last_doc_name [19:05:59]save OK [19:05:59]Clear old archive folders... [19:05:59]ProcessDocumentItem done err = 0, tmpTLVsize=276 [19:05:59]tlvbuf is 01B9B350 [19:05:59]SAM_PROTO_ClearQueue [19:05:59]wFMCommunicate request_size=4 [19:05:59]MH_SAM_APDU [19:05:59]CAPDU: 80 09 00 00 [19:05:59]Write to MH i2c: E2 08 00 73 54 80 09 00 00 00 00 00 00 39 [19:05:59]Write i2c OK [19:05:59]MH_I2C_Read... [19:05:59]Read from MH i2c: E2 [19:05:59]MH_I2C_Read... [19:05:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:05:59]Read from MH i2c: E2 03 00 [19:05:59]MH_I2C_Read... [19:05:59]Read from MH i2c: E2 03 00 73 54 00 90 00 3B [19:05:59]RAPDU: 90 00 [19:05:59]wFMCommunicate OK [19:05:59]SAM_PROTO_ClearQueue done [19:05:59]KKMCreateOFDPacket [19:05:59]OFDProtocolAddRootSTLVToBuf [19:05:59]FM_MakeSignedData [19:05:59]FM_MakeSignedData [19:05:59]SAM_PROTO_SignData [19:05:59]wFMCommunicate request_size=4 [19:05:59]MH_SAM_APDU [19:05:59]CAPDU: 80 0D 01 02 [19:05:59]Write to MH i2c: E2 08 00 74 54 80 0D 01 02 00 00 00 00 41 [19:05:59]Write i2c OK [19:05:59]MH_I2C_Read... [19:05:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:05:59]Read from MH i2c: E2 [19:05:59]MH_I2C_Read... [19:05:59]Read from MH i2c: E2 03 00 [19:05:59]MH_I2C_Read... [19:05:59]Read from MH i2c: E2 03 00 74 54 00 90 00 3C [19:05:59]RAPDU: 90 00 [19:05:59]wFMCommunicate OK [19:05:59]wFMCommunicate request_size=255 [19:05:59]MH_SAM_APDU [19:05:59]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 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 49 00 00 00 F4 03 04 00 23 CA E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 [19:05:59]Write to MH i2c: E2 02 01 75 54 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 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 49 00 00 00 F4 03 04 00 23 CA E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 00 00 25 [19:05:59]Write i2c OK [19:05:59]MH_I2C_Read... [19:06:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:06:00]Read from MH i2c: E2 [19:06:00]MH_I2C_Read... [19:06:00]Read from MH i2c: E2 03 00 [19:06:00]MH_I2C_Read... [19:06:00]Read from MH i2c: E2 03 00 75 54 00 90 00 3D [19:06:00]RAPDU: 90 00 [19:06:00]wFMCommunicate OK [19:06:00]wFMCommunicate request_size=35 [19:06:00]MH_SAM_APDU [19:06:00]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 B4 B0 00 00 35 04 06 00 89 88 FC 49 10 FA [19:06:00]Write to MH i2c: E2 26 00 76 54 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 B4 B0 00 00 35 04 06 00 89 88 FC 49 10 FA 00 00 04 [19:06:00]Write i2c OK [19:06:00]MH_I2C_Read... [19:06:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:06:00]Read from MH i2c: E2 [19:06:00]MH_I2C_Read... [19:06:00]Read from MH i2c: E2 03 00 [19:06:00]MH_I2C_Read... [19:06:00]Read from MH i2c: E2 03 00 76 54 00 90 00 3E [19:06:00]RAPDU: 90 00 [19:06:00]wFMCommunicate OK [19:06:00]wFMCommunicate request_size=4 [19:06:00]MH_SAM_APDU [19:06:00]CAPDU: 80 0D 03 02 [19:06:00]Write to MH i2c: E2 08 00 77 54 80 0D 03 02 00 00 00 00 46 [19:06:00]Write i2c OK [19:06:00]MH_I2C_Read... [19:06:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:06:00]Read from MH i2c: E2 [19:06:00]MH_I2C_Read... [19:06:00]Read from MH i2c: E2 0B 00 [19:06:00]MH_I2C_Read... [19:06:00]Read from MH i2c: E2 0B 00 77 54 00 BB 68 B2 6F 9E F5 0E 22 90 00 4E [19:06:00]RAPDU: BB 68 B2 6F 9E F5 0E 22 90 00 [19:06:00]wFMCommunicate OK [19:06:00]SAM_PROTO_SignData done [19:06:00]FM_MakeSignedData done [19:06:00]CreateOFDProtocolMessage [19:06:00]wFMCommunicate request_size=4 [19:06:00]MH_SAM_APDU [19:06:00]CAPDU: 80 11 00 00 [19:06:00]Write to MH i2c: E2 08 00 78 54 80 11 00 00 00 00 00 00 46 [19:06:00]Write i2c OK [19:06:00]MH_I2C_Read... [19:06:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:06:00]Read from MH i2c: E2 [19:06:00]MH_I2C_Read... [19:06:00]Read from MH i2c: E2 17 00 [19:06:00]MH_I2C_Read... [19:06:00]Read from MH i2c: E2 17 00 78 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 A2 [19:06:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [19:06:00]wFMCommunicate OK [19:06:00]CreateOFDProtocolMessage done [19:06:00]OFDSenderStorePacket 45236 [19:06:00]StoreOFDPacket docnum=45236 [19:06:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 28 01 00 00 46 73 20 01 73 F0 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 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 49 00 00 00 F4 03 04 00 23 CA E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 B4 B0 00 00 35 04 06 00 89 88 FC 49 10 FA BB 68 B2 6F 9E F5 0E 22 [19:06:00]CheckFolder [19:06:00]dirname=/storage/ofd_packets [19:06:00]CheckFolder done [19:06:00]ProducePacketName [19:06:00]name=ofd_packets/00045236 [19:06:00]NVStorageSaveData ofd_packets/00045236 [19:06:00]File name is /storage/ofd_packets/00045236 [19:06:00]Write 326 bytes [19:06:00]NVStorageSaveData done [19:06:00]OFDSenderStorePacket done [19:06:00]KKMCreateOFDPacket done [19:06:00]NVStorageSaveData kkm_last_timestamp [19:06:00]File name is /storage/kkm_last_timestamp [19:06:00]Write 4 bytes [19:06:00]NVStorageSaveData done [19:06:00]ExternCall_PrintAddStr [19:06:00]wPrintStart [19:06:00]Write to MH i2c: 01 00 00 79 54 CD [19:06:00]Write i2c OK [19:06:00]MH_I2C_Read... [19:06:00]Read from MH i2c: 01 [19:06:00]MH_I2C_Read... [19:06:00]Read from MH i2c: 01 07 00 [19:06:00]MH_I2C_Read... [19:06:00]Read from MH i2c: 01 07 00 79 54 00 00 00 00 00 FF 0F E2 [19:06:00]RasterBufferAndPrint [19:06:00]line Счет N : (3)184198 [19:06:00]line ИНН: 02508201610067 [19:06:00]line Контрольно-Кассовый Чек [19:06:00]line ПРОДАЖА [19:06:00]line Товар: 2000036230011 [19:06:00]line Кофе Латте XL(GABB TRADE) [19:06:00]line 1.000 * 130.00 [19:06:00]line = 130.00 [19:06:00]line НДС 12% НСП 1% [19:06:00]line > о реализуемом товаре [19:06:00]line ИТОГО: 130.00 [19:06:00]line НСП 1% : 1.15 [19:06:00]line НДС 12% : 13.80 [19:06:00]line Наличными: 130.00 [19:06:00]line Безнал.: 0.00 [19:06:00]line Место: АЗС № 25 "Партнер Нефть" [19:06:00]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [19:06:00]line СНО: Общий режим [19:06:00]line Чек 73 03.03.2024 19:06 [19:06:00]line Смена: 331 ФФД: 1.0 [19:06:00]line ЗНМ: 0300000013 [19:06:00]line РНМ: 0000000000090572 [19:06:00]line Версия ККМ: 001 [19:06:00]line ФМ: 0000000000874796 [19:06:00]line ФД: 45236 [19:06:00]line ФПД: 151221441204474 [19:06:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T190611&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45236&fm=151221441204474&tin=02508201610067®Number=0000000000090572&sum=13000 [19:06:00]line 0 [19:06:00]OFD Sender: Processing packet 45236 [packets to send 17, broken 16] [19:06:00]ProducePacketName [19:06:00]name=ofd_packets/00045236 [19:06:00]OFD Sender: To server: pG, [19:06:00]CommunicateWithHost lk.salyk.kg:30040 [19:06:00]ConnectInit lk.salyk.kg [19:06:00]written 0, free lines is 4095 [19:06:00]Connected sock=9 [19:06:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 28 01 00 00 46 73 20 01 73 F0 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 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 49 00 00 00 F4 03 04 00 23 CA E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 B4 B0 00 00 35 04 06 00 89 88 FC 49 10 FA BB 68 B2 6F 9E F5 0E 22 [19:06:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 C1 E3 47 00 70 F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 B4 B0 00 00 F4 03 04 00 E7 75 E4 65 B6 04 01 00 00 44 1E C1 8E 29 4D 2E CA [19:06:00]CommunicateWithHost err = 0 [19:06:00]CheckOFDResponse [19:06:00]1017 (14) - 77093643461234 [19:06:00]1041 (16) - 0000000000874796 [19:06:00]1040 (4) - 45236 [19:06:00]1012 (4) - 03.03.2024 13:06 [19:06:00]1206 (1) - 0 [19:06:00]OFD Sender: Remove packet 45236 [19:06:00]ProducePacketName [19:06:00]name=ofd_packets/00045236 [19:06:00]NVStorageDeleteData [19:06:00]Write to MH i2c: 01 00 00 A1 54 F5 [19:06:00]Write i2c OK [19:06:00]MH_I2C_Read... [19:06:00]Read from MH i2c: 01 [19:06:01]MH_I2C_Read... [19:06:01]Read from MH i2c: 01 07 00 [19:06:01]MH_I2C_Read... [19:06:01]Read from MH i2c: 01 07 00 A1 54 00 00 00 00 00 1C 0D 25 [19:06:01]RasterBufferAndPrint [19:06:01]line [19:06:01]line [19:06:01]line [19:06:01]line [19:06:01]line [19:06:01]written 0, free lines is 3362 [19:06:01]MH_Cut [19:06:01]Write to MH i2c: D1 01 00 A8 54 01 CE [19:06:01]Write i2c OK [19:06:01]MH_I2C_Read... [19:06:01]Read from MH i2c: D1 [19:06:01]MH_I2C_Read... [19:06:01]Read from MH i2c: D1 01 00 [19:06:01]MH_I2C_Read... [19:06:01]Read from MH i2c: D1 01 00 A8 54 00 CD [19:06:01]Write to MH i2c: 01 00 00 A9 54 FD [19:06:01]Write i2c OK [19:06:01]MH_I2C_Read... [19:06:01]OFD Sender: No OFD packet to send [19:06:01]*** Cut start [19:06:01]*** Purtial cut [19:06:01]*** Stage 1: CUTSNS_PIN = 1 [19:06:03]Read from MH i2c: 01 [19:06:03]MH_I2C_Read... [19:06:03]*** Stop cut motor [19:06:03]*** Cut end [19:06:03]Read from MH i2c: 01 07 00 [19:06:03]MH_I2C_Read... [19:06:03]Read from MH i2c: 01 07 00 A9 54 00 00 00 00 00 FF 0F 12 [19:06:03]process_action close_receipt done [19:06:03]requested_data is exist [19:06:03]produce_requested_data [19:06:03]requested_item fm.sn is exist - process it [19:06:03]wFMCommunicate request_size=4 [19:06:03]MH_SAM_APDU [19:06:03]CAPDU: 80 11 00 00 [19:06:03]Write to MH i2c: E2 08 00 AA 54 80 11 00 00 00 00 00 00 78 [19:06:03]Write i2c OK [19:06:03]MH_I2C_Read... [19:06:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:06:03]Read from MH i2c: E2 [19:06:03]MH_I2C_Read... [19:06:03]Read from MH i2c: E2 17 00 [19:06:03]MH_I2C_Read... [19:06:03]Read from MH i2c: E2 17 00 AA 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 D4 [19:06:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [19:06:03]wFMCommunicate OK [19:06:03]requested_item fd.num is exist - process it [19:06:03]SAM_PROTO_GetFieldsCounters [19:06:03]wFMCommunicate request_size=4 [19:06:03]MH_SAM_APDU [19:06:03]CAPDU: 80 13 00 00 [19:06:03]Write to MH i2c: E2 08 00 AB 54 80 13 00 00 00 00 00 00 7B [19:06:03]Write i2c OK [19:06:03]MH_I2C_Read... [19:06:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:06:03]Read from MH i2c: E2 [19:06:03]MH_I2C_Read... [19:06:03]Read from MH i2c: E2 62 00 [19:06:03]MH_I2C_Read... [19:06:03]Read from MH i2c: E2 62 00 AB 54 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 B4 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 2E [19:06:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 B4 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:06:03]wFMCommunicate OK [19:06:03]SAM_PROTO_GetFieldsCounters done [19:06:03]requested_item shift.num is exist - process it [19:06:03]requested_item shift.opened is exist - process it [19:06:03]req_shift_opened [19:06:03]FM_GetShiftState [19:06:03]SAM_PROTO_GetShiftState [19:06:03]wFMCommunicate request_size=4 [19:06:03]MH_SAM_APDU [19:06:03]CAPDU: 80 13 01 00 [19:06:03]Write to MH i2c: E2 08 00 AC 54 80 13 01 00 00 00 00 00 7D [19:06:03]Write i2c OK [19:06:03]MH_I2C_Read... [19:06:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:06:03]Read from MH i2c: E2 [19:06:03]MH_I2C_Read... [19:06:03]Read from MH i2c: E2 0E 00 [19:06:03]MH_I2C_Read... [19:06:03]Read from MH i2c: E2 0E 00 AC 54 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 B3 [19:06:03]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [19:06:03]wFMCommunicate OK [19:06:03]SAM_PROTO_GetShiftState done [19:06:03]FM_GetShiftState done [19:06:03]req_shift_opened done [19:06:03]requested_item shift.open_date is exist - process it [19:06:03]req_shift_open_date [19:06:03]req_shift_open_date done [19:06:03]produce_requested_data done [19:06:03]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45236,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [19:06:03]process_action_free close_receipt [19:06:03]json_value_free [19:06:03]json_value_free done [19:06:03]process_json_proto returns [19:06:03]Send response to host [19:06:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45236,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [19:06:03]free response buf [19:06:03]execute_script done [19:06:03]execute_script returns [19:06:03]free content buf [19:06:03]Sock 10.Close socket [19:06:03]Sock 10.Thread stoped [19:06:06]OFD Sender: No OFD packet to send [19:06:11]OFD Sender: No OFD packet to send [19:06:16]OFD Sender: No OFD packet to send [19:06:21]OFD Sender: No OFD packet to send [19:06:26]OFD Sender: No OFD packet to send [19:06:31]OFD Sender: No OFD packet to send [19:06:34]accept exits with 7 [19:06:34]New connection [19:06:34]New thread 3067014500 created [19:06:34]Thread 3067157860 joined [19:06:34]Waiting for new connection... [19:06:34] Sock 7.Parse request [19:06:34]Sock 7.Check first char [19:06:34]Sock 7.First char is OK [19:06:34]request: POST /json_proto HTTP/1.0 [19:06:34]Method: POST [19:06:34]URL: /json_proto [19:06:34]Method is POST - this is cgi request [19:06:34]url: /json_proto [19:06:34]query_string will be loaded in cgi processing [19:06:34]execute_cgi json_proto POST (null) [19:06:34]execute_cgi path=json_proto method=POST [19:06:34]POST find Content-Length [19:06:34]Host: 172.17.48.198:8080 [19:06:34]Content-Length: 681 [19:06:34]Content-Type: application/json [19:06:34] [19:06:34]POST finish read [19:06:34]Found Content-Length = 681 [19:06:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184199", "tax_sys" : 0, "items" : [ { "code": "4011100091993", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u041C\u0438\u043B\u043A\u0438 \u0412\u0435\u0439 26\u0433", "price" : 35.00, "quantity" : 1.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 35.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:06:34]execute_script... [19:06:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184199", "tax_sys" : 0, "items" : [ { "code": "4011100091993", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u041C\u0438\u043B\u043A\u0438 \u0412\u0435\u0439 26\u0433", "price" : 35.00, "quantity" : 1.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 35.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:06:34]POST & json_proto [19:06:34]process_json_proto [19:06:34]json parsed OK: [19:06:34]protocol is kg_v1.0 [19:06:34]action value=close_receipt [19:06:34]process_action close_receipt [19:06:34]cmd_close_receipt [19:06:34]MH_GetDate [19:06:34]Write to MH i2c: F0 00 00 AD 54 F0 [19:06:34]Write i2c OK [19:06:34]MH_I2C_Read... [19:06:34]Read from MH i2c: F0 [19:06:34]MH_I2C_Read... [19:06:34]Read from MH i2c: F0 09 00 [19:06:34]MH_I2C_Read... [19:06:34]Read from MH i2c: F0 09 00 AD 54 00 47 CA E4 65 CE C4 D4 65 1E [19:06:34]GetLastDocTimeStamp 1709492771 [19:06:34]current date 1709492807 [19:06:34]FM_GetShiftState [19:06:34]SAM_PROTO_GetShiftState [19:06:34]wFMCommunicate request_size=4 [19:06:34]MH_SAM_APDU [19:06:34]CAPDU: 80 13 01 00 [19:06:34]Write to MH i2c: E2 08 00 AE 54 80 13 01 00 00 00 00 00 7F [19:06:34]Write i2c OK [19:06:34]MH_I2C_Read... [19:06:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:06:34]Read from MH i2c: E2 [19:06:34]MH_I2C_Read... [19:06:34]Read from MH i2c: E2 0E 00 [19:06:34]MH_I2C_Read... [19:06:34]Read from MH i2c: E2 0E 00 AE 54 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 B5 [19:06:34]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [19:06:34]wFMCommunicate OK [19:06:34]SAM_PROTO_GetShiftState done [19:06:34]FM_GetShiftState done [19:06:34]opened in 1709425694 [19:06:34]opened+sec_in_day 1709512094 [19:06:34]quantity*price = 3500 [19:06:34]sum+1 = 3501 [19:06:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 35.00 НСП 1% : 0.31 НДС 12% : 3.72 Наличными: 35.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 74 03.03.2024 19:06 Смена: 331 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 ФМ: 0000000000874796 ФД: 45237 ФПД: 94766570692021 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T190647&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45237&fm=94766570692021&tin=02508201610067®Number=0000000000090572&sum=3500 0 [19:06:35]StoreToDocumentArchive [19:06:35]shift 331 fd 45237 [19:06:35]save to /storage/0331/doc_00045237 [19:06:35]save last doc name /storage/0331/doc_00045237 to /storage/kkm_last_doc_name [19:06:35]save OK [19:06:35]Clear old archive folders... [19:06:35]ProcessDocumentItem done err = 0, tmpTLVsize=288 [19:06:35]tlvbuf is 01AFC870 [19:06:35]SAM_PROTO_ClearQueue [19:06:35]wFMCommunicate request_size=4 [19:06:35]MH_SAM_APDU [19:06:35]CAPDU: 80 09 00 00 [19:06:35]Write to MH i2c: E2 08 00 BB 54 80 09 00 00 00 00 00 00 81 [19:06:35]Write i2c OK [19:06:35]MH_I2C_Read... [19:06:35]Read from MH i2c: E2 [19:06:35]MH_I2C_Read... [19:06:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:06:35]Read from MH i2c: E2 03 00 [19:06:35]MH_I2C_Read... [19:06:35]Read from MH i2c: E2 03 00 BB 54 00 90 00 83 [19:06:35]RAPDU: 90 00 [19:06:35]wFMCommunicate OK [19:06:35]SAM_PROTO_ClearQueue done [19:06:35]KKMCreateOFDPacket [19:06:35]OFDProtocolAddRootSTLVToBuf [19:06:35]FM_MakeSignedData [19:06:35]FM_MakeSignedData [19:06:35]SAM_PROTO_SignData [19:06:35]wFMCommunicate request_size=4 [19:06:35]MH_SAM_APDU [19:06:35]CAPDU: 80 0D 01 02 [19:06:35]Write to MH i2c: E2 08 00 BC 54 80 0D 01 02 00 00 00 00 89 [19:06:35]Write i2c OK [19:06:35]MH_I2C_Read... [19:06:35]Read from MH i2c: E2 [19:06:35]MH_I2C_Read... [19:06:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:06:35]Read from MH i2c: E2 03 00 [19:06:35]MH_I2C_Read... [19:06:35]Read from MH i2c: E2 03 00 BC 54 00 90 00 84 [19:06:35]RAPDU: 90 00 [19:06:35]wFMCommunicate OK [19:06:35]wFMCommunicate request_size=255 [19:06:35]MH_SAM_APDU [19:06:35]CAPDU: 80 0D 02 02 FA 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 30 31 31 31 30 30 30 39 31 39 39 33 06 04 2E 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 9C D0 B8 D0 BB D0 BA D0 B8 20 D0 92 D0 B5 D0 B9 20 32 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 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 47 CA E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 [19:06:35]Write to MH i2c: E2 02 01 BD 54 80 0D 02 02 FA 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 30 31 31 31 30 30 30 39 31 39 39 33 06 04 2E 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 9C D0 B8 D0 BB D0 BA D0 B8 20 D0 92 D0 B5 D0 B9 20 32 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 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 47 CA E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 00 00 C7 [19:06:35]Write i2c OK [19:06:35]MH_I2C_Read... [19:06:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:06:35]Read from MH i2c: E2 [19:06:35]MH_I2C_Read... [19:06:35]Read from MH i2c: E2 03 00 [19:06:35]MH_I2C_Read... [19:06:35]Read from MH i2c: E2 03 00 BD 54 00 90 00 85 [19:06:35]RAPDU: 90 00 [19:06:35]wFMCommunicate OK [19:06:35]wFMCommunicate request_size=47 [19:06:35]MH_SAM_APDU [19:06:35]CAPDU: 80 0D 02 02 2A 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 B5 B0 00 00 35 04 06 00 56 30 8F C8 5D B5 [19:06:35]Write to MH i2c: E2 32 00 BE 54 80 0D 02 02 2A 00 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 B5 B0 00 00 35 04 06 00 56 30 8F C8 5D B5 00 00 A7 [19:06:35]Write i2c OK [19:06:35]MH_I2C_Read... [19:06:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:06:36]Read from MH i2c: E2 [19:06:36]MH_I2C_Read... [19:06:36]Read from MH i2c: E2 03 00 [19:06:36]MH_I2C_Read... [19:06:36]Read from MH i2c: E2 03 00 BE 54 00 90 00 86 [19:06:36]RAPDU: 90 00 [19:06:36]wFMCommunicate OK [19:06:36]wFMCommunicate request_size=4 [19:06:36]MH_SAM_APDU [19:06:36]CAPDU: 80 0D 03 02 [19:06:36]Write to MH i2c: E2 08 00 BF 54 80 0D 03 02 00 00 00 00 8E [19:06:36]Write i2c OK [19:06:36]MH_I2C_Read... [19:06:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:06:36]Read from MH i2c: E2 [19:06:36]MH_I2C_Read... [19:06:36]Read from MH i2c: E2 0B 00 [19:06:36]MH_I2C_Read... [19:06:36]Read from MH i2c: E2 0B 00 BF 54 00 8B BA 75 4E 59 01 C2 3C 90 00 EF [19:06:36]RAPDU: 8B BA 75 4E 59 01 C2 3C 90 00 [19:06:36]wFMCommunicate OK [19:06:36]SAM_PROTO_SignData done [19:06:36]FM_MakeSignedData done [19:06:36]CreateOFDProtocolMessage [19:06:36]wFMCommunicate request_size=4 [19:06:36]MH_SAM_APDU [19:06:36]CAPDU: 80 11 00 00 [19:06:36]Write to MH i2c: E2 08 00 C0 54 80 11 00 00 00 00 00 00 8E [19:06:36]Write i2c OK [19:06:36]MH_I2C_Read... [19:06:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:06:36]Read from MH i2c: E2 [19:06:36]MH_I2C_Read... [19:06:36]Read from MH i2c: E2 17 00 [19:06:36]MH_I2C_Read... [19:06:36]Read from MH i2c: E2 17 00 C0 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 EA [19:06:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [19:06:36]wFMCommunicate OK [19:06:36]CreateOFDProtocolMessage done [19:06:36]OFDSenderStorePacket 45237 [19:06:36]StoreOFDPacket docnum=45237 [19:06:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 34 01 00 00 2F 55 2C 01 68 4D 5A 03 01 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 30 31 31 31 30 30 30 39 31 39 39 33 06 04 2E 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 9C D0 B8 D0 BB D0 BA D0 B8 20 D0 92 D0 B5 D0 B9 20 32 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 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 47 CA E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 B5 B0 00 00 35 04 06 00 56 30 8F C8 5D B5 8B BA 75 4E 59 01 C2 3C [19:06:36]CheckFolder [19:06:36]dirname=/storage/ofd_packets [19:06:36]CheckFolder done [19:06:36]ProducePacketName [19:06:36]name=ofd_packets/00045237 [19:06:36]NVStorageSaveData ofd_packets/00045237 [19:06:36]File name is /storage/ofd_packets/00045237 [19:06:36]Write 338 bytes [19:06:36]NVStorageSaveData done [19:06:36]OFDSenderStorePacket done [19:06:36]KKMCreateOFDPacket done [19:06:36]NVStorageSaveData kkm_last_timestamp [19:06:36]File name is /storage/kkm_last_timestamp [19:06:36]Write 4 bytes [19:06:36]NVStorageSaveData done [19:06:36]ExternCall_PrintAddStr [19:06:36]wPrintStart [19:06:36]Write to MH i2c: 01 00 00 C1 54 15 [19:06:36]Write i2c OK [19:06:36]MH_I2C_Read... [19:06:36]Read from MH i2c: 01 [19:06:36]MH_I2C_Read... [19:06:36]Read from MH i2c: 01 07 00 [19:06:36]MH_I2C_Read... [19:06:36]Read from MH i2c: 01 07 00 C1 54 00 00 00 00 00 FF 0F 2A [19:06:36]RasterBufferAndPrint [19:06:36]line Счет N : (3)184199 [19:06:36]line ИНН: 02508201610067 [19:06:36]line Контрольно-Кассовый Чек [19:06:36]line ПРОДАЖА [19:06:36]line Товар: 4011100091993 [19:06:36]line Шок Батончик Милки Вей 26г [19:06:36]line 1.000 * 35.00 [19:06:36]line = 35.00 [19:06:36]line НДС 12% НСП 1% [19:06:36]line > о реализуемом товаре [19:06:36]line ИТОГО: 35.00 [19:06:36]line НСП 1% : 0.31 [19:06:36]line НДС 12% : 3.72 [19:06:36]line Наличными: 35.00 [19:06:36]line Безнал.: 0.00 [19:06:36]line Место: АЗС № 25 "Партнер Нефть" [19:06:36]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [19:06:36]line СНО: Общий режим [19:06:36]line Чек 74 03.03.2024 19:06 [19:06:36]line Смена: 331 ФФД: 1.0 [19:06:36]line ЗНМ: 0300000013 [19:06:36]line РНМ: 0000000000090572 [19:06:36]line Версия ККМ: 001 [19:06:36]line ФМ: 0000000000874796 [19:06:36]line ФД: 45237 [19:06:36]line ФПД: 94766570692021 [19:06:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T190647&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45237&fm=94766570692021&tin=02508201610067®Number=0000000000090572&sum=3500 [19:06:36]line 0 [19:06:36]OFD Sender: Processing packet 45237 [packets to send 17, broken 16] [19:06:36]ProducePacketName [19:06:36]name=ofd_packets/00045237 [19:06:36]OFD Sender: To server: pG, [19:06:36]CommunicateWithHost lk.salyk.kg:30040 [19:06:36]ConnectInit lk.salyk.kg [19:06:36]written 0, free lines is 4095 [19:06:36]Connected sock=10 [19:06:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 34 01 00 00 2F 55 2C 01 68 4D 5A 03 01 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 30 31 31 31 30 30 30 39 31 39 39 33 06 04 2E 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 9C D0 B8 D0 BB D0 BA D0 B8 20 D0 92 D0 B5 D0 B9 20 32 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 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 47 CA E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 B5 B0 00 00 35 04 06 00 56 30 8F C8 5D B5 8B BA 75 4E 59 01 C2 3C [19:06:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 22 93 47 00 D9 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 B5 B0 00 00 F4 03 04 00 0B 76 E4 65 B6 04 01 00 00 CE 88 7D 77 A9 5F 07 F5 [19:06:36]CommunicateWithHost err = 0 [19:06:36]CheckOFDResponse [19:06:36]1017 (14) - 77093643461234 [19:06:36]1041 (16) - 0000000000874796 [19:06:36]1040 (4) - 45237 [19:06:36]1012 (4) - 03.03.2024 13:07 [19:06:36]1206 (1) - 0 [19:06:36]OFD Sender: Remove packet 45237 [19:06:36]ProducePacketName [19:06:36]name=ofd_packets/00045237 [19:06:36]NVStorageDeleteData [19:06:36]Write to MH i2c: 01 00 00 E9 54 3D [19:06:36]Write i2c OK [19:06:36]MH_I2C_Read... [19:06:36]Read from MH i2c: 01 [19:06:36]MH_I2C_Read... [19:06:36]Read from MH i2c: 01 07 00 [19:06:36]MH_I2C_Read... [19:06:36]Read from MH i2c: 01 07 00 E9 54 00 00 00 00 00 0B 0D 5C [19:06:36]RasterBufferAndPrint [19:06:36]line [19:06:36]line [19:06:36]line [19:06:36]line [19:06:36]line [19:06:36]written 0, free lines is 3348 [19:06:36]MH_Cut [19:06:36]Write to MH i2c: D1 01 00 F0 54 01 16 [19:06:36]Write i2c OK [19:06:36]MH_I2C_Read... [19:06:36]Read from MH i2c: D1 [19:06:36]MH_I2C_Read... [19:06:36]Read from MH i2c: D1 01 00 [19:06:36]MH_I2C_Read... [19:06:36]Read from MH i2c: D1 01 00 F0 54 00 15 [19:06:36]Write to MH i2c: 01 00 00 F1 54 45 [19:06:36]Write i2c OK [19:06:36]MH_I2C_Read... [19:06:37]OFD Sender: No OFD packet to send [19:06:37]*** Cut start [19:06:37]*** Purtial cut [19:06:37]*** Stage 1: CUTSNS_PIN = 1 [19:06:39]Read from MH i2c: 01 [19:06:39]MH_I2C_Read... [19:06:39]*** Stop cut motor [19:06:39]*** Cut end [19:06:39]Read from MH i2c: 01 07 00 [19:06:39]MH_I2C_Read... [19:06:39]Read from MH i2c: 01 07 00 F1 54 00 00 00 00 00 FF 0F 5A [19:06:39]process_action close_receipt done [19:06:39]requested_data is exist [19:06:39]produce_requested_data [19:06:39]requested_item fm.sn is exist - process it [19:06:39]wFMCommunicate request_size=4 [19:06:39]MH_SAM_APDU [19:06:39]CAPDU: 80 11 00 00 [19:06:39]Write to MH i2c: E2 08 00 F2 54 80 11 00 00 00 00 00 00 C0 [19:06:39]Write i2c OK [19:06:39]MH_I2C_Read... [19:06:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:06:39]Read from MH i2c: E2 [19:06:39]MH_I2C_Read... [19:06:39]Read from MH i2c: E2 17 00 [19:06:39]MH_I2C_Read... [19:06:39]Read from MH i2c: E2 17 00 F2 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 1C [19:06:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [19:06:39]wFMCommunicate OK [19:06:39]requested_item fd.num is exist - process it [19:06:39]SAM_PROTO_GetFieldsCounters [19:06:39]wFMCommunicate request_size=4 [19:06:39]MH_SAM_APDU [19:06:39]CAPDU: 80 13 00 00 [19:06:39]Write to MH i2c: E2 08 00 F3 54 80 13 00 00 00 00 00 00 C3 [19:06:39]Write i2c OK [19:06:39]MH_I2C_Read... [19:06:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:06:39]Read from MH i2c: E2 [19:06:39]MH_I2C_Read... [19:06:39]Read from MH i2c: E2 62 00 [19:06:39]MH_I2C_Read... [19:06:39]Read from MH i2c: E2 62 00 F3 54 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 B5 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 7A [19:06:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 B5 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:06:39]wFMCommunicate OK [19:06:39]SAM_PROTO_GetFieldsCounters done [19:06:39]requested_item shift.num is exist - process it [19:06:39]requested_item shift.opened is exist - process it [19:06:39]req_shift_opened [19:06:39]FM_GetShiftState [19:06:39]SAM_PROTO_GetShiftState [19:06:39]wFMCommunicate request_size=4 [19:06:39]MH_SAM_APDU [19:06:39]CAPDU: 80 13 01 00 [19:06:39]Write to MH i2c: E2 08 00 F4 54 80 13 01 00 00 00 00 00 C5 [19:06:39]Write i2c OK [19:06:39]MH_I2C_Read... [19:06:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:06:39]Read from MH i2c: E2 [19:06:39]MH_I2C_Read... [19:06:39]Read from MH i2c: E2 0E 00 [19:06:39]MH_I2C_Read... [19:06:39]Read from MH i2c: E2 0E 00 F4 54 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 FB [19:06:39]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [19:06:39]wFMCommunicate OK [19:06:39]SAM_PROTO_GetShiftState done [19:06:39]FM_GetShiftState done [19:06:39]req_shift_opened done [19:06:39]requested_item shift.open_date is exist - process it [19:06:39]req_shift_open_date [19:06:39]req_shift_open_date done [19:06:39]produce_requested_data done [19:06:39]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45237,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [19:06:39]process_action_free close_receipt [19:06:39]json_value_free [19:06:39]json_value_free done [19:06:39]process_json_proto returns [19:06:39]Send response to host [19:06:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45237,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [19:06:39]free response buf [19:06:39]execute_script done [19:06:39]execute_script returns [19:06:39]free content buf [19:06:39]Sock 7.Close socket [19:06:39]Sock 7.Thread stoped [19:06:42]OFD Sender: No OFD packet to send [19:06:47]OFD Sender: No OFD packet to send [19:06:52]OFD Sender: No OFD packet to send [19:06:57]OFD Sender: No OFD packet to send [19:07:02]OFD Sender: No OFD packet to send [19:07:07]OFD Sender: No OFD packet to send [19:07:12]OFD Sender: No OFD packet to send [19:07:17]OFD Sender: No OFD packet to send [19:07:22]OFD Sender: No OFD packet to send [19:07:27]OFD Sender: No OFD packet to send [19:07:32]OFD Sender: No OFD packet to send [19:07:37]OFD Sender: No OFD packet to send [19:07:42]OFD Sender: No OFD packet to send [19:07:47]OFD Sender: No OFD packet to send [19:07:52]OFD Sender: No OFD packet to send [19:07:57]OFD Sender: No OFD packet to send [19:08:02]OFD Sender: No OFD packet to send [19:08:07]OFD Sender: No OFD packet to send [19:08:12]OFD Sender: No OFD packet to send [19:08:17]OFD Sender: No OFD packet to send [19:08:22]OFD Sender: No OFD packet to send [19:08:27]OFD Sender: No OFD packet to send [19:08:32]OFD Sender: No OFD packet to send [19:08:37]OFD Sender: No OFD packet to send [19:08:42]OFD Sender: No OFD packet to send [19:08:47]OFD Sender: No OFD packet to send [19:08:52]OFD Sender: No OFD packet to send [19:08:57]OFD Sender: No OFD packet to send [19:09:02]OFD Sender: No OFD packet to send [19:09:07]OFD Sender: No OFD packet to send [19:09:12]OFD Sender: No OFD packet to send [19:09:17]OFD Sender: No OFD packet to send [19:09:22]OFD Sender: No OFD packet to send [19:09:27]OFD Sender: No OFD packet to send [19:09:32]OFD Sender: No OFD packet to send [19:09:37]OFD Sender: No OFD packet to send [19:09:42]OFD Sender: No OFD packet to send [19:09:47]OFD Sender: No OFD packet to send [19:09:52]OFD Sender: No OFD packet to send [19:09:57]OFD Sender: No OFD packet to send [19:10:02]OFD Sender: No OFD packet to send [19:10:07]OFD Sender: No OFD packet to send [19:10:12]OFD Sender: No OFD packet to send [19:10:17]OFD Sender: No OFD packet to send [19:10:22]OFD Sender: No OFD packet to send [19:10:27]OFD Sender: No OFD packet to send [19:10:32]OFD Sender: No OFD packet to send [19:10:37]OFD Sender: No OFD packet to send [19:10:42]OFD Sender: No OFD packet to send [19:10:47]OFD Sender: No OFD packet to send [19:10:52]OFD Sender: No OFD packet to send [19:10:57]OFD Sender: No OFD packet to send [19:11:02]OFD Sender: No OFD packet to send [19:11:07]OFD Sender: No OFD packet to send [19:11:12]OFD Sender: No OFD packet to send [19:11:17]OFD Sender: No OFD packet to send [19:11:22]OFD Sender: No OFD packet to send [19:11:27]OFD Sender: No OFD packet to send [19:11:32]OFD Sender: No OFD packet to send [19:11:37]OFD Sender: No OFD packet to send [19:11:42]OFD Sender: No OFD packet to send [19:11:47]OFD Sender: No OFD packet to send [19:11:52]OFD Sender: No OFD packet to send [19:11:57]OFD Sender: No OFD packet to send [19:12:02]OFD Sender: No OFD packet to send [19:12:07]OFD Sender: No OFD packet to send [19:12:12]OFD Sender: No OFD packet to send [19:12:17]OFD Sender: No OFD packet to send [19:12:22]OFD Sender: No OFD packet to send [19:12:27]OFD Sender: No OFD packet to send [19:12:32]OFD Sender: No OFD packet to send [19:12:37]OFD Sender: No OFD packet to send [19:12:42]OFD Sender: No OFD packet to send [19:12:47]OFD Sender: No OFD packet to send [19:12:52]OFD Sender: No OFD packet to send [19:12:57]OFD Sender: No OFD packet to send [19:13:02]OFD Sender: No OFD packet to send [19:13:07]OFD Sender: No OFD packet to send [19:13:12]OFD Sender: No OFD packet to send [19:13:17]OFD Sender: No OFD packet to send [19:13:22]OFD Sender: No OFD packet to send [19:13:27]OFD Sender: No OFD packet to send [19:13:32]OFD Sender: No OFD packet to send [19:13:37]OFD Sender: No OFD packet to send [19:13:42]OFD Sender: No OFD packet to send [19:13:47]OFD Sender: No OFD packet to send [19:13:52]OFD Sender: No OFD packet to send [19:13:57]OFD Sender: No OFD packet to send [19:14:02]OFD Sender: No OFD packet to send [19:14:07]OFD Sender: No OFD packet to send [19:14:12]OFD Sender: No OFD packet to send [19:14:17]OFD Sender: No OFD packet to send [19:14:22]OFD Sender: No OFD packet to send [19:14:27]OFD Sender: No OFD packet to send [19:14:32]OFD Sender: No OFD packet to send [19:14:37]OFD Sender: No OFD packet to send [19:14:42]OFD Sender: No OFD packet to send [19:14:47]OFD Sender: No OFD packet to send [19:14:52]OFD Sender: No OFD packet to send [19:14:57]OFD Sender: No OFD packet to send [19:15:02]OFD Sender: No OFD packet to send [19:15:07]OFD Sender: No OFD packet to send [19:15:12]OFD Sender: No OFD packet to send [19:15:17]OFD Sender: No OFD packet to send [19:15:22]OFD Sender: No OFD packet to send [19:15:27]OFD Sender: No OFD packet to send [19:15:32]OFD Sender: No OFD packet to send [19:15:37]OFD Sender: No OFD packet to send [19:15:42]OFD Sender: No OFD packet to send [19:15:47]OFD Sender: No OFD packet to send [19:15:52]OFD Sender: No OFD packet to send [19:15:57]OFD Sender: No OFD packet to send [19:16:02]OFD Sender: No OFD packet to send [19:16:07]OFD Sender: No OFD packet to send [19:16:12]OFD Sender: No OFD packet to send [19:16:17]OFD Sender: No OFD packet to send [19:16:22]OFD Sender: No OFD packet to send [19:16:27]OFD Sender: No OFD packet to send [19:16:32]OFD Sender: No OFD packet to send [19:16:37]OFD Sender: No OFD packet to send [19:16:42]OFD Sender: No OFD packet to send [19:16:47]OFD Sender: No OFD packet to send [19:16:52]OFD Sender: No OFD packet to send [19:16:57]OFD Sender: No OFD packet to send [19:17:02]OFD Sender: No OFD packet to send [19:17:07]OFD Sender: No OFD packet to send [19:17:12]OFD Sender: No OFD packet to send [19:17:17]OFD Sender: No OFD packet to send [19:17:22]OFD Sender: No OFD packet to send [19:17:27]OFD Sender: No OFD packet to send [19:17:32]OFD Sender: No OFD packet to send [19:17:37]OFD Sender: No OFD packet to send [19:17:42]OFD Sender: No OFD packet to send [19:17:47]OFD Sender: No OFD packet to send [19:17:52]OFD Sender: No OFD packet to send [19:17:57]OFD Sender: No OFD packet to send [19:18:02]OFD Sender: No OFD packet to send [19:18:07]OFD Sender: No OFD packet to send [19:18:12]OFD Sender: No OFD packet to send [19:18:17]OFD Sender: No OFD packet to send [19:18:22]OFD Sender: No OFD packet to send [19:18:27]OFD Sender: No OFD packet to send [19:18:32]OFD Sender: No OFD packet to send [19:18:37]OFD Sender: No OFD packet to send [19:18:42]OFD Sender: No OFD packet to send [19:18:47]OFD Sender: No OFD packet to send [19:18:52]OFD Sender: No OFD packet to send [19:18:57]OFD Sender: No OFD packet to send [19:19:02]OFD Sender: No OFD packet to send [19:19:07]OFD Sender: No OFD packet to send [19:19:12]OFD Sender: No OFD packet to send [19:19:17]OFD Sender: No OFD packet to send [19:19:22]OFD Sender: No OFD packet to send [19:19:27]OFD Sender: No OFD packet to send [19:19:32]OFD Sender: No OFD packet to send [19:19:37]OFD Sender: No OFD packet to send [19:19:42]OFD Sender: No OFD packet to send [19:19:47]OFD Sender: No OFD packet to send [19:19:52]OFD Sender: No OFD packet to send [19:19:57]OFD Sender: No OFD packet to send [19:20:02]OFD Sender: No OFD packet to send [19:20:07]OFD Sender: No OFD packet to send [19:20:12]OFD Sender: No OFD packet to send [19:20:17]OFD Sender: No OFD packet to send [19:20:22]OFD Sender: No OFD packet to send [19:20:27]OFD Sender: No OFD packet to send [19:20:32]OFD Sender: No OFD packet to send [19:20:37]OFD Sender: No OFD packet to send [19:20:42]OFD Sender: No OFD packet to send [19:20:47]OFD Sender: No OFD packet to send [19:20:52]OFD Sender: No OFD packet to send [19:20:57]OFD Sender: No OFD packet to send [19:21:02]OFD Sender: No OFD packet to send [19:21:07]OFD Sender: No OFD packet to send [19:21:12]OFD Sender: No OFD packet to send [19:21:17]OFD Sender: No OFD packet to send [19:21:22]OFD Sender: No OFD packet to send [19:21:27]OFD Sender: No OFD packet to send [19:21:32]OFD Sender: No OFD packet to send [19:21:37]OFD Sender: No OFD packet to send [19:21:42]OFD Sender: No OFD packet to send [19:21:47]OFD Sender: No OFD packet to send [19:21:53]OFD Sender: No OFD packet to send [19:21:58]OFD Sender: No OFD packet to send [19:22:03]OFD Sender: No OFD packet to send [19:22:08]OFD Sender: No OFD packet to send [19:22:13]OFD Sender: No OFD packet to send [19:22:18]OFD Sender: No OFD packet to send [19:22:23]OFD Sender: No OFD packet to send [19:22:28]OFD Sender: No OFD packet to send [19:22:33]OFD Sender: No OFD packet to send [19:22:38]OFD Sender: No OFD packet to send [19:22:43]OFD Sender: No OFD packet to send [19:22:48]OFD Sender: No OFD packet to send [19:22:53]OFD Sender: No OFD packet to send [19:22:58]OFD Sender: No OFD packet to send [19:23:03]OFD Sender: No OFD packet to send [19:23:08]OFD Sender: No OFD packet to send [19:23:13]OFD Sender: No OFD packet to send [19:23:18]OFD Sender: No OFD packet to send [19:23:23]OFD Sender: No OFD packet to send [19:23:28]OFD Sender: No OFD packet to send [19:23:33]OFD Sender: No OFD packet to send [19:23:38]OFD Sender: No OFD packet to send [19:23:43]OFD Sender: No OFD packet to send [19:23:48]OFD Sender: No OFD packet to send [19:23:53]OFD Sender: No OFD packet to send [19:23:58]OFD Sender: No OFD packet to send [19:24:03]OFD Sender: No OFD packet to send [19:24:08]OFD Sender: No OFD packet to send [19:24:13]OFD Sender: No OFD packet to send [19:24:18]OFD Sender: No OFD packet to send [19:24:23]OFD Sender: No OFD packet to send [19:24:28]OFD Sender: No OFD packet to send [19:24:33]OFD Sender: No OFD packet to send [19:24:38]OFD Sender: No OFD packet to send [19:24:43]OFD Sender: No OFD packet to send [19:24:48]OFD Sender: No OFD packet to send [19:24:50]accept exits with 9 [19:24:50]New connection [19:24:50]New thread 3067157860 created [19:24:50]Thread 3067014500 joined [19:24:50]Waiting for new connection... [19:24:50] Sock 9.Parse request [19:24:50]Sock 9.Check first char [19:24:50]Sock 9.First char is OK [19:24:50]request: POST /json_proto HTTP/1.0 [19:24:50]Method: POST [19:24:50]URL: /json_proto [19:24:50]Method is POST - this is cgi request [19:24:50]url: /json_proto [19:24:50]query_string will be loaded in cgi processing [19:24:50]execute_cgi json_proto POST (null) [19:24:50]execute_cgi path=json_proto method=POST [19:24:50]POST find Content-Length [19:24:50]Host: 172.17.48.198:8080 [19:24:50]Content-Length: 641 [19:24:50]Content-Type: application/json [19:24:50] [19:24:50]POST finish read [19:24:50]Found Content-Length = 641 [19:24:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184200", "tax_sys" : 0, "items" : [ { "code": "40822426", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 0,5\u043B \u0431/\u0433", "price" : 40.00, "quantity" : 2.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:24:50]execute_script... [19:24:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184200", "tax_sys" : 0, "items" : [ { "code": "40822426", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 0,5\u043B \u0431/\u0433", "price" : 40.00, "quantity" : 2.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:24:50]POST & json_proto [19:24:50]process_json_proto [19:24:50]json parsed OK: [19:24:50]protocol is kg_v1.0 [19:24:50]action value=close_receipt [19:24:50]process_action close_receipt [19:24:50]cmd_close_receipt [19:24:50]MH_GetDate [19:24:50]Write to MH i2c: F0 00 00 F5 54 38 [19:24:50]Write i2c OK [19:24:50]MH_I2C_Read... [19:24:50]Read from MH i2c: F0 [19:24:50]MH_I2C_Read... [19:24:50]Read from MH i2c: F0 09 00 [19:24:50]MH_I2C_Read... [19:24:50]Read from MH i2c: F0 09 00 F5 54 00 8F CE E4 65 CE C4 D4 65 B2 [19:24:50]GetLastDocTimeStamp 1709492807 [19:24:50]current date 1709493903 [19:24:50]FM_GetShiftState [19:24:50]SAM_PROTO_GetShiftState [19:24:50]wFMCommunicate request_size=4 [19:24:50]MH_SAM_APDU [19:24:50]CAPDU: 80 13 01 00 [19:24:50]Write to MH i2c: E2 08 00 F6 54 80 13 01 00 00 00 00 00 C7 [19:24:50]Write i2c OK [19:24:50]MH_I2C_Read... [19:24:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:24:50]Read from MH i2c: E2 [19:24:50]MH_I2C_Read... [19:24:50]Read from MH i2c: E2 0E 00 [19:24:50]MH_I2C_Read... [19:24:50]Read from MH i2c: E2 0E 00 F6 54 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 FD [19:24:50]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [19:24:50]wFMCommunicate OK [19:24:50]SAM_PROTO_GetShiftState done [19:24:50]FM_GetShiftState done [19:24:50]opened in 1709425694 [19:24:50]opened+sec_in_day 1709512094 [19:24:50]quantity*price = 8000 [19:24:50]sum+1 = 8001 [19:24:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 80.00 НСП 1% : 0.71 НДС 12% : 8.50 Наличными: 80.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 75 03.03.2024 19:25 Смена: 331 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 ФМ: 0000000000874796 ФД: 45238 ФПД: 149954359133129 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T192503&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45238&fm=149954359133129&tin=02508201610067®Number=0000000000090572&sum=8000 0 [19:24:51]StoreToDocumentArchive [19:24:51]shift 331 fd 45238 [19:24:51]save to /storage/0331/doc_00045238 [19:24:51]save last doc name /storage/0331/doc_00045238 to /storage/kkm_last_doc_name [19:24:51]save OK [19:24:51]Clear old archive folders... [19:24:51]ProcessDocumentItem done err = 0, tmpTLVsize=272 [19:24:51]tlvbuf is B6F8A5E0 [19:24:51]SAM_PROTO_ClearQueue [19:24:51]wFMCommunicate request_size=4 [19:24:51]MH_SAM_APDU [19:24:51]CAPDU: 80 09 00 00 [19:24:51]Write to MH i2c: E2 08 00 03 55 80 09 00 00 00 00 00 00 CA [19:24:51]Write i2c OK [19:24:51]MH_I2C_Read... [19:24:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:24:51]Read from MH i2c: E2 [19:24:51]MH_I2C_Read... [19:24:51]Read from MH i2c: E2 03 00 [19:24:51]MH_I2C_Read... [19:24:51]Read from MH i2c: E2 03 00 03 55 00 90 00 CC [19:24:51]RAPDU: 90 00 [19:24:51]wFMCommunicate OK [19:24:51]SAM_PROTO_ClearQueue done [19:24:51]KKMCreateOFDPacket [19:24:51]OFDProtocolAddRootSTLVToBuf [19:24:51]FM_MakeSignedData [19:24:51]FM_MakeSignedData [19:24:51]SAM_PROTO_SignData [19:24:51]wFMCommunicate request_size=4 [19:24:51]MH_SAM_APDU [19:24:51]CAPDU: 80 0D 01 02 [19:24:51]Write to MH i2c: E2 08 00 04 55 80 0D 01 02 00 00 00 00 D2 [19:24:51]Write i2c OK [19:24:51]MH_I2C_Read... [19:24:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:24:51]Read from MH i2c: E2 [19:24:51]MH_I2C_Read... [19:24:51]Read from MH i2c: E2 03 00 [19:24:51]MH_I2C_Read... [19:24:51]Read from MH i2c: E2 03 00 04 55 00 90 00 CD [19:24:51]RAPDU: 90 00 [19:24:51]wFMCommunicate OK [19:24:51]wFMCommunicate request_size=255 [19:24:51]MH_SAM_APDU [19:24:51]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 30 38 32 32 34 32 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 8F CE E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 [19:24:51]Write to MH i2c: E2 02 01 05 55 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 30 38 32 32 34 32 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 8F CE E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 00 00 F8 [19:24:51]Write i2c OK [19:24:51]MH_I2C_Read... [19:24:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:24:52]Read from MH i2c: E2 [19:24:52]MH_I2C_Read... [19:24:52]Read from MH i2c: E2 03 00 [19:24:52]MH_I2C_Read... [19:24:52]Read from MH i2c: E2 03 00 05 55 00 90 00 CE [19:24:52]RAPDU: 90 00 [19:24:52]wFMCommunicate OK [19:24:52]wFMCommunicate request_size=31 [19:24:52]MH_SAM_APDU [19:24:52]CAPDU: 80 0D 02 02 1A 30 30 38 37 34 37 39 36 10 04 04 00 B6 B0 00 00 35 04 06 00 88 61 F8 4F 03 C9 [19:24:52]Write to MH i2c: E2 22 00 06 55 80 0D 02 02 1A 00 30 30 38 37 34 37 39 36 10 04 04 00 B6 B0 00 00 35 04 06 00 88 61 F8 4F 03 C9 00 00 6B [19:24:52]Write i2c OK [19:24:52]MH_I2C_Read... [19:24:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:24:52]Read from MH i2c: E2 [19:24:52]MH_I2C_Read... [19:24:52]Read from MH i2c: E2 03 00 [19:24:52]MH_I2C_Read... [19:24:52]Read from MH i2c: E2 03 00 06 55 00 90 00 CF [19:24:52]RAPDU: 90 00 [19:24:52]wFMCommunicate OK [19:24:52]wFMCommunicate request_size=4 [19:24:52]MH_SAM_APDU [19:24:52]CAPDU: 80 0D 03 02 [19:24:52]Write to MH i2c: E2 08 00 07 55 80 0D 03 02 00 00 00 00 D7 [19:24:52]Write i2c OK [19:24:52]MH_I2C_Read... [19:24:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:24:52]Read from MH i2c: E2 [19:24:52]MH_I2C_Read... [19:24:52]Read from MH i2c: E2 0B 00 [19:24:52]MH_I2C_Read... [19:24:52]Read from MH i2c: E2 0B 00 07 55 00 9E 55 F2 EA 2A E3 57 A8 90 00 B3 [19:24:52]RAPDU: 9E 55 F2 EA 2A E3 57 A8 90 00 [19:24:52]wFMCommunicate OK [19:24:52]SAM_PROTO_SignData done [19:24:52]FM_MakeSignedData done [19:24:52]CreateOFDProtocolMessage [19:24:52]wFMCommunicate request_size=4 [19:24:52]MH_SAM_APDU [19:24:52]CAPDU: 80 11 00 00 [19:24:52]Write to MH i2c: E2 08 00 08 55 80 11 00 00 00 00 00 00 D7 [19:24:52]Write i2c OK [19:24:52]MH_I2C_Read... [19:24:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:24:52]Read from MH i2c: E2 [19:24:52]MH_I2C_Read... [19:24:52]Read from MH i2c: E2 17 00 [19:24:52]MH_I2C_Read... [19:24:52]Read from MH i2c: E2 17 00 08 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 33 [19:24:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [19:24:52]wFMCommunicate OK [19:24:52]CreateOFDProtocolMessage done [19:24:52]OFDSenderStorePacket 45238 [19:24:52]StoreOFDPacket docnum=45238 [19:24:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 24 01 00 00 69 D8 1C 01 B3 DE 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 30 38 32 32 34 32 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 8F CE E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 B6 B0 00 00 35 04 06 00 88 61 F8 4F 03 C9 9E 55 F2 EA 2A E3 57 A8 [19:24:52]CheckFolder [19:24:52]dirname=/storage/ofd_packets [19:24:52]CheckFolder done [19:24:52]ProducePacketName [19:24:52]name=ofd_packets/00045238 [19:24:52]NVStorageSaveData ofd_packets/00045238 [19:24:52]File name is /storage/ofd_packets/00045238 [19:24:52]Write 322 bytes [19:24:52]NVStorageSaveData done [19:24:52]OFDSenderStorePacket done [19:24:52]KKMCreateOFDPacket done [19:24:52]NVStorageSaveData kkm_last_timestamp [19:24:52]File name is /storage/kkm_last_timestamp [19:24:52]Write 4 bytes [19:24:52]NVStorageSaveData done [19:24:52]ExternCall_PrintAddStr [19:24:52]wPrintStart [19:24:52]Write to MH i2c: 01 00 00 09 55 5E [19:24:52]Write i2c OK [19:24:52]MH_I2C_Read... [19:24:52]Read from MH i2c: 01 [19:24:52]MH_I2C_Read... [19:24:52]Read from MH i2c: 01 07 00 [19:24:52]MH_I2C_Read... [19:24:52]Read from MH i2c: 01 07 00 09 55 00 00 00 00 00 FF 0F 73 [19:24:52]RasterBufferAndPrint [19:24:52]line Счет N : (3)184200 [19:24:52]line ИНН: 02508201610067 [19:24:52]line Контрольно-Кассовый Чек [19:24:52]line ПРОДАЖА [19:24:52]line Товар: 40822426 [19:24:52]line Вода Бонаква 0,5л б/г [19:24:52]line 2.000 * 40.00 [19:24:52]line = 80.00 [19:24:52]line НДС 12% НСП 1% [19:24:52]line > о реализуемом товаре [19:24:52]line ИТОГО: 80.00 [19:24:52]line НСП 1% : 0.71 [19:24:52]line НДС 12% : 8.50 [19:24:52]line Наличными: 80.00 [19:24:52]line Безнал.: 0.00 [19:24:52]line Место: АЗС № 25 "Партнер Нефть" [19:24:52]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [19:24:52]line СНО: Общий режим [19:24:52]line Чек 75 03.03.2024 19:25 [19:24:52]line Смена: 331 ФФД: 1.0 [19:24:52]line ЗНМ: 0300000013 [19:24:52]line РНМ: 0000000000090572 [19:24:52]line Версия ККМ: 001 [19:24:52]line ФМ: 0000000000874796 [19:24:52]line ФД: 45238 [19:24:52]line ФПД: 149954359133129 [19:24:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T192503&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45238&fm=149954359133129&tin=02508201610067®Number=0000000000090572&sum=8000 [19:24:52]line 0 [19:24:52]written 0, free lines is 4095 [19:24:52]OFD Sender: Processing packet 45238 [packets to send 17, broken 16] [19:24:52]ProducePacketName [19:24:52]name=ofd_packets/00045238 [19:24:52]OFD Sender: To server: pG, [19:24:52]CommunicateWithHost lk.salyk.kg:30040 [19:24:52]ConnectInit lk.salyk.kg [19:24:52]Connected sock=10 [19:24:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 24 01 00 00 69 D8 1C 01 B3 DE 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 30 38 32 32 34 32 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 8F CE E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 B6 B0 00 00 35 04 06 00 88 61 F8 4F 03 C9 9E 55 F2 EA 2A E3 57 A8 [19:24:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 0D 13 47 00 65 6A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 B6 B0 00 00 F4 03 04 00 53 7A E4 65 B6 04 01 00 00 7B 91 85 0A 23 09 DA 4C [19:24:52]CommunicateWithHost err = 0 [19:24:52]CheckOFDResponse [19:24:52]1017 (14) - 77093643461234 [19:24:52]1041 (16) - 0000000000874796 [19:24:52]1040 (4) - 45238 [19:24:52]1012 (4) - 03.03.2024 13:25 [19:24:52]1206 (1) - 0 [19:24:52]OFD Sender: Remove packet 45238 [19:24:52]ProducePacketName [19:24:52]name=ofd_packets/00045238 [19:24:52]NVStorageDeleteData [19:24:52]Write to MH i2c: 01 00 00 31 55 86 [19:24:52]Write i2c OK [19:24:52]MH_I2C_Read... [19:24:52]Read from MH i2c: 01 [19:24:52]MH_I2C_Read... [19:24:52]Read from MH i2c: 01 07 00 [19:24:52]MH_I2C_Read... [19:24:52]Read from MH i2c: 01 07 00 31 55 00 00 00 00 00 0D 0D A7 [19:24:52]RasterBufferAndPrint [19:24:52]line [19:24:52]line [19:24:52]line [19:24:52]line [19:24:52]line [19:24:52]written 0, free lines is 3347 [19:24:52]MH_Cut [19:24:52]Write to MH i2c: D1 01 00 38 55 01 5F [19:24:52]Write i2c OK [19:24:52]MH_I2C_Read... [19:24:52]Read from MH i2c: D1 [19:24:52]MH_I2C_Read... [19:24:52]Read from MH i2c: D1 01 00 [19:24:52]MH_I2C_Read... [19:24:52]Read from MH i2c: D1 01 00 38 55 00 5E [19:24:52]Write to MH i2c: 01 00 00 39 55 8E [19:24:52]Write i2c OK [19:24:52]MH_I2C_Read... [19:24:53]OFD Sender: No OFD packet to send [19:24:53]*** Cut start [19:24:53]*** Purtial cut [19:24:53]*** Stage 1: CUTSNS_PIN = 1 [19:24:55]Read from MH i2c: 01 [19:24:55]MH_I2C_Read... [19:24:55]*** Stop cut motor [19:24:55]*** Cut end [19:24:55]Read from MH i2c: 01 07 00 [19:24:55]MH_I2C_Read... [19:24:55]Read from MH i2c: 01 07 00 39 55 00 00 00 00 00 FF 0F A3 [19:24:55]process_action close_receipt done [19:24:55]requested_data is exist [19:24:55]produce_requested_data [19:24:55]requested_item fm.sn is exist - process it [19:24:55]wFMCommunicate request_size=4 [19:24:55]MH_SAM_APDU [19:24:55]CAPDU: 80 11 00 00 [19:24:55]Write to MH i2c: E2 08 00 3A 55 80 11 00 00 00 00 00 00 09 [19:24:55]Write i2c OK [19:24:55]MH_I2C_Read... [19:24:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:24:55]Read from MH i2c: E2 [19:24:55]MH_I2C_Read... [19:24:55]Read from MH i2c: E2 17 00 [19:24:55]MH_I2C_Read... [19:24:55]Read from MH i2c: E2 17 00 3A 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 65 [19:24:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [19:24:55]wFMCommunicate OK [19:24:55]requested_item fd.num is exist - process it [19:24:55]SAM_PROTO_GetFieldsCounters [19:24:55]wFMCommunicate request_size=4 [19:24:55]MH_SAM_APDU [19:24:55]CAPDU: 80 13 00 00 [19:24:55]Write to MH i2c: E2 08 00 3B 55 80 13 00 00 00 00 00 00 0C [19:24:55]Write i2c OK [19:24:55]MH_I2C_Read... [19:24:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:24:55]Read from MH i2c: E2 [19:24:55]MH_I2C_Read... [19:24:55]Read from MH i2c: E2 62 00 [19:24:55]MH_I2C_Read... [19:24:55]Read from MH i2c: E2 62 00 3B 55 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 B6 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 C7 [19:24:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 B6 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:24:55]wFMCommunicate OK [19:24:55]SAM_PROTO_GetFieldsCounters done [19:24:55]requested_item shift.num is exist - process it [19:24:55]requested_item shift.opened is exist - process it [19:24:55]req_shift_opened [19:24:55]FM_GetShiftState [19:24:55]SAM_PROTO_GetShiftState [19:24:55]wFMCommunicate request_size=4 [19:24:55]MH_SAM_APDU [19:24:55]CAPDU: 80 13 01 00 [19:24:55]Write to MH i2c: E2 08 00 3C 55 80 13 01 00 00 00 00 00 0E [19:24:55]Write i2c OK [19:24:55]MH_I2C_Read... [19:24:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:24:55]Read from MH i2c: E2 [19:24:55]MH_I2C_Read... [19:24:55]Read from MH i2c: E2 0E 00 [19:24:55]MH_I2C_Read... [19:24:55]Read from MH i2c: E2 0E 00 3C 55 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 44 [19:24:55]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [19:24:55]wFMCommunicate OK [19:24:55]SAM_PROTO_GetShiftState done [19:24:55]FM_GetShiftState done [19:24:55]req_shift_opened done [19:24:55]requested_item shift.open_date is exist - process it [19:24:55]req_shift_open_date [19:24:55]req_shift_open_date done [19:24:55]produce_requested_data done [19:24:55]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45238,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [19:24:55]process_action_free close_receipt [19:24:55]json_value_free [19:24:55]json_value_free done [19:24:55]process_json_proto returns [19:24:55]Send response to host [19:24:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45238,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [19:24:55]free response buf [19:24:55]execute_script done [19:24:55]execute_script returns [19:24:55]free content buf [19:24:55]Sock 9.Close socket [19:24:55]Sock 9.Thread stoped [19:24:58]OFD Sender: No OFD packet to send [19:25:03]OFD Sender: No OFD packet to send [19:25:08]OFD Sender: No OFD packet to send [19:25:13]OFD Sender: No OFD packet to send [19:25:18]OFD Sender: No OFD packet to send [19:25:23]OFD Sender: No OFD packet to send [19:25:28]OFD Sender: No OFD packet to send [19:25:33]OFD Sender: No OFD packet to send [19:25:38]OFD Sender: No OFD packet to send [19:25:43]OFD Sender: No OFD packet to send [19:25:48]OFD Sender: No OFD packet to send [19:25:53]OFD Sender: No OFD packet to send [19:25:53]accept exits with 7 [19:25:53]New connection [19:25:53]New thread 3067014500 created [19:25:53]Thread 3067157860 joined [19:25:53]Waiting for new connection... [19:25:53] Sock 7.Parse request [19:25:53]Sock 7.Check first char [19:25:53]Sock 7.First char is OK [19:25:53]request: POST /json_proto HTTP/1.0 [19:25:53]Method: POST [19:25:53]URL: /json_proto [19:25:53]Method is POST - this is cgi request [19:25:53]url: /json_proto [19:25:53]query_string will be loaded in cgi processing [19:25:53]execute_cgi json_proto POST (null) [19:25:53]execute_cgi path=json_proto method=POST [19:25:53]POST find Content-Length [19:25:53]Host: 172.17.48.198:8080 [19:25:53]Content-Length: 1123 [19:25:53]Content-Type: application/json [19:25:53] [19:25:53]POST finish read [19:25:53]Found Content-Length = 1123 [19:25:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184201", "tax_sys" : 0, "items" : [ { "code": "5449000176448", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 1\u043B", "price" : 180.00, "quantity" : 1.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4800452010610", "name": "\u041A\u043E\u0444\u0435 \u043A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL (\u0410\u041A\u0426\u0418\u042F)", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 300.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:25:53]execute_script... [19:25:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184201", "tax_sys" : 0, "items" : [ { "code": "5449000176448", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 1\u043B", "price" : 180.00, "quantity" : 1.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4800452010610", "name": "\u041A\u043E\u0444\u0435 \u043A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL (\u0410\u041A\u0426\u0418\u042F)", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 300.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:25:53]POST & json_proto [19:25:53]process_json_proto [19:25:53]json parsed OK: [19:25:53]protocol is kg_v1.0 [19:25:53]action value=close_receipt [19:25:53]process_action close_receipt [19:25:53]cmd_close_receipt [19:25:53]MH_GetDate [19:25:53]Write to MH i2c: F0 00 00 3D 55 81 [19:25:53]Write i2c OK [19:25:53]MH_I2C_Read... [19:25:53]Read from MH i2c: F0 [19:25:53]MH_I2C_Read... [19:25:53]Read from MH i2c: F0 09 00 [19:25:53]MH_I2C_Read... [19:25:53]Read from MH i2c: F0 09 00 3D 55 00 CE CE E4 65 CE C4 D4 65 3A [19:25:53]GetLastDocTimeStamp 1709493903 [19:25:53]current date 1709493966 [19:25:53]FM_GetShiftState [19:25:53]SAM_PROTO_GetShiftState [19:25:53]wFMCommunicate request_size=4 [19:25:53]MH_SAM_APDU [19:25:53]CAPDU: 80 13 01 00 [19:25:53]Write to MH i2c: E2 08 00 3E 55 80 13 01 00 00 00 00 00 10 [19:25:53]Write i2c OK [19:25:53]MH_I2C_Read... [19:25:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:25:53]Read from MH i2c: E2 [19:25:53]MH_I2C_Read... [19:25:53]Read from MH i2c: E2 0E 00 [19:25:53]MH_I2C_Read... [19:25:53]Read from MH i2c: E2 0E 00 3E 55 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 46 [19:25:53]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [19:25:53]wFMCommunicate OK [19:25:53]SAM_PROTO_GetShiftState done [19:25:53]FM_GetShiftState done [19:25:53]opened in 1709425694 [19:25:53]opened+sec_in_day 1709512094 [19:25:53]quantity*price = 18000 [19:25:53]sum+1 = 18001 [19:25:53]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4800452010610 Кофе капучино XL (АКЦИЯ) 1.000 * 120.00 = 120.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 300.00 НСП 1% : 2.65 НДС 12% : 31.85 Наличными: 0.00 Безнал.: 300.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 76 03.03.2024 19:26 Смена: 331 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874796 ФД: 45239 ФПД: 38670143571626 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T192606&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45239&fm=38670143571626&tin=02508201610067®Number=0000000000090572&sum=30000 0 [19:25:54]StoreToDocumentArchive [19:25:54]shift 331 fd 45239 [19:25:54]save to /storage/0331/doc_00045239 [19:25:54]save last doc name /storage/0331/doc_00045239 to /storage/kkm_last_doc_name [19:25:54]save OK [19:25:54]Clear old archive folders... [19:25:54]ProcessDocumentItem done err = 0, tmpTLVsize=400 [19:25:54]tlvbuf is 01CD31D0 [19:25:54]SAM_PROTO_ClearQueue [19:25:54]wFMCommunicate request_size=4 [19:25:54]MH_SAM_APDU [19:25:54]CAPDU: 80 09 00 00 [19:25:54]Write to MH i2c: E2 08 00 4B 55 80 09 00 00 00 00 00 00 12 [19:25:54]Write i2c OK [19:25:54]MH_I2C_Read... [19:25:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:25:54]Read from MH i2c: E2 [19:25:54]MH_I2C_Read... [19:25:54]Read from MH i2c: E2 03 00 [19:25:54]MH_I2C_Read... [19:25:54]Read from MH i2c: E2 03 00 4B 55 00 90 00 14 [19:25:54]RAPDU: 90 00 [19:25:54]wFMCommunicate OK [19:25:54]SAM_PROTO_ClearQueue done [19:25:54]KKMCreateOFDPacket [19:25:54]OFDProtocolAddRootSTLVToBuf [19:25:54]FM_MakeSignedData [19:25:54]FM_MakeSignedData [19:25:54]SAM_PROTO_SignData [19:25:54]wFMCommunicate request_size=4 [19:25:54]MH_SAM_APDU [19:25:54]CAPDU: 80 0D 01 02 [19:25:54]Write to MH i2c: E2 08 00 4C 55 80 0D 01 02 00 00 00 00 1A [19:25:54]Write i2c OK [19:25:54]MH_I2C_Read... [19:25:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:25:54]Read from MH i2c: E2 [19:25:54]MH_I2C_Read... [19:25:54]Read from MH i2c: E2 03 00 [19:25:54]MH_I2C_Read... [19:25:54]Read from MH i2c: E2 03 00 4C 55 00 90 00 15 [19:25:54]RAPDU: 90 00 [19:25:54]wFMCommunicate OK [19:25:54]wFMCommunicate request_size=255 [19:25:54]MH_SAM_APDU [19:25:54]CAPDU: 80 0D 02 02 FA 03 00 90 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 38 30 30 34 35 32 30 31 30 36 31 30 06 04 29 00 D0 9A D0 BE D1 84 D0 B5 20 D0 BA D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 20 28 D0 90 D0 9A D0 A6 D0 98 D0 AF 29 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 FC 03 06 00 30 75 00 00 00 00 EB [19:25:54]Write to MH i2c: E2 02 01 4D 55 80 0D 02 02 FA 00 03 00 90 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 38 30 30 34 35 32 30 31 30 36 31 30 06 04 29 00 D0 9A D0 BE D1 84 D0 B5 20 D0 BA D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 20 28 D0 90 D0 9A D0 A6 D0 98 D0 AF 29 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 FC 03 06 00 30 75 00 00 00 00 EB 00 00 C2 [19:25:54]Write i2c OK [19:25:54]MH_I2C_Read... [19:25:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:25:55]Read from MH i2c: E2 [19:25:55]MH_I2C_Read... [19:25:55]Read from MH i2c: E2 03 00 [19:25:55]MH_I2C_Read... [19:25:55]Read from MH i2c: E2 03 00 4D 55 00 90 00 16 [19:25:55]RAPDU: 90 00 [19:25:55]wFMCommunicate OK [19:25:55]wFMCommunicate request_size=159 [19:25:55]MH_SAM_APDU [19:25:55]CAPDU: 80 0D 02 02 9A 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 71 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 CE CE E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 B7 B0 00 00 35 04 06 00 23 2B 98 2B C6 AA [19:25:55]Write to MH i2c: E2 A2 00 4E 55 80 0D 02 02 9A 00 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 71 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 CE CE E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 B7 B0 00 00 35 04 06 00 23 2B 98 2B C6 AA 00 00 3B [19:25:55]Write i2c OK [19:25:55]MH_I2C_Read... [19:25:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:25:55]Read from MH i2c: E2 [19:25:55]MH_I2C_Read... [19:25:55]Read from MH i2c: E2 03 00 [19:25:55]MH_I2C_Read... [19:25:55]Read from MH i2c: E2 03 00 4E 55 00 90 00 17 [19:25:55]RAPDU: 90 00 [19:25:55]wFMCommunicate OK [19:25:55]wFMCommunicate request_size=4 [19:25:55]MH_SAM_APDU [19:25:55]CAPDU: 80 0D 03 02 [19:25:55]Write to MH i2c: E2 08 00 4F 55 80 0D 03 02 00 00 00 00 1F [19:25:55]Write i2c OK [19:25:55]MH_I2C_Read... [19:25:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:25:55]Read from MH i2c: E2 [19:25:55]MH_I2C_Read... [19:25:55]Read from MH i2c: E2 0B 00 [19:25:55]MH_I2C_Read... [19:25:55]Read from MH i2c: E2 0B 00 4F 55 00 06 8A 5E 31 DC C3 1A EF 90 00 E7 [19:25:55]RAPDU: 06 8A 5E 31 DC C3 1A EF 90 00 [19:25:55]wFMCommunicate OK [19:25:55]SAM_PROTO_SignData done [19:25:55]FM_MakeSignedData done [19:25:55]CreateOFDProtocolMessage [19:25:55]wFMCommunicate request_size=4 [19:25:55]MH_SAM_APDU [19:25:55]CAPDU: 80 11 00 00 [19:25:55]Write to MH i2c: E2 08 00 50 55 80 11 00 00 00 00 00 00 1F [19:25:55]Write i2c OK [19:25:55]MH_I2C_Read... [19:25:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:25:55]Read from MH i2c: E2 [19:25:55]MH_I2C_Read... [19:25:55]Read from MH i2c: E2 17 00 [19:25:55]MH_I2C_Read... [19:25:55]Read from MH i2c: E2 17 00 50 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 7B [19:25:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [19:25:55]wFMCommunicate OK [19:25:55]CreateOFDProtocolMessage done [19:25:55]OFDSenderStorePacket 45239 [19:25:55]StoreOFDPacket docnum=45239 [19:25:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 A4 01 00 00 75 55 9C 01 00 43 5A 03 01 00 03 00 90 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 38 30 30 34 35 32 30 31 30 36 31 30 06 04 29 00 D0 9A D0 BE D1 84 D0 B5 20 D0 BA D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 20 28 D0 90 D0 9A D0 A6 D0 98 D0 AF 29 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 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 71 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 CE CE E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 B7 B0 00 00 35 04 06 00 23 2B 98 2B C6 AA 06 8A 5E 31 DC C3 1A EF [19:25:55]CheckFolder [19:25:55]dirname=/storage/ofd_packets [19:25:55]CheckFolder done [19:25:55]ProducePacketName [19:25:55]name=ofd_packets/00045239 [19:25:55]NVStorageSaveData ofd_packets/00045239 [19:25:55]File name is /storage/ofd_packets/00045239 [19:25:55]Write 450 bytes [19:25:55]NVStorageSaveData done [19:25:55]OFDSenderStorePacket done [19:25:55]KKMCreateOFDPacket done [19:25:55]NVStorageSaveData kkm_last_timestamp [19:25:55]File name is /storage/kkm_last_timestamp [19:25:55]Write 4 bytes [19:25:55]NVStorageSaveData done [19:25:55]ExternCall_PrintAddStr [19:25:55]wPrintStart [19:25:55]Write to MH i2c: 01 00 00 51 55 A6 [19:25:55]OFD Sender: Processing packet 45239 [packets to send 17, broken 16] [19:25:55]ProducePacketName [19:25:55]name=ofd_packets/00045239 [19:25:55]Write i2c OK [19:25:55]MH_I2C_Read... [19:25:55]Read from MH i2c: 01 [19:25:55]MH_I2C_Read... [19:25:55]Read from MH i2c: 01 07 00 [19:25:55]MH_I2C_Read... [19:25:55]OFD Sender: To server: pG, [19:25:55]CommunicateWithHost lk.salyk.kg:30040 [19:25:55]ConnectInit lk.salyk.kg [19:25:55]Read from MH i2c: 01 07 00 51 55 00 00 00 00 00 FF 0F BB [19:25:55]RasterBufferAndPrint [19:25:55]line Счет N : (3)184201 [19:25:55]line ИНН: 02508201610067 [19:25:55]line Контрольно-Кассовый Чек [19:25:55]line ПРОДАЖА [19:25:55]line Товар: 5449000176448 [19:25:55]line Сок Piko Pulpy апельсин ПЭТ 1л [19:25:55]line 1.000 * 180.00 [19:25:55]line = 180.00 [19:25:55]line НДС 12% НСП 1% [19:25:55]line > о реализуемом товаре [19:25:55]line Товар: 4800452010610 [19:25:55]line Кофе капучино XL (АКЦИЯ) [19:25:55]line 1.000 * 120.00 [19:25:55]line = 120.00 [19:25:55]line НДС 12% НСП 1% [19:25:55]line > о реализуемом товаре [19:25:55]line ИТОГО: 300.00 [19:25:55]line НСП 1% : 2.65 [19:25:55]line НДС 12% : 31.85 [19:25:55]line Наличными: 0.00 [19:25:55]line Безнал.: 300.00 [19:25:55]line Место: АЗС № 25 "Партнер Нефть" [19:25:55]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [19:25:55]line СНО: Общий режим [19:25:55]line Чек 76 03.03.2024 19:26 [19:25:55]line Смена: 331 ФФД: 1.0 [19:25:55]line ЗНМ: 0300000013 [19:25:55]line РНМ: 0000000000090572 [19:25:55]line Версия ККМ: 001 [19:25:55]line Платежная система: Бакай Банк [19:25:55]line ФМ: 0000000000874796 [19:25:55]line ФД: 45239 [19:25:55]line ФПД: 38670143571626 [19:25:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T192606&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45239&fm=38670143571626&tin=02508201610067®Number=0000000000090572&sum=30000 [19:25:55]line 0 [19:25:55]written 0, free lines is 4095 [19:25:55]Connected sock=10 [19:25:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 A4 01 00 00 75 55 9C 01 00 43 5A 03 01 00 03 00 90 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 38 30 30 34 35 32 30 31 30 36 31 30 06 04 29 00 D0 9A D0 BE D1 84 D0 B5 20 D0 BA D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 20 28 D0 90 D0 9A D0 A6 D0 98 D0 AF 29 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 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 71 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 CE CE E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 B7 B0 00 00 35 04 06 00 23 2B 98 2B C6 AA 06 8A 5E 31 DC C3 1A EF [19:25:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 B9 CE 47 00 07 22 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 B7 B0 00 00 F4 03 04 00 92 7A E4 65 B6 04 01 00 00 BE F1 7D BE DB 60 36 E6 [19:25:56]CommunicateWithHost err = 0 [19:25:56]CheckOFDResponse [19:25:56]1017 (14) - 77093643461234 [19:25:56]1041 (16) - 0000000000874796 [19:25:56]1040 (4) - 45239 [19:25:56]1012 (4) - 03.03.2024 13:26 [19:25:56]1206 (1) - 0 [19:25:56]OFD Sender: Remove packet 45239 [19:25:56]ProducePacketName [19:25:56]name=ofd_packets/00045239 [19:25:56]NVStorageDeleteData [19:25:56]Write to MH i2c: 01 00 00 82 55 D7 [19:25:56]Write i2c OK [19:25:56]MH_I2C_Read... [19:25:56]Read from MH i2c: 01 [19:25:56]MH_I2C_Read... [19:25:56]Read from MH i2c: 01 07 00 [19:25:56]MH_I2C_Read... [19:25:56]Read from MH i2c: 01 07 00 82 55 00 00 00 00 00 9A 0C 84 [19:25:56]RasterBufferAndPrint [19:25:56]line [19:25:56]line [19:25:56]line [19:25:56]line [19:25:56]line [19:25:56]written 0, free lines is 3232 [19:25:56]MH_Cut [19:25:56]Write to MH i2c: D1 01 00 89 55 01 B0 [19:25:56]Write i2c OK [19:25:56]MH_I2C_Read... [19:25:56]Read from MH i2c: D1 [19:25:56]MH_I2C_Read... [19:25:56]Read from MH i2c: D1 01 00 [19:25:56]MH_I2C_Read... [19:25:56]Read from MH i2c: D1 01 00 89 55 00 AF [19:25:56]Write to MH i2c: 01 00 00 8A 55 DF [19:25:56]Write i2c OK [19:25:56]MH_I2C_Read... [19:25:56]OFD Sender: No OFD packet to send [19:25:57]*** Cut start [19:25:57]*** Purtial cut [19:25:57]*** Stage 1: CUTSNS_PIN = 1 [19:25:59]Read from MH i2c: 01 [19:25:59]MH_I2C_Read... [19:25:59]*** Stop cut motor [19:25:59]*** Cut end [19:25:59]Read from MH i2c: 01 07 00 [19:25:59]MH_I2C_Read... [19:25:59]Read from MH i2c: 01 07 00 8A 55 00 00 00 00 00 FF 0F F4 [19:25:59]process_action close_receipt done [19:25:59]requested_data is exist [19:25:59]produce_requested_data [19:25:59]requested_item fm.sn is exist - process it [19:25:59]wFMCommunicate request_size=4 [19:25:59]MH_SAM_APDU [19:25:59]CAPDU: 80 11 00 00 [19:25:59]Write to MH i2c: E2 08 00 8B 55 80 11 00 00 00 00 00 00 5A [19:25:59]Write i2c OK [19:25:59]MH_I2C_Read... [19:25:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:25:59]Read from MH i2c: E2 [19:25:59]MH_I2C_Read... [19:25:59]Read from MH i2c: E2 17 00 [19:25:59]MH_I2C_Read... [19:25:59]Read from MH i2c: E2 17 00 8B 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 B6 [19:25:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [19:25:59]wFMCommunicate OK [19:25:59]requested_item fd.num is exist - process it [19:25:59]SAM_PROTO_GetFieldsCounters [19:25:59]wFMCommunicate request_size=4 [19:25:59]MH_SAM_APDU [19:25:59]CAPDU: 80 13 00 00 [19:25:59]Write to MH i2c: E2 08 00 8C 55 80 13 00 00 00 00 00 00 5D [19:25:59]Write i2c OK [19:25:59]MH_I2C_Read... [19:25:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:25:59]Read from MH i2c: E2 [19:25:59]MH_I2C_Read... [19:25:59]Read from MH i2c: E2 62 00 [19:25:59]MH_I2C_Read... [19:25:59]Read from MH i2c: E2 62 00 8C 55 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 B7 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 1C [19:25:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 B7 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:25:59]wFMCommunicate OK [19:25:59]SAM_PROTO_GetFieldsCounters done [19:25:59]requested_item shift.num is exist - process it [19:25:59]requested_item shift.opened is exist - process it [19:25:59]req_shift_opened [19:25:59]FM_GetShiftState [19:25:59]SAM_PROTO_GetShiftState [19:25:59]wFMCommunicate request_size=4 [19:25:59]MH_SAM_APDU [19:25:59]CAPDU: 80 13 01 00 [19:25:59]Write to MH i2c: E2 08 00 8D 55 80 13 01 00 00 00 00 00 5F [19:25:59]Write i2c OK [19:25:59]MH_I2C_Read... [19:25:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:25:59]Read from MH i2c: E2 [19:25:59]MH_I2C_Read... [19:25:59]Read from MH i2c: E2 0E 00 [19:25:59]MH_I2C_Read... [19:25:59]Read from MH i2c: E2 0E 00 8D 55 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 95 [19:25:59]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [19:25:59]wFMCommunicate OK [19:25:59]SAM_PROTO_GetShiftState done [19:25:59]FM_GetShiftState done [19:25:59]req_shift_opened done [19:25:59]requested_item shift.open_date is exist - process it [19:25:59]req_shift_open_date [19:25:59]req_shift_open_date done [19:25:59]produce_requested_data done [19:25:59]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45239,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [19:25:59]process_action_free close_receipt [19:25:59]json_value_free [19:25:59]json_value_free done [19:25:59]process_json_proto returns [19:25:59]Send response to host [19:25:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45239,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [19:25:59]free response buf [19:25:59]execute_script done [19:25:59]execute_script returns [19:25:59]free content buf [19:25:59]Sock 7.Close socket [19:25:59]Sock 7.Thread stoped [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:31]OFD Sender: No OFD packet to send [19:26:36]OFD Sender: No OFD packet to send [19:26:41]OFD Sender: No OFD packet to send [19:26:46]OFD Sender: No OFD packet to send [19:26:51]OFD Sender: No OFD packet to send [19:26:56]OFD Sender: No OFD packet to send [19:27:01]OFD Sender: No OFD packet to send [19:27:06]OFD Sender: No OFD packet to send [19:27:11]OFD Sender: No OFD packet to send [19:27:16]OFD Sender: No OFD packet to send [19:27:21]OFD Sender: No OFD packet to send [19:27:26]OFD Sender: No OFD packet to send [19:27:31]OFD Sender: No OFD packet to send [19:27:36]OFD Sender: No OFD packet to send [19:27:41]OFD Sender: No OFD packet to send [19:27:46]OFD Sender: No OFD packet to send [19:27:51]OFD Sender: No OFD packet to send [19:27:56]OFD Sender: No OFD packet to send [19:28:01]OFD Sender: No OFD packet to send [19:28:06]OFD Sender: No OFD packet to send [19:28:11]OFD Sender: No OFD packet to send [19:28:16]OFD Sender: No OFD packet to send [19:28:21]OFD Sender: No OFD packet to send [19:28:26]OFD Sender: No OFD packet to send [19:28:31]OFD Sender: No OFD packet to send [19:28:36]OFD Sender: No OFD packet to send [19:28:41]OFD Sender: No OFD packet to send [19:28:46]OFD Sender: No OFD packet to send [19:28:51]OFD Sender: No OFD packet to send [19:28:56]OFD Sender: No OFD packet to send [19:29:01]OFD Sender: No OFD packet to send [19:29:06]OFD Sender: No OFD packet to send [19:29:11]OFD Sender: No OFD packet to send [19:29:16]OFD Sender: No OFD packet to send [19:29:21]OFD Sender: No OFD packet to send [19:29:26]OFD Sender: No OFD packet to send [19:29:31]OFD Sender: No OFD packet to send [19:29:36]OFD Sender: No OFD packet to send [19:29:41]OFD Sender: No OFD packet to send [19:29:46]OFD Sender: No OFD packet to send [19:29:51]OFD Sender: No OFD packet to send [19:29:56]OFD Sender: No OFD packet to send [19:30:01]OFD Sender: No OFD packet to send [19:30:06]OFD Sender: No OFD packet to send [19:30:11]OFD Sender: No OFD packet to send [19:30:16]OFD Sender: No OFD packet to send [19:30:21]OFD Sender: No OFD packet to send [19:30:26]OFD Sender: No OFD packet to send [19:30:31]OFD Sender: No OFD packet to send [19:30:36]OFD Sender: No OFD packet to send [19:30:41]OFD Sender: No OFD packet to send [19:30:46]OFD Sender: No OFD packet to send [19:30:51]OFD Sender: No OFD packet to send [19:30:56]OFD Sender: No OFD packet to send [19:31:01]OFD Sender: No OFD packet to send [19:31:06]OFD Sender: No OFD packet to send [19:31:11]OFD Sender: No OFD packet to send [19:31:16]OFD Sender: No OFD packet to send [19:31:21]OFD Sender: No OFD packet to send [19:31:26]OFD Sender: No OFD packet to send [19:31:31]OFD Sender: No OFD packet to send [19:31:36]OFD Sender: No OFD packet to send [19:31:41]OFD Sender: No OFD packet to send [19:31:46]OFD Sender: No OFD packet to send [19:31:51]OFD Sender: No OFD packet to send [19:31:56]OFD Sender: No OFD packet to send [19:32:01]OFD Sender: No OFD packet to send [19:32:06]OFD Sender: No OFD packet to send [19:32:11]OFD Sender: No OFD packet to send [19:32:16]OFD Sender: No OFD packet to send [19:32:21]OFD Sender: No OFD packet to send [19:32:26]OFD Sender: No OFD packet to send [19:32:31]OFD Sender: No OFD packet to send [19:32:36]OFD Sender: No OFD packet to send [19:32:41]OFD Sender: No OFD packet to send [19:32:46]OFD Sender: No OFD packet to send [19:32:51]OFD Sender: No OFD packet to send [19:32:56]OFD Sender: No OFD packet to send [19:33:01]OFD Sender: No OFD packet to send [19:33:06]OFD Sender: No OFD packet to send [19:33:11]OFD Sender: No OFD packet to send [19:33:16]OFD Sender: No OFD packet to send [19:33:21]OFD Sender: No OFD packet to send [19:33:26]OFD Sender: No OFD packet to send [19:33:31]OFD Sender: No OFD packet to send [19:33:36]OFD Sender: No OFD packet to send [19:33:41]OFD Sender: No OFD packet to send [19:33:46]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:53]accept exits with 9 [19:34:53]New connection [19:34:53]New thread 3067157860 created [19:34:53]Thread 3067014500 joined [19:34:53]Waiting for new connection... [19:34:53] Sock 9.Parse request [19:34:53]Sock 9.Check first char [19:34:53]Sock 9.First char is OK [19:34:53]request: POST /json_proto HTTP/1.0 [19:34:53]Method: POST [19:34:53]URL: /json_proto [19:34:53]Method is POST - this is cgi request [19:34:53]url: /json_proto [19:34:53]query_string will be loaded in cgi processing [19:34:53]execute_cgi json_proto POST (null) [19:34:53]execute_cgi path=json_proto method=POST [19:34:53]POST find Content-Length [19:34:53]Host: 172.17.48.198:8080 [19:34:53]Content-Length: 641 [19:34:53]Content-Type: application/json [19:34:53] [19:34:53]POST finish read [19:34:53]Found Content-Length = 641 [19:34:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184202", "tax_sys" : 0, "items" : [ { "code": "4700001060169", "name": "\u041A\u043E\u043D\u044C\u044F\u043A \u0411\u0438\u0448\u043A\u0435\u043A 0,2\u043B", "price" : 310.00, "quantity" : 1.000, "sum" : 310.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 310.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:34:53]execute_script... [19:34:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184202", "tax_sys" : 0, "items" : [ { "code": "4700001060169", "name": "\u041A\u043E\u043D\u044C\u044F\u043A \u0411\u0438\u0448\u043A\u0435\u043A 0,2\u043B", "price" : 310.00, "quantity" : 1.000, "sum" : 310.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 310.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:34:53]POST & json_proto [19:34:53]process_json_proto [19:34:53]json parsed OK: [19:34:53]protocol is kg_v1.0 [19:34:53]action value=close_receipt [19:34:53]process_action close_receipt [19:34:53]cmd_close_receipt [19:34:53]MH_GetDate [19:34:53]Write to MH i2c: F0 00 00 8E 55 D2 [19:34:53]Write i2c OK [19:34:53]MH_I2C_Read... [19:34:53]Read from MH i2c: F0 [19:34:53]MH_I2C_Read... [19:34:53]Read from MH i2c: F0 09 00 [19:34:53]MH_I2C_Read... [19:34:53]Read from MH i2c: F0 09 00 8E 55 00 EA D0 E4 65 CE C4 D4 65 A9 [19:34:53]GetLastDocTimeStamp 1709493966 [19:34:53]current date 1709494506 [19:34:53]FM_GetShiftState [19:34:53]SAM_PROTO_GetShiftState [19:34:53]wFMCommunicate request_size=4 [19:34:53]MH_SAM_APDU [19:34:53]CAPDU: 80 13 01 00 [19:34:53]Write to MH i2c: E2 08 00 8F 55 80 13 01 00 00 00 00 00 61 [19:34:53]Write i2c OK [19:34:53]MH_I2C_Read... [19:34:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:34:53]Read from MH i2c: E2 [19:34:53]MH_I2C_Read... [19:34:53]Read from MH i2c: E2 0E 00 [19:34:53]MH_I2C_Read... [19:34:53]Read from MH i2c: E2 0E 00 8F 55 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 97 [19:34:53]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [19:34:53]wFMCommunicate OK [19:34:53]SAM_PROTO_GetShiftState done [19:34:53]FM_GetShiftState done [19:34:53]opened in 1709425694 [19:34:53]opened+sec_in_day 1709512094 [19:34:53]quantity*price = 31000 [19:34:53]sum+1 = 31001 [19:34:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 310.00 НСП 1% : 2.74 НДС 12% : 32.92 Наличными: 310.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 77 03.03.2024 19:35 Смена: 331 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 ФМ: 0000000000874796 ФД: 45240 ФПД: 51735814097392 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T193506&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45240&fm=51735814097392&tin=02508201610067®Number=0000000000090572&sum=31000 0 [19:34:54]StoreToDocumentArchive [19:34:54]shift 331 fd 45240 [19:34:54]save to /storage/0331/doc_00045240 [19:34:54]save last doc name /storage/0331/doc_00045240 to /storage/kkm_last_doc_name [19:34:54]save OK [19:34:54]Clear old archive folders... [19:34:54]ProcessDocumentItem done err = 0, tmpTLVsize=273 [19:34:54]tlvbuf is 01B525E0 [19:34:54]SAM_PROTO_ClearQueue [19:34:54]wFMCommunicate request_size=4 [19:34:54]MH_SAM_APDU [19:34:54]CAPDU: 80 09 00 00 [19:34:54]Write to MH i2c: E2 08 00 9C 55 80 09 00 00 00 00 00 00 63 [19:34:54]Write i2c OK [19:34:54]MH_I2C_Read... [19:34:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:34:54]Read from MH i2c: E2 [19:34:54]MH_I2C_Read... [19:34:54]Read from MH i2c: E2 03 00 [19:34:54]MH_I2C_Read... [19:34:54]Read from MH i2c: E2 03 00 9C 55 00 90 00 65 [19:34:54]RAPDU: 90 00 [19:34:54]wFMCommunicate OK [19:34:54]SAM_PROTO_ClearQueue done [19:34:54]KKMCreateOFDPacket [19:34:54]OFDProtocolAddRootSTLVToBuf [19:34:54]FM_MakeSignedData [19:34:54]FM_MakeSignedData [19:34:54]SAM_PROTO_SignData [19:34:54]wFMCommunicate request_size=4 [19:34:54]MH_SAM_APDU [19:34:54]CAPDU: 80 0D 01 02 [19:34:54]Write to MH i2c: E2 08 00 9D 55 80 0D 01 02 00 00 00 00 6B [19:34:54]Write i2c OK [19:34:54]MH_I2C_Read... [19:34:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:34:54]Read from MH i2c: E2 [19:34:54]MH_I2C_Read... [19:34:54]Read from MH i2c: E2 03 00 [19:34:54]MH_I2C_Read... [19:34:54]Read from MH i2c: E2 03 00 9D 55 00 90 00 66 [19:34:54]RAPDU: 90 00 [19:34:54]wFMCommunicate OK [19:34:54]wFMCommunicate request_size=255 [19:34:54]MH_SAM_APDU [19:34:54]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 31 36 39 06 04 1F 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 18 79 00 00 00 00 13 04 06 00 18 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 EA D0 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 [19:34:54]Write to MH i2c: E2 02 01 9E 55 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 31 36 39 06 04 1F 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 18 79 00 00 00 00 13 04 06 00 18 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 EA D0 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 00 00 79 [19:34:54]Write i2c OK [19:34:54]MH_I2C_Read... [19:34:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:34:54]Read from MH i2c: E2 [19:34:54]MH_I2C_Read... [19:34:54]Read from MH i2c: E2 03 00 [19:34:54]MH_I2C_Read... [19:34:54]Read from MH i2c: E2 03 00 9E 55 00 90 00 67 [19:34:54]RAPDU: 90 00 [19:34:54]wFMCommunicate OK [19:34:54]wFMCommunicate request_size=32 [19:34:54]MH_SAM_APDU [19:34:54]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 37 39 36 10 04 04 00 B8 B0 00 00 35 04 06 00 2F 0D AE D2 49 F0 [19:34:54]Write to MH i2c: E2 23 00 9F 55 80 0D 02 02 1B 00 30 30 30 38 37 34 37 39 36 10 04 04 00 B8 B0 00 00 35 04 06 00 2F 0D AE D2 49 F0 00 00 31 [19:34:54]Write i2c OK [19:34:54]MH_I2C_Read... [19:34:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:34:54]Read from MH i2c: E2 [19:34:55]MH_I2C_Read... [19:34:55]Read from MH i2c: E2 03 00 [19:34:55]MH_I2C_Read... [19:34:55]Read from MH i2c: E2 03 00 9F 55 00 90 00 68 [19:34:55]RAPDU: 90 00 [19:34:55]wFMCommunicate OK [19:34:55]wFMCommunicate request_size=4 [19:34:55]MH_SAM_APDU [19:34:55]CAPDU: 80 0D 03 02 [19:34:55]Write to MH i2c: E2 08 00 A0 55 80 0D 03 02 00 00 00 00 70 [19:34:55]Write i2c OK [19:34:55]MH_I2C_Read... [19:34:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:34:55]Read from MH i2c: E2 [19:34:55]MH_I2C_Read... [19:34:55]Read from MH i2c: E2 0B 00 [19:34:55]MH_I2C_Read... [19:34:55]Read from MH i2c: E2 0B 00 A0 55 00 E5 DD E5 28 59 1A BC 48 90 00 B7 [19:34:55]RAPDU: E5 DD E5 28 59 1A BC 48 90 00 [19:34:55]wFMCommunicate OK [19:34:55]SAM_PROTO_SignData done [19:34:55]FM_MakeSignedData done [19:34:55]CreateOFDProtocolMessage [19:34:55]wFMCommunicate request_size=4 [19:34:55]MH_SAM_APDU [19:34:55]CAPDU: 80 11 00 00 [19:34:55]Write to MH i2c: E2 08 00 A1 55 80 11 00 00 00 00 00 00 70 [19:34:55]Write i2c OK [19:34:55]MH_I2C_Read... [19:34:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:34:55]Read from MH i2c: E2 [19:34:55]MH_I2C_Read... [19:34:55]Read from MH i2c: E2 17 00 [19:34:55]MH_I2C_Read... [19:34:55]Read from MH i2c: E2 17 00 A1 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 CC [19:34:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [19:34:55]wFMCommunicate OK [19:34:55]CreateOFDProtocolMessage done [19:34:55]OFDSenderStorePacket 45240 [19:34:55]StoreOFDPacket docnum=45240 [19:34:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 25 01 00 00 4B CB 1D 01 2E 29 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 31 36 39 06 04 1F 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 18 79 00 00 00 00 13 04 06 00 18 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 EA D0 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 B8 B0 00 00 35 04 06 00 2F 0D AE D2 49 F0 E5 DD E5 28 59 1A BC 48 [19:34:55]CheckFolder [19:34:55]dirname=/storage/ofd_packets [19:34:55]CheckFolder done [19:34:55]ProducePacketName [19:34:55]name=ofd_packets/00045240 [19:34:55]NVStorageSaveData ofd_packets/00045240 [19:34:55]File name is /storage/ofd_packets/00045240 [19:34:55]Write 323 bytes [19:34:55]NVStorageSaveData done [19:34:55]OFDSenderStorePacket done [19:34:55]KKMCreateOFDPacket done [19:34:55]NVStorageSaveData kkm_last_timestamp [19:34:55]File name is /storage/kkm_last_timestamp [19:34:55]Write 4 bytes [19:34:55]NVStorageSaveData done [19:34:55]ExternCall_PrintAddStr [19:34:55]wPrintStart [19:34:55]Write to MH i2c: 01 00 00 A2 55 F7 [19:34:55]Write i2c OK [19:34:55]MH_I2C_Read... [19:34:55]Read from MH i2c: 01 [19:34:55]MH_I2C_Read... [19:34:55]Read from MH i2c: 01 07 00 [19:34:55]MH_I2C_Read... [19:34:55]Read from MH i2c: 01 07 00 A2 55 00 00 00 00 00 FF 0F 0C [19:34:55]RasterBufferAndPrint [19:34:55]line Счет N : (3)184202 [19:34:55]line ИНН: 02508201610067 [19:34:55]line Контрольно-Кассовый Чек [19:34:55]line ПРОДАЖА [19:34:55]line Товар: 4700001060169 [19:34:55]line Коньяк Бишкек 0,2л [19:34:55]line 1.000 * 310.00 [19:34:55]line = 310.00 [19:34:55]line НДС 12% НСП 1% [19:34:55]line > о реализуемом товаре [19:34:55]line ИТОГО: 310.00 [19:34:55]line НСП 1% : 2.74 [19:34:55]line НДС 12% : 32.92 [19:34:55]line Наличными: 310.00 [19:34:55]line Безнал.: 0.00 [19:34:55]line Место: АЗС № 25 "Партнер Нефть" [19:34:55]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [19:34:55]line СНО: Общий режим [19:34:55]line Чек 77 03.03.2024 19:35 [19:34:55]line Смена: 331 ФФД: 1.0 [19:34:55]line ЗНМ: 0300000013 [19:34:55]line РНМ: 0000000000090572 [19:34:55]line Версия ККМ: 001 [19:34:55]line ФМ: 0000000000874796 [19:34:55]line ФД: 45240 [19:34:55]line ФПД: 51735814097392 [19:34:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T193506&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45240&fm=51735814097392&tin=02508201610067®Number=0000000000090572&sum=31000 [19:34:55]line 0 [19:34:55]OFD Sender: Processing packet 45240 [packets to send 17, broken 16] [19:34:55]ProducePacketName [19:34:55]name=ofd_packets/00045240 [19:34:55]OFD Sender: To server: pG, [19:34:55]CommunicateWithHost lk.salyk.kg:30040 [19:34:55]ConnectInit lk.salyk.kg [19:34:55]written 0, free lines is 4095 [19:34:55]Connected sock=10 [19:34:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 25 01 00 00 4B CB 1D 01 2E 29 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 31 36 39 06 04 1F 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 18 79 00 00 00 00 13 04 06 00 18 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 EA D0 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 B8 B0 00 00 35 04 06 00 2F 0D AE D2 49 F0 E5 DD E5 28 59 1A BC 48 [19:34:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 DC F2 47 00 21 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 B8 B0 00 00 F4 03 04 00 AE 7C E4 65 B6 04 01 00 00 09 E2 31 C5 12 4A 35 99 [19:34:55]CommunicateWithHost err = 0 [19:34:55]CheckOFDResponse [19:34:55]1017 (14) - 77093643461234 [19:34:55]1041 (16) - 0000000000874796 [19:34:55]1040 (4) - 45240 [19:34:55]1012 (4) - 03.03.2024 13:35 [19:34:55]1206 (1) - 0 [19:34:55]OFD Sender: Remove packet 45240 [19:34:55]ProducePacketName [19:34:55]name=ofd_packets/00045240 [19:34:55]NVStorageDeleteData [19:34:55]Write to MH i2c: 01 00 00 CA 55 1F [19:34:55]Write i2c OK [19:34:55]MH_I2C_Read... [19:34:55]Read from MH i2c: 01 [19:34:55]MH_I2C_Read... [19:34:55]Read from MH i2c: 01 07 00 [19:34:55]MH_I2C_Read... [19:34:55]Read from MH i2c: 01 07 00 CA 55 00 00 00 00 00 13 0D 46 [19:34:55]RasterBufferAndPrint [19:34:55]line [19:34:55]line [19:34:55]line [19:34:55]line [19:34:55]line [19:34:55]written 0, free lines is 3353 [19:34:55]MH_Cut [19:34:55]Write to MH i2c: D1 01 00 D1 55 01 F8 [19:34:55]Write i2c OK [19:34:55]MH_I2C_Read... [19:34:55]Read from MH i2c: D1 [19:34:55]MH_I2C_Read... [19:34:55]Read from MH i2c: D1 01 00 [19:34:55]MH_I2C_Read... [19:34:55]Read from MH i2c: D1 01 00 D1 55 00 F7 [19:34:55]Write to MH i2c: 01 00 00 D2 55 27 [19:34:55]Write i2c OK [19:34:55]MH_I2C_Read... [19:34:56]OFD Sender: No OFD packet to send [19:34:56]*** Cut start [19:34:56]*** Purtial cut [19:34:56]*** Stage 1: CUTSNS_PIN = 1 [19:34:58]Read from MH i2c: 01 [19:34:58]MH_I2C_Read... [19:34:58]*** Stop cut motor [19:34:58]*** Cut end [19:34:58]Read from MH i2c: 01 07 00 [19:34:58]MH_I2C_Read... [19:34:58]Read from MH i2c: 01 07 00 D2 55 00 00 00 00 00 FF 0F 3C [19:34:58]process_action close_receipt done [19:34:58]requested_data is exist [19:34:58]produce_requested_data [19:34:58]requested_item fm.sn is exist - process it [19:34:58]wFMCommunicate request_size=4 [19:34:58]MH_SAM_APDU [19:34:58]CAPDU: 80 11 00 00 [19:34:58]Write to MH i2c: E2 08 00 D3 55 80 11 00 00 00 00 00 00 A2 [19:34:58]Write i2c OK [19:34:58]MH_I2C_Read... [19:34:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:34:58]Read from MH i2c: E2 [19:34:58]MH_I2C_Read... [19:34:58]Read from MH i2c: E2 17 00 [19:34:58]MH_I2C_Read... [19:34:58]Read from MH i2c: E2 17 00 D3 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 FE [19:34:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [19:34:58]wFMCommunicate OK [19:34:58]requested_item fd.num is exist - process it [19:34:58]SAM_PROTO_GetFieldsCounters [19:34:58]wFMCommunicate request_size=4 [19:34:58]MH_SAM_APDU [19:34:58]CAPDU: 80 13 00 00 [19:34:58]Write to MH i2c: E2 08 00 D4 55 80 13 00 00 00 00 00 00 A5 [19:34:58]Write i2c OK [19:34:58]MH_I2C_Read... [19:34:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:34:58]Read from MH i2c: E2 [19:34:58]MH_I2C_Read... [19:34:58]Read from MH i2c: E2 62 00 [19:34:58]MH_I2C_Read... [19:34:58]Read from MH i2c: E2 62 00 D4 55 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 B8 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 68 [19:34:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 B8 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:34:58]wFMCommunicate OK [19:34:58]SAM_PROTO_GetFieldsCounters done [19:34:58]requested_item shift.num is exist - process it [19:34:58]requested_item shift.opened is exist - process it [19:34:58]req_shift_opened [19:34:58]FM_GetShiftState [19:34:58]SAM_PROTO_GetShiftState [19:34:58]wFMCommunicate request_size=4 [19:34:58]MH_SAM_APDU [19:34:58]CAPDU: 80 13 01 00 [19:34:58]Write to MH i2c: E2 08 00 D5 55 80 13 01 00 00 00 00 00 A7 [19:34:58]Write i2c OK [19:34:58]MH_I2C_Read... [19:34:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:34:58]Read from MH i2c: E2 [19:34:58]MH_I2C_Read... [19:34:58]Read from MH i2c: E2 0E 00 [19:34:58]MH_I2C_Read... [19:34:58]Read from MH i2c: E2 0E 00 D5 55 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 DD [19:34:58]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [19:34:58]wFMCommunicate OK [19:34:58]SAM_PROTO_GetShiftState done [19:34:58]FM_GetShiftState done [19:34:58]req_shift_opened done [19:34:58]requested_item shift.open_date is exist - process it [19:34:58]req_shift_open_date [19:34:58]req_shift_open_date done [19:34:58]produce_requested_data done [19:34:58]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45240,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [19:34:58]process_action_free close_receipt [19:34:58]json_value_free [19:34:58]json_value_free done [19:34:58]process_json_proto returns [19:34:58]Send response to host [19:34:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45240,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [19:34:58]free response buf [19:34:58]execute_script done [19:34:58]execute_script returns [19:34:58]free content buf [19:34:58]Sock 9.Close socket [19:34:58]Sock 9.Thread stoped [19:35:01]OFD Sender: No OFD packet to send [19:35:06]OFD Sender: No OFD packet to send [19:35:11]OFD Sender: No OFD packet to send [19:35:16]OFD Sender: No OFD packet to send [19:35:21]OFD Sender: No OFD packet to send [19:35:26]OFD Sender: No OFD packet to send [19:35:31]OFD Sender: No OFD packet to send [19:35:36]OFD Sender: No OFD packet to send [19:35:41]OFD Sender: No OFD packet to send [19:35:46]OFD Sender: No OFD packet to send [19:35:51]OFD Sender: No OFD packet to send [19:35:56]OFD Sender: No OFD packet to send [19:36:01]OFD Sender: No OFD packet to send [19:36:06]OFD Sender: No OFD packet to send [19:36:11]OFD Sender: No OFD packet to send [19:36:16]OFD Sender: No OFD packet to send [19:36:21]OFD Sender: No OFD packet to send [19:36:26]OFD Sender: No OFD packet to send [19:36:31]OFD Sender: No OFD packet to send [19:36:36]OFD Sender: No OFD packet to send [19:36:41]OFD Sender: No OFD packet to send [19:36:46]OFD Sender: No OFD packet to send [19:36:51]OFD Sender: No OFD packet to send [19:36:56]OFD Sender: No OFD packet to send [19:37:01]OFD Sender: No OFD packet to send [19:37:06]OFD Sender: No OFD packet to send [19:37:11]OFD Sender: No OFD packet to send [19:37:16]OFD Sender: No OFD packet to send [19:37:21]OFD Sender: No OFD packet to send [19:37:26]OFD Sender: No OFD packet to send [19:37:31]OFD Sender: No OFD packet to send [19:37:36]OFD Sender: No OFD packet to send [19:37:41]OFD Sender: No OFD packet to send [19:37:46]OFD Sender: No OFD packet to send [19:37:51]OFD Sender: No OFD packet to send [19:37:56]OFD Sender: No OFD packet to send [19:38:01]OFD Sender: No OFD packet to send [19:38:06]OFD Sender: No OFD packet to send [19:38:11]OFD Sender: No OFD packet to send [19:38:16]OFD Sender: No OFD packet to send [19:38:21]OFD Sender: No OFD packet to send [19:38:26]OFD Sender: No OFD packet to send [19:38:31]OFD Sender: No OFD packet to send [19:38:36]OFD Sender: No OFD packet to send [19:38:41]OFD Sender: No OFD packet to send [19:38:46]OFD Sender: No OFD packet to send [19:38:51]OFD Sender: No OFD packet to send [19:38:56]OFD Sender: No OFD packet to send [19:39:01]OFD Sender: No OFD packet to send [19:39:06]OFD Sender: No OFD packet to send [19:39:11]OFD Sender: No OFD packet to send [19:39:16]OFD Sender: No OFD packet to send [19:39:21]OFD Sender: No OFD packet to send [19:39:26]OFD Sender: No OFD packet to send [19:39:31]OFD Sender: No OFD packet to send [19:39:36]OFD Sender: No OFD packet to send [19:39:41]OFD Sender: No OFD packet to send [19:39:46]OFD Sender: No OFD packet to send [19:39:51]OFD Sender: No OFD packet to send [19:39:56]OFD Sender: No OFD packet to send [19:40:01]OFD Sender: No OFD packet to send [19:40:06]OFD Sender: No OFD packet to send [19:40:11]OFD Sender: No OFD packet to send [19:40:16]OFD Sender: No OFD packet to send [19:40:21]OFD Sender: No OFD packet to send [19:40:26]OFD Sender: No OFD packet to send [19:40:31]OFD Sender: No OFD packet to send [19:40:36]OFD Sender: No OFD packet to send [19:40:41]OFD Sender: No OFD packet to send [19:40:46]OFD Sender: No OFD packet to send [19:40:51]OFD Sender: No OFD packet to send [19:40:56]OFD Sender: No OFD packet to send [19:41:01]OFD Sender: No OFD packet to send [19:41:06]OFD Sender: No OFD packet to send [19:41:11]OFD Sender: No OFD packet to send [19:41:16]OFD Sender: No OFD packet to send [19:41:21]OFD Sender: No OFD packet to send [19:41:26]OFD Sender: No OFD packet to send [19:41:31]OFD Sender: No OFD packet to send [19:41:36]OFD Sender: No OFD packet to send [19:41:41]OFD Sender: No OFD packet to send [19:41:46]OFD Sender: No OFD packet to send [19:41:51]OFD Sender: No OFD packet to send [19:41:56]OFD Sender: No OFD packet to send [19:42:01]OFD Sender: No OFD packet to send [19:42:06]OFD Sender: No OFD packet to send [19:42:11]OFD Sender: No OFD packet to send [19:42:16]OFD Sender: No OFD packet to send [19:42:21]OFD Sender: No OFD packet to send [19:42:26]OFD Sender: No OFD packet to send [19:42:31]OFD Sender: No OFD packet to send [19:42:36]OFD Sender: No OFD packet to send [19:42:41]OFD Sender: No OFD packet to send [19:42:46]OFD Sender: No OFD packet to send [19:42:51]OFD Sender: No OFD packet to send [19:42:56]OFD Sender: No OFD packet to send [19:43:01]OFD Sender: No OFD packet to send [19:43:06]OFD Sender: No OFD packet to send [19:43:11]OFD Sender: No OFD packet to send [19:43:16]OFD Sender: No OFD packet to send [19:43:21]OFD Sender: No OFD packet to send [19:43:26]OFD Sender: No OFD packet to send [19:43:31]OFD Sender: No OFD packet to send [19:43:36]OFD Sender: No OFD packet to send [19:43:41]OFD Sender: No OFD packet to send [19:43:46]OFD Sender: No OFD packet to send [19:43:51]OFD Sender: No OFD packet to send [19:43:56]OFD Sender: No OFD packet to send [19:44:01]OFD Sender: No OFD packet to send [19:44:06]OFD Sender: No OFD packet to send [19:44:11]OFD Sender: No OFD packet to send [19:44:16]OFD Sender: No OFD packet to send [19:44:21]OFD Sender: No OFD packet to send [19:44:26]OFD Sender: No OFD packet to send [19:44:31]OFD Sender: No OFD packet to send [19:44:36]OFD Sender: No OFD packet to send [19:44:41]OFD Sender: No OFD packet to send [19:44:46]OFD Sender: No OFD packet to send [19:44:51]OFD Sender: No OFD packet to send [19:44:56]OFD Sender: No OFD packet to send [19:45:01]OFD Sender: No OFD packet to send [19:45:06]OFD Sender: No OFD packet to send [19:45:11]OFD Sender: No OFD packet to send [19:45:16]OFD Sender: No OFD packet to send [19:45:21]OFD Sender: No OFD packet to send [19:45:26]OFD Sender: No OFD packet to send [19:45:31]OFD Sender: No OFD packet to send [19:45:36]OFD Sender: No OFD packet to send [19:45:41]OFD Sender: No OFD packet to send [19:45:46]OFD Sender: No OFD packet to send [19:45:51]OFD Sender: No OFD packet to send [19:45:56]OFD Sender: No OFD packet to send [19:46:01]OFD Sender: No OFD packet to send [19:46:06]OFD Sender: No OFD packet to send [19:46:08]accept exits with 7 [19:46:08]New connection [19:46:08]New thread 3067014500 created [19:46:08]Thread 3067157860 joined [19:46:08]Waiting for new connection... [19:46:08] Sock 7.Parse request [19:46:08]Sock 7.Check first char [19:46:08]Sock 7.First char is OK [19:46:08]request: POST /json_proto HTTP/1.0 [19:46:08]Method: POST [19:46:08]URL: /json_proto [19:46:08]Method is POST - this is cgi request [19:46:08]url: /json_proto [19:46:08]query_string will be loaded in cgi processing [19:46:08]execute_cgi json_proto POST (null) [19:46:08]execute_cgi path=json_proto method=POST [19:46:08]POST find Content-Length [19:46:08]Host: 172.17.48.198:8080 [19:46:08]Content-Length: 662 [19:46:08]Content-Type: application/json [19:46:08] [19:46:08]POST finish read [19:46:08]Found Content-Length = 662 [19:46:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184203", "tax_sys" : 0, "items" : [ { "code": "4870240014831", "name": "\u041D\u0430\u0433\u0440.\u0422\u0430\u0431\u0430\u0447.\u041F\u0430\u043B\u043E\u0447.HEETS Summer Wave", "price" : 141.00, "quantity" : 1.000, "sum" : 141.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 141.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:46:08]execute_script... [19:46:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184203", "tax_sys" : 0, "items" : [ { "code": "4870240014831", "name": "\u041D\u0430\u0433\u0440.\u0422\u0430\u0431\u0430\u0447.\u041F\u0430\u043B\u043E\u0447.HEETS Summer Wave", "price" : 141.00, "quantity" : 1.000, "sum" : 141.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 141.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:46:08]POST & json_proto [19:46:08]process_json_proto [19:46:08]json parsed OK: [19:46:08]protocol is kg_v1.0 [19:46:08]action value=close_receipt [19:46:08]process_action close_receipt [19:46:08]cmd_close_receipt [19:46:08]MH_GetDate [19:46:08]Write to MH i2c: F0 00 00 D6 55 1A [19:46:08]Write i2c OK [19:46:08]MH_I2C_Read... [19:46:08]Read from MH i2c: F0 [19:46:08]MH_I2C_Read... [19:46:08]Read from MH i2c: F0 09 00 [19:46:08]MH_I2C_Read... [19:46:08]Read from MH i2c: F0 09 00 D6 55 00 8D D3 E4 65 CE C4 D4 65 97 [19:46:08]GetLastDocTimeStamp 1709494506 [19:46:08]current date 1709495181 [19:46:08]FM_GetShiftState [19:46:08]SAM_PROTO_GetShiftState [19:46:08]wFMCommunicate request_size=4 [19:46:08]MH_SAM_APDU [19:46:08]CAPDU: 80 13 01 00 [19:46:08]Write to MH i2c: E2 08 00 D7 55 80 13 01 00 00 00 00 00 A9 [19:46:08]Write i2c OK [19:46:08]MH_I2C_Read... [19:46:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:46:08]Read from MH i2c: E2 [19:46:08]MH_I2C_Read... [19:46:08]Read from MH i2c: E2 0E 00 [19:46:08]MH_I2C_Read... [19:46:08]Read from MH i2c: E2 0E 00 D7 55 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 DF [19:46:08]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [19:46:08]wFMCommunicate OK [19:46:08]SAM_PROTO_GetShiftState done [19:46:08]FM_GetShiftState done [19:46:08]opened in 1709425694 [19:46:08]opened+sec_in_day 1709512094 [19:46:08]quantity*price = 14100 [19:46:08]sum+1 = 14101 [19:46:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 141.00 НСП 1% : 1.25 НДС 12% : 14.97 Наличными: 141.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 78 03.03.2024 19:46 Смена: 331 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 ФМ: 0000000000874796 ФД: 45241 ФПД: 213014387983118 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T194621&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45241&fm=213014387983118&tin=02508201610067®Number=0000000000090572&sum=14100 0 [19:46:09]StoreToDocumentArchive [19:46:09]shift 331 fd 45241 [19:46:09]save to /storage/0331/doc_00045241 [19:46:09]save last doc name /storage/0331/doc_00045241 to /storage/kkm_last_doc_name [19:46:09]save OK [19:46:09]Clear old archive folders... [19:46:09]ProcessDocumentItem done err = 0, tmpTLVsize=290 [19:46:09]tlvbuf is 01CDB610 [19:46:09]SAM_PROTO_ClearQueue [19:46:09]wFMCommunicate request_size=4 [19:46:09]MH_SAM_APDU [19:46:09]CAPDU: 80 09 00 00 [19:46:09]Write to MH i2c: E2 08 00 E4 55 80 09 00 00 00 00 00 00 AB [19:46:09]Write i2c OK [19:46:09]MH_I2C_Read... [19:46:09]Read from MH i2c: E2 [19:46:09]MH_I2C_Read... [19:46:09]Read from MH i2c: E2 03 00 [19:46:09]MH_I2C_Read... [19:46:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:46:09]Read from MH i2c: E2 03 00 E4 55 00 90 00 AD [19:46:09]RAPDU: 90 00 [19:46:09]wFMCommunicate OK [19:46:09]SAM_PROTO_ClearQueue done [19:46:09]KKMCreateOFDPacket [19:46:09]OFDProtocolAddRootSTLVToBuf [19:46:09]FM_MakeSignedData [19:46:09]FM_MakeSignedData [19:46:09]SAM_PROTO_SignData [19:46:09]wFMCommunicate request_size=4 [19:46:09]MH_SAM_APDU [19:46:09]CAPDU: 80 0D 01 02 [19:46:09]Write to MH i2c: E2 08 00 E5 55 80 0D 01 02 00 00 00 00 B3 [19:46:09]Write i2c OK [19:46:09]MH_I2C_Read... [19:46:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:46:09]Read from MH i2c: E2 [19:46:09]MH_I2C_Read... [19:46:09]Read from MH i2c: E2 03 00 [19:46:09]MH_I2C_Read... [19:46:09]Read from MH i2c: E2 03 00 E5 55 00 90 00 AE [19:46:09]RAPDU: 90 00 [19:46:09]wFMCommunicate OK [19:46:09]wFMCommunicate request_size=255 [19:46:09]MH_SAM_APDU [19:46:09]CAPDU: 80 0D 02 02 FA 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 32 34 30 30 31 34 38 33 31 06 04 30 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 D0 B0 D1 87 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 48 45 45 54 53 20 53 75 6D 6D 65 72 20 57 61 76 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 05 00 00 00 00 07 04 06 00 14 37 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 8D D3 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 [19:46:09]Write to MH i2c: E2 02 01 E6 55 80 0D 02 02 FA 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 32 34 30 30 31 34 38 33 31 06 04 30 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 D0 B0 D1 87 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 48 45 45 54 53 20 53 75 6D 6D 65 72 20 57 61 76 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 05 00 00 00 00 07 04 06 00 14 37 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 8D D3 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 FA [19:46:09]Write i2c OK [19:46:09]MH_I2C_Read... [19:46:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:46:10]Read from MH i2c: E2 [19:46:10]MH_I2C_Read... [19:46:10]Read from MH i2c: E2 03 00 [19:46:10]MH_I2C_Read... [19:46:10]Read from MH i2c: E2 03 00 E6 55 00 90 00 AF [19:46:10]RAPDU: 90 00 [19:46:10]wFMCommunicate OK [19:46:10]wFMCommunicate request_size=49 [19:46:10]MH_SAM_APDU [19:46:10]CAPDU: 80 0D 02 02 2C 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 B9 B0 00 00 35 04 06 00 C1 BC 46 ED 83 0E [19:46:10]Write to MH i2c: E2 34 00 E7 55 80 0D 02 02 2C 00 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 B9 B0 00 00 35 04 06 00 C1 BC 46 ED 83 0E 00 00 94 [19:46:10]Write i2c OK [19:46:10]MH_I2C_Read... [19:46:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:46:10]Read from MH i2c: E2 [19:46:10]MH_I2C_Read... [19:46:10]Read from MH i2c: E2 03 00 [19:46:10]MH_I2C_Read... [19:46:10]Read from MH i2c: E2 03 00 E7 55 00 90 00 B0 [19:46:10]RAPDU: 90 00 [19:46:10]wFMCommunicate OK [19:46:10]wFMCommunicate request_size=4 [19:46:10]MH_SAM_APDU [19:46:10]CAPDU: 80 0D 03 02 [19:46:10]Write to MH i2c: E2 08 00 E8 55 80 0D 03 02 00 00 00 00 B8 [19:46:10]Write i2c OK [19:46:10]MH_I2C_Read... [19:46:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:46:10]Read from MH i2c: E2 [19:46:10]MH_I2C_Read... [19:46:10]Read from MH i2c: E2 0B 00 [19:46:10]MH_I2C_Read... [19:46:10]Read from MH i2c: E2 0B 00 E8 55 00 E9 5E 90 D0 04 2B DC 5F 90 00 CA [19:46:10]RAPDU: E9 5E 90 D0 04 2B DC 5F 90 00 [19:46:10]wFMCommunicate OK [19:46:10]SAM_PROTO_SignData done [19:46:10]FM_MakeSignedData done [19:46:10]CreateOFDProtocolMessage [19:46:10]wFMCommunicate request_size=4 [19:46:10]MH_SAM_APDU [19:46:10]CAPDU: 80 11 00 00 [19:46:10]Write to MH i2c: E2 08 00 E9 55 80 11 00 00 00 00 00 00 B8 [19:46:10]Write i2c OK [19:46:10]MH_I2C_Read... [19:46:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:46:10]Read from MH i2c: E2 [19:46:10]MH_I2C_Read... [19:46:10]Read from MH i2c: E2 17 00 [19:46:10]MH_I2C_Read... [19:46:10]Read from MH i2c: E2 17 00 E9 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 14 [19:46:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [19:46:10]wFMCommunicate OK [19:46:10]CreateOFDProtocolMessage done [19:46:10]OFDSenderStorePacket 45241 [19:46:10]StoreOFDPacket docnum=45241 [19:46:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 36 01 00 00 74 55 2E 01 98 F0 5A 03 01 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 32 34 30 30 31 34 38 33 31 06 04 30 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 D0 B0 D1 87 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 48 45 45 54 53 20 53 75 6D 6D 65 72 20 57 61 76 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 05 00 00 00 00 07 04 06 00 14 37 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 8D D3 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 B9 B0 00 00 35 04 06 00 C1 BC 46 ED 83 0E E9 5E 90 D0 04 2B DC 5F [19:46:10]CheckFolder [19:46:10]dirname=/storage/ofd_packets [19:46:10]CheckFolder done [19:46:10]ProducePacketName [19:46:10]name=ofd_packets/00045241 [19:46:10]NVStorageSaveData ofd_packets/00045241 [19:46:10]File name is /storage/ofd_packets/00045241 [19:46:10]Write 340 bytes [19:46:10]NVStorageSaveData done [19:46:10]OFDSenderStorePacket done [19:46:10]KKMCreateOFDPacket done [19:46:10]NVStorageSaveData kkm_last_timestamp [19:46:10]File name is /storage/kkm_last_timestamp [19:46:10]Write 4 bytes [19:46:10]NVStorageSaveData done [19:46:10]ExternCall_PrintAddStr [19:46:10]wPrintStart [19:46:10]Write to MH i2c: 01 00 00 EA 55 3F [19:46:10]OFD Sender: Processing packet 45241 [packets to send 17, broken 16] [19:46:10]ProducePacketName [19:46:10]name=ofd_packets/00045241 [19:46:10]OFD Sender: To server: pG, [19:46:10]CommunicateWithHost lk.salyk.kg:30040 [19:46:10]ConnectInit lk.salyk.kg [19:46:10]Write i2c OK [19:46:10]MH_I2C_Read... [19:46:10]Read from MH i2c: 01 [19:46:10]MH_I2C_Read... [19:46:10]Read from MH i2c: 01 07 00 [19:46:10]MH_I2C_Read... [19:46:10]Read from MH i2c: 01 07 00 EA 55 00 00 00 00 00 FF 0F 54 [19:46:10]RasterBufferAndPrint [19:46:10]line Счет N : (3)184203 [19:46:10]line ИНН: 02508201610067 [19:46:10]line Контрольно-Кассовый Чек [19:46:10]line ПРОДАЖА [19:46:10]line Товар: 4870240014831 [19:46:10]line Нагр.Табач.Палоч.HEETS Summer Wave [19:46:10]line 1.000 * 141.00 [19:46:10]line = 141.00 [19:46:10]line НДС 12% НСП 1% [19:46:10]line > о реализуемом товаре [19:46:10]line ИТОГО: 141.00 [19:46:10]line НСП 1% : 1.25 [19:46:10]line НДС 12% : 14.97 [19:46:10]line Наличными: 141.00 [19:46:10]line Безнал.: 0.00 [19:46:10]line Место: АЗС № 25 "Партнер Нефть" [19:46:10]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [19:46:10]line СНО: Общий режим [19:46:10]line Чек 78 03.03.2024 19:46 [19:46:10]line Смена: 331 ФФД: 1.0 [19:46:10]line ЗНМ: 0300000013 [19:46:10]line РНМ: 0000000000090572 [19:46:10]line Версия ККМ: 001 [19:46:10]line ФМ: 0000000000874796 [19:46:10]line ФД: 45241 [19:46:10]line ФПД: 213014387983118 [19:46:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T194621&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45241&fm=213014387983118&tin=02508201610067®Number=0000000000090572&sum=14100 [19:46:10]line 0 [19:46:10]written 0, free lines is 4095 [19:46:10]Connected sock=10 [19:46:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 36 01 00 00 74 55 2E 01 98 F0 5A 03 01 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 32 34 30 30 31 34 38 33 31 06 04 30 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 D0 B0 D1 87 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 48 45 45 54 53 20 53 75 6D 6D 65 72 20 57 61 76 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 05 00 00 00 00 07 04 06 00 14 37 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 8D D3 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 B9 B0 00 00 35 04 06 00 C1 BC 46 ED 83 0E E9 5E 90 D0 04 2B DC 5F [19:46:10]Write to MH i2c: 01 00 00 13 56 69 [19:46:10]Write i2c OK [19:46:10]MH_I2C_Read... [19:46:10]Read from MH i2c: 01 [19:46:10]MH_I2C_Read... [19:46:10]Read from MH i2c: 01 07 00 [19:46:10]MH_I2C_Read... [19:46:10]Read from MH i2c: 01 07 00 13 56 00 00 00 00 00 07 0D 84 [19:46:10]RasterBufferAndPrint [19:46:10]line [19:46:10]line [19:46:10]line [19:46:10]line [19:46:10]line [19:46:10]written 0, free lines is 3341 [19:46:10]MH_Cut [19:46:10]Write to MH i2c: D1 01 00 1A 56 01 42 [19:46:10]Write i2c OK [19:46:10]MH_I2C_Read... [19:46:10]Read from MH i2c: D1 [19:46:10]MH_I2C_Read... [19:46:10]Read from MH i2c: D1 01 00 [19:46:10]MH_I2C_Read... [19:46:10]Read from MH i2c: D1 01 00 1A 56 00 41 [19:46:10]Write to MH i2c: 01 00 00 1B 56 71 [19:46:10]Write i2c OK [19:46:10]MH_I2C_Read... [19:46:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 C4 8A 47 00 05 B0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 B9 B0 00 00 F4 03 04 00 51 7F E4 65 B6 04 01 00 00 8D D7 33 C7 A6 26 76 C0 [19:46:10]CommunicateWithHost err = 0 [19:46:10]CheckOFDResponse [19:46:10]1017 (14) - 77093643461234 [19:46:10]1041 (16) - 0000000000874796 [19:46:10]1040 (4) - 45241 [19:46:10]1012 (4) - 03.03.2024 13:46 [19:46:10]1206 (1) - 0 [19:46:10]OFD Sender: Remove packet 45241 [19:46:10]ProducePacketName [19:46:10]name=ofd_packets/00045241 [19:46:10]NVStorageDeleteData [19:46:11]OFD Sender: No OFD packet to send [19:46:11]*** Cut start [19:46:11]*** Purtial cut [19:46:11]*** Stage 1: CUTSNS_PIN = 1 [19:46:13]Read from MH i2c: 01 [19:46:13]MH_I2C_Read... [19:46:13]*** Stop cut motor [19:46:13]*** Cut end [19:46:13]Read from MH i2c: 01 07 00 [19:46:13]MH_I2C_Read... [19:46:13]Read from MH i2c: 01 07 00 1B 56 00 00 00 00 00 FF 0F 86 [19:46:13]process_action close_receipt done [19:46:13]requested_data is exist [19:46:13]produce_requested_data [19:46:13]requested_item fm.sn is exist - process it [19:46:13]wFMCommunicate request_size=4 [19:46:13]MH_SAM_APDU [19:46:13]CAPDU: 80 11 00 00 [19:46:13]Write to MH i2c: E2 08 00 1C 56 80 11 00 00 00 00 00 00 EC [19:46:13]Write i2c OK [19:46:13]MH_I2C_Read... [19:46:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:46:13]Read from MH i2c: E2 [19:46:13]MH_I2C_Read... [19:46:13]Read from MH i2c: E2 17 00 [19:46:13]MH_I2C_Read... [19:46:13]Read from MH i2c: E2 17 00 1C 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 48 [19:46:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [19:46:13]wFMCommunicate OK [19:46:13]requested_item fd.num is exist - process it [19:46:13]SAM_PROTO_GetFieldsCounters [19:46:13]wFMCommunicate request_size=4 [19:46:13]MH_SAM_APDU [19:46:13]CAPDU: 80 13 00 00 [19:46:13]Write to MH i2c: E2 08 00 1D 56 80 13 00 00 00 00 00 00 EF [19:46:13]Write i2c OK [19:46:13]MH_I2C_Read... [19:46:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:46:13]Read from MH i2c: E2 [19:46:13]MH_I2C_Read... [19:46:13]Read from MH i2c: E2 62 00 [19:46:13]MH_I2C_Read... [19:46:13]Read from MH i2c: E2 62 00 1D 56 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 B9 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 B6 [19:46:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 B9 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:46:13]wFMCommunicate OK [19:46:13]SAM_PROTO_GetFieldsCounters done [19:46:13]requested_item shift.num is exist - process it [19:46:13]requested_item shift.opened is exist - process it [19:46:13]req_shift_opened [19:46:13]FM_GetShiftState [19:46:13]SAM_PROTO_GetShiftState [19:46:13]wFMCommunicate request_size=4 [19:46:13]MH_SAM_APDU [19:46:13]CAPDU: 80 13 01 00 [19:46:13]Write to MH i2c: E2 08 00 1E 56 80 13 01 00 00 00 00 00 F1 [19:46:13]Write i2c OK [19:46:13]MH_I2C_Read... [19:46:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:46:13]Read from MH i2c: E2 [19:46:13]MH_I2C_Read... [19:46:13]Read from MH i2c: E2 0E 00 [19:46:13]MH_I2C_Read... [19:46:13]Read from MH i2c: E2 0E 00 1E 56 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 27 [19:46:13]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [19:46:13]wFMCommunicate OK [19:46:13]SAM_PROTO_GetShiftState done [19:46:13]FM_GetShiftState done [19:46:13]req_shift_opened done [19:46:13]requested_item shift.open_date is exist - process it [19:46:13]req_shift_open_date [19:46:13]req_shift_open_date done [19:46:13]produce_requested_data done [19:46:13]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45241,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [19:46:13]process_action_free close_receipt [19:46:13]json_value_free [19:46:13]json_value_free done [19:46:13]process_json_proto returns [19:46:13]Send response to host [19:46:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45241,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [19:46:13]free response buf [19:46:13]execute_script done [19:46:13]execute_script returns [19:46:13]free content buf [19:46:13]Sock 7.Close socket [19:46:13]Sock 7.Thread stoped [19:46:16]OFD Sender: No OFD packet to send [19:46:21]OFD Sender: No OFD packet to send [19:46:26]OFD Sender: No OFD packet to send [19:46:31]OFD Sender: No OFD packet to send [19:46:36]OFD Sender: No OFD packet to send [19:46:41]OFD Sender: No OFD packet to send [19:46:46]OFD Sender: No OFD packet to send [19:46:51]OFD Sender: No OFD packet to send [19:46:56]OFD Sender: No OFD packet to send [19:47:01]OFD Sender: No OFD packet to send [19:47:06]OFD Sender: No OFD packet to send [19:47:11]OFD Sender: No OFD packet to send [19:47:16]OFD Sender: No OFD packet to send [19:47:21]OFD Sender: No OFD packet to send [19:47:26]OFD Sender: No OFD packet to send [19:47:31]OFD Sender: No OFD packet to send [19:47:36]OFD Sender: No OFD packet to send [19:47:41]OFD Sender: No OFD packet to send [19:47:46]OFD Sender: No OFD packet to send [19:47:51]OFD Sender: No OFD packet to send [19:47:56]OFD Sender: No OFD packet to send [19:48:01]OFD Sender: No OFD packet to send [19:48:06]OFD Sender: No OFD packet to send [19:48:11]OFD Sender: No OFD packet to send [19:48:16]OFD Sender: No OFD packet to send [19:48:21]OFD Sender: No OFD packet to send [19:48:26]OFD Sender: No OFD packet to send [19:48:31]OFD Sender: No OFD packet to send [19:48:36]OFD Sender: No OFD packet to send [19:48:41]OFD Sender: No OFD packet to send [19:48:46]OFD Sender: No OFD packet to send [19:48:51]OFD Sender: No OFD packet to send [19:48:56]OFD Sender: No OFD packet to send [19:49:01]OFD Sender: No OFD packet to send [19:49:06]OFD Sender: No OFD packet to send [19:49:11]OFD Sender: No OFD packet to send [19:49:16]OFD Sender: No OFD packet to send [19:49:21]OFD Sender: No OFD packet to send [19:49:26]OFD Sender: No OFD packet to send [19:49:31]OFD Sender: No OFD packet to send [19:49:36]OFD Sender: No OFD packet to send [19:49:41]OFD Sender: No OFD packet to send [19:49:46]OFD Sender: No OFD packet to send [19:49:51]OFD Sender: No OFD packet to send [19:49:56]OFD Sender: No OFD packet to send [19:50:01]OFD Sender: No OFD packet to send [19:50:06]OFD Sender: No OFD packet to send [19:50:09]accept exits with 9 [19:50:09]New connection [19:50:09]New thread 3067157860 created [19:50:09]Thread 3067014500 joined [19:50:09]Waiting for new connection... [19:50:09] Sock 9.Parse request [19:50:09]Sock 9.Check first char [19:50:09]Sock 9.First char is OK [19:50:09]request: POST /json_proto HTTP/1.0 [19:50:09]Method: POST [19:50:09]URL: /json_proto [19:50:09]Method is POST - this is cgi request [19:50:09]url: /json_proto [19:50:09]query_string will be loaded in cgi processing [19:50:09]execute_cgi json_proto POST (null) [19:50:09]execute_cgi path=json_proto method=POST [19:50:09]POST find Content-Length [19:50:09]Host: 172.17.48.198:8080 [19:50:09]Content-Length: 806 [19:50:09]Content-Type: application/json [19:50:09] [19:50:09]POST finish read [19:50:09]Found Content-Length = 806 [19:50:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184204", "tax_sys" : 0, "items" : [ { "code": "4700004070011", "name": "\u0421\u044D\u043D\u0434\u0432\u0438\u0447 \u0431\u043E\u043B\u044C\u0448\u043E\u0439", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:50:09]execute_script... [19:50:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184204", "tax_sys" : 0, "items" : [ { "code": "4700004070011", "name": "\u0421\u044D\u043D\u0434\u0432\u0438\u0447 \u0431\u043E\u043B\u044C\u0448\u043E\u0439", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:50:09]POST & json_proto [19:50:09]process_json_proto [19:50:09]json parsed OK: [19:50:09]protocol is kg_v1.0 [19:50:09]action value=close_receipt [19:50:09]process_action close_receipt [19:50:09]cmd_close_receipt [19:50:09]MH_GetDate [19:50:09]Write to MH i2c: F0 00 00 1F 56 64 [19:50:09]Write i2c OK [19:50:09]MH_I2C_Read... [19:50:09]Read from MH i2c: F0 [19:50:09]MH_I2C_Read... [19:50:09]Read from MH i2c: F0 09 00 [19:50:09]MH_I2C_Read... [19:50:09]Read from MH i2c: F0 09 00 1F 56 00 7E D4 E4 65 CE C4 D4 65 D3 [19:50:09]GetLastDocTimeStamp 1709495181 [19:50:09]current date 1709495422 [19:50:09]FM_GetShiftState [19:50:09]SAM_PROTO_GetShiftState [19:50:09]wFMCommunicate request_size=4 [19:50:09]MH_SAM_APDU [19:50:09]CAPDU: 80 13 01 00 [19:50:09]Write to MH i2c: E2 08 00 20 56 80 13 01 00 00 00 00 00 F3 [19:50:09]Write i2c OK [19:50:09]MH_I2C_Read... [19:50:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:50:09]Read from MH i2c: E2 [19:50:09]MH_I2C_Read... [19:50:09]Read from MH i2c: E2 0E 00 [19:50:09]MH_I2C_Read... [19:50:09]Read from MH i2c: E2 0E 00 20 56 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 29 [19:50:09]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [19:50:09]wFMCommunicate OK [19:50:09]SAM_PROTO_GetShiftState done [19:50:09]FM_GetShiftState done [19:50:09]opened in 1709425694 [19:50:09]opened+sec_in_day 1709512094 [19:50:09]quantity*price = 8000 [19:50:09]sum+1 = 8001 [19:50:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 80.00 НСП 1% : 0.71 НДС 12% : 8.50 Наличными: 0.00 Безнал.: 80.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 79 03.03.2024 19:50 Смена: 331 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874796 ФД: 45242 ФПД: 267795524282738 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T195022&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45242&fm=267795524282738&tin=02508201610067®Number=0000000000090572&sum=8000 0 [19:50:10]StoreToDocumentArchive [19:50:10]shift 331 fd 45242 [19:50:10]save to /storage/0331/doc_00045242 [19:50:10]save last doc name /storage/0331/doc_00045242 to /storage/kkm_last_doc_name [19:50:10]save OK [19:50:10]Clear old archive folders... [19:50:10]ProcessDocumentItem done err = 0, tmpTLVsize=271 [19:50:10]tlvbuf is 01B57100 [19:50:10]SAM_PROTO_ClearQueue [19:50:10]wFMCommunicate request_size=4 [19:50:10]MH_SAM_APDU [19:50:10]CAPDU: 80 09 00 00 [19:50:10]Write to MH i2c: E2 08 00 2D 56 80 09 00 00 00 00 00 00 F5 [19:50:10]Write i2c OK [19:50:10]MH_I2C_Read... [19:50:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:50:10]Read from MH i2c: E2 [19:50:10]MH_I2C_Read... [19:50:10]Read from MH i2c: E2 03 00 [19:50:10]MH_I2C_Read... [19:50:10]Read from MH i2c: E2 03 00 2D 56 00 90 00 F7 [19:50:10]RAPDU: 90 00 [19:50:10]wFMCommunicate OK [19:50:10]SAM_PROTO_ClearQueue done [19:50:10]KKMCreateOFDPacket [19:50:10]OFDProtocolAddRootSTLVToBuf [19:50:10]FM_MakeSignedData [19:50:10]FM_MakeSignedData [19:50:10]SAM_PROTO_SignData [19:50:10]wFMCommunicate request_size=4 [19:50:10]MH_SAM_APDU [19:50:10]CAPDU: 80 0D 01 02 [19:50:10]Write to MH i2c: E2 08 00 2E 56 80 0D 01 02 00 00 00 00 FD [19:50:10]Write i2c OK [19:50:10]MH_I2C_Read... [19:50:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:50:10]Read from MH i2c: E2 [19:50:10]MH_I2C_Read... [19:50:10]Read from MH i2c: E2 03 00 [19:50:10]MH_I2C_Read... [19:50:10]Read from MH i2c: E2 03 00 2E 56 00 90 00 F8 [19:50:10]RAPDU: 90 00 [19:50:10]wFMCommunicate OK [19:50:10]wFMCommunicate request_size=255 [19:50:10]MH_SAM_APDU [19:50:10]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 34 30 37 30 30 31 31 06 04 1D 00 D0 A1 D1 8D D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 D0 B1 D0 BE D0 BB D1 8C D1 88 D0 BE D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 1F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 7E D4 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 [19:50:10]Write to MH i2c: E2 02 01 2F 56 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 34 30 37 30 30 31 31 06 04 1D 00 D0 A1 D1 8D D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 D0 B1 D0 BE D0 BB D1 8C D1 88 D0 BE D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 1F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 7E D4 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 97 [19:50:10]Write i2c OK [19:50:10]MH_I2C_Read... [19:50:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:50:11]Read from MH i2c: E2 [19:50:11]MH_I2C_Read... [19:50:11]Read from MH i2c: E2 03 00 [19:50:11]MH_I2C_Read... [19:50:11]Read from MH i2c: E2 03 00 2F 56 00 90 00 F9 [19:50:11]RAPDU: 90 00 [19:50:11]wFMCommunicate OK [19:50:11]wFMCommunicate request_size=30 [19:50:11]MH_SAM_APDU [19:50:11]CAPDU: 80 0D 02 02 19 30 38 37 34 37 39 36 10 04 04 00 BA B0 00 00 35 04 06 00 F3 8F 01 18 E9 72 [19:50:11]Write to MH i2c: E2 21 00 30 56 80 0D 02 02 19 00 30 38 37 34 37 39 36 10 04 04 00 BA B0 00 00 35 04 06 00 F3 8F 01 18 E9 72 00 00 62 [19:50:11]Write i2c OK [19:50:11]MH_I2C_Read... [19:50:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:50:11]Read from MH i2c: E2 [19:50:11]MH_I2C_Read... [19:50:11]Read from MH i2c: E2 03 00 [19:50:11]MH_I2C_Read... [19:50:11]Read from MH i2c: E2 03 00 30 56 00 90 00 FA [19:50:11]RAPDU: 90 00 [19:50:11]wFMCommunicate OK [19:50:11]wFMCommunicate request_size=4 [19:50:11]MH_SAM_APDU [19:50:11]CAPDU: 80 0D 03 02 [19:50:11]Write to MH i2c: E2 08 00 31 56 80 0D 03 02 00 00 00 00 02 [19:50:11]Write i2c OK [19:50:11]MH_I2C_Read... [19:50:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:50:11]Read from MH i2c: E2 [19:50:11]MH_I2C_Read... [19:50:11]Read from MH i2c: E2 0B 00 [19:50:11]MH_I2C_Read... [19:50:11]Read from MH i2c: E2 0B 00 31 56 00 82 EA 3F 98 49 2A D2 A7 90 00 32 [19:50:11]RAPDU: 82 EA 3F 98 49 2A D2 A7 90 00 [19:50:11]wFMCommunicate OK [19:50:11]SAM_PROTO_SignData done [19:50:11]FM_MakeSignedData done [19:50:11]CreateOFDProtocolMessage [19:50:11]wFMCommunicate request_size=4 [19:50:11]MH_SAM_APDU [19:50:11]CAPDU: 80 11 00 00 [19:50:11]Write to MH i2c: E2 08 00 32 56 80 11 00 00 00 00 00 00 02 [19:50:11]Write i2c OK [19:50:11]MH_I2C_Read... [19:50:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:50:11]Read from MH i2c: E2 [19:50:11]MH_I2C_Read... [19:50:11]Read from MH i2c: E2 17 00 [19:50:11]MH_I2C_Read... [19:50:11]Read from MH i2c: E2 17 00 32 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 5E [19:50:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [19:50:11]wFMCommunicate OK [19:50:11]CreateOFDProtocolMessage done [19:50:11]OFDSenderStorePacket 45242 [19:50:11]StoreOFDPacket docnum=45242 [19:50:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 23 01 00 00 81 AD 1B 01 5B E7 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 34 30 37 30 30 31 31 06 04 1D 00 D0 A1 D1 8D D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 D0 B1 D0 BE D0 BB D1 8C D1 88 D0 BE D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 1F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 7E D4 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 BA B0 00 00 35 04 06 00 F3 8F 01 18 E9 72 82 EA 3F 98 49 2A D2 A7 [19:50:11]CheckFolder [19:50:11]dirname=/storage/ofd_packets [19:50:11]CheckFolder done [19:50:11]ProducePacketName [19:50:11]name=ofd_packets/00045242 [19:50:11]NVStorageSaveData ofd_packets/00045242 [19:50:11]File name is /storage/ofd_packets/00045242 [19:50:11]Write 321 bytes [19:50:11]NVStorageSaveData done [19:50:11]OFDSenderStorePacket done [19:50:11]KKMCreateOFDPacket done [19:50:11]NVStorageSaveData kkm_last_timestamp [19:50:11]File name is /storage/kkm_last_timestamp [19:50:11]Write 4 bytes [19:50:11]NVStorageSaveData done [19:50:11]ExternCall_PrintAddStr [19:50:11]wPrintStart [19:50:11]Write to MH i2c: 01 00 00 33 56 89 [19:50:11]Write i2c OK [19:50:11]MH_I2C_Read... [19:50:11]Read from MH i2c: 01 [19:50:11]MH_I2C_Read... [19:50:11]Read from MH i2c: 01 07 00 [19:50:11]MH_I2C_Read... [19:50:11]Read from MH i2c: 01 07 00 33 56 00 00 00 00 00 FF 0F 9E [19:50:11]RasterBufferAndPrint [19:50:11]line Счет N : (3)184204 [19:50:11]line ИНН: 02508201610067 [19:50:11]line Контрольно-Кассовый Чек [19:50:11]line ПРОДАЖА [19:50:11]line Товар: 4700004070011 [19:50:11]line Сэндвич большой [19:50:11]line 1.000 * 80.00 [19:50:11]line = 80.00 [19:50:11]line НДС 12% НСП 1% [19:50:11]line > о реализуемом товаре [19:50:11]line ИТОГО: 80.00 [19:50:11]line НСП 1% : 0.71 [19:50:11]line НДС 12% : 8.50 [19:50:11]line Наличными: 0.00 [19:50:11]line Безнал.: 80.00 [19:50:11]line Место: АЗС № 25 "Партнер Нефть" [19:50:11]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [19:50:11]line СНО: Общий режим [19:50:11]line Чек 79 03.03.2024 19:50 [19:50:11]line Смена: 331 ФФД: 1.0 [19:50:11]line ЗНМ: 0300000013 [19:50:11]line РНМ: 0000000000090572 [19:50:11]line Версия ККМ: 001 [19:50:11]line Платежная система: О! деньги [19:50:11]line ФМ: 0000000000874796 [19:50:11]line ФД: 45242 [19:50:11]line ФПД: 267795524282738 [19:50:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T195022&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45242&fm=267795524282738&tin=02508201610067®Number=0000000000090572&sum=8000 [19:50:11]line 0 [19:50:11]OFD Sender: Processing packet 45242 [packets to send 17, broken 16] [19:50:11]ProducePacketName [19:50:11]name=ofd_packets/00045242 [19:50:11]OFD Sender: To server: pG, [19:50:11]CommunicateWithHost lk.salyk.kg:30040 [19:50:11]ConnectInit lk.salyk.kg [19:50:11]written 0, free lines is 4095 [19:50:11]Connected sock=10 [19:50:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 23 01 00 00 81 AD 1B 01 5B E7 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 34 30 37 30 30 31 31 06 04 1D 00 D0 A1 D1 8D D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 D0 B1 D0 BE D0 BB D1 8C D1 88 D0 BE D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 1F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 7E D4 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 BA B0 00 00 35 04 06 00 F3 8F 01 18 E9 72 82 EA 3F 98 49 2A D2 A7 [19:50:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 E0 E5 47 00 52 60 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 BA B0 00 00 F4 03 04 00 42 80 E4 65 B6 04 01 00 00 86 31 64 63 79 0E 69 26 [19:50:11]CommunicateWithHost err = 0 [19:50:11]CheckOFDResponse [19:50:11]1017 (14) - 77093643461234 [19:50:11]1041 (16) - 0000000000874796 [19:50:11]1040 (4) - 45242 [19:50:11]1012 (4) - 03.03.2024 13:50 [19:50:11]1206 (1) - 0 [19:50:11]OFD Sender: Remove packet 45242 [19:50:11]ProducePacketName [19:50:11]name=ofd_packets/00045242 [19:50:11]NVStorageDeleteData [19:50:12]Write to MH i2c: 01 00 00 5D 56 B3 [19:50:12]Write i2c OK [19:50:12]MH_I2C_Read... [19:50:12]Read from MH i2c: 01 [19:50:12]MH_I2C_Read... [19:50:12]Read from MH i2c: 01 07 00 [19:50:12]MH_I2C_Read... [19:50:12]Read from MH i2c: 01 07 00 5D 56 00 00 00 00 00 F0 0C B6 [19:50:12]RasterBufferAndPrint [19:50:12]line [19:50:12]line [19:50:12]line [19:50:12]line [19:50:12]line [19:50:12]written 0, free lines is 3318 [19:50:12]MH_Cut [19:50:12]Write to MH i2c: D1 01 00 64 56 01 8C [19:50:12]Write i2c OK [19:50:12]MH_I2C_Read... [19:50:12]Read from MH i2c: D1 [19:50:12]MH_I2C_Read... [19:50:12]Read from MH i2c: D1 01 00 [19:50:12]MH_I2C_Read... [19:50:12]Read from MH i2c: D1 01 00 64 56 00 8B [19:50:12]Write to MH i2c: 01 00 00 65 56 BB [19:50:12]Write i2c OK [19:50:12]MH_I2C_Read... [19:50:12]OFD Sender: No OFD packet to send [19:50:12]*** Cut start [19:50:12]*** Purtial cut [19:50:12]*** Stage 1: CUTSNS_PIN = 1 [19:50:14]Read from MH i2c: 01 [19:50:14]MH_I2C_Read... [19:50:14]*** Stop cut motor [19:50:14]*** Cut end [19:50:14]Read from MH i2c: 01 07 00 [19:50:14]MH_I2C_Read... [19:50:14]Read from MH i2c: 01 07 00 65 56 00 00 00 00 00 FF 0F D0 [19:50:14]process_action close_receipt done [19:50:14]requested_data is exist [19:50:14]produce_requested_data [19:50:14]requested_item fm.sn is exist - process it [19:50:14]wFMCommunicate request_size=4 [19:50:14]MH_SAM_APDU [19:50:14]CAPDU: 80 11 00 00 [19:50:14]Write to MH i2c: E2 08 00 66 56 80 11 00 00 00 00 00 00 36 [19:50:14]Write i2c OK [19:50:14]MH_I2C_Read... [19:50:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:50:14]Read from MH i2c: E2 [19:50:14]MH_I2C_Read... [19:50:14]Read from MH i2c: E2 17 00 [19:50:14]MH_I2C_Read... [19:50:14]Read from MH i2c: E2 17 00 66 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 92 [19:50:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [19:50:14]wFMCommunicate OK [19:50:14]requested_item fd.num is exist - process it [19:50:14]SAM_PROTO_GetFieldsCounters [19:50:14]wFMCommunicate request_size=4 [19:50:14]MH_SAM_APDU [19:50:14]CAPDU: 80 13 00 00 [19:50:14]Write to MH i2c: E2 08 00 67 56 80 13 00 00 00 00 00 00 39 [19:50:14]Write i2c OK [19:50:14]MH_I2C_Read... [19:50:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:50:14]Read from MH i2c: E2 [19:50:14]MH_I2C_Read... [19:50:14]Read from MH i2c: E2 62 00 [19:50:14]MH_I2C_Read... [19:50:14]Read from MH i2c: E2 62 00 67 56 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 BA B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 04 [19:50:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 BA B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:50:14]wFMCommunicate OK [19:50:14]SAM_PROTO_GetFieldsCounters done [19:50:14]requested_item shift.num is exist - process it [19:50:14]requested_item shift.opened is exist - process it [19:50:14]req_shift_opened [19:50:14]FM_GetShiftState [19:50:14]SAM_PROTO_GetShiftState [19:50:14]wFMCommunicate request_size=4 [19:50:14]MH_SAM_APDU [19:50:14]CAPDU: 80 13 01 00 [19:50:14]Write to MH i2c: E2 08 00 68 56 80 13 01 00 00 00 00 00 3B [19:50:14]Write i2c OK [19:50:14]MH_I2C_Read... [19:50:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:50:14]Read from MH i2c: E2 [19:50:14]MH_I2C_Read... [19:50:14]Read from MH i2c: E2 0E 00 [19:50:14]MH_I2C_Read... [19:50:14]Read from MH i2c: E2 0E 00 68 56 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 71 [19:50:14]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [19:50:14]wFMCommunicate OK [19:50:14]SAM_PROTO_GetShiftState done [19:50:14]FM_GetShiftState done [19:50:14]req_shift_opened done [19:50:14]requested_item shift.open_date is exist - process it [19:50:14]req_shift_open_date [19:50:14]req_shift_open_date done [19:50:14]produce_requested_data done [19:50:14]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45242,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [19:50:14]process_action_free close_receipt [19:50:14]json_value_free [19:50:14]json_value_free done [19:50:14]process_json_proto returns [19:50:14]Send response to host [19:50:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45242,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [19:50:14]free response buf [19:50:14]execute_script done [19:50:14]execute_script returns [19:50:14]free content buf [19:50:14]Sock 9.Close socket [19:50:14]Sock 9.Thread stoped [19:50:17]OFD Sender: No OFD packet to send [19:50:22]OFD Sender: No OFD packet to send [19:50:27]OFD Sender: No OFD packet to send [19:50:32]OFD Sender: No OFD packet to send [19:50:37]OFD Sender: No OFD packet to send [19:50:42]OFD Sender: No OFD packet to send [19:50:47]OFD Sender: No OFD packet to send [19:50:52]OFD Sender: No OFD packet to send [19:50:57]OFD Sender: No OFD packet to send [19:51:02]OFD Sender: No OFD packet to send [19:51:07]OFD Sender: No OFD packet to send [19:51:12]OFD Sender: No OFD packet to send [19:51:17]OFD Sender: No OFD packet to send [19:51:22]OFD Sender: No OFD packet to send [19:51:27]OFD Sender: No OFD packet to send [19:51:32]OFD Sender: No OFD packet to send [19:51:37]OFD Sender: No OFD packet to send [19:51:42]OFD Sender: No OFD packet to send [19:51:47]OFD Sender: No OFD packet to send [19:51:52]OFD Sender: No OFD packet to send [19:51:57]OFD Sender: No OFD packet to send [19:52:02]OFD Sender: No OFD packet to send [19:52:07]OFD Sender: No OFD packet to send [19:52:12]OFD Sender: No OFD packet to send [19:52:17]OFD Sender: No OFD packet to send [19:52:22]OFD Sender: No OFD packet to send [19:52:27]OFD Sender: No OFD packet to send [19:52:32]OFD Sender: No OFD packet to send [19:52:36]accept exits with 7 [19:52:36]New connection [19:52:36]New thread 3067014500 created [19:52:36]Thread 3067157860 joined [19:52:36]Waiting for new connection... [19:52:36] Sock 7.Parse request [19:52:36]Sock 7.Check first char [19:52:36]Sock 7.First char is OK [19:52:36]request: POST /json_proto HTTP/1.0 [19:52:36]Method: POST [19:52:36]URL: /json_proto [19:52:36]Method is POST - this is cgi request [19:52:36]url: /json_proto [19:52:36]query_string will be loaded in cgi processing [19:52:36]execute_cgi json_proto POST (null) [19:52:36]execute_cgi path=json_proto method=POST [19:52:36]POST find Content-Length [19:52:36]Host: 172.17.48.198:8080 [19:52:36]Content-Length: 622 [19:52:36]Content-Type: application/json [19:52:36] [19:52:36]POST finish read [19:52:36]Found Content-Length = 622 [19:52:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184205", "tax_sys" : 0, "items" : [ { "code": "4640030091621", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange W", "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" ] } } [19:52:36]execute_script... [19:52:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184205", "tax_sys" : 0, "items" : [ { "code": "4640030091621", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange W", "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" ] } } [19:52:36]POST & json_proto [19:52:36]process_json_proto [19:52:36]json parsed OK: [19:52:36]protocol is kg_v1.0 [19:52:36]action value=close_receipt [19:52:36]process_action close_receipt [19:52:36]cmd_close_receipt [19:52:36]MH_GetDate [19:52:36]Write to MH i2c: F0 00 00 69 56 AE [19:52:36]Write i2c OK [19:52:36]MH_I2C_Read... [19:52:36]Read from MH i2c: F0 [19:52:36]MH_I2C_Read... [19:52:36]Read from MH i2c: F0 09 00 [19:52:36]MH_I2C_Read... [19:52:36]Read from MH i2c: F0 09 00 69 56 00 11 D5 E4 65 CE C4 D4 65 B1 [19:52:36]GetLastDocTimeStamp 1709495422 [19:52:36]current date 1709495569 [19:52:36]FM_GetShiftState [19:52:36]SAM_PROTO_GetShiftState [19:52:36]wFMCommunicate request_size=4 [19:52:36]MH_SAM_APDU [19:52:36]CAPDU: 80 13 01 00 [19:52:36]Write to MH i2c: E2 08 00 6A 56 80 13 01 00 00 00 00 00 3D [19:52:36]Write i2c OK [19:52:36]MH_I2C_Read... [19:52:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:52:36]Read from MH i2c: E2 [19:52:36]MH_I2C_Read... [19:52:36]Read from MH i2c: E2 0E 00 [19:52:36]MH_I2C_Read... [19:52:36]Read from MH i2c: E2 0E 00 6A 56 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 73 [19:52:36]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [19:52:36]wFMCommunicate OK [19:52:36]SAM_PROTO_GetShiftState done [19:52:36]FM_GetShiftState done [19:52:36]opened in 1709425694 [19:52:36]opened+sec_in_day 1709512094 [19:52:36]quantity*price = 13800 [19:52:36]sum+1 = 13801 [19:52:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 138.00 НСП 1% : 1.22 НДС 12% : 14.65 Наличными: 138.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 80 03.03.2024 19:52 Смена: 331 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 ФМ: 0000000000874796 ФД: 45243 ФПД: 265702523971479 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T195249&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45243&fm=265702523971479&tin=02508201610067®Number=0000000000090572&sum=13800 0 [19:52:37]StoreToDocumentArchive [19:52:37]shift 331 fd 45243 [19:52:37]save to /storage/0331/doc_00045243 [19:52:37]save last doc name /storage/0331/doc_00045243 to /storage/kkm_last_doc_name [19:52:37]save OK [19:52:37]Clear old archive folders... [19:52:37]ProcessDocumentItem done err = 0, tmpTLVsize=274 [19:52:37]tlvbuf is 01B9B490 [19:52:37]SAM_PROTO_ClearQueue [19:52:37]wFMCommunicate request_size=4 [19:52:37]MH_SAM_APDU [19:52:37]CAPDU: 80 09 00 00 [19:52:37]Write to MH i2c: E2 08 00 77 56 80 09 00 00 00 00 00 00 3F [19:52:37]Write i2c OK [19:52:37]MH_I2C_Read... [19:52:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:52:37]Read from MH i2c: E2 [19:52:37]MH_I2C_Read... [19:52:37]Read from MH i2c: E2 03 00 [19:52:37]MH_I2C_Read... [19:52:37]Read from MH i2c: E2 03 00 77 56 00 90 00 41 [19:52:37]RAPDU: 90 00 [19:52:37]wFMCommunicate OK [19:52:37]SAM_PROTO_ClearQueue done [19:52:37]KKMCreateOFDPacket [19:52:37]OFDProtocolAddRootSTLVToBuf [19:52:37]FM_MakeSignedData [19:52:37]FM_MakeSignedData [19:52:37]SAM_PROTO_SignData [19:52:37]wFMCommunicate request_size=4 [19:52:37]MH_SAM_APDU [19:52:37]CAPDU: 80 0D 01 02 [19:52:37]Write to MH i2c: E2 08 00 78 56 80 0D 01 02 00 00 00 00 47 [19:52:37]Write i2c OK [19:52:37]MH_I2C_Read... [19:52:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:52:37]Read from MH i2c: E2 [19:52:37]MH_I2C_Read... [19:52:37]Read from MH i2c: E2 03 00 [19:52:37]MH_I2C_Read... [19:52:37]Read from MH i2c: E2 03 00 78 56 00 90 00 42 [19:52:37]RAPDU: 90 00 [19:52:37]wFMCommunicate OK [19:52:37]wFMCommunicate request_size=255 [19:52:37]MH_SAM_APDU [19:52:37]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 32 31 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 57 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 50 00 00 00 F4 03 04 00 11 D5 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 [19:52:37]Write to MH i2c: E2 02 01 79 56 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 32 31 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 57 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 50 00 00 00 F4 03 04 00 11 D5 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 00 00 51 [19:52:37]Write i2c OK [19:52:37]MH_I2C_Read... [19:52:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:52:38]Read from MH i2c: E2 [19:52:38]MH_I2C_Read... [19:52:38]Read from MH i2c: E2 03 00 [19:52:38]MH_I2C_Read... [19:52:38]Read from MH i2c: E2 03 00 79 56 00 90 00 43 [19:52:38]RAPDU: 90 00 [19:52:38]wFMCommunicate OK [19:52:38]wFMCommunicate request_size=33 [19:52:38]MH_SAM_APDU [19:52:38]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 34 37 39 36 10 04 04 00 BB B0 00 00 35 04 06 00 F1 A7 B0 8E A7 97 [19:52:38]Write to MH i2c: E2 24 00 7A 56 80 0D 02 02 1C 00 30 30 30 30 38 37 34 37 39 36 10 04 04 00 BB B0 00 00 35 04 06 00 F1 A7 B0 8E A7 97 00 00 61 [19:52:38]Write i2c OK [19:52:38]MH_I2C_Read... [19:52:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:52:38]Read from MH i2c: E2 [19:52:38]MH_I2C_Read... [19:52:38]Read from MH i2c: E2 03 00 [19:52:38]MH_I2C_Read... [19:52:38]Read from MH i2c: E2 03 00 7A 56 00 90 00 44 [19:52:38]RAPDU: 90 00 [19:52:38]wFMCommunicate OK [19:52:38]wFMCommunicate request_size=4 [19:52:38]MH_SAM_APDU [19:52:38]CAPDU: 80 0D 03 02 [19:52:38]Write to MH i2c: E2 08 00 7B 56 80 0D 03 02 00 00 00 00 4C [19:52:38]Write i2c OK [19:52:38]MH_I2C_Read... [19:52:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:52:38]Read from MH i2c: E2 [19:52:38]MH_I2C_Read... [19:52:38]Read from MH i2c: E2 0B 00 [19:52:38]MH_I2C_Read... [19:52:38]Read from MH i2c: E2 0B 00 7B 56 00 00 D7 C7 17 F8 95 A0 65 90 00 94 [19:52:38]RAPDU: 00 D7 C7 17 F8 95 A0 65 90 00 [19:52:38]wFMCommunicate OK [19:52:38]SAM_PROTO_SignData done [19:52:38]FM_MakeSignedData done [19:52:38]CreateOFDProtocolMessage [19:52:38]wFMCommunicate request_size=4 [19:52:38]MH_SAM_APDU [19:52:38]CAPDU: 80 11 00 00 [19:52:38]Write to MH i2c: E2 08 00 7C 56 80 11 00 00 00 00 00 00 4C [19:52:38]Write i2c OK [19:52:38]MH_I2C_Read... [19:52:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:52:38]Read from MH i2c: E2 [19:52:38]MH_I2C_Read... [19:52:38]Read from MH i2c: E2 17 00 [19:52:38]MH_I2C_Read... [19:52:38]Read from MH i2c: E2 17 00 7C 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 A8 [19:52:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [19:52:38]wFMCommunicate OK [19:52:38]CreateOFDProtocolMessage done [19:52:38]OFDSenderStorePacket 45243 [19:52:38]StoreOFDPacket docnum=45243 [19:52:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 26 01 00 00 4C 28 1E 01 03 B5 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 32 31 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 57 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 50 00 00 00 F4 03 04 00 11 D5 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 BB B0 00 00 35 04 06 00 F1 A7 B0 8E A7 97 00 D7 C7 17 F8 95 A0 65 [19:52:38]CheckFolder [19:52:38]dirname=/storage/ofd_packets [19:52:38]CheckFolder done [19:52:38]ProducePacketName [19:52:38]name=ofd_packets/00045243 [19:52:38]NVStorageSaveData ofd_packets/00045243 [19:52:38]File name is /storage/ofd_packets/00045243 [19:52:38]Write 324 bytes [19:52:38]NVStorageSaveData done [19:52:38]OFDSenderStorePacket done [19:52:38]KKMCreateOFDPacket done [19:52:38]NVStorageSaveData kkm_last_timestamp [19:52:38]File name is /storage/kkm_last_timestamp [19:52:38]Write 4 bytes [19:52:38]NVStorageSaveData done [19:52:38]ExternCall_PrintAddStr [19:52:38]wPrintStart [19:52:38]Write to MH i2c: 01 00 00 7D 56 D3 [19:52:38]Write i2c OK [19:52:38]MH_I2C_Read... [19:52:38]Read from MH i2c: 01 [19:52:38]MH_I2C_Read... [19:52:38]Read from MH i2c: 01 07 00 [19:52:38]MH_I2C_Read... [19:52:38]Read from MH i2c: 01 07 00 7D 56 00 00 00 00 00 FF 0F E8 [19:52:38]RasterBufferAndPrint [19:52:38]line Счет N : (3)184205 [19:52:38]line ИНН: 02508201610067 [19:52:38]line Контрольно-Кассовый Чек [19:52:38]line ПРОДАЖА [19:52:38]line Товар: 4640030091621 [19:52:38]line Сигареты ESSE Exchange W [19:52:38]line 1.000 * 138.00 [19:52:38]line = 138.00 [19:52:38]line НДС 12% НСП 1% [19:52:38]line > о реализуемом товаре [19:52:38]line ИТОГО: 138.00 [19:52:38]line НСП 1% : 1.22 [19:52:38]line НДС 12% : 14.65 [19:52:38]line Наличными: 138.00 [19:52:38]line Безнал.: 0.00 [19:52:38]line Место: АЗС № 25 "Партнер Нефть" [19:52:38]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [19:52:38]line СНО: Общий режим [19:52:38]line Чек 80 03.03.2024 19:52 [19:52:38]line Смена: 331 ФФД: 1.0 [19:52:38]line ЗНМ: 0300000013 [19:52:38]line РНМ: 0000000000090572 [19:52:38]line Версия ККМ: 001 [19:52:38]line ФМ: 0000000000874796 [19:52:38]line ФД: 45243 [19:52:38]line ФПД: 265702523971479 [19:52:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T195249&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45243&fm=265702523971479&tin=02508201610067®Number=0000000000090572&sum=13800 [19:52:38]line 0 [19:52:38]OFD Sender: Processing packet 45243 [packets to send 17, broken 16] [19:52:38]ProducePacketName [19:52:38]name=ofd_packets/00045243 [19:52:38]OFD Sender: To server: pG, [19:52:38]CommunicateWithHost lk.salyk.kg:30040 [19:52:38]ConnectInit lk.salyk.kg [19:52:38]written 0, free lines is 4095 [19:52:38]Connected sock=10 [19:52:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 26 01 00 00 4C 28 1E 01 03 B5 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 32 31 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 57 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 50 00 00 00 F4 03 04 00 11 D5 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 BB B0 00 00 35 04 06 00 F1 A7 B0 8E A7 97 00 D7 C7 17 F8 95 A0 65 [19:52:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 42 78 47 00 7A F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 BB B0 00 00 F4 03 04 00 D5 80 E4 65 B6 04 01 00 00 83 79 48 08 60 66 E4 BD [19:52:38]CommunicateWithHost err = 0 [19:52:38]CheckOFDResponse [19:52:38]1017 (14) - 77093643461234 [19:52:38]1041 (16) - 0000000000874796 [19:52:38]1040 (4) - 45243 [19:52:38]1012 (4) - 03.03.2024 13:53 [19:52:38]1206 (1) - 0 [19:52:38]OFD Sender: Remove packet 45243 [19:52:38]ProducePacketName [19:52:38]name=ofd_packets/00045243 [19:52:38]NVStorageDeleteData [19:52:38]Write to MH i2c: 01 00 00 A5 56 FB [19:52:38]Write i2c OK [19:52:38]MH_I2C_Read... [19:52:38]Read from MH i2c: 01 [19:52:38]MH_I2C_Read... [19:52:38]Read from MH i2c: 01 07 00 [19:52:38]MH_I2C_Read... [19:52:38]Read from MH i2c: 01 07 00 A5 56 00 00 00 00 00 0B 0D 1A [19:52:38]RasterBufferAndPrint [19:52:38]line [19:52:38]line [19:52:38]line [19:52:38]line [19:52:38]line [19:52:38]written 0, free lines is 3345 [19:52:38]MH_Cut [19:52:38]Write to MH i2c: D1 01 00 AC 56 01 D4 [19:52:38]Write i2c OK [19:52:38]MH_I2C_Read... [19:52:38]Read from MH i2c: D1 [19:52:38]MH_I2C_Read... [19:52:38]Read from MH i2c: D1 01 00 [19:52:38]MH_I2C_Read... [19:52:38]Read from MH i2c: D1 01 00 AC 56 00 D3 [19:52:38]Write to MH i2c: 01 00 00 AD 56 03 [19:52:38]Write i2c OK [19:52:38]MH_I2C_Read... [19:52:39]OFD Sender: No OFD packet to send [19:52:39]*** Cut start [19:52:39]*** Purtial cut [19:52:39]*** Stage 1: CUTSNS_PIN = 1 [19:52:41]Read from MH i2c: 01 [19:52:41]MH_I2C_Read... [19:52:41]*** Stop cut motor [19:52:41]*** Cut end [19:52:41]Read from MH i2c: 01 07 00 [19:52:41]MH_I2C_Read... [19:52:41]Read from MH i2c: 01 07 00 AD 56 00 00 00 00 00 FF 0F 18 [19:52:41]process_action close_receipt done [19:52:41]requested_data is exist [19:52:41]produce_requested_data [19:52:41]requested_item fm.sn is exist - process it [19:52:41]wFMCommunicate request_size=4 [19:52:41]MH_SAM_APDU [19:52:41]CAPDU: 80 11 00 00 [19:52:41]Write to MH i2c: E2 08 00 AE 56 80 11 00 00 00 00 00 00 7E [19:52:41]Write i2c OK [19:52:41]MH_I2C_Read... [19:52:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:52:41]Read from MH i2c: E2 [19:52:41]MH_I2C_Read... [19:52:41]Read from MH i2c: E2 17 00 [19:52:41]MH_I2C_Read... [19:52:41]Read from MH i2c: E2 17 00 AE 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 DA [19:52:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [19:52:41]wFMCommunicate OK [19:52:41]requested_item fd.num is exist - process it [19:52:41]SAM_PROTO_GetFieldsCounters [19:52:41]wFMCommunicate request_size=4 [19:52:41]MH_SAM_APDU [19:52:41]CAPDU: 80 13 00 00 [19:52:41]Write to MH i2c: E2 08 00 AF 56 80 13 00 00 00 00 00 00 81 [19:52:41]Write i2c OK [19:52:41]MH_I2C_Read... [19:52:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:52:41]Read from MH i2c: E2 [19:52:41]MH_I2C_Read... [19:52:41]Read from MH i2c: E2 62 00 [19:52:41]MH_I2C_Read... [19:52:41]Read from MH i2c: E2 62 00 AF 56 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 BB B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 50 [19:52:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 BB B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:52:41]wFMCommunicate OK [19:52:41]SAM_PROTO_GetFieldsCounters done [19:52:41]requested_item shift.num is exist - process it [19:52:41]requested_item shift.opened is exist - process it [19:52:41]req_shift_opened [19:52:41]FM_GetShiftState [19:52:41]SAM_PROTO_GetShiftState [19:52:41]wFMCommunicate request_size=4 [19:52:41]MH_SAM_APDU [19:52:41]CAPDU: 80 13 01 00 [19:52:41]Write to MH i2c: E2 08 00 B0 56 80 13 01 00 00 00 00 00 83 [19:52:41]Write i2c OK [19:52:41]MH_I2C_Read... [19:52:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:52:41]Read from MH i2c: E2 [19:52:41]MH_I2C_Read... [19:52:41]Read from MH i2c: E2 0E 00 [19:52:41]MH_I2C_Read... [19:52:41]Read from MH i2c: E2 0E 00 B0 56 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 B9 [19:52:41]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [19:52:41]wFMCommunicate OK [19:52:41]SAM_PROTO_GetShiftState done [19:52:41]FM_GetShiftState done [19:52:41]req_shift_opened done [19:52:41]requested_item shift.open_date is exist - process it [19:52:41]req_shift_open_date [19:52:41]req_shift_open_date done [19:52:41]produce_requested_data done [19:52:41]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45243,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [19:52:41]process_action_free close_receipt [19:52:41]json_value_free [19:52:41]json_value_free done [19:52:41]process_json_proto returns [19:52:41]Send response to host [19:52:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45243,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [19:52:41]free response buf [19:52:41]execute_script done [19:52:41]execute_script returns [19:52:41]free content buf [19:52:41]Sock 7.Close socket [19:52:41]Sock 7.Thread stoped [19:52:44]OFD Sender: No OFD packet to send [19:52:49]OFD Sender: No OFD packet to send [19:52:54]OFD Sender: No OFD packet to send [19:52:59]OFD Sender: No OFD packet to send [19:53:04]OFD Sender: No OFD packet to send [19:53:09]OFD Sender: No OFD packet to send [19:53:14]OFD Sender: No OFD packet to send [19:53:19]OFD Sender: No OFD packet to send [19:53:24]OFD Sender: No OFD packet to send [19:53:26]accept exits with 9 [19:53:26]New connection [19:53:26]New thread 3067157860 created [19:53:26]Thread 3067014500 joined [19:53:26]Waiting for new connection... [19:53:26] Sock 9.Parse request [19:53:26]Sock 9.Check first char [19:53:26]Sock 9.First char is OK [19:53:26]request: POST /json_proto HTTP/1.0 [19:53:26]Method: POST [19:53:26]URL: /json_proto [19:53:26]Method is POST - this is cgi request [19:53:26]url: /json_proto [19:53:26]query_string will be loaded in cgi processing [19:53:26]execute_cgi json_proto POST (null) [19:53:26]execute_cgi path=json_proto method=POST [19:53:26]POST find Content-Length [19:53:26]Host: 172.17.48.198:8080 [19:53:26]Content-Length: 669 [19:53:26]Content-Type: application/json [19:53:26] [19:53:26]POST finish read [19:53:26]Found Content-Length = 669 [19:53:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184206", "tax_sys" : 0, "items" : [ { "code": "4650243871842", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F 0,275 \u043B \u041C\u0410\u041D\u0413\u041E \u041A\u041E\u041A\u041E\u0421", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:53:26]execute_script... [19:53: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)184206", "tax_sys" : 0, "items" : [ { "code": "4650243871842", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F 0,275 \u043B \u041C\u0410\u041D\u0413\u041E \u041A\u041E\u041A\u041E\u0421", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:53:26]POST & json_proto [19:53:26]process_json_proto [19:53:26]json parsed OK: [19:53:26]protocol is kg_v1.0 [19:53:26]action value=close_receipt [19:53:26]process_action close_receipt [19:53:26]cmd_close_receipt [19:53:26]MH_GetDate [19:53:26]Write to MH i2c: F0 00 00 B1 56 F6 [19:53:26]Write i2c OK [19:53:26]MH_I2C_Read... [19:53:26]Read from MH i2c: F0 [19:53:26]MH_I2C_Read... [19:53:26]Read from MH i2c: F0 09 00 [19:53:26]MH_I2C_Read... [19:53:26]Read from MH i2c: F0 09 00 B1 56 00 43 D5 E4 65 CE C4 D4 65 2B [19:53:26]GetLastDocTimeStamp 1709495569 [19:53:26]current date 1709495619 [19:53:26]FM_GetShiftState [19:53:26]SAM_PROTO_GetShiftState [19:53:26]wFMCommunicate request_size=4 [19:53:26]MH_SAM_APDU [19:53:26]CAPDU: 80 13 01 00 [19:53:26]Write to MH i2c: E2 08 00 B2 56 80 13 01 00 00 00 00 00 85 [19:53:26]Write i2c OK [19:53:26]MH_I2C_Read... [19:53:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:53:26]Read from MH i2c: E2 [19:53:26]MH_I2C_Read... [19:53:26]Read from MH i2c: E2 0E 00 [19:53:26]MH_I2C_Read... [19:53:26]Read from MH i2c: E2 0E 00 B2 56 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 BB [19:53:26]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [19:53:26]wFMCommunicate OK [19:53:26]SAM_PROTO_GetShiftState done [19:53:26]FM_GetShiftState done [19:53:26]opened in 1709425694 [19:53:26]opened+sec_in_day 1709512094 [19:53:26]quantity*price = 7500 [19:53:26]sum+1 = 7501 [19:53:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 75.00 НСП 1% : 0.66 НДС 12% : 7.96 Наличными: 75.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 81 03.03.2024 19:53 Смена: 331 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 ФМ: 0000000000874796 ФД: 45244 ФПД: 210887476175277 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T195339&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45244&fm=210887476175277&tin=02508201610067®Number=0000000000090572&sum=7500 0 [19:53:27]StoreToDocumentArchive [19:53:27]shift 331 fd 45244 [19:53:27]save to /storage/0331/doc_00045244 [19:53:27]save last doc name /storage/0331/doc_00045244 to /storage/kkm_last_doc_name [19:53:27]save OK [19:53:27]Clear old archive folders... [19:53:27]ProcessDocumentItem done err = 0, tmpTLVsize=292 [19:53:27]tlvbuf is 01BA0EF0 [19:53:27]SAM_PROTO_ClearQueue [19:53:27]wFMCommunicate request_size=4 [19:53:27]MH_SAM_APDU [19:53:27]CAPDU: 80 09 00 00 [19:53:27]Write to MH i2c: E2 08 00 BF 56 80 09 00 00 00 00 00 00 87 [19:53:27]Write i2c OK [19:53:27]MH_I2C_Read... [19:53:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:53:27]Read from MH i2c: E2 [19:53:27]MH_I2C_Read... [19:53:27]Read from MH i2c: E2 03 00 [19:53:27]MH_I2C_Read... [19:53:27]Read from MH i2c: E2 03 00 BF 56 00 90 00 89 [19:53:27]RAPDU: 90 00 [19:53:27]wFMCommunicate OK [19:53:27]SAM_PROTO_ClearQueue done [19:53:27]KKMCreateOFDPacket [19:53:27]OFDProtocolAddRootSTLVToBuf [19:53:27]FM_MakeSignedData [19:53:27]FM_MakeSignedData [19:53:27]SAM_PROTO_SignData [19:53:27]wFMCommunicate request_size=4 [19:53:27]MH_SAM_APDU [19:53:27]CAPDU: 80 0D 01 02 [19:53:27]Write to MH i2c: E2 08 00 C0 56 80 0D 01 02 00 00 00 00 8F [19:53:27]Write i2c OK [19:53:27]MH_I2C_Read... [19:53:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:53:27]Read from MH i2c: E2 [19:53:27]MH_I2C_Read... [19:53:27]Read from MH i2c: E2 03 00 [19:53:27]MH_I2C_Read... [19:53:27]Read from MH i2c: E2 03 00 C0 56 00 90 00 8A [19:53:27]RAPDU: 90 00 [19:53:27]wFMCommunicate OK [19:53:27]wFMCommunicate request_size=255 [19:53:27]MH_SAM_APDU [19:53:27]CAPDU: 80 0D 02 02 FA 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 34 32 06 04 32 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 30 2C 32 37 35 20 D0 BB 20 D0 9C D0 90 D0 9D D0 93 D0 9E 20 D0 9A D0 9E D0 9A D0 9E D0 A1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 43 D5 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 [19:53:27]Write to MH i2c: E2 02 01 C1 56 80 0D 02 02 FA 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 34 32 06 04 32 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 30 2C 32 37 35 20 D0 BB 20 D0 9C D0 90 D0 9D D0 93 D0 9E 20 D0 9A D0 9E D0 9A D0 9E D0 A1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 43 D5 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 00 00 C7 [19:53:27]Write i2c OK [19:53:27]MH_I2C_Read... [19:53:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:53:28]Read from MH i2c: E2 [19:53:28]MH_I2C_Read... [19:53:28]Read from MH i2c: E2 03 00 [19:53:28]MH_I2C_Read... [19:53:28]Read from MH i2c: E2 03 00 C1 56 00 90 00 8B [19:53:28]RAPDU: 90 00 [19:53:28]wFMCommunicate OK [19:53:28]wFMCommunicate request_size=51 [19:53:28]MH_SAM_APDU [19:53:28]CAPDU: 80 0D 02 02 2E 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 BC B0 00 00 35 04 06 00 BF CD 11 1A E1 AD [19:53:28]Write to MH i2c: E2 36 00 C2 56 80 0D 02 02 2E 00 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 BC B0 00 00 35 04 06 00 BF CD 11 1A E1 AD 00 00 DB [19:53:28]Write i2c OK [19:53:28]MH_I2C_Read... [19:53:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:53:28]Read from MH i2c: E2 [19:53:28]MH_I2C_Read... [19:53:28]Read from MH i2c: E2 03 00 [19:53:28]MH_I2C_Read... [19:53:28]Read from MH i2c: E2 03 00 C2 56 00 90 00 8C [19:53:28]RAPDU: 90 00 [19:53:28]wFMCommunicate OK [19:53:28]wFMCommunicate request_size=4 [19:53:28]MH_SAM_APDU [19:53:28]CAPDU: 80 0D 03 02 [19:53:28]Write to MH i2c: E2 08 00 C3 56 80 0D 03 02 00 00 00 00 94 [19:53:28]Write i2c OK [19:53:28]MH_I2C_Read... [19:53:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:53:28]Read from MH i2c: E2 [19:53:28]MH_I2C_Read... [19:53:28]Read from MH i2c: E2 0B 00 [19:53:28]MH_I2C_Read... [19:53:28]Read from MH i2c: E2 0B 00 C3 56 00 88 CC 08 5B 58 35 E9 F3 90 00 B5 [19:53:28]RAPDU: 88 CC 08 5B 58 35 E9 F3 90 00 [19:53:28]wFMCommunicate OK [19:53:28]SAM_PROTO_SignData done [19:53:28]FM_MakeSignedData done [19:53:28]CreateOFDProtocolMessage [19:53:28]wFMCommunicate request_size=4 [19:53:28]MH_SAM_APDU [19:53:28]CAPDU: 80 11 00 00 [19:53:28]Write to MH i2c: E2 08 00 C4 56 80 11 00 00 00 00 00 00 94 [19:53:28]Write i2c OK [19:53:28]MH_I2C_Read... [19:53:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:53:28]Read from MH i2c: E2 [19:53:28]MH_I2C_Read... [19:53:28]Read from MH i2c: E2 17 00 [19:53:28]MH_I2C_Read... [19:53:28]Read from MH i2c: E2 17 00 C4 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 F0 [19:53:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [19:53:28]wFMCommunicate OK [19:53:28]CreateOFDProtocolMessage done [19:53:28]OFDSenderStorePacket 45244 [19:53:28]StoreOFDPacket docnum=45244 [19:53:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 38 01 00 00 28 CB 30 01 B0 77 5A 03 01 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 34 32 06 04 32 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 30 2C 32 37 35 20 D0 BB 20 D0 9C D0 90 D0 9D D0 93 D0 9E 20 D0 9A D0 9E D0 9A D0 9E D0 A1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 43 D5 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 BC B0 00 00 35 04 06 00 BF CD 11 1A E1 AD 88 CC 08 5B 58 35 E9 F3 [19:53:28]CheckFolder [19:53:28]dirname=/storage/ofd_packets [19:53:28]CheckFolder done [19:53:28]ProducePacketName [19:53:28]name=ofd_packets/00045244 [19:53:28]NVStorageSaveData ofd_packets/00045244 [19:53:28]File name is /storage/ofd_packets/00045244 [19:53:28]Write 342 bytes [19:53:28]NVStorageSaveData done [19:53:28]OFDSenderStorePacket done [19:53:28]KKMCreateOFDPacket done [19:53:28]NVStorageSaveData kkm_last_timestamp [19:53:28]File name is /storage/kkm_last_timestamp [19:53:28]Write 4 bytes [19:53:28]NVStorageSaveData done [19:53:28]ExternCall_PrintAddStr [19:53:28]wPrintStart [19:53:28]Write to MH i2c: 01 00 00 C5 56 1B [19:53:28]Write i2c OK [19:53:28]MH_I2C_Read... [19:53:28]Read from MH i2c: 01 [19:53:28]MH_I2C_Read... [19:53:28]Read from MH i2c: 01 07 00 [19:53:28]MH_I2C_Read... [19:53:28]Read from MH i2c: 01 07 00 C5 56 00 00 00 00 00 FF 0F 30 [19:53:28]RasterBufferAndPrint [19:53:28]line Счет N : (3)184206 [19:53:28]line ИНН: 02508201610067 [19:53:28]line Контрольно-Кассовый Чек [19:53:28]line ПРОДАЖА [19:53:28]line Товар: 4650243871842 [19:53:28]line Gorilla эн нап 0,275 л МАНГО КОКОС [19:53:28]line 1.000 * 75.00 [19:53:28]line = 75.00 [19:53:28]line НДС 12% НСП 1% [19:53:28]line > о реализуемом товаре [19:53:28]line ИТОГО: 75.00 [19:53:28]line НСП 1% : 0.66 [19:53:28]line НДС 12% : 7.96 [19:53:28]line Наличными: 75.00 [19:53:28]line Безнал.: 0.00 [19:53:28]line Место: АЗС № 25 "Партнер Нефть" [19:53:28]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [19:53:28]line СНО: Общий режим [19:53:28]line Чек 81 03.03.2024 19:53 [19:53:28]line Смена: 331 ФФД: 1.0 [19:53:28]line ЗНМ: 0300000013 [19:53:28]line РНМ: 0000000000090572 [19:53:28]line Версия ККМ: 001 [19:53:28]line ФМ: 0000000000874796 [19:53:28]line ФД: 45244 [19:53:28]line ФПД: 210887476175277 [19:53:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T195339&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45244&fm=210887476175277&tin=02508201610067®Number=0000000000090572&sum=7500 [19:53:28]line 0 [19:53:28]OFD Sender: Processing packet 45244 [packets to send 17, broken 16] [19:53:28]ProducePacketName [19:53:28]name=ofd_packets/00045244 [19:53:28]OFD Sender: To server: pG, [19:53:28]CommunicateWithHost lk.salyk.kg:30040 [19:53:28]ConnectInit lk.salyk.kg [19:53:28]written 0, free lines is 4095 [19:53:28]Connected sock=10 [19:53:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 38 01 00 00 28 CB 30 01 B0 77 5A 03 01 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 34 32 06 04 32 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 30 2C 32 37 35 20 D0 BB 20 D0 9C D0 90 D0 9D D0 93 D0 9E 20 D0 9A D0 9E D0 9A D0 9E D0 A1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 43 D5 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 BC B0 00 00 35 04 06 00 BF CD 11 1A E1 AD 88 CC 08 5B 58 35 E9 F3 [19:53:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 B9 34 47 00 4D B5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 BC B0 00 00 F4 03 04 00 07 81 E4 65 B6 04 01 00 00 94 80 F9 C6 E3 82 25 BE [19:53:28]CommunicateWithHost err = 0 [19:53:28]CheckOFDResponse [19:53:28]1017 (14) - 77093643461234 [19:53:28]1041 (16) - 0000000000874796 [19:53:28]1040 (4) - 45244 [19:53:28]1012 (4) - 03.03.2024 13:54 [19:53:28]1206 (1) - 0 [19:53:28]OFD Sender: Remove packet 45244 [19:53:28]ProducePacketName [19:53:28]name=ofd_packets/00045244 [19:53:28]NVStorageDeleteData [19:53:28]Write to MH i2c: 01 00 00 EE 56 44 [19:53:28]Write i2c OK [19:53:28]MH_I2C_Read... [19:53:28]Read from MH i2c: 01 [19:53:28]MH_I2C_Read... [19:53:28]Read from MH i2c: 01 07 00 [19:53:28]MH_I2C_Read... [19:53:28]Read from MH i2c: 01 07 00 EE 56 00 00 00 00 00 FB 0C 52 [19:53:28]RasterBufferAndPrint [19:53:28]line [19:53:28]line [19:53:28]line [19:53:28]line [19:53:28]line [19:53:28]written 0, free lines is 3329 [19:53:28]MH_Cut [19:53:28]Write to MH i2c: D1 01 00 F5 56 01 1D [19:53:28]Write i2c OK [19:53:28]MH_I2C_Read... [19:53:28]Read from MH i2c: D1 [19:53:28]MH_I2C_Read... [19:53:28]Read from MH i2c: D1 01 00 [19:53:28]MH_I2C_Read... [19:53:28]Read from MH i2c: D1 01 00 F5 56 00 1C [19:53:28]Write to MH i2c: 01 00 00 F6 56 4C [19:53:28]Write i2c OK [19:53:28]MH_I2C_Read... [19:53:29]OFD Sender: No OFD packet to send [19:53:29]*** Cut start [19:53:29]*** Purtial cut [19:53:29]*** Stage 1: CUTSNS_PIN = 1 [19:53:31]Read from MH i2c: 01 [19:53:31]MH_I2C_Read... [19:53:31]*** Stop cut motor [19:53:31]*** Cut end [19:53:31]Read from MH i2c: 01 07 00 [19:53:31]MH_I2C_Read... [19:53:31]Read from MH i2c: 01 07 00 F6 56 00 00 00 00 00 FF 0F 61 [19:53:31]process_action close_receipt done [19:53:31]requested_data is exist [19:53:31]produce_requested_data [19:53:31]requested_item fm.sn is exist - process it [19:53:31]wFMCommunicate request_size=4 [19:53:31]MH_SAM_APDU [19:53:31]CAPDU: 80 11 00 00 [19:53:31]Write to MH i2c: E2 08 00 F7 56 80 11 00 00 00 00 00 00 C7 [19:53:31]Write i2c OK [19:53:31]MH_I2C_Read... [19:53:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:53:31]Read from MH i2c: E2 [19:53:31]MH_I2C_Read... [19:53:31]Read from MH i2c: E2 17 00 [19:53:31]MH_I2C_Read... [19:53:31]Read from MH i2c: E2 17 00 F7 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 23 [19:53:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [19:53:31]wFMCommunicate OK [19:53:31]requested_item fd.num is exist - process it [19:53:31]SAM_PROTO_GetFieldsCounters [19:53:31]wFMCommunicate request_size=4 [19:53:31]MH_SAM_APDU [19:53:31]CAPDU: 80 13 00 00 [19:53:31]Write to MH i2c: E2 08 00 F8 56 80 13 00 00 00 00 00 00 CA [19:53:31]Write i2c OK [19:53:31]MH_I2C_Read... [19:53:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:53:31]Read from MH i2c: E2 [19:53:31]MH_I2C_Read... [19:53:31]Read from MH i2c: E2 62 00 [19:53:31]MH_I2C_Read... [19:53:31]Read from MH i2c: E2 62 00 F8 56 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 BC B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 9D [19:53:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 BC B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:53:31]wFMCommunicate OK [19:53:31]SAM_PROTO_GetFieldsCounters done [19:53:31]requested_item shift.num is exist - process it [19:53:31]requested_item shift.opened is exist - process it [19:53:31]req_shift_opened [19:53:31]FM_GetShiftState [19:53:31]SAM_PROTO_GetShiftState [19:53:31]wFMCommunicate request_size=4 [19:53:31]MH_SAM_APDU [19:53:31]CAPDU: 80 13 01 00 [19:53:31]Write to MH i2c: E2 08 00 F9 56 80 13 01 00 00 00 00 00 CC [19:53:31]Write i2c OK [19:53:31]MH_I2C_Read... [19:53:31]Read from MH i2c: E2 [19:53:31]MH_I2C_Read... [19:53:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:53:31]Read from MH i2c: E2 0E 00 [19:53:31]MH_I2C_Read... [19:53:31]Read from MH i2c: E2 0E 00 F9 56 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 02 [19:53:31]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [19:53:31]wFMCommunicate OK [19:53:31]SAM_PROTO_GetShiftState done [19:53:31]FM_GetShiftState done [19:53:31]req_shift_opened done [19:53:31]requested_item shift.open_date is exist - process it [19:53:31]req_shift_open_date [19:53:31]req_shift_open_date done [19:53:31]produce_requested_data done [19:53:31]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45244,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [19:53:31]process_action_free close_receipt [19:53:31]json_value_free [19:53:31]json_value_free done [19:53:31]process_json_proto returns [19:53:31]Send response to host [19:53:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45244,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [19:53:31]free response buf [19:53:31]execute_script done [19:53:31]execute_script returns [19:53:31]free content buf [19:53:31]Sock 9.Close socket [19:53:31]Sock 9.Thread stoped [19:53:34]OFD Sender: No OFD packet to send [19:53:39]OFD Sender: No OFD packet to send [19:53:44]OFD Sender: No OFD packet to send [19:53:49]OFD Sender: No OFD packet to send [19:53:54]OFD Sender: No OFD packet to send [19:53:59]OFD Sender: No OFD packet to send [19:54:04]OFD Sender: No OFD packet to send [19:54:09]OFD Sender: No OFD packet to send [19:54:14]OFD Sender: No OFD packet to send [19:54:19]OFD Sender: No OFD packet to send [19:54:24]OFD Sender: No OFD packet to send [19:54:29]OFD Sender: No OFD packet to send [19:54:34]OFD Sender: No OFD packet to send [19:54:39]OFD Sender: No OFD packet to send [19:54:44]OFD Sender: No OFD packet to send [19:54:49]OFD Sender: No OFD packet to send [19:54:54]OFD Sender: No OFD packet to send [19:54:59]OFD Sender: No OFD packet to send [19:55:04]OFD Sender: No OFD packet to send [19:55:09]OFD Sender: No OFD packet to send [19:55:14]OFD Sender: No OFD packet to send [19:55:19]OFD Sender: No OFD packet to send [19:55:24]OFD Sender: No OFD packet to send [19:55:29]OFD Sender: No OFD packet to send [19:55:34]OFD Sender: No OFD packet to send [19:55:39]OFD Sender: No OFD packet to send [19:55:44]OFD Sender: No OFD packet to send [19:55:49]OFD Sender: No OFD packet to send [19:55:54]OFD Sender: No OFD packet to send [19:55:59]OFD Sender: No OFD packet to send [19:56:04]OFD Sender: No OFD packet to send [19:56:09]OFD Sender: No OFD packet to send [19:56:14]OFD Sender: No OFD packet to send [19:56:19]OFD Sender: No OFD packet to send [19:56:24]OFD Sender: No OFD packet to send [19:56:29]OFD Sender: No OFD packet to send [19:56:34]OFD Sender: No OFD packet to send [19:56:39]OFD Sender: No OFD packet to send [19:56:44]OFD Sender: No OFD packet to send [19:56:49]OFD Sender: No OFD packet to send [19:56:54]OFD Sender: No OFD packet to send [19:56:56]accept exits with 7 [19:56:56]New connection [19:56:56]New thread 3067014500 created [19:56:56]Thread 3067157860 joined [19:56:56]Waiting for new connection... [19:56:56] Sock 7.Parse request [19:56:56]Sock 7.Check first char [19:56:56]Sock 7.First char is OK [19:56:56]request: POST /json_proto HTTP/1.0 [19:56:56]Method: POST [19:56:56]URL: /json_proto [19:56:56]Method is POST - this is cgi request [19:56:56]url: /json_proto [19:56:56]query_string will be loaded in cgi processing [19:56:56]execute_cgi json_proto POST (null) [19:56:56]execute_cgi path=json_proto method=POST [19:56:56]POST find Content-Length [19:56:56]Host: 172.17.48.198:8080 [19:56:56]Content-Length: 890 [19:56:56]Content-Type: application/json [19:56:56] [19:56:56]POST finish read [19:56:56]Found Content-Length = 890 [19:56:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184207", "tax_sys" : 0, "items" : [ { "code": "8901086040022", "name": "\u0416\u0438\u0434\u043A\u043E\u0441\u0442\u044C \u0441\u0442\u0435\u043A\u043B\u043E\u043E\u043C\u044B\u0432\u0430\u044E\u0449\u0430\u044F \u041F\u041D -20 4,5\u043B", "price" : 257.00, "quantity" : 1.000, "sum" : 257.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 257.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:56:56]execute_script... [19:56:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184207", "tax_sys" : 0, "items" : [ { "code": "8901086040022", "name": "\u0416\u0438\u0434\u043A\u043E\u0441\u0442\u044C \u0441\u0442\u0435\u043A\u043B\u043E\u043E\u043C\u044B\u0432\u0430\u044E\u0449\u0430\u044F \u041F\u041D -20 4,5\u043B", "price" : 257.00, "quantity" : 1.000, "sum" : 257.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 257.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:56:56]POST & json_proto [19:56:56]process_json_proto [19:56:56]json parsed OK: [19:56:56]protocol is kg_v1.0 [19:56:56]action value=close_receipt [19:56:56]process_action close_receipt [19:56:56]cmd_close_receipt [19:56:56]MH_GetDate [19:56:56]Write to MH i2c: F0 00 00 FA 56 3F [19:56:56]Write i2c OK [19:56:56]MH_I2C_Read... [19:56:56]Read from MH i2c: F0 [19:56:56]MH_I2C_Read... [19:56:56]Read from MH i2c: F0 09 00 [19:56:56]MH_I2C_Read... [19:56:56]Read from MH i2c: F0 09 00 FA 56 00 15 D6 E4 65 CE C4 D4 65 47 [19:56:56]GetLastDocTimeStamp 1709495619 [19:56:56]current date 1709495829 [19:56:56]FM_GetShiftState [19:56:56]SAM_PROTO_GetShiftState [19:56:56]wFMCommunicate request_size=4 [19:56:56]MH_SAM_APDU [19:56:56]CAPDU: 80 13 01 00 [19:56:56]Write to MH i2c: E2 08 00 FB 56 80 13 01 00 00 00 00 00 CE [19:56:56]Write i2c OK [19:56:56]MH_I2C_Read... [19:56:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:56:56]Read from MH i2c: E2 [19:56:56]MH_I2C_Read... [19:56:56]Read from MH i2c: E2 0E 00 [19:56:56]MH_I2C_Read... [19:56:56]Read from MH i2c: E2 0E 00 FB 56 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 04 [19:56:56]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [19:56:56]wFMCommunicate OK [19:56:56]SAM_PROTO_GetShiftState done [19:56:56]FM_GetShiftState done [19:56:56]opened in 1709425694 [19:56:56]opened+sec_in_day 1709512094 [19:56:56]quantity*price = 25700 [19:56:56]sum+1 = 25701 [19:56:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 257.00 НСП 1% : 2.27 НДС 12% : 27.29 Наличными: 0.00 Безнал.: 257.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 82 03.03.2024 19:57 Смена: 331 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874796 ФД: 45245 ФПД: 158173281139451 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T195709&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45245&fm=158173281139451&tin=02508201610067®Number=0000000000090572&sum=25700 0 [19:56:57]StoreToDocumentArchive [19:56:57]shift 331 fd 45245 [19:56:57]save to /storage/0331/doc_00045245 [19:56:57]save last doc name /storage/0331/doc_00045245 to /storage/kkm_last_doc_name [19:56:57]save OK [19:56:57]Clear old archive folders... [19:56:57]ProcessDocumentItem done err = 0, tmpTLVsize=304 [19:56:57]tlvbuf is 01B6DA20 [19:56:57]SAM_PROTO_ClearQueue [19:56:57]wFMCommunicate request_size=4 [19:56:57]MH_SAM_APDU [19:56:57]CAPDU: 80 09 00 00 [19:56:57]Write to MH i2c: E2 08 00 08 57 80 09 00 00 00 00 00 00 D1 [19:56:57]Write i2c OK [19:56:57]MH_I2C_Read... [19:56:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:56:57]Read from MH i2c: E2 [19:56:57]MH_I2C_Read... [19:56:57]Read from MH i2c: E2 03 00 [19:56:57]MH_I2C_Read... [19:56:57]Read from MH i2c: E2 03 00 08 57 00 90 00 D3 [19:56:57]RAPDU: 90 00 [19:56:57]wFMCommunicate OK [19:56:57]SAM_PROTO_ClearQueue done [19:56:57]KKMCreateOFDPacket [19:56:57]OFDProtocolAddRootSTLVToBuf [19:56:57]FM_MakeSignedData [19:56:57]FM_MakeSignedData [19:56:57]SAM_PROTO_SignData [19:56:57]wFMCommunicate request_size=4 [19:56:57]MH_SAM_APDU [19:56:57]CAPDU: 80 0D 01 02 [19:56:57]Write to MH i2c: E2 08 00 09 57 80 0D 01 02 00 00 00 00 D9 [19:56:57]Write i2c OK [19:56:57]MH_I2C_Read... [19:56:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:56:57]Read from MH i2c: E2 [19:56:57]MH_I2C_Read... [19:56:57]Read from MH i2c: E2 03 00 [19:56:57]MH_I2C_Read... [19:56:57]Read from MH i2c: E2 03 00 09 57 00 90 00 D4 [19:56:57]RAPDU: 90 00 [19:56:57]wFMCommunicate OK [19:56:57]wFMCommunicate request_size=255 [19:56:57]MH_SAM_APDU [19:56:57]CAPDU: 80 0D 02 02 FA 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 32 32 06 04 3E 00 D0 96 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE D0 BE D0 BC D1 8B D0 B2 D0 B0 D1 8E D1 89 D0 B0 D1 8F 20 D0 9F D0 9D 20 2D 32 30 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 64 00 00 00 00 13 04 06 00 64 64 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 64 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 64 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 15 D6 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 [19:56:57]Write to MH i2c: E2 02 01 0A 57 80 0D 02 02 FA 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 32 32 06 04 3E 00 D0 96 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE D0 BE D0 BC D1 8B D0 B2 D0 B0 D1 8E D1 89 D0 B0 D1 8F 20 D0 9F D0 9D 20 2D 32 30 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 64 00 00 00 00 13 04 06 00 64 64 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 64 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 64 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 15 D6 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 00 00 BF [19:56:57]Write i2c OK [19:56:57]MH_I2C_Read... [19:56:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:56:57]Read from MH i2c: E2 [19:56:58]MH_I2C_Read... [19:56:58]Read from MH i2c: E2 03 00 [19:56:58]MH_I2C_Read... [19:56:58]Read from MH i2c: E2 03 00 0A 57 00 90 00 D5 [19:56:58]RAPDU: 90 00 [19:56:58]wFMCommunicate OK [19:56:58]wFMCommunicate request_size=63 [19:56:58]MH_SAM_APDU [19:56:58]CAPDU: 80 0D 02 02 3A 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 BD B0 00 00 35 04 06 00 8F DB 96 3C 3A FB [19:56:58]Write to MH i2c: E2 42 00 0B 57 80 0D 02 02 3A 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 BD B0 00 00 35 04 06 00 8F DB 96 3C 3A FB 00 00 0B [19:56:58]Write i2c OK [19:56:58]MH_I2C_Read... [19:56:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:56:58]Read from MH i2c: E2 [19:56:58]MH_I2C_Read... [19:56:58]Read from MH i2c: E2 03 00 [19:56:58]MH_I2C_Read... [19:56:58]Read from MH i2c: E2 03 00 0B 57 00 90 00 D6 [19:56:58]RAPDU: 90 00 [19:56:58]wFMCommunicate OK [19:56:58]wFMCommunicate request_size=4 [19:56:58]MH_SAM_APDU [19:56:58]CAPDU: 80 0D 03 02 [19:56:58]Write to MH i2c: E2 08 00 0C 57 80 0D 03 02 00 00 00 00 DE [19:56:58]Write i2c OK [19:56:58]MH_I2C_Read... [19:56:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:56:58]Read from MH i2c: E2 [19:56:58]MH_I2C_Read... [19:56:58]Read from MH i2c: E2 0B 00 [19:56:58]MH_I2C_Read... [19:56:58]Read from MH i2c: E2 0B 00 0C 57 00 0E 50 5D B6 11 32 2A 83 90 00 40 [19:56:58]RAPDU: 0E 50 5D B6 11 32 2A 83 90 00 [19:56:58]wFMCommunicate OK [19:56:58]SAM_PROTO_SignData done [19:56:58]FM_MakeSignedData done [19:56:58]CreateOFDProtocolMessage [19:56:58]wFMCommunicate request_size=4 [19:56:58]MH_SAM_APDU [19:56:58]CAPDU: 80 11 00 00 [19:56:58]Write to MH i2c: E2 08 00 0D 57 80 11 00 00 00 00 00 00 DE [19:56:58]Write i2c OK [19:56:58]MH_I2C_Read... [19:56:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:56:58]Read from MH i2c: E2 [19:56:58]MH_I2C_Read... [19:56:58]Read from MH i2c: E2 17 00 [19:56:58]MH_I2C_Read... [19:56:58]Read from MH i2c: E2 17 00 0D 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 3A [19:56:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [19:56:58]wFMCommunicate OK [19:56:58]CreateOFDProtocolMessage done [19:56:58]OFDSenderStorePacket 45245 [19:56:58]StoreOFDPacket docnum=45245 [19:56:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 44 01 00 00 9D 46 3C 01 0E 0D 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 32 32 06 04 3E 00 D0 96 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE D0 BE D0 BC D1 8B D0 B2 D0 B0 D1 8E D1 89 D0 B0 D1 8F 20 D0 9F D0 9D 20 2D 32 30 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 64 00 00 00 00 13 04 06 00 64 64 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 64 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 64 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 15 D6 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 BD B0 00 00 35 04 06 00 8F DB 96 3C 3A FB 0E 50 5D B6 11 32 2A 83 [19:56:58]CheckFolder [19:56:58]dirname=/storage/ofd_packets [19:56:58]CheckFolder done [19:56:58]ProducePacketName [19:56:58]name=ofd_packets/00045245 [19:56:58]NVStorageSaveData ofd_packets/00045245 [19:56:58]File name is /storage/ofd_packets/00045245 [19:56:58]Write 354 bytes [19:56:58]NVStorageSaveData done [19:56:58]OFDSenderStorePacket done [19:56:58]KKMCreateOFDPacket done [19:56:58]NVStorageSaveData kkm_last_timestamp [19:56:58]File name is /storage/kkm_last_timestamp [19:56:58]Write 4 bytes [19:56:58]NVStorageSaveData done [19:56:58]ExternCall_PrintAddStr [19:56:58]wPrintStart [19:56:58]Write to MH i2c: 01 00 00 0E 57 65 [19:56:58]Write i2c OK [19:56:58]MH_I2C_Read... [19:56:58]Read from MH i2c: 01 [19:56:58]MH_I2C_Read... [19:56:58]Read from MH i2c: 01 07 00 [19:56:58]MH_I2C_Read... [19:56:58]Read from MH i2c: 01 07 00 0E 57 00 00 00 00 00 FF 0F 7A [19:56:58]RasterBufferAndPrint [19:56:58]line Счет N : (3)184207 [19:56:58]line ИНН: 02508201610067 [19:56:58]line Контрольно-Кассовый Чек [19:56:58]line ПРОДАЖА [19:56:58]line Товар: 8901086040022 [19:56:58]line Жидкость стеклоомывающая ПН -20 4,5л [19:56:58]line 1.000 * 257.00 [19:56:58]line = 257.00 [19:56:58]line НДС 12% НСП 1% [19:56:58]line > о реализуемом товаре [19:56:58]line ИТОГО: 257.00 [19:56:58]line НСП 1% : 2.27 [19:56:58]line НДС 12% : 27.29 [19:56:58]line Наличными: 0.00 [19:56:58]line Безнал.: 257.00 [19:56:58]line Место: АЗС № 25 "Партнер Нефть" [19:56:58]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [19:56:58]line СНО: Общий режим [19:56:58]line Чек 82 03.03.2024 19:57 [19:56:58]line Смена: 331 ФФД: 1.0 [19:56:58]line ЗНМ: 0300000013 [19:56:58]line РНМ: 0000000000090572 [19:56:58]line Версия ККМ: 001 [19:56:58]line Платежная система: О! деньги [19:56:58]line ФМ: 0000000000874796 [19:56:58]line ФД: 45245 [19:56:58]line ФПД: 158173281139451 [19:56:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T195709&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45245&fm=158173281139451&tin=02508201610067®Number=0000000000090572&sum=25700 [19:56:58]line 0 [19:56:58]OFD Sender: Processing packet 45245 [packets to send 17, broken 16] [19:56:58]ProducePacketName [19:56:58]name=ofd_packets/00045245 [19:56:58]OFD Sender: To server: pG, [19:56:58]CommunicateWithHost lk.salyk.kg:30040 [19:56:58]ConnectInit lk.salyk.kg [19:56:58]written 0, free lines is 4095 [19:56:58]Connected sock=9 [19:56:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 44 01 00 00 9D 46 3C 01 0E 0D 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 32 32 06 04 3E 00 D0 96 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE D0 BE D0 BC D1 8B D0 B2 D0 B0 D1 8E D1 89 D0 B0 D1 8F 20 D0 9F D0 9D 20 2D 32 30 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 64 00 00 00 00 13 04 06 00 64 64 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 64 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 64 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 15 D6 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 BD B0 00 00 35 04 06 00 8F DB 96 3C 3A FB 0E 50 5D B6 11 32 2A 83 [19:56:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 7D 17 47 00 05 69 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 BD B0 00 00 F4 03 04 00 D9 81 E4 65 B6 04 01 00 00 00 05 C8 04 2F 3A D5 AA [19:56:58]CommunicateWithHost err = 0 [19:56:58]CheckOFDResponse [19:56:58]1017 (14) - 77093643461234 [19:56:58]1041 (16) - 0000000000874796 [19:56:58]1040 (4) - 45245 [19:56:58]1012 (4) - 03.03.2024 13:57 [19:56:58]1206 (1) - 0 [19:56:58]OFD Sender: Remove packet 45245 [19:56:58]ProducePacketName [19:56:58]name=ofd_packets/00045245 [19:56:58]NVStorageDeleteData [19:56:58]Write to MH i2c: 01 00 00 39 57 90 [19:56:58]Write i2c OK [19:56:58]MH_I2C_Read... [19:56:58]Read from MH i2c: 01 [19:56:58]MH_I2C_Read... [19:56:58]Read from MH i2c: 01 07 00 [19:56:58]MH_I2C_Read... [19:56:58]Read from MH i2c: 01 07 00 39 57 00 00 00 00 00 DA 0C 7D [19:56:58]RasterBufferAndPrint [19:56:58]line [19:56:58]line [19:56:58]line [19:56:58]line [19:56:58]line [19:56:58]written 0, free lines is 3299 [19:56:59]MH_Cut [19:56:59]Write to MH i2c: D1 01 00 40 57 01 69 [19:56:59]Write i2c OK [19:56:59]MH_I2C_Read... [19:56:59]Read from MH i2c: D1 [19:56:59]MH_I2C_Read... [19:56:59]Read from MH i2c: D1 01 00 [19:56:59]MH_I2C_Read... [19:56:59]Read from MH i2c: D1 01 00 40 57 00 68 [19:56:59]Write to MH i2c: 01 00 00 41 57 98 [19:56:59]Write i2c OK [19:56:59]MH_I2C_Read... [19:56:59]OFD Sender: No OFD packet to send [19:56:59]*** Cut start [19:56:59]*** Purtial cut [19:56:59]*** Stage 1: CUTSNS_PIN = 1 [19:57:01]Read from MH i2c: 01 [19:57:01]MH_I2C_Read... [19:57:01]*** Stop cut motor [19:57:01]*** Cut end [19:57:01]Read from MH i2c: 01 07 00 [19:57:01]MH_I2C_Read... [19:57:01]Read from MH i2c: 01 07 00 41 57 00 00 00 00 00 FF 0F AD [19:57:01]process_action close_receipt done [19:57:01]requested_data is exist [19:57:01]produce_requested_data [19:57:01]requested_item fm.sn is exist - process it [19:57:01]wFMCommunicate request_size=4 [19:57:01]MH_SAM_APDU [19:57:01]CAPDU: 80 11 00 00 [19:57:01]Write to MH i2c: E2 08 00 42 57 80 11 00 00 00 00 00 00 13 [19:57:01]Write i2c OK [19:57:01]MH_I2C_Read... [19:57:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:57:01]Read from MH i2c: E2 [19:57:01]MH_I2C_Read... [19:57:01]Read from MH i2c: E2 17 00 [19:57:01]MH_I2C_Read... [19:57:01]Read from MH i2c: E2 17 00 42 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 6F [19:57:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [19:57:01]wFMCommunicate OK [19:57:01]requested_item fd.num is exist - process it [19:57:01]SAM_PROTO_GetFieldsCounters [19:57:01]wFMCommunicate request_size=4 [19:57:01]MH_SAM_APDU [19:57:01]CAPDU: 80 13 00 00 [19:57:01]Write to MH i2c: E2 08 00 43 57 80 13 00 00 00 00 00 00 16 [19:57:01]Write i2c OK [19:57:01]MH_I2C_Read... [19:57:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:57:01]Read from MH i2c: E2 [19:57:01]MH_I2C_Read... [19:57:01]Read from MH i2c: E2 62 00 [19:57:01]MH_I2C_Read... [19:57:01]Read from MH i2c: E2 62 00 43 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 BD B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 ED [19:57: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 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 BD B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:57:01]wFMCommunicate OK [19:57:01]SAM_PROTO_GetFieldsCounters done [19:57:01]requested_item shift.num is exist - process it [19:57:01]requested_item shift.opened is exist - process it [19:57:01]req_shift_opened [19:57:01]FM_GetShiftState [19:57:01]SAM_PROTO_GetShiftState [19:57:01]wFMCommunicate request_size=4 [19:57:01]MH_SAM_APDU [19:57:01]CAPDU: 80 13 01 00 [19:57:01]Write to MH i2c: E2 08 00 44 57 80 13 01 00 00 00 00 00 18 [19:57:01]Write i2c OK [19:57:01]MH_I2C_Read... [19:57:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:57:01]Read from MH i2c: E2 [19:57:01]MH_I2C_Read... [19:57:01]Read from MH i2c: E2 0E 00 [19:57:01]MH_I2C_Read... [19:57:01]Read from MH i2c: E2 0E 00 44 57 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 4E [19:57:01]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [19:57:01]wFMCommunicate OK [19:57:01]SAM_PROTO_GetShiftState done [19:57:01]FM_GetShiftState done [19:57:01]req_shift_opened done [19:57:01]requested_item shift.open_date is exist - process it [19:57:01]req_shift_open_date [19:57:01]req_shift_open_date done [19:57:01]produce_requested_data done [19:57:01]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45245,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [19:57:01]process_action_free close_receipt [19:57:01]json_value_free [19:57:01]json_value_free done [19:57:01]process_json_proto returns [19:57:01]Send response to host [19:57:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45245,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [19:57:01]free response buf [19:57:01]execute_script done [19:57:01]execute_script returns [19:57:01]free content buf [19:57:01]Sock 7.Close socket [19:57:01]Sock 7.Thread stoped [19:57:04]OFD Sender: No OFD packet to send [19:57:09]OFD Sender: No OFD packet to send [19:57:14]OFD Sender: No OFD packet to send [19:57:19]OFD Sender: No OFD packet to send [19:57:24]OFD Sender: No OFD packet to send [19:57:29]OFD Sender: No OFD packet to send [19:57:34]OFD Sender: No OFD packet to send [19:57:39]OFD Sender: No OFD packet to send [19:57:44]OFD Sender: No OFD packet to send [19:57:49]OFD Sender: No OFD packet to send [19:57:54]OFD Sender: No OFD packet to send [19:57:59]OFD Sender: No OFD packet to send [19:58:04]OFD Sender: No OFD packet to send [19:58:09]OFD Sender: No OFD packet to send [19:58:14]OFD Sender: No OFD packet to send [19:58:19]OFD Sender: No OFD packet to send [19:58:24]OFD Sender: No OFD packet to send [19:58:29]OFD Sender: No OFD packet to send [19:58:34]OFD Sender: No OFD packet to send [19:58:39]OFD Sender: No OFD packet to send [19:58:44]OFD Sender: No OFD packet to send [19:58:49]OFD Sender: No OFD packet to send [19:58:54]OFD Sender: No OFD packet to send [19:58:59]OFD Sender: No OFD packet to send [19:59:04]OFD Sender: No OFD packet to send [19:59:09]OFD Sender: No OFD packet to send [19:59:14]OFD Sender: No OFD packet to send [19:59:19]OFD Sender: No OFD packet to send [19:59:24]OFD Sender: No OFD packet to send [19:59:29]OFD Sender: No OFD packet to send [19:59:34]OFD Sender: No OFD packet to send [19:59:39]OFD Sender: No OFD packet to send [19:59:44]OFD Sender: No OFD packet to send [19:59:49]OFD Sender: No OFD packet to send [19:59:54]OFD Sender: No OFD packet to send [19:59:59]OFD Sender: No OFD packet to send [20:00:04]OFD Sender: No OFD packet to send [20:00:09]OFD Sender: No OFD packet to send [20:00:14]OFD Sender: No OFD packet to send [20:00:19]OFD Sender: No OFD packet to send [20:00:24]OFD Sender: No OFD packet to send [20:00:29]OFD Sender: No OFD packet to send [20:00:34]OFD Sender: No OFD packet to send [20:00:39]OFD Sender: No OFD packet to send [20:00:44]OFD Sender: No OFD packet to send [20:00:49]OFD Sender: No OFD packet to send [20:00:54]OFD Sender: No OFD packet to send [20:00:59]OFD Sender: No OFD packet to send [20:01:04]OFD Sender: No OFD packet to send [20:01:09]OFD Sender: No OFD packet to send [20:01:14]OFD Sender: No OFD packet to send [20:01:19]OFD Sender: No OFD packet to send [20:01:24]OFD Sender: No OFD packet to send [20:01:29]OFD Sender: No OFD packet to send [20:01:34]OFD Sender: No OFD packet to send [20:01:39]OFD Sender: No OFD packet to send [20:01:44]OFD Sender: No OFD packet to send [20:01:49]OFD Sender: No OFD packet to send [20:01:54]OFD Sender: No OFD packet to send [20:01:59]OFD Sender: No OFD packet to send [20:02:04]OFD Sender: No OFD packet to send [20:02:09]OFD Sender: No OFD packet to send [20:02:14]OFD Sender: No OFD packet to send [20:02:19]OFD Sender: No OFD packet to send [20:02:24]OFD Sender: No OFD packet to send [20:02:29]OFD Sender: No OFD packet to send [20:02:34]OFD Sender: No OFD packet to send [20:02:39]OFD Sender: No OFD packet to send [20:02:44]OFD Sender: No OFD packet to send [20:02:49]OFD Sender: No OFD packet to send [20:02:54]OFD Sender: No OFD packet to send [20:02:59]OFD Sender: No OFD packet to send [20:03: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:39]OFD Sender: No OFD packet to send [20:03:44]OFD Sender: No OFD packet to send [20:03:49]OFD Sender: No OFD packet to send [20:03:54]OFD Sender: No OFD packet to send [20:03:59]OFD Sender: No OFD packet to send [20:04:04]OFD Sender: No OFD packet to send [20:04:09]OFD Sender: No OFD packet to send [20:04:14]OFD Sender: No OFD packet to send [20:04:19]OFD Sender: No OFD packet to send [20:04:24]OFD Sender: No OFD packet to send [20:04:29]OFD Sender: No OFD packet to send [20:04:34]OFD Sender: No OFD packet to send [20:04:39]OFD Sender: No OFD packet to send [20:04:44]OFD Sender: No OFD packet to send [20:04:49]OFD Sender: No OFD packet to send [20:04:54]OFD Sender: No OFD packet to send [20:04:59]OFD Sender: No OFD packet to send [20:05:04]OFD Sender: No OFD packet to send [20:05:09]OFD Sender: No OFD packet to send [20:05:14]OFD Sender: No OFD packet to send [20:05:19]OFD Sender: No OFD packet to send [20:05:24]OFD Sender: No OFD packet to send [20:05:29]OFD Sender: No OFD packet to send [20:05:32]accept exits with 10 [20:05:32]New connection [20:05:32]New thread 3067157860 created [20:05:32]Thread 3067014500 joined [20:05:32]Waiting for new connection... [20:05:32] Sock 10.Parse request [20:05:32]Sock 10.Check first char [20:05:32]Sock 10.First char is OK [20:05:32]request: POST /json_proto HTTP/1.0 [20:05:32]Method: POST [20:05:32]URL: /json_proto [20:05:32]Method is POST - this is cgi request [20:05:32]url: /json_proto [20:05:32]query_string will be loaded in cgi processing [20:05:32]execute_cgi json_proto POST (null) [20:05:32]execute_cgi path=json_proto method=POST [20:05:32]POST find Content-Length [20:05:32]Host: 172.17.48.198:8080 [20:05:32]Content-Length: 696 [20:05:32]Content-Type: application/json [20:05:32] [20:05:32]POST finish read [20:05:32]Found Content-Length = 696 [20:05:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184208", "tax_sys" : 0, "items" : [ { "code": "4700000480364", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u044D\u043A\u0437\u043E\u0442\u0438\u043A 0.45 \u0436/\u0431", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:05:32]execute_script... [20:05: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)184208", "tax_sys" : 0, "items" : [ { "code": "4700000480364", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u044D\u043A\u0437\u043E\u0442\u0438\u043A 0.45 \u0436/\u0431", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:05:32]POST & json_proto [20:05:32]process_json_proto [20:05:32]json parsed OK: [20:05:32]protocol is kg_v1.0 [20:05:32]action value=close_receipt [20:05:32]process_action close_receipt [20:05:32]cmd_close_receipt [20:05:32]MH_GetDate [20:05:32]Write to MH i2c: F0 00 00 45 57 8B [20:05:32]Write i2c OK [20:05:32]MH_I2C_Read... [20:05:32]Read from MH i2c: F0 [20:05:32]MH_I2C_Read... [20:05:32]Read from MH i2c: F0 09 00 [20:05:32]MH_I2C_Read... [20:05:32]Read from MH i2c: F0 09 00 45 57 00 19 D8 E4 65 CE C4 D4 65 99 [20:05:32]GetLastDocTimeStamp 1709495829 [20:05:32]current date 1709496345 [20:05:32]FM_GetShiftState [20:05:32]SAM_PROTO_GetShiftState [20:05:32]wFMCommunicate request_size=4 [20:05:32]MH_SAM_APDU [20:05:32]CAPDU: 80 13 01 00 [20:05:32]Write to MH i2c: E2 08 00 46 57 80 13 01 00 00 00 00 00 1A [20:05:32]Write i2c OK [20:05:32]MH_I2C_Read... [20:05:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:05:32]Read from MH i2c: E2 [20:05:32]MH_I2C_Read... [20:05:32]Read from MH i2c: E2 0E 00 [20:05:32]MH_I2C_Read... [20:05:32]Read from MH i2c: E2 0E 00 46 57 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 50 [20:05:32]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [20:05:32]wFMCommunicate OK [20:05:32]SAM_PROTO_GetShiftState done [20:05:32]FM_GetShiftState done [20:05:32]opened in 1709425694 [20:05:32]opened+sec_in_day 1709512094 [20:05:32]quantity*price = 9000 [20:05:32]sum+1 = 9001 [20:05:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 90.00 НСП 1% : 0.80 НДС 12% : 9.56 Наличными: 90.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 83 03.03.2024 20:05 Смена: 331 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 ФМ: 0000000000874796 ФД: 45246 ФПД: 52535880292138 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T200545&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45246&fm=52535880292138&tin=02508201610067®Number=0000000000090572&sum=9000 0 [20:05:33]StoreToDocumentArchive [20:05:33]shift 331 fd 45246 [20:05:33]save to /storage/0331/doc_00045246 [20:05:33]save last doc name /storage/0331/doc_00045246 to /storage/kkm_last_doc_name [20:05:33]save OK [20:05:33]Clear old archive folders... [20:05:33]ProcessDocumentItem done err = 0, tmpTLVsize=299 [20:05:33]tlvbuf is 01CDBD70 [20:05:33]SAM_PROTO_ClearQueue [20:05:33]wFMCommunicate request_size=4 [20:05:33]MH_SAM_APDU [20:05:33]CAPDU: 80 09 00 00 [20:05:33]Write to MH i2c: E2 08 00 53 57 80 09 00 00 00 00 00 00 1C [20:05:33]Write i2c OK [20:05:33]MH_I2C_Read... [20:05:33]Read from MH i2c: E2 [20:05:33]MH_I2C_Read... [20:05:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:05:33]Read from MH i2c: E2 03 00 [20:05:33]MH_I2C_Read... [20:05:33]Read from MH i2c: E2 03 00 53 57 00 90 00 1E [20:05:33]RAPDU: 90 00 [20:05:33]wFMCommunicate OK [20:05:33]SAM_PROTO_ClearQueue done [20:05:33]KKMCreateOFDPacket [20:05:33]OFDProtocolAddRootSTLVToBuf [20:05:33]FM_MakeSignedData [20:05:33]FM_MakeSignedData [20:05:33]SAM_PROTO_SignData [20:05:33]wFMCommunicate request_size=4 [20:05:33]MH_SAM_APDU [20:05:33]CAPDU: 80 0D 01 02 [20:05:33]Write to MH i2c: E2 08 00 54 57 80 0D 01 02 00 00 00 00 24 [20:05:33]Write i2c OK [20:05:33]MH_I2C_Read... [20:05:33]Read from MH i2c: E2 [20:05:33]MH_I2C_Read... [20:05:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:05:33]Read from MH i2c: E2 03 00 [20:05:33]MH_I2C_Read... [20:05:33]Read from MH i2c: E2 03 00 54 57 00 90 00 1F [20:05:33]RAPDU: 90 00 [20:05:33]wFMCommunicate OK [20:05:33]wFMCommunicate request_size=255 [20:05:33]MH_SAM_APDU [20:05:33]CAPDU: 80 0D 02 02 FA 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 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 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 19 D8 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 [20:05:33]Write to MH i2c: E2 02 01 55 57 80 0D 02 02 FA 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 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 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 19 D8 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 00 00 1D [20:05:33]Write i2c OK [20:05:33]MH_I2C_Read... [20:05:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:05:33]Read from MH i2c: E2 [20:05:33]MH_I2C_Read... [20:05:33]Read from MH i2c: E2 03 00 [20:05:33]MH_I2C_Read... [20:05:33]Read from MH i2c: E2 03 00 55 57 00 90 00 20 [20:05:33]RAPDU: 90 00 [20:05:33]wFMCommunicate OK [20:05:33]wFMCommunicate request_size=58 [20:05:33]MH_SAM_APDU [20:05:33]CAPDU: 80 0D 02 02 35 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 BE B0 00 00 35 04 06 00 2F C7 F6 7B 97 2A [20:05:33]Write to MH i2c: E2 3D 00 56 57 80 0D 02 02 35 00 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 BE B0 00 00 35 04 06 00 2F C7 F6 7B 97 2A 00 00 B3 [20:05:33]Write i2c OK [20:05:33]MH_I2C_Read... [20:05:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:05:33]Read from MH i2c: E2 [20:05:33]MH_I2C_Read... [20:05:33]Read from MH i2c: E2 03 00 [20:05:33]MH_I2C_Read... [20:05:33]Read from MH i2c: E2 03 00 56 57 00 90 00 21 [20:05:33]RAPDU: 90 00 [20:05:33]wFMCommunicate OK [20:05:33]wFMCommunicate request_size=4 [20:05:33]MH_SAM_APDU [20:05:33]CAPDU: 80 0D 03 02 [20:05:33]Write to MH i2c: E2 08 00 57 57 80 0D 03 02 00 00 00 00 29 [20:05:33]Write i2c OK [20:05:33]MH_I2C_Read... [20:05:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:05:34]Read from MH i2c: E2 [20:05:34]MH_I2C_Read... [20:05:34]Read from MH i2c: E2 0B 00 [20:05:34]MH_I2C_Read... [20:05:34]Read from MH i2c: E2 0B 00 57 57 00 82 57 35 07 96 93 D0 A4 90 00 DC [20:05:34]RAPDU: 82 57 35 07 96 93 D0 A4 90 00 [20:05:34]wFMCommunicate OK [20:05:34]SAM_PROTO_SignData done [20:05:34]FM_MakeSignedData done [20:05:34]CreateOFDProtocolMessage [20:05:34]wFMCommunicate request_size=4 [20:05:34]MH_SAM_APDU [20:05:34]CAPDU: 80 11 00 00 [20:05:34]Write to MH i2c: E2 08 00 58 57 80 11 00 00 00 00 00 00 29 [20:05:34]Write i2c OK [20:05:34]MH_I2C_Read... [20:05:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:05:34]Read from MH i2c: E2 [20:05:34]MH_I2C_Read... [20:05:34]Read from MH i2c: E2 17 00 [20:05:34]MH_I2C_Read... [20:05:34]Read from MH i2c: E2 17 00 58 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 85 [20:05:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [20:05:34]wFMCommunicate OK [20:05:34]CreateOFDProtocolMessage done [20:05:34]OFDSenderStorePacket 45246 [20:05:34]StoreOFDPacket docnum=45246 [20:05:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 3F 01 00 00 F0 6C 37 01 0E A2 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 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 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 19 D8 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 BE B0 00 00 35 04 06 00 2F C7 F6 7B 97 2A 82 57 35 07 96 93 D0 A4 [20:05:34]CheckFolder [20:05:34]dirname=/storage/ofd_packets [20:05:34]CheckFolder done [20:05:34]ProducePacketName [20:05:34]name=ofd_packets/00045246 [20:05:34]NVStorageSaveData ofd_packets/00045246 [20:05:34]File name is /storage/ofd_packets/00045246 [20:05:34]Write 349 bytes [20:05:34]NVStorageSaveData done [20:05:34]OFDSenderStorePacket done [20:05:34]KKMCreateOFDPacket done [20:05:34]NVStorageSaveData kkm_last_timestamp [20:05:34]File name is /storage/kkm_last_timestamp [20:05:34]Write 4 bytes [20:05:34]NVStorageSaveData done [20:05:34]ExternCall_PrintAddStr [20:05:34]wPrintStart [20:05:34]Write to MH i2c: 01 00 00 59 57 B0 [20:05:34]Write i2c OK [20:05:34]MH_I2C_Read... [20:05:34]Read from MH i2c: 01 [20:05:34]MH_I2C_Read... [20:05:34]Read from MH i2c: 01 07 00 [20:05:34]MH_I2C_Read... [20:05:34]Read from MH i2c: 01 07 00 59 57 00 00 00 00 00 FF 0F C5 [20:05:34]RasterBufferAndPrint [20:05:34]line Счет N : (3)184208 [20:05:34]line ИНН: 02508201610067 [20:05:34]line Контрольно-Кассовый Чек [20:05:34]line ПРОДАЖА [20:05:34]line Товар: 4700000480364 [20:05:34]line Напиток энерг Nitro экзотик 0.45 ж/б [20:05:34]line 1.000 * 90.00 [20:05:34]line = 90.00 [20:05:34]line НДС 12% НСП 1% [20:05:34]line > о реализуемом товаре [20:05:34]line ИТОГО: 90.00 [20:05:34]line НСП 1% : 0.80 [20:05:34]line НДС 12% : 9.56 [20:05:34]line Наличными: 90.00 [20:05:34]line Безнал.: 0.00 [20:05:34]line Место: АЗС № 25 "Партнер Нефть" [20:05:34]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [20:05:34]line СНО: Общий режим [20:05:34]line Чек 83 03.03.2024 20:05 [20:05:34]line Смена: 331 ФФД: 1.0 [20:05:34]line ЗНМ: 0300000013 [20:05:34]line РНМ: 0000000000090572 [20:05:34]line Версия ККМ: 001 [20:05:34]line ФМ: 0000000000874796 [20:05:34]line ФД: 45246 [20:05:34]line ФПД: 52535880292138 [20:05:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T200545&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45246&fm=52535880292138&tin=02508201610067®Number=0000000000090572&sum=9000 [20:05:34]line 0 [20:05:34]OFD Sender: Processing packet 45246 [packets to send 17, broken 16] [20:05:34]ProducePacketName [20:05:34]name=ofd_packets/00045246 [20:05:34]OFD Sender: To server: pG, [20:05:34]CommunicateWithHost lk.salyk.kg:30040 [20:05:34]ConnectInit lk.salyk.kg [20:05:34]written 0, free lines is 4095 [20:05:34]Connected sock=9 [20:05:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 3F 01 00 00 F0 6C 37 01 0E A2 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 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 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 19 D8 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 BE B0 00 00 35 04 06 00 2F C7 F6 7B 97 2A 82 57 35 07 96 93 D0 A4 [20:05:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 39 2E 47 00 D6 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 BE B0 00 00 F4 03 04 00 DD 83 E4 65 B6 04 01 00 00 82 03 CB 0A 42 69 AE C1 [20:05:34]CommunicateWithHost err = 0 [20:05:34]CheckOFDResponse [20:05:34]1017 (14) - 77093643461234 [20:05:34]1041 (16) - 0000000000874796 [20:05:34]1040 (4) - 45246 [20:05:34]1012 (4) - 03.03.2024 14:06 [20:05:34]1206 (1) - 0 [20:05:34]OFD Sender: Remove packet 45246 [20:05:34]ProducePacketName [20:05:34]name=ofd_packets/00045246 [20:05:34]NVStorageDeleteData [20:05:34]Write to MH i2c: 01 00 00 82 57 D9 [20:05:34]Write i2c OK [20:05:34]MH_I2C_Read... [20:05:34]Read from MH i2c: 01 [20:05:34]MH_I2C_Read... [20:05:34]Read from MH i2c: 01 07 00 [20:05:34]MH_I2C_Read... [20:05:34]Read from MH i2c: 01 07 00 82 57 00 00 00 00 00 0D 0D FA [20:05:34]RasterBufferAndPrint [20:05:34]line [20:05:34]line [20:05:34]line [20:05:34]line [20:05:34]line [20:05:34]written 0, free lines is 3347 [20:05:34]MH_Cut [20:05:34]Write to MH i2c: D1 01 00 89 57 01 B2 [20:05:34]Write i2c OK [20:05:34]MH_I2C_Read... [20:05:34]Read from MH i2c: D1 [20:05:34]MH_I2C_Read... [20:05:34]Read from MH i2c: D1 01 00 [20:05:34]MH_I2C_Read... [20:05:34]Read from MH i2c: D1 01 00 89 57 00 B1 [20:05:34]Write to MH i2c: 01 00 00 8A 57 E1 [20:05:34]Write i2c OK [20:05:34]MH_I2C_Read... [20:05:35]OFD Sender: No OFD packet to send [20:05:35]*** Cut start [20:05:35]*** Purtial cut [20:05:35]*** Stage 1: CUTSNS_PIN = 1 [20:05:37]Read from MH i2c: 01 [20:05:37]MH_I2C_Read... [20:05:37]*** Stop cut motor [20:05:37]*** Cut end [20:05:37]Read from MH i2c: 01 07 00 [20:05:37]MH_I2C_Read... [20:05:37]Read from MH i2c: 01 07 00 8A 57 00 00 00 00 00 FF 0F F6 [20:05:37]process_action close_receipt done [20:05:37]requested_data is exist [20:05:37]produce_requested_data [20:05:37]requested_item fm.sn is exist - process it [20:05:37]wFMCommunicate request_size=4 [20:05:37]MH_SAM_APDU [20:05:37]CAPDU: 80 11 00 00 [20:05:37]Write to MH i2c: E2 08 00 8B 57 80 11 00 00 00 00 00 00 5C [20:05:37]Write i2c OK [20:05:37]MH_I2C_Read... [20:05:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:05:37]Read from MH i2c: E2 [20:05:37]MH_I2C_Read... [20:05:37]Read from MH i2c: E2 17 00 [20:05:37]MH_I2C_Read... [20:05:37]Read from MH i2c: E2 17 00 8B 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 B8 [20:05:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [20:05:37]wFMCommunicate OK [20:05:37]requested_item fd.num is exist - process it [20:05:37]SAM_PROTO_GetFieldsCounters [20:05:37]wFMCommunicate request_size=4 [20:05:37]MH_SAM_APDU [20:05:37]CAPDU: 80 13 00 00 [20:05:37]Write to MH i2c: E2 08 00 8C 57 80 13 00 00 00 00 00 00 5F [20:05:37]Write i2c OK [20:05:37]MH_I2C_Read... [20:05:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:05:37]Read from MH i2c: E2 [20:05:37]MH_I2C_Read... [20:05:37]Read from MH i2c: E2 62 00 [20:05:37]MH_I2C_Read... [20:05:37]Read from MH i2c: E2 62 00 8C 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 BE B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 3A [20:05:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 BE B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:05:37]wFMCommunicate OK [20:05:37]SAM_PROTO_GetFieldsCounters done [20:05:37]requested_item shift.num is exist - process it [20:05:37]requested_item shift.opened is exist - process it [20:05:37]req_shift_opened [20:05:37]FM_GetShiftState [20:05:37]SAM_PROTO_GetShiftState [20:05:37]wFMCommunicate request_size=4 [20:05:37]MH_SAM_APDU [20:05:37]CAPDU: 80 13 01 00 [20:05:37]Write to MH i2c: E2 08 00 8D 57 80 13 01 00 00 00 00 00 61 [20:05:37]Write i2c OK [20:05:37]MH_I2C_Read... [20:05:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:05:37]Read from MH i2c: E2 [20:05:37]MH_I2C_Read... [20:05:37]Read from MH i2c: E2 0E 00 [20:05:37]MH_I2C_Read... [20:05:37]Read from MH i2c: E2 0E 00 8D 57 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 97 [20:05:37]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [20:05:37]wFMCommunicate OK [20:05:37]SAM_PROTO_GetShiftState done [20:05:37]FM_GetShiftState done [20:05:37]req_shift_opened done [20:05:37]requested_item shift.open_date is exist - process it [20:05:37]req_shift_open_date [20:05:37]req_shift_open_date done [20:05:37]produce_requested_data done [20:05:37]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45246,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [20:05:37]process_action_free close_receipt [20:05:37]json_value_free [20:05:37]json_value_free done [20:05:37]process_json_proto returns [20:05:37]Send response to host [20:05:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45246,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [20:05:37]free response buf [20:05:37]execute_script done [20:05:37]execute_script returns [20:05:37]free content buf [20:05:37]Sock 10.Close socket [20:05:37]Sock 10.Thread stoped [20:05:40]OFD Sender: No OFD packet to send [20:05:45]OFD Sender: No OFD packet to send [20:05:50]OFD Sender: No OFD packet to send [20:05:55]OFD Sender: No OFD packet to send [20:06:00]OFD Sender: No OFD packet to send [20:06:05]OFD Sender: No OFD packet to send [20:06:10]OFD Sender: No OFD packet to send [20:06:15]OFD Sender: No OFD packet to send [20:06:20]OFD Sender: No OFD packet to send [20:06:25]OFD Sender: No OFD packet to send [20:06:30]OFD Sender: No OFD packet to send [20:06:35]OFD Sender: No OFD packet to send [20:06:40]OFD Sender: No OFD packet to send [20:06:45]OFD Sender: No OFD packet to send [20:06:50]OFD Sender: No OFD packet to send [20:06:55]OFD Sender: No OFD packet to send [20:07:00]OFD Sender: No OFD packet to send [20:07:05]OFD Sender: No OFD packet to send [20:07:10]OFD Sender: No OFD packet to send [20:07:15]OFD Sender: No OFD packet to send [20:07:20]OFD Sender: No OFD packet to send [20:07:25]OFD Sender: No OFD packet to send [20:07:30]OFD Sender: No OFD packet to send [20:07:35]OFD Sender: No OFD packet to send [20:07:40]OFD Sender: No OFD packet to send [20:07:45]OFD Sender: No OFD packet to send [20:07:50]OFD Sender: No OFD packet to send [20:07:55]OFD Sender: No OFD packet to send [20:08:00]OFD Sender: No OFD packet to send [20:08:05]OFD Sender: No OFD packet to send [20:08:10]OFD Sender: No OFD packet to send [20:08:15]OFD Sender: No OFD packet to send [20:08:20]OFD Sender: No OFD packet to send [20:08:25]OFD Sender: No OFD packet to send [20:08:30]OFD Sender: No OFD packet to send [20:08:35]OFD Sender: No OFD packet to send [20:08:40]OFD Sender: No OFD packet to send [20:08:45]OFD Sender: No OFD packet to send [20:08:50]OFD Sender: No OFD packet to send [20:08:55]OFD Sender: No OFD packet to send [20:09:00]OFD Sender: No OFD packet to send [20:09:05]OFD Sender: No OFD packet to send [20:09:10]OFD Sender: No OFD packet to send [20:09:15]OFD Sender: No OFD packet to send [20:09:20]OFD Sender: No OFD packet to send [20:09:25]OFD Sender: No OFD packet to send [20:09:30]OFD Sender: No OFD packet to send [20:09:35]OFD Sender: No OFD packet to send [20:09:40]OFD Sender: No OFD packet to send [20:09:45]OFD Sender: No OFD packet to send [20:09:50]OFD Sender: No OFD packet to send [20:09:55]OFD Sender: No OFD packet to send [20:10:00]OFD Sender: No OFD packet to send [20:10:05]OFD Sender: No OFD packet to send [20:10:10]OFD Sender: No OFD packet to send [20:10:15]OFD Sender: No OFD packet to send [20:10:20]OFD Sender: No OFD packet to send [20:10:25]OFD Sender: No OFD packet to send [20:10:30]OFD Sender: No OFD packet to send [20:10:35]OFD Sender: No OFD packet to send [20:10:40]OFD Sender: No OFD packet to send [20:10:45]OFD Sender: No OFD packet to send [20:10:50]OFD Sender: No OFD packet to send [20:10:55]OFD Sender: No OFD packet to send [20:11:00]OFD Sender: No OFD packet to send [20:11:05]OFD Sender: No OFD packet to send [20:11:10]OFD Sender: No OFD packet to send [20:11:15]OFD Sender: No OFD packet to send [20:11:20]OFD Sender: No OFD packet to send [20:11:25]OFD Sender: No OFD packet to send [20:11:30]OFD Sender: No OFD packet to send [20:11:35]OFD Sender: No OFD packet to send [20:11:40]OFD Sender: No OFD packet to send [20:11:45]OFD Sender: No OFD packet to send [20:11:50]OFD Sender: No OFD packet to send [20:11:55]OFD Sender: No OFD packet to send [20:12:00]OFD Sender: No OFD packet to send [20:12:05]OFD Sender: No OFD packet to send [20:12:10]OFD Sender: No OFD packet to send [20:12:15]OFD Sender: No OFD packet to send [20:12:20]OFD Sender: No OFD packet to send [20:12:25]OFD Sender: No OFD packet to send [20:12:30]OFD Sender: No OFD packet to send [20:12:35]OFD Sender: No OFD packet to send [20:12:40]OFD Sender: No OFD packet to send [20:12:45]OFD Sender: No OFD packet to send [20:12:50]OFD Sender: No OFD packet to send [20:12:55]OFD Sender: No OFD packet to send [20:13:00]OFD Sender: No OFD packet to send [20:13:05]OFD Sender: No OFD packet to send [20:13:10]OFD Sender: No OFD packet to send [20:13:15]OFD Sender: No OFD packet to send [20:13:20]OFD Sender: No OFD packet to send [20:13:25]OFD Sender: No OFD packet to send [20:13:30]OFD Sender: No OFD packet to send [20:13:35]OFD Sender: No OFD packet to send [20:13:40]OFD Sender: No OFD packet to send [20:13:45]OFD Sender: No OFD packet to send [20:13:50]OFD Sender: No OFD packet to send [20:13:55]OFD Sender: No OFD packet to send [20:14:00]OFD Sender: No OFD packet to send [20:14:05]OFD Sender: No OFD packet to send [20:14:10]OFD Sender: No OFD packet to send [20:14:15]OFD Sender: No OFD packet to send [20:14:20]OFD Sender: No OFD packet to send [20:14:25]OFD Sender: No OFD packet to send [20:14:30]OFD Sender: No OFD packet to send [20:14:35]OFD Sender: No OFD packet to send [20:14:40]OFD Sender: No OFD packet to send [20:14:45]OFD Sender: No OFD packet to send [20:14:50]OFD Sender: No OFD packet to send [20:14:55]OFD Sender: No OFD packet to send [20:15:00]OFD Sender: No OFD packet to send [20:15:05]OFD Sender: No OFD packet to send [20:15:10]OFD Sender: No OFD packet to send [20:15:15]OFD Sender: No OFD packet to send [20:15:20]OFD Sender: No OFD packet to send [20:15:25]OFD Sender: No OFD packet to send [20:15:30]OFD Sender: No OFD packet to send [20:15:35]OFD Sender: No OFD packet to send [20:15:40]OFD Sender: No OFD packet to send [20:15:45]OFD Sender: No OFD packet to send [20:15:50]OFD Sender: No OFD packet to send [20:15:55]OFD Sender: No OFD packet to send [20:16:00]OFD Sender: No OFD packet to send [20:16:05]OFD Sender: No OFD packet to send [20:16:10]OFD Sender: No OFD packet to send [20:16:15]OFD Sender: No OFD packet to send [20:16:20]OFD Sender: No OFD packet to send [20:16:25]OFD Sender: No OFD packet to send [20:16:30]OFD Sender: No OFD packet to send [20:16:35]OFD Sender: No OFD packet to send [20:16:40]OFD Sender: No OFD packet to send [20:16:45]OFD Sender: No OFD packet to send [20:16:50]OFD Sender: No OFD packet to send [20:16:55]OFD Sender: No OFD packet to send [20:17:00]OFD Sender: No OFD packet to send [20:17:05]OFD Sender: No OFD packet to send [20:17:10]OFD Sender: No OFD packet to send [20:17:15]OFD Sender: No OFD packet to send [20:17:20]OFD Sender: No OFD packet to send [20:17:25]OFD Sender: No OFD packet to send [20:17:30]OFD Sender: No OFD packet to send [20:17:35]OFD Sender: No OFD packet to send [20:17:40]OFD Sender: No OFD packet to send [20:17:45]OFD Sender: No OFD packet to send [20:17:50]OFD Sender: No OFD packet to send [20:17:55]OFD Sender: No OFD packet to send [20:18:00]OFD Sender: No OFD packet to send [20:18:05]OFD Sender: No OFD packet to send [20:18:10]OFD Sender: No OFD packet to send [20:18:15]OFD Sender: No OFD packet to send [20:18:20]OFD Sender: No OFD packet to send [20:18:25]OFD Sender: No OFD packet to send [20:18:30]OFD Sender: No OFD packet to send [20:18:35]OFD Sender: No OFD packet to send [20:18:40]OFD Sender: No OFD packet to send [20:18:45]OFD Sender: No OFD packet to send [20:18:50]OFD Sender: No OFD packet to send [20:18:55]OFD Sender: No OFD packet to send [20:19:00]OFD Sender: No OFD packet to send [20:19:05]OFD Sender: No OFD packet to send [20:19:10]OFD Sender: No OFD packet to send [20:19:15]OFD Sender: No OFD packet to send [20:19:20]OFD Sender: No OFD packet to send [20:19:25]OFD Sender: No OFD packet to send [20:19:30]OFD Sender: No OFD packet to send [20:19:35]OFD Sender: No OFD packet to send [20:19:40]OFD Sender: No OFD packet to send [20:19:45]OFD Sender: No OFD packet to send [20:19:50]OFD Sender: No OFD packet to send [20:19:55]OFD Sender: No OFD packet to send [20:19:59]accept exits with 7 [20:19:59]New connection [20:19:59]New thread 3067014500 created [20:19:59]Thread 3067157860 joined [20:19:59]Waiting for new connection... [20:19:59] Sock 7.Parse request [20:19:59]Sock 7.Check first char [20:19:59]Sock 7.First char is OK [20:19:59]request: POST /json_proto HTTP/1.0 [20:19:59]Method: POST [20:19:59]URL: /json_proto [20:19:59]Method is POST - this is cgi request [20:19:59]url: /json_proto [20:19:59]query_string will be loaded in cgi processing [20:19:59]execute_cgi json_proto POST (null) [20:19:59]execute_cgi path=json_proto method=POST [20:19:59]POST find Content-Length [20:19:59]Host: 172.17.48.198:8080 [20:19:59]Content-Length: 790 [20:19:59]Content-Type: application/json [20:19:59] [20:19:59]POST finish read [20:19:59]Found Content-Length = 790 [20:19:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184209", "tax_sys" : 0, "items" : [ { "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:19:59]execute_script... [20:19:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184209", "tax_sys" : 0, "items" : [ { "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:19:59]POST & json_proto [20:19:59]process_json_proto [20:19:59]json parsed OK: [20:19:59]protocol is kg_v1.0 [20:19:59]action value=close_receipt [20:19:59]process_action close_receipt [20:19:59]cmd_close_receipt [20:19:59]MH_GetDate [20:19:59]Write to MH i2c: F0 00 00 8E 57 D4 [20:19:59]Write i2c OK [20:19:59]MH_I2C_Read... [20:19:59]Read from MH i2c: F0 [20:19:59]MH_I2C_Read... [20:19:59]Read from MH i2c: F0 09 00 [20:19:59]MH_I2C_Read... [20:19:59]Read from MH i2c: F0 09 00 8E 57 00 7C DB E4 65 CE C4 D4 65 48 [20:19:59]GetLastDocTimeStamp 1709496345 [20:19:59]current date 1709497212 [20:19:59]FM_GetShiftState [20:19:59]SAM_PROTO_GetShiftState [20:19:59]wFMCommunicate request_size=4 [20:19:59]MH_SAM_APDU [20:19:59]CAPDU: 80 13 01 00 [20:19:59]Write to MH i2c: E2 08 00 8F 57 80 13 01 00 00 00 00 00 63 [20:19:59]Write i2c OK [20:19:59]MH_I2C_Read... [20:19:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:19:59]Read from MH i2c: E2 [20:19:59]MH_I2C_Read... [20:19:59]Read from MH i2c: E2 0E 00 [20:19:59]MH_I2C_Read... [20:19:59]Read from MH i2c: E2 0E 00 8F 57 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 99 [20:19:59]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [20:19:59]wFMCommunicate OK [20:19:59]SAM_PROTO_GetShiftState done [20:19:59]FM_GetShiftState done [20:19:59]opened in 1709425694 [20:19:59]opened+sec_in_day 1709512094 [20:19:59]quantity*price = 14400 [20:19:59]sum+1 = 14401 [20:19:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 0.00 Безнал.: 144.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 84 03.03.2024 20:20 Смена: 331 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874796 ФД: 45247 ФПД: 206896736777417 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T202012&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45247&fm=206896736777417&tin=02508201610067®Number=0000000000090572&sum=14400 0 [20:20:00]StoreToDocumentArchive [20:20:00]shift 331 fd 45247 [20:20:00]save to /storage/0331/doc_00045247 [20:20:00]save last doc name /storage/0331/doc_00045247 to /storage/kkm_last_doc_name [20:20:00]save OK [20:20:00]Clear old archive folders... [20:20:00]ProcessDocumentItem done err = 0, tmpTLVsize=276 [20:20:00]tlvbuf is 01B05060 [20:20:00]SAM_PROTO_ClearQueue [20:20:00]wFMCommunicate request_size=4 [20:20:00]MH_SAM_APDU [20:20:00]CAPDU: 80 09 00 00 [20:20:00]Write to MH i2c: E2 08 00 9C 57 80 09 00 00 00 00 00 00 65 [20:20:00]Write i2c OK [20:20:00]MH_I2C_Read... [20:20:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:20:00]Read from MH i2c: E2 [20:20:00]MH_I2C_Read... [20:20:00]Read from MH i2c: E2 03 00 [20:20:00]MH_I2C_Read... [20:20:00]Read from MH i2c: E2 03 00 9C 57 00 90 00 67 [20:20:00]RAPDU: 90 00 [20:20:00]wFMCommunicate OK [20:20:00]SAM_PROTO_ClearQueue done [20:20:00]KKMCreateOFDPacket [20:20:00]OFDProtocolAddRootSTLVToBuf [20:20:00]FM_MakeSignedData [20:20:00]FM_MakeSignedData [20:20:00]SAM_PROTO_SignData [20:20:00]wFMCommunicate request_size=4 [20:20:00]MH_SAM_APDU [20:20:00]CAPDU: 80 0D 01 02 [20:20:00]Write to MH i2c: E2 08 00 9D 57 80 0D 01 02 00 00 00 00 6D [20:20:00]Write i2c OK [20:20:00]MH_I2C_Read... [20:20:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:20:00]Read from MH i2c: E2 [20:20:00]MH_I2C_Read... [20:20:00]Read from MH i2c: E2 03 00 [20:20:00]MH_I2C_Read... [20:20:00]Read from MH i2c: E2 03 00 9D 57 00 90 00 68 [20:20:00]RAPDU: 90 00 [20:20:00]wFMCommunicate OK [20:20:00]wFMCommunicate request_size=255 [20:20:00]MH_SAM_APDU [20:20:00]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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 7C DB E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 [20:20:00]Write to MH i2c: E2 02 01 9E 57 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 7C DB E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 00 00 B3 [20:20:00]Write i2c OK [20:20:00]MH_I2C_Read... [20:20:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:20:00]Read from MH i2c: E2 [20:20:00]MH_I2C_Read... [20:20:00]Read from MH i2c: E2 03 00 [20:20:00]MH_I2C_Read... [20:20:00]Read from MH i2c: E2 03 00 9E 57 00 90 00 69 [20:20:00]RAPDU: 90 00 [20:20:00]wFMCommunicate OK [20:20:00]wFMCommunicate request_size=35 [20:20:00]MH_SAM_APDU [20:20:00]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 BF B0 00 00 35 04 06 00 BC 2B E6 80 34 C9 [20:20:00]Write to MH i2c: E2 26 00 9F 57 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 BF B0 00 00 35 04 06 00 BC 2B E6 80 34 C9 00 00 25 [20:20:00]Write i2c OK [20:20:00]MH_I2C_Read... [20:20:00]OFD Sender: No OFD packet to send [20:20:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:20:00]Read from MH i2c: E2 [20:20:00]MH_I2C_Read... [20:20:00]Read from MH i2c: E2 03 00 [20:20:00]MH_I2C_Read... [20:20:00]Read from MH i2c: E2 03 00 9F 57 00 90 00 6A [20:20:00]RAPDU: 90 00 [20:20:00]wFMCommunicate OK [20:20:00]wFMCommunicate request_size=4 [20:20:00]MH_SAM_APDU [20:20:00]CAPDU: 80 0D 03 02 [20:20:00]Write to MH i2c: E2 08 00 A0 57 80 0D 03 02 00 00 00 00 72 [20:20:00]Write i2c OK [20:20:00]MH_I2C_Read... [20:20:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:20:01]Read from MH i2c: E2 [20:20:01]MH_I2C_Read... [20:20:01]Read from MH i2c: E2 0B 00 [20:20:01]MH_I2C_Read... [20:20:01]Read from MH i2c: E2 0B 00 A0 57 00 3C F6 09 A5 39 29 F8 5D 90 00 0A [20:20:01]RAPDU: 3C F6 09 A5 39 29 F8 5D 90 00 [20:20:01]wFMCommunicate OK [20:20:01]SAM_PROTO_SignData done [20:20:01]FM_MakeSignedData done [20:20:01]CreateOFDProtocolMessage [20:20:01]wFMCommunicate request_size=4 [20:20:01]MH_SAM_APDU [20:20:01]CAPDU: 80 11 00 00 [20:20:01]Write to MH i2c: E2 08 00 A1 57 80 11 00 00 00 00 00 00 72 [20:20:01]Write i2c OK [20:20:01]MH_I2C_Read... [20:20:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:20:01]Read from MH i2c: E2 [20:20:01]MH_I2C_Read... [20:20:01]Read from MH i2c: E2 17 00 [20:20:01]MH_I2C_Read... [20:20:01]Read from MH i2c: E2 17 00 A1 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 CE [20:20:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [20:20:01]wFMCommunicate OK [20:20:01]CreateOFDProtocolMessage done [20:20:01]OFDSenderStorePacket 45247 [20:20:01]StoreOFDPacket docnum=45247 [20:20:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 28 01 00 00 E6 16 20 01 1D FD 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 7C DB E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 BF B0 00 00 35 04 06 00 BC 2B E6 80 34 C9 3C F6 09 A5 39 29 F8 5D [20:20:01]CheckFolder [20:20:01]dirname=/storage/ofd_packets [20:20:01]CheckFolder done [20:20:01]ProducePacketName [20:20:01]name=ofd_packets/00045247 [20:20:01]NVStorageSaveData ofd_packets/00045247 [20:20:01]File name is /storage/ofd_packets/00045247 [20:20:01]Write 326 bytes [20:20:01]NVStorageSaveData done [20:20:01]OFDSenderStorePacket done [20:20:01]KKMCreateOFDPacket done [20:20:01]NVStorageSaveData kkm_last_timestamp [20:20:01]File name is /storage/kkm_last_timestamp [20:20:01]Write 4 bytes [20:20:01]NVStorageSaveData done [20:20:01]ExternCall_PrintAddStr [20:20:01]wPrintStart [20:20:01]Write to MH i2c: 01 00 00 A2 57 F9 [20:20:01]Write i2c OK [20:20:01]MH_I2C_Read... [20:20:01]Read from MH i2c: 01 [20:20:01]MH_I2C_Read... [20:20:01]Read from MH i2c: 01 07 00 [20:20:01]MH_I2C_Read... [20:20:01]Read from MH i2c: 01 07 00 A2 57 00 00 00 00 00 FF 0F 0E [20:20:01]RasterBufferAndPrint [20:20:01]line Счет N : (3)184209 [20:20:01]line ИНН: 02508201610067 [20:20:01]line Контрольно-Кассовый Чек [20:20:01]line ПРОДАЖА [20:20:01]line Товар: 48742245 [20:20:01]line Сигареты Parliament Silver Blue [20:20:01]line 1.000 * 144.00 [20:20:01]line = 144.00 [20:20:01]line НДС 12% НСП 1% [20:20:01]line > о реализуемом товаре [20:20:01]line ИТОГО: 144.00 [20:20:01]line НСП 1% : 1.27 [20:20:01]line НДС 12% : 15.29 [20:20:01]line Наличными: 0.00 [20:20:01]line Безнал.: 144.00 [20:20:01]line Место: АЗС № 25 "Партнер Нефть" [20:20:01]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [20:20:01]line СНО: Общий режим [20:20:01]line Чек 84 03.03.2024 20:20 [20:20:01]line Смена: 331 ФФД: 1.0 [20:20:01]line ЗНМ: 0300000013 [20:20:01]line РНМ: 0000000000090572 [20:20:01]line Версия ККМ: 001 [20:20:01]line Платежная система: О! деньги [20:20:01]line ФМ: 0000000000874796 [20:20:01]line ФД: 45247 [20:20:01]line ФПД: 206896736777417 [20:20:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T202012&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45247&fm=206896736777417&tin=02508201610067®Number=0000000000090572&sum=14400 [20:20:01]line 0 [20:20:01]OFD Sender: Processing packet 45247 [packets to send 17, broken 16] [20:20:01]ProducePacketName [20:20:01]name=ofd_packets/00045247 [20:20:01]OFD Sender: To server: pG, [20:20:01]CommunicateWithHost lk.salyk.kg:30040 [20:20:01]ConnectInit lk.salyk.kg [20:20:01]written 0, free lines is 4095 [20:20:01]Connected sock=10 [20:20:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 28 01 00 00 E6 16 20 01 1D FD 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 7C DB E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 BF B0 00 00 35 04 06 00 BC 2B E6 80 34 C9 3C F6 09 A5 39 29 F8 5D [20:20:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 17 AF 47 00 79 91 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 BF B0 00 00 F4 03 04 00 40 87 E4 65 B6 04 01 00 00 20 4F 6D 6A 35 4E 2A 5D [20:20:01]CommunicateWithHost err = 0 [20:20:01]CheckOFDResponse [20:20:01]1017 (14) - 77093643461234 [20:20:01]1041 (16) - 0000000000874796 [20:20:01]1040 (4) - 45247 [20:20:01]1012 (4) - 03.03.2024 14:20 [20:20:01]1206 (1) - 0 [20:20:01]OFD Sender: Remove packet 45247 [20:20:01]ProducePacketName [20:20:01]name=ofd_packets/00045247 [20:20:01]NVStorageDeleteData [20:20:01]Write to MH i2c: 01 00 00 CD 57 24 [20:20:01]Write i2c OK [20:20:01]MH_I2C_Read... [20:20:01]Read from MH i2c: 01 [20:20:01]MH_I2C_Read... [20:20:01]Read from MH i2c: 01 07 00 [20:20:01]MH_I2C_Read... [20:20:01]Read from MH i2c: 01 07 00 CD 57 00 00 00 00 00 D8 0C 0F [20:20:01]RasterBufferAndPrint [20:20:01]line [20:20:01]line [20:20:01]line [20:20:01]line [20:20:01]line [20:20:01]written 0, free lines is 3294 [20:20:01]MH_Cut [20:20:01]Write to MH i2c: D1 01 00 D4 57 01 FD [20:20:01]Write i2c OK [20:20:01]MH_I2C_Read... [20:20:01]Read from MH i2c: D1 [20:20:01]MH_I2C_Read... [20:20:01]Read from MH i2c: D1 01 00 [20:20:01]MH_I2C_Read... [20:20:01]Read from MH i2c: D1 01 00 D4 57 00 FC [20:20:01]Write to MH i2c: 01 00 00 D5 57 2C [20:20:01]Write i2c OK [20:20:01]MH_I2C_Read... [20:20:02]OFD Sender: No OFD packet to send [20:20:02]*** Cut start [20:20:02]*** Purtial cut [20:20:02]*** Stage 1: CUTSNS_PIN = 1 [20:20:04]Read from MH i2c: 01 [20:20:04]MH_I2C_Read... [20:20:04]*** Stop cut motor [20:20:04]*** Cut end [20:20:04]Read from MH i2c: 01 07 00 [20:20:04]MH_I2C_Read... [20:20:04]Read from MH i2c: 01 07 00 D5 57 00 00 00 00 00 FF 0F 41 [20:20:04]process_action close_receipt done [20:20:04]requested_data is exist [20:20:04]produce_requested_data [20:20:04]requested_item fm.sn is exist - process it [20:20:04]wFMCommunicate request_size=4 [20:20:04]MH_SAM_APDU [20:20:04]CAPDU: 80 11 00 00 [20:20:04]Write to MH i2c: E2 08 00 D6 57 80 11 00 00 00 00 00 00 A7 [20:20:04]Write i2c OK [20:20:04]MH_I2C_Read... [20:20:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:20:04]Read from MH i2c: E2 [20:20:04]MH_I2C_Read... [20:20:04]Read from MH i2c: E2 17 00 [20:20:04]MH_I2C_Read... [20:20:04]Read from MH i2c: E2 17 00 D6 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 03 [20:20:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [20:20:04]wFMCommunicate OK [20:20:04]requested_item fd.num is exist - process it [20:20:04]SAM_PROTO_GetFieldsCounters [20:20:04]wFMCommunicate request_size=4 [20:20:04]MH_SAM_APDU [20:20:04]CAPDU: 80 13 00 00 [20:20:04]Write to MH i2c: E2 08 00 D7 57 80 13 00 00 00 00 00 00 AA [20:20:04]Write i2c OK [20:20:04]MH_I2C_Read... [20:20:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:20:04]Read from MH i2c: E2 [20:20:04]MH_I2C_Read... [20:20:04]Read from MH i2c: E2 62 00 [20:20:04]MH_I2C_Read... [20:20:04]Read from MH i2c: E2 62 00 D7 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 BF B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 89 [20:20:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 BF B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:20:04]wFMCommunicate OK [20:20:04]SAM_PROTO_GetFieldsCounters done [20:20:04]requested_item shift.num is exist - process it [20:20:04]requested_item shift.opened is exist - process it [20:20:04]req_shift_opened [20:20:04]FM_GetShiftState [20:20:04]SAM_PROTO_GetShiftState [20:20:04]wFMCommunicate request_size=4 [20:20:04]MH_SAM_APDU [20:20:04]CAPDU: 80 13 01 00 [20:20:04]Write to MH i2c: E2 08 00 D8 57 80 13 01 00 00 00 00 00 AC [20:20:04]Write i2c OK [20:20:04]MH_I2C_Read... [20:20:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:20:04]Read from MH i2c: E2 [20:20:04]MH_I2C_Read... [20:20:04]Read from MH i2c: E2 0E 00 [20:20:04]MH_I2C_Read... [20:20:04]Read from MH i2c: E2 0E 00 D8 57 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 E2 [20:20:04]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [20:20:04]wFMCommunicate OK [20:20:04]SAM_PROTO_GetShiftState done [20:20:04]FM_GetShiftState done [20:20:04]req_shift_opened done [20:20:04]requested_item shift.open_date is exist - process it [20:20:04]req_shift_open_date [20:20:04]req_shift_open_date done [20:20:04]produce_requested_data done [20:20:04]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45247,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [20:20:04]process_action_free close_receipt [20:20:04]json_value_free [20:20:04]json_value_free done [20:20:04]process_json_proto returns [20:20:04]Send response to host [20:20:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45247,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [20:20:04]free response buf [20:20:04]execute_script done [20:20:04]execute_script returns [20:20:04]free content buf [20:20:04]Sock 7.Close socket [20:20:04]Sock 7.Thread stoped [20:20:07]OFD Sender: No OFD packet to send [20:20:12]OFD Sender: No OFD packet to send [20:20:17]OFD Sender: No OFD packet to send [20:20:22]OFD Sender: No OFD packet to send [20:20:27]OFD Sender: No OFD packet to send [20:20:32]OFD Sender: No OFD packet to send [20:20:37]OFD Sender: No OFD packet to send [20:20:42]OFD Sender: No OFD packet to send [20:20:47]OFD Sender: No OFD packet to send [20:20:52]OFD Sender: No OFD packet to send [20:20:57]OFD Sender: No OFD packet to send [20:21:02]OFD Sender: No OFD packet to send [20:21:07]OFD Sender: No OFD packet to send [20:21:12]OFD Sender: No OFD packet to send [20:21:17]OFD Sender: No OFD packet to send [20:21:22]OFD Sender: No OFD packet to send [20:21:27]OFD Sender: No OFD packet to send [20:21:29]accept exits with 9 [20:21:29]New connection [20:21:29]New thread 3067157860 created [20:21:29]Thread 3067014500 joined [20:21:29]Waiting for new connection... [20:21:29] Sock 9.Parse request [20:21:29]Sock 9.Check first char [20:21:29]Sock 9.First char is OK [20:21:29]request: POST /json_proto HTTP/1.0 [20:21:29]Method: POST [20:21:29]URL: /json_proto [20:21:29]Method is POST - this is cgi request [20:21:29]url: /json_proto [20:21:29]query_string will be loaded in cgi processing [20:21:29]execute_cgi json_proto POST (null) [20:21:29]execute_cgi path=json_proto method=POST [20:21:29]POST find Content-Length [20:21:29]Host: 172.17.48.198:8080 [20:21:29]Content-Length: 683 [20:21:29]Content-Type: application/json [20:21:29] [20:21:29]POST finish read [20:21:29]Found Content-Length = 683 [20:21:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106308", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 16.160, "sum" : 1000.30, "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:21:29]execute_script... [20:21: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)1106308", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 16.160, "sum" : 1000.30, "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:21:29]POST & json_proto [20:21:29]process_json_proto [20:21:29]json parsed OK: [20:21:29]protocol is kg_v1.0 [20:21:29]action value=close_receipt [20:21:29]process_action close_receipt [20:21:29]cmd_close_receipt [20:21:29]MH_GetDate [20:21:29]Write to MH i2c: F0 00 00 D9 57 1F [20:21:29]Write i2c OK [20:21:29]MH_I2C_Read... [20:21:29]Read from MH i2c: F0 [20:21:29]MH_I2C_Read... [20:21:29]Read from MH i2c: F0 09 00 [20:21:29]MH_I2C_Read... [20:21:29]Read from MH i2c: F0 09 00 D9 57 00 D7 DB E4 65 CE C4 D4 65 EE [20:21:29]GetLastDocTimeStamp 1709497212 [20:21:29]current date 1709497303 [20:21:29]FM_GetShiftState [20:21:29]SAM_PROTO_GetShiftState [20:21:29]wFMCommunicate request_size=4 [20:21:29]MH_SAM_APDU [20:21:29]CAPDU: 80 13 01 00 [20:21:29]Write to MH i2c: E2 08 00 DA 57 80 13 01 00 00 00 00 00 AE [20:21:29]Write i2c OK [20:21:29]MH_I2C_Read... [20:21:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:21:29]Read from MH i2c: E2 [20:21:29]MH_I2C_Read... [20:21:29]Read from MH i2c: E2 0E 00 [20:21:29]MH_I2C_Read... [20:21:29]Read from MH i2c: E2 0E 00 DA 57 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 E4 [20:21:29]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [20:21:29]wFMCommunicate OK [20:21:29]SAM_PROTO_GetShiftState done [20:21:29]FM_GetShiftState done [20:21:29]opened in 1709425694 [20:21:29]opened+sec_in_day 1709512094 [20:21:29]quantity*price = 100030 [20:21:29]sum+1 = 100031 [20:21:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 85 03.03.2024 20:21 Смена: 331 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 ФМ: 0000000000874796 ФД: 45248 ФПД: 162172672535827 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T202143&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45248&fm=162172672535827&tin=02508201610067®Number=0000000000090572&sum=100000 [20:21:31]StoreToDocumentArchive [20:21:31]shift 331 fd 45248 [20:21:31]save to /storage/0331/doc_00045248 [20:21:31]save last doc name /storage/0331/doc_00045248 to /storage/kkm_last_doc_name [20:21:31]save OK [20:21:31]Clear old archive folders... [20:21:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:21:31]tlvbuf is 01BE8460 [20:21:31]SAM_PROTO_ClearQueue [20:21:31]wFMCommunicate request_size=4 [20:21:31]MH_SAM_APDU [20:21:31]CAPDU: 80 09 00 00 [20:21:31]Write to MH i2c: E2 08 00 E7 57 80 09 00 00 00 00 00 00 B0 [20:21:31]Write i2c OK [20:21:31]MH_I2C_Read... [20:21:31]Read from MH i2c: E2 [20:21:31]MH_I2C_Read... [20:21:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:21:31]Read from MH i2c: E2 03 00 [20:21:31]MH_I2C_Read... [20:21:31]Read from MH i2c: E2 03 00 E7 57 00 90 00 B2 [20:21:31]RAPDU: 90 00 [20:21:31]wFMCommunicate OK [20:21:31]SAM_PROTO_ClearQueue done [20:21:31]KKMCreateOFDPacket [20:21:31]OFDProtocolAddRootSTLVToBuf [20:21:31]FM_MakeSignedData [20:21:31]FM_MakeSignedData [20:21:31]SAM_PROTO_SignData [20:21:31]wFMCommunicate request_size=4 [20:21:31]MH_SAM_APDU [20:21:31]CAPDU: 80 0D 01 02 [20:21:31]Write to MH i2c: E2 08 00 E8 57 80 0D 01 02 00 00 00 00 B8 [20:21:31]Write i2c OK [20:21:31]MH_I2C_Read... [20:21:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:21:31]Read from MH i2c: E2 [20:21:31]MH_I2C_Read... [20:21:31]Read from MH i2c: E2 03 00 [20:21:31]MH_I2C_Read... [20:21:31]Read from MH i2c: E2 03 00 E8 57 00 90 00 B3 [20:21:31]RAPDU: 90 00 [20:21:31]wFMCommunicate OK [20:21:31]wFMCommunicate request_size=255 [20:21:31]MH_SAM_APDU [20:21:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 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 D7 DB E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 C0 B0 00 00 35 04 06 00 93 [20:21:31]Write to MH i2c: E2 02 01 E9 57 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 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 D7 DB E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 C0 B0 00 00 35 04 06 00 93 00 00 C0 [20:21:31]Write i2c OK [20:21:31]MH_I2C_Read... [20:21:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:21:31]Read from MH i2c: E2 [20:21:31]MH_I2C_Read... [20:21:31]Read from MH i2c: E2 03 00 [20:21:31]MH_I2C_Read... [20:21:31]Read from MH i2c: E2 03 00 E9 57 00 90 00 B4 [20:21:31]RAPDU: 90 00 [20:21:31]wFMCommunicate OK [20:21:31]wFMCommunicate request_size=10 [20:21:31]MH_SAM_APDU [20:21:31]CAPDU: 80 0D 02 02 05 7E C4 89 ED 13 [20:21:31]Write to MH i2c: E2 0D 00 EA 57 80 0D 02 02 05 00 7E C4 89 ED 13 00 00 90 [20:21:31]Write i2c OK [20:21:31]MH_I2C_Read... [20:21:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:21:31]Read from MH i2c: E2 [20:21:31]MH_I2C_Read... [20:21:31]Read from MH i2c: E2 03 00 [20:21:31]MH_I2C_Read... [20:21:31]Read from MH i2c: E2 03 00 EA 57 00 90 00 B5 [20:21:31]RAPDU: 90 00 [20:21:31]wFMCommunicate OK [20:21:31]wFMCommunicate request_size=4 [20:21:31]MH_SAM_APDU [20:21:31]CAPDU: 80 0D 03 02 [20:21:31]Write to MH i2c: E2 08 00 EB 57 80 0D 03 02 00 00 00 00 BD [20:21:31]Write i2c OK [20:21:31]MH_I2C_Read... [20:21:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:21:31]Read from MH i2c: E2 [20:21:31]MH_I2C_Read... [20:21:31]Read from MH i2c: E2 0B 00 [20:21:31]MH_I2C_Read... [20:21:31]Read from MH i2c: E2 0B 00 EB 57 00 B5 D1 CC A3 A8 12 B1 BB 90 00 D9 [20:21:31]RAPDU: B5 D1 CC A3 A8 12 B1 BB 90 00 [20:21:31]wFMCommunicate OK [20:21:31]SAM_PROTO_SignData done [20:21:31]FM_MakeSignedData done [20:21:31]CreateOFDProtocolMessage [20:21:31]wFMCommunicate request_size=4 [20:21:31]MH_SAM_APDU [20:21:31]CAPDU: 80 11 00 00 [20:21:31]Write to MH i2c: E2 08 00 EC 57 80 11 00 00 00 00 00 00 BD [20:21:31]Write i2c OK [20:21:31]MH_I2C_Read... [20:21:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:21:31]Read from MH i2c: E2 [20:21:31]MH_I2C_Read... [20:21:31]Read from MH i2c: E2 17 00 [20:21:31]MH_I2C_Read... [20:21:31]Read from MH i2c: E2 17 00 EC 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 19 [20:21:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [20:21:31]wFMCommunicate OK [20:21:31]CreateOFDProtocolMessage done [20:21:31]OFDSenderStorePacket 45248 [20:21:31]StoreOFDPacket docnum=45248 [20:21:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0F 01 00 00 03 1E 07 01 5A 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 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 D7 DB E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 C0 B0 00 00 35 04 06 00 93 7E C4 89 ED 13 B5 D1 CC A3 A8 12 B1 BB [20:21:31]CheckFolder [20:21:31]dirname=/storage/ofd_packets [20:21:31]CheckFolder done [20:21:31]ProducePacketName [20:21:31]name=ofd_packets/00045248 [20:21:31]NVStorageSaveData ofd_packets/00045248 [20:21:31]File name is /storage/ofd_packets/00045248 [20:21:31]Write 301 bytes [20:21:31]NVStorageSaveData done [20:21:31]OFDSenderStorePacket done [20:21:31]KKMCreateOFDPacket done [20:21:31]NVStorageSaveData kkm_last_timestamp [20:21:31]File name is /storage/kkm_last_timestamp [20:21:31]Write 4 bytes [20:21:31]NVStorageSaveData done [20:21:31]ExternCall_PrintAddStr [20:21:31]wPrintStart [20:21:31]Write to MH i2c: 01 00 00 ED 57 44 [20:21:31]Write i2c OK [20:21:31]MH_I2C_Read... [20:21:31]Read from MH i2c: 01 [20:21:31]MH_I2C_Read... [20:21:31]Read from MH i2c: 01 07 00 [20:21:31]MH_I2C_Read... [20:21:31]Read from MH i2c: 01 07 00 ED 57 00 00 00 00 00 FF 0F 59 [20:21:31]RasterBufferAndPrint [20:21:31]line Счет N : (1)1106308 [20:21:31]line ИНН: 02508201610067 [20:21:31]line Контрольно-Кассовый Чек [20:21:31]line ПРОДАЖА [20:21:31]line ТРК (МРК, ГНК) : 32 [20:21:31]line Товар: 2710124130 [20:21:31]line Аи-92-К-5 [20:21:31]line 16.160 * 61.90 [20:21:31]line = 1000.30 [20:21:31]line НДС 12% НСП 1% [20:21:31]line > о реализуемом товаре [20:21:31]line ОКРУГЛЕНИЕ: -0.30 [20:21:31]line ИТОГО: 1000.00 [20:21:31]line Внесено: 1000.00 [20:21:31]line СДАЧА: 0.00 [20:21:31]line НСП 1% : 8.85 [20:21:31]line НДС 12% : 106.23 [20:21:31]line Наличными: 1000.00 [20:21:31]line Безнал.: 0.00 [20:21:31]line Место: АЗС № 25 "Партнер Нефть" [20:21:31]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [20:21:31]line СНО: Общий режим [20:21:31]line Чек 85 03.03.2024 20:21 [20:21:31]line Смена: 331 ФФД: 1.0 [20:21:31]line ЗНМ: 0300000013 [20:21:31]line РНМ: 0000000000090572 [20:21:31]line Версия ККМ: 001 [20:21:31]line ФМ: 0000000000874796 [20:21:31]line ФД: 45248 [20:21:31]line ФПД: 162172672535827 [20:21:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T202143&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45248&fm=162172672535827&tin=02508201610067®Number=0000000000090572&sum=100000 [20:21:31]OFD Sender: Processing packet 45248 [packets to send 17, broken 16] [20:21:31]ProducePacketName [20:21:31]name=ofd_packets/00045248 [20:21:31]OFD Sender: To server: pG, [20:21:31]CommunicateWithHost lk.salyk.kg:30040 [20:21:31]ConnectInit lk.salyk.kg [20:21:31]written 0, free lines is 4095 [20:21:31]Connected sock=10 [20:21:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0F 01 00 00 03 1E 07 01 5A 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 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 D7 DB E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 C0 B0 00 00 35 04 06 00 93 7E C4 89 ED 13 B5 D1 CC A3 A8 12 B1 BB [20:21:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 E3 73 47 00 39 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 34 37 39 36 10 04 04 00 C0 B0 00 00 F4 03 04 00 9B 87 E4 65 B6 04 01 00 00 DE BD B9 E8 E5 D0 0C 28 [20:21:32]CommunicateWithHost err = 0 [20:21:32]CheckOFDResponse [20:21:32]1017 (14) - 77093643461234 [20:21:32]1041 (16) - 0000000000874796 [20:21:32]1040 (4) - 45248 [20:21:32]1012 (4) - 03.03.2024 14:22 [20:21:32]1206 (1) - 0 [20:21:32]OFD Sender: Remove packet 45248 [20:21:32]ProducePacketName [20:21:32]name=ofd_packets/00045248 [20:21:32]NVStorageDeleteData [20:21:32]Write to MH i2c: 01 00 00 18 58 70 [20:21:32]Write i2c OK [20:21:32]MH_I2C_Read... [20:21:32]Read from MH i2c: 01 [20:21:32]MH_I2C_Read... [20:21:32]Read from MH i2c: 01 07 00 [20:21:32]MH_I2C_Read... [20:21:32]Read from MH i2c: 01 07 00 18 58 00 00 00 00 00 E3 0C 66 [20:21:32]RasterBufferAndPrint [20:21:32]line [20:21:32]line [20:21:32]line [20:21:32]line [20:21:32]line [20:21:32]written 0, free lines is 3308 [20:21:32]MH_Cut [20:21:32]Write to MH i2c: D1 01 00 1F 58 01 49 [20:21:32]Write i2c OK [20:21:32]MH_I2C_Read... [20:21:32]Read from MH i2c: D1 [20:21:32]MH_I2C_Read... [20:21:32]Read from MH i2c: D1 01 00 [20:21:32]MH_I2C_Read... [20:21:32]Read from MH i2c: D1 01 00 1F 58 00 48 [20:21:32]Write to MH i2c: 01 00 00 20 58 78 [20:21:32]Write i2c OK [20:21:32]MH_I2C_Read... [20:21:32]OFD Sender: No OFD packet to send [20:21:33]*** Cut start [20:21:33]*** Purtial cut [20:21:33]*** Stage 1: CUTSNS_PIN = 1 [20:21:35]Read from MH i2c: 01 [20:21:35]MH_I2C_Read... [20:21:35]*** Stop cut motor [20:21:35]*** Cut end [20:21:35]Read from MH i2c: 01 07 00 [20:21:35]MH_I2C_Read... [20:21:35]Read from MH i2c: 01 07 00 20 58 00 00 00 00 00 FF 0F 8D [20:21:35]process_action close_receipt done [20:21:35]requested_data is exist [20:21:35]produce_requested_data [20:21:35]requested_item fm.sn is exist - process it [20:21:35]wFMCommunicate request_size=4 [20:21:35]MH_SAM_APDU [20:21:35]CAPDU: 80 11 00 00 [20:21:35]Write to MH i2c: E2 08 00 21 58 80 11 00 00 00 00 00 00 F3 [20:21:35]Write i2c OK [20:21:35]MH_I2C_Read... [20:21:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:21:35]Read from MH i2c: E2 [20:21:35]MH_I2C_Read... [20:21:35]Read from MH i2c: E2 17 00 [20:21:35]MH_I2C_Read... [20:21:35]Read from MH i2c: E2 17 00 21 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 4F [20:21:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [20:21:35]wFMCommunicate OK [20:21:35]requested_item fd.num is exist - process it [20:21:35]SAM_PROTO_GetFieldsCounters [20:21:35]wFMCommunicate request_size=4 [20:21:35]MH_SAM_APDU [20:21:35]CAPDU: 80 13 00 00 [20:21:35]Write to MH i2c: E2 08 00 22 58 80 13 00 00 00 00 00 00 F6 [20:21:35]Write i2c OK [20:21:35]MH_I2C_Read... [20:21:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:21:35]Read from MH i2c: E2 [20:21:35]MH_I2C_Read... [20:21:35]Read from MH i2c: E2 62 00 [20:21:35]MH_I2C_Read... [20:21:35]Read from MH i2c: E2 62 00 22 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 C0 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 D9 [20:21:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 C0 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:21:35]wFMCommunicate OK [20:21:35]SAM_PROTO_GetFieldsCounters done [20:21:35]requested_item shift.num is exist - process it [20:21:35]requested_item shift.opened is exist - process it [20:21:35]req_shift_opened [20:21:35]FM_GetShiftState [20:21:35]SAM_PROTO_GetShiftState [20:21:35]wFMCommunicate request_size=4 [20:21:35]MH_SAM_APDU [20:21:35]CAPDU: 80 13 01 00 [20:21:35]Write to MH i2c: E2 08 00 23 58 80 13 01 00 00 00 00 00 F8 [20:21:35]Write i2c OK [20:21:35]MH_I2C_Read... [20:21:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:21:35]Read from MH i2c: E2 [20:21:35]MH_I2C_Read... [20:21:35]Read from MH i2c: E2 0E 00 [20:21:35]MH_I2C_Read... [20:21:35]Read from MH i2c: E2 0E 00 23 58 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 2E [20:21:35]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [20:21:35]wFMCommunicate OK [20:21:35]SAM_PROTO_GetShiftState done [20:21:35]FM_GetShiftState done [20:21:35]req_shift_opened done [20:21:35]requested_item shift.open_date is exist - process it [20:21:35]req_shift_open_date [20:21:35]req_shift_open_date done [20:21:35]produce_requested_data done [20:21:35]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45248,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [20:21:35]process_action_free close_receipt [20:21:35]json_value_free [20:21:35]json_value_free done [20:21:35]process_json_proto returns [20:21:35]Send response to host [20:21:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45248,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [20:21:35]free response buf [20:21:35]execute_script done [20:21:35]execute_script returns [20:21:35]free content buf [20:21:35]Sock 9.Close socket [20:21:35]Sock 9.Thread stoped [20:21:37]OFD Sender: No OFD packet to send [20:21:42]OFD Sender: No OFD packet to send [20:21:47]OFD Sender: No OFD packet to send [20:21:52]OFD Sender: No OFD packet to send [20:21:57]OFD Sender: No OFD packet to send [20:22:02]OFD Sender: No OFD packet to send [20:22:07]OFD Sender: No OFD packet to send [20:22:12]OFD Sender: No OFD packet to send [20:22:17]OFD Sender: No OFD packet to send [20:22:22]OFD Sender: No OFD packet to send [20:22:27]OFD Sender: No OFD packet to send [20:22:32]OFD Sender: No OFD packet to send [20:22:37]OFD Sender: No OFD packet to send [20:22:42]OFD Sender: No OFD packet to send [20:22:47]OFD Sender: No OFD packet to send [20:22:52]OFD Sender: No OFD packet to send [20:22:57]OFD Sender: No OFD packet to send [20:23:02]OFD Sender: No OFD packet to send [20:23:07]OFD Sender: No OFD packet to send [20:23:12]OFD Sender: No OFD packet to send [20:23:17]OFD Sender: No OFD packet to send [20:23:22]OFD Sender: No OFD packet to send [20:23:27]OFD Sender: No OFD packet to send [20:23:32]OFD Sender: No OFD packet to send [20:23:37]OFD Sender: No OFD packet to send [20:23:42]OFD Sender: No OFD packet to send [20:23:47]OFD Sender: No OFD packet to send [20:23:52]OFD Sender: No OFD packet to send [20:23:57]OFD Sender: No OFD packet to send [20:24:02]OFD Sender: No OFD packet to send [20:24:07]OFD Sender: No OFD packet to send [20:24:12]OFD Sender: No OFD packet to send [20:24:17]OFD Sender: No OFD packet to send [20:24:22]OFD Sender: No OFD packet to send [20:24:27]OFD Sender: No OFD packet to send [20:24:32]OFD Sender: No OFD packet to send [20:24:37]OFD Sender: No OFD packet to send [20:24:42]OFD Sender: No OFD packet to send [20:24:47]OFD Sender: No OFD packet to send [20:24:52]OFD Sender: No OFD packet to send [20:24:57]OFD Sender: No OFD packet to send [20:25:02]OFD Sender: No OFD packet to send [20:25:07]OFD Sender: No OFD packet to send [20:25:12]OFD Sender: No OFD packet to send [20:25:17]OFD Sender: No OFD packet to send [20:25:22]OFD Sender: No OFD packet to send [20:25:27]OFD Sender: No OFD packet to send [20:25:32]OFD Sender: No OFD packet to send [20:25:37]OFD Sender: No OFD packet to send [20:25:42]OFD Sender: No OFD packet to send [20:25:47]OFD Sender: No OFD packet to send [20:25:52]OFD Sender: No OFD packet to send [20:25:57]OFD Sender: No OFD packet to send [20:26:02]OFD Sender: No OFD packet to send [20:26:07]OFD Sender: No OFD packet to send [20:26:12]OFD Sender: No OFD packet to send [20:26:17]OFD Sender: No OFD packet to send [20:26:22]OFD Sender: No OFD packet to send [20:26:27]OFD Sender: No OFD packet to send [20:26:32]OFD Sender: No OFD packet to send [20:26:37]OFD Sender: No OFD packet to send [20:26:42]OFD Sender: No OFD packet to send [20:26:47]OFD Sender: No OFD packet to send [20:26:52]OFD Sender: No OFD packet to send [20:26:57]OFD Sender: No OFD packet to send [20:27:02]OFD Sender: No OFD packet to send [20:27:07]OFD Sender: No OFD packet to send [20:27:12]OFD Sender: No OFD packet to send [20:27:17]OFD Sender: No OFD packet to send [20:27:22]OFD Sender: No OFD packet to send [20:27:27]OFD Sender: No OFD packet to send [20:27:32]OFD Sender: No OFD packet to send [20:27:37]OFD Sender: No OFD packet to send [20:27:42]OFD Sender: No OFD packet to send [20:27:47]OFD Sender: No OFD packet to send [20:27:52]OFD Sender: No OFD packet to send [20:27:57]OFD Sender: No OFD packet to send [20:28:02]OFD Sender: No OFD packet to send [20:28:07]OFD Sender: No OFD packet to send [20:28:12]OFD Sender: No OFD packet to send [20:28:17]OFD Sender: No OFD packet to send [20:28:22]OFD Sender: No OFD packet to send [20:28:28]OFD Sender: No OFD packet to send [20:28:33]OFD Sender: No OFD packet to send [20:28:38]OFD Sender: No OFD packet to send [20:28:43]OFD Sender: No OFD packet to send [20:28:48]OFD Sender: No OFD packet to send [20:28:53]OFD Sender: No OFD packet to send [20:28:58]OFD Sender: No OFD packet to send [20:29:03]OFD Sender: No OFD packet to send [20:29:08]OFD Sender: No OFD packet to send [20:29:13]OFD Sender: No OFD packet to send [20:29:18]OFD Sender: No OFD packet to send [20:29:23]OFD Sender: No OFD packet to send [20:29:28]OFD Sender: No OFD packet to send [20:29:33]OFD Sender: No OFD packet to send [20:29:38]OFD Sender: No OFD packet to send [20:29:43]OFD Sender: No OFD packet to send [20:29:48]OFD Sender: No OFD packet to send [20:29:53]OFD Sender: No OFD packet to send [20:29:58]OFD Sender: No OFD packet to send [20:30:03]OFD Sender: No OFD packet to send [20:30:08]OFD Sender: No OFD packet to send [20:30:13]OFD Sender: No OFD packet to send [20:30:18]OFD Sender: No OFD packet to send [20:30:23]OFD Sender: No OFD packet to send [20:30:28]OFD Sender: No OFD packet to send [20:30:33]OFD Sender: No OFD packet to send [20:30:38]OFD Sender: No OFD packet to send [20:30:43]OFD Sender: No OFD packet to send [20:30:48]OFD Sender: No OFD packet to send [20:30:53]OFD Sender: No OFD packet to send [20:30:58]OFD Sender: No OFD packet to send [20:31:03]OFD Sender: No OFD packet to send [20:31:08]OFD Sender: No OFD packet to send [20:31:13]OFD Sender: No OFD packet to send [20:31:18]OFD Sender: No OFD packet to send [20:31:23]OFD Sender: No OFD packet to send [20:31:28]OFD Sender: No OFD packet to send [20:31:33]OFD Sender: No OFD packet to send [20:31:38]OFD Sender: No OFD packet to send [20:31:43]OFD Sender: No OFD packet to send [20:31:48]OFD Sender: No OFD packet to send [20:31:51]accept exits with 7 [20:31:51]New connection [20:31:51]New thread 3067014500 created [20:31:51]Thread 3067157860 joined [20:31:51]Waiting for new connection... [20:31:51] Sock 7.Parse request [20:31:51]Sock 7.Check first char [20:31:51]Sock 7.First char is OK [20:31:51]request: POST /json_proto HTTP/1.0 [20:31:51]Method: POST [20:31:51]URL: /json_proto [20:31:51]Method is POST - this is cgi request [20:31:51]url: /json_proto [20:31:51]query_string will be loaded in cgi processing [20:31:51]execute_cgi json_proto POST (null) [20:31:51]execute_cgi path=json_proto method=POST [20:31:51]POST find Content-Length [20:31:51]Host: 172.17.48.198:8080 [20:31:51]Content-Length: 817 [20:31:51]Content-Type: application/json [20:31:51] [20:31:51]POST finish read [20:31:51]Found Content-Length = 817 [20:31:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106316", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.080, "sum" : 500.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:31:51]execute_script... [20:31:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106316", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.080, "sum" : 500.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:31:51]POST & json_proto [20:31:51]process_json_proto [20:31:51]json parsed OK: [20:31:51]protocol is kg_v1.0 [20:31:51]action value=close_receipt [20:31:51]process_action close_receipt [20:31:51]cmd_close_receipt [20:31:51]MH_GetDate [20:31:51]Write to MH i2c: F0 00 00 24 58 6B [20:31:51]Write i2c OK [20:31:51]MH_I2C_Read... [20:31:51]Read from MH i2c: F0 [20:31:51]MH_I2C_Read... [20:31:51]Read from MH i2c: F0 09 00 [20:31:51]MH_I2C_Read... [20:31:51]Read from MH i2c: F0 09 00 24 58 00 45 DE E4 65 CE C4 D4 65 AB [20:31:51]GetLastDocTimeStamp 1709497303 [20:31:51]current date 1709497925 [20:31:51]FM_GetShiftState [20:31:51]SAM_PROTO_GetShiftState [20:31:51]wFMCommunicate request_size=4 [20:31:51]MH_SAM_APDU [20:31:51]CAPDU: 80 13 01 00 [20:31:51]Write to MH i2c: E2 08 00 25 58 80 13 01 00 00 00 00 00 FA [20:31:51]Write i2c OK [20:31:51]MH_I2C_Read... [20:31:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:31:51]Read from MH i2c: E2 [20:31:51]MH_I2C_Read... [20:31:51]Read from MH i2c: E2 0E 00 [20:31:51]MH_I2C_Read... [20:31:51]Read from MH i2c: E2 0E 00 25 58 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 30 [20:31:51]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [20:31:51]wFMCommunicate OK [20:31:51]SAM_PROTO_GetShiftState done [20:31:51]FM_GetShiftState done [20:31:51]opened in 1709425694 [20:31:51]opened+sec_in_day 1709512094 [20:31:51]quantity*price = 50015 [20:31:51]sum+1 = 50016 [20:31:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.15 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.15 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 86 03.03.2024 20:32 Смена: 331 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874796 ФД: 45249 ФПД: 59443164082442 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T203205&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45249&fm=59443164082442&tin=02508201610067®Number=0000000000090572&sum=50015 [20:31:52]StoreToDocumentArchive [20:31:52]shift 331 fd 45249 [20:31:52]save to /storage/0331/doc_00045249 [20:31:52]save last doc name /storage/0331/doc_00045249 to /storage/kkm_last_doc_name [20:31:52]save OK [20:31:52]Clear old archive folders... [20:31:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:31:52]tlvbuf is 01AF9F20 [20:31:52]SAM_PROTO_ClearQueue [20:31:52]wFMCommunicate request_size=4 [20:31:52]MH_SAM_APDU [20:31:52]CAPDU: 80 09 00 00 [20:31:52]Write to MH i2c: E2 08 00 32 58 80 09 00 00 00 00 00 00 FC [20:31:52]Write i2c OK [20:31:52]MH_I2C_Read... [20:31:53]Read from MH i2c: E2 [20:31:53]MH_I2C_Read... [20:31:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:31:53]Read from MH i2c: E2 03 00 [20:31:53]MH_I2C_Read... [20:31:53]Read from MH i2c: E2 03 00 32 58 00 90 00 FE [20:31:53]RAPDU: 90 00 [20:31:53]wFMCommunicate OK [20:31:53]SAM_PROTO_ClearQueue done [20:31:53]KKMCreateOFDPacket [20:31:53]OFDProtocolAddRootSTLVToBuf [20:31:53]FM_MakeSignedData [20:31:53]FM_MakeSignedData [20:31:53]SAM_PROTO_SignData [20:31:53]wFMCommunicate request_size=4 [20:31:53]MH_SAM_APDU [20:31:53]CAPDU: 80 0D 01 02 [20:31:53]Write to MH i2c: E2 08 00 33 58 80 0D 01 02 00 00 00 00 04 [20:31:53]Write i2c OK [20:31:53]MH_I2C_Read... [20:31:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:31:53]Read from MH i2c: E2 [20:31:53]MH_I2C_Read... [20:31:53]Read from MH i2c: E2 03 00 [20:31:53]MH_I2C_Read... [20:31:53]Read from MH i2c: E2 03 00 33 58 00 90 00 FF [20:31:53]RAPDU: 90 00 [20:31:53]wFMCommunicate OK [20:31:53]wFMCommunicate request_size=255 [20:31:53]MH_SAM_APDU [20:31:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 45 DE E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 C1 B0 00 00 35 04 06 00 36 [20:31:53]Write to MH i2c: E2 02 01 34 58 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 45 DE E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 C1 B0 00 00 35 04 06 00 36 00 00 B4 [20:31:53]Write i2c OK [20:31:53]MH_I2C_Read... [20:31:53]OFD Sender: No OFD packet to send [20:31:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:31:53]Read from MH i2c: E2 [20:31:53]MH_I2C_Read... [20:31:53]Read from MH i2c: E2 03 00 [20:31:53]MH_I2C_Read... [20:31:53]Read from MH i2c: E2 03 00 34 58 00 90 00 00 [20:31:53]RAPDU: 90 00 [20:31:53]wFMCommunicate OK [20:31:53]wFMCommunicate request_size=10 [20:31:53]MH_SAM_APDU [20:31:53]CAPDU: 80 0D 02 02 05 10 30 AD F1 0A [20:31:53]Write to MH i2c: E2 0D 00 35 58 80 0D 02 02 05 00 10 30 AD F1 0A 00 00 F9 [20:31:53]Write i2c OK [20:31:53]MH_I2C_Read... [20:31:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:31:53]Read from MH i2c: E2 [20:31:53]MH_I2C_Read... [20:31:53]Read from MH i2c: E2 03 00 [20:31:53]MH_I2C_Read... [20:31:53]Read from MH i2c: E2 03 00 35 58 00 90 00 01 [20:31:53]RAPDU: 90 00 [20:31:53]wFMCommunicate OK [20:31:53]wFMCommunicate request_size=4 [20:31:53]MH_SAM_APDU [20:31:53]CAPDU: 80 0D 03 02 [20:31:53]Write to MH i2c: E2 08 00 36 58 80 0D 03 02 00 00 00 00 09 [20:31:53]Write i2c OK [20:31:53]MH_I2C_Read... [20:31:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:31:53]Read from MH i2c: E2 [20:31:53]MH_I2C_Read... [20:31:53]Read from MH i2c: E2 0B 00 [20:31:53]MH_I2C_Read... [20:31:53]Read from MH i2c: E2 0B 00 36 58 00 D8 F2 C7 37 06 9E 7E FE 90 00 F2 [20:31:53]RAPDU: D8 F2 C7 37 06 9E 7E FE 90 00 [20:31:53]wFMCommunicate OK [20:31:53]SAM_PROTO_SignData done [20:31:53]FM_MakeSignedData done [20:31:53]CreateOFDProtocolMessage [20:31:53]wFMCommunicate request_size=4 [20:31:53]MH_SAM_APDU [20:31:53]CAPDU: 80 11 00 00 [20:31:53]Write to MH i2c: E2 08 00 37 58 80 11 00 00 00 00 00 00 09 [20:31:53]Write i2c OK [20:31:53]MH_I2C_Read... [20:31:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:31:53]Read from MH i2c: E2 [20:31:53]MH_I2C_Read... [20:31:53]Read from MH i2c: E2 17 00 [20:31:53]MH_I2C_Read... [20:31:53]Read from MH i2c: E2 17 00 37 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 65 [20:31:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [20:31:53]wFMCommunicate OK [20:31:53]CreateOFDProtocolMessage done [20:31:53]OFDSenderStorePacket 45249 [20:31:53]StoreOFDPacket docnum=45249 [20:31:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0F 01 00 00 A0 69 07 01 77 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 45 DE E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 C1 B0 00 00 35 04 06 00 36 10 30 AD F1 0A D8 F2 C7 37 06 9E 7E FE [20:31:53]CheckFolder [20:31:53]dirname=/storage/ofd_packets [20:31:53]CheckFolder done [20:31:53]ProducePacketName [20:31:53]name=ofd_packets/00045249 [20:31:53]NVStorageSaveData ofd_packets/00045249 [20:31:53]File name is /storage/ofd_packets/00045249 [20:31:53]Write 301 bytes [20:31:53]NVStorageSaveData done [20:31:53]OFDSenderStorePacket done [20:31:53]KKMCreateOFDPacket done [20:31:53]NVStorageSaveData kkm_last_timestamp [20:31:53]File name is /storage/kkm_last_timestamp [20:31:53]Write 4 bytes [20:31:53]NVStorageSaveData done [20:31:53]ExternCall_PrintAddStr [20:31:53]wPrintStart [20:31:53]Write to MH i2c: 01 00 00 38 58 90 [20:31:53]Write i2c OK [20:31:53]MH_I2C_Read... [20:31:53]Read from MH i2c: 01 [20:31:53]MH_I2C_Read... [20:31:53]Read from MH i2c: 01 07 00 [20:31:53]MH_I2C_Read... [20:31:53]Read from MH i2c: 01 07 00 38 58 00 00 00 00 00 FF 0F A5 [20:31:53]RasterBufferAndPrint [20:31:53]line Счет N : (1)1106316 [20:31:53]line ИНН: 02508201610067 [20:31:53]line Контрольно-Кассовый Чек [20:31:53]line ПРОДАЖА [20:31:53]line ТРК (МРК, ГНК) : 32 [20:31:53]line Товар: 2710124130 [20:31:53]line Аи-92-К-5 [20:31:53]line 8.080 * 61.90 [20:31:53]line = 500.15 [20:31:53]line НДС 12% НСП 1% [20:31:53]line > о реализуемом товаре [20:31:53]line ИТОГО: 500.15 [20:31:53]line НСП 1% : 4.43 [20:31:53]line НДС 12% : 53.11 [20:31:53]line Наличными: 0.00 [20:31:53]line Безнал.: 500.15 [20:31:53]line Место: АЗС № 25 "Партнер Нефть" [20:31:53]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [20:31:53]line СНО: Общий режим [20:31:53]line Чек 86 03.03.2024 20:32 [20:31:53]line Смена: 331 ФФД: 1.0 [20:31:53]line ЗНМ: 0300000013 [20:31:53]line РНМ: 0000000000090572 [20:31:53]line Версия ККМ: 001 [20:31:53]line Платежная система: Бакай Банк [20:31:53]line ФМ: 0000000000874796 [20:31:53]line ФД: 45249 [20:31:53]line ФПД: 59443164082442 [20:31:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T203205&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45249&fm=59443164082442&tin=02508201610067®Number=0000000000090572&sum=50015 [20:31:53]OFD Sender: Processing packet 45249 [packets to send 17, broken 16] [20:31:53]ProducePacketName [20:31:53]name=ofd_packets/00045249 [20:31:53]OFD Sender: To server: pG, [20:31:53]CommunicateWithHost lk.salyk.kg:30040 [20:31:53]ConnectInit lk.salyk.kg [20:31:53]written 0, free lines is 4095 [20:31:53]Connected sock=10 [20:31:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0F 01 00 00 A0 69 07 01 77 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 45 DE E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 C1 B0 00 00 35 04 06 00 36 10 30 AD F1 0A D8 F2 C7 37 06 9E 7E FE [20:31:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 DF C2 47 00 8C 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 C1 B0 00 00 F4 03 04 00 09 8A E4 65 B6 04 01 00 00 59 BA BD 49 A8 6E 67 A2 [20:31:54]CommunicateWithHost err = 0 [20:31:54]CheckOFDResponse [20:31:54]1017 (14) - 77093643461234 [20:31:54]1041 (16) - 0000000000874796 [20:31:54]1040 (4) - 45249 [20:31:54]1012 (4) - 03.03.2024 14:32 [20:31:54]1206 (1) - 0 [20:31:54]OFD Sender: Remove packet 45249 [20:31:54]ProducePacketName [20:31:54]name=ofd_packets/00045249 [20:31:54]NVStorageDeleteData [20:31:54]Write to MH i2c: 01 00 00 62 58 BA [20:31:54]Write i2c OK [20:31:54]MH_I2C_Read... [20:31:54]Read from MH i2c: 01 [20:31:54]MH_I2C_Read... [20:31:54]Read from MH i2c: 01 07 00 [20:31:54]MH_I2C_Read... [20:31:54]Read from MH i2c: 01 07 00 62 58 00 00 00 00 00 F0 0C BD [20:31:54]RasterBufferAndPrint [20:31:54]line [20:31:54]line [20:31:54]line [20:31:54]line [20:31:54]line [20:31:54]written 0, free lines is 3318 [20:31:54]MH_Cut [20:31:54]Write to MH i2c: D1 01 00 69 58 01 93 [20:31:54]Write i2c OK [20:31:54]MH_I2C_Read... [20:31:54]Read from MH i2c: D1 [20:31:54]MH_I2C_Read... [20:31:54]Read from MH i2c: D1 01 00 [20:31:54]MH_I2C_Read... [20:31:54]Read from MH i2c: D1 01 00 69 58 00 92 [20:31:54]Write to MH i2c: 01 00 00 6A 58 C2 [20:31:54]Write i2c OK [20:31:54]MH_I2C_Read... [20:31:54]OFD Sender: No OFD packet to send [20:31:54]*** Cut start [20:31:54]*** Purtial cut [20:31:54]*** Stage 1: CUTSNS_PIN = 1 [20:31:56]Read from MH i2c: 01 [20:31:57]MH_I2C_Read... [20:31:57]*** Stop cut motor [20:31:57]*** Cut end [20:31:57]Read from MH i2c: 01 07 00 [20:31:57]MH_I2C_Read... [20:31:57]Read from MH i2c: 01 07 00 6A 58 00 00 00 00 00 FF 0F D7 [20:31:57]process_action close_receipt done [20:31:57]requested_data is exist [20:31:57]produce_requested_data [20:31:57]requested_item fm.sn is exist - process it [20:31:57]wFMCommunicate request_size=4 [20:31:57]MH_SAM_APDU [20:31:57]CAPDU: 80 11 00 00 [20:31:57]Write to MH i2c: E2 08 00 6B 58 80 11 00 00 00 00 00 00 3D [20:31:57]Write i2c OK [20:31:57]MH_I2C_Read... [20:31:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:31:57]Read from MH i2c: E2 [20:31:57]MH_I2C_Read... [20:31:57]Read from MH i2c: E2 17 00 [20:31:57]MH_I2C_Read... [20:31:57]Read from MH i2c: E2 17 00 6B 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 99 [20:31:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [20:31:57]wFMCommunicate OK [20:31:57]requested_item fd.num is exist - process it [20:31:57]SAM_PROTO_GetFieldsCounters [20:31:57]wFMCommunicate request_size=4 [20:31:57]MH_SAM_APDU [20:31:57]CAPDU: 80 13 00 00 [20:31:57]Write to MH i2c: E2 08 00 6C 58 80 13 00 00 00 00 00 00 40 [20:31:57]Write i2c OK [20:31:57]MH_I2C_Read... [20:31:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:31:57]Read from MH i2c: E2 [20:31:57]MH_I2C_Read... [20:31:57]Read from MH i2c: E2 62 00 [20:31:57]MH_I2C_Read... [20:31:57]Read from MH i2c: E2 62 00 6C 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 C1 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 27 [20:31:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 C1 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:31:57]wFMCommunicate OK [20:31:57]SAM_PROTO_GetFieldsCounters done [20:31:57]requested_item shift.num is exist - process it [20:31:57]requested_item shift.opened is exist - process it [20:31:57]req_shift_opened [20:31:57]FM_GetShiftState [20:31:57]SAM_PROTO_GetShiftState [20:31:57]wFMCommunicate request_size=4 [20:31:57]MH_SAM_APDU [20:31:57]CAPDU: 80 13 01 00 [20:31:57]Write to MH i2c: E2 08 00 6D 58 80 13 01 00 00 00 00 00 42 [20:31:57]Write i2c OK [20:31:57]MH_I2C_Read... [20:31:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:31:57]Read from MH i2c: E2 [20:31:57]MH_I2C_Read... [20:31:57]Read from MH i2c: E2 0E 00 [20:31:57]MH_I2C_Read... [20:31:57]Read from MH i2c: E2 0E 00 6D 58 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 78 [20:31:57]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [20:31:57]wFMCommunicate OK [20:31:57]SAM_PROTO_GetShiftState done [20:31:57]FM_GetShiftState done [20:31:57]req_shift_opened done [20:31:57]requested_item shift.open_date is exist - process it [20:31:57]req_shift_open_date [20:31:57]req_shift_open_date done [20:31:57]produce_requested_data done [20:31:57]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45249,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [20:31:57]process_action_free close_receipt [20:31:57]json_value_free [20:31:57]json_value_free done [20:31:57]process_json_proto returns [20:31:57]Send response to host [20:31:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45249,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [20:31:57]free response buf [20:31:57]execute_script done [20:31:57]execute_script returns [20:31:57]free content buf [20:31:57]Sock 7.Close socket [20:31:57]Sock 7.Thread stoped [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:42]accept exits with 9 [20:34:42]New connection [20:34:42]New thread 3067157860 created [20:34:42]Thread 3067014500 joined [20:34:42]Waiting for new connection... [20:34:42] Sock 9.Parse request [20:34:42]Sock 9.Check first char [20:34:42]Sock 9.First char is OK [20:34:42]request: POST /json_proto HTTP/1.0 [20:34:42]Method: POST [20:34:42]URL: /json_proto [20:34:42]Method is POST - this is cgi request [20:34:42]url: /json_proto [20:34:42]query_string will be loaded in cgi processing [20:34:42]execute_cgi json_proto POST (null) [20:34:42]execute_cgi path=json_proto method=POST [20:34:42]POST find Content-Length [20:34:42]Host: 172.17.48.198:8080 [20:34:42]Content-Length: 925 [20:34:42]Content-Type: application/json [20:34:42] [20:34:42]POST finish read [20:34:42]Found Content-Length = 925 [20:34:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184210", "tax_sys" : 0, "items" : [ { "code": "4607014827669", "name": "\u041B\u044E\u0431\u0438\u043C\u044B\u0439 \u043D\u0430\u043F\u0438\u0442\u043E\u043A \u0422\u0440\u043E\u043F\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043C\u0438\u043A\u0441 200\u043C\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:34:42]execute_script... [20:34:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184210", "tax_sys" : 0, "items" : [ { "code": "4607014827669", "name": "\u041B\u044E\u0431\u0438\u043C\u044B\u0439 \u043D\u0430\u043F\u0438\u0442\u043E\u043A \u0422\u0440\u043E\u043F\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043C\u0438\u043A\u0441 200\u043C\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:34:42]POST & json_proto [20:34:42]process_json_proto [20:34:42]json parsed OK: [20:34:42]protocol is kg_v1.0 [20:34:42]action value=close_receipt [20:34:42]process_action close_receipt [20:34:42]cmd_close_receipt [20:34:42]MH_GetDate [20:34:42]Write to MH i2c: F0 00 00 6E 58 B5 [20:34:42]Write i2c OK [20:34:42]MH_I2C_Read... [20:34:42]Read from MH i2c: F0 [20:34:42]MH_I2C_Read... [20:34:42]Read from MH i2c: F0 09 00 [20:34:42]MH_I2C_Read... [20:34:42]Read from MH i2c: F0 09 00 6E 58 00 EF DE E4 65 CE C4 D4 65 9F [20:34:42]GetLastDocTimeStamp 1709497925 [20:34:42]current date 1709498095 [20:34:42]FM_GetShiftState [20:34:42]SAM_PROTO_GetShiftState [20:34:42]wFMCommunicate request_size=4 [20:34:42]MH_SAM_APDU [20:34:42]CAPDU: 80 13 01 00 [20:34:42]Write to MH i2c: E2 08 00 6F 58 80 13 01 00 00 00 00 00 44 [20:34:42]Write i2c OK [20:34:42]MH_I2C_Read... [20:34:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:34:42]Read from MH i2c: E2 [20:34:42]MH_I2C_Read... [20:34:42]Read from MH i2c: E2 0E 00 [20:34:42]MH_I2C_Read... [20:34:42]Read from MH i2c: E2 0E 00 6F 58 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 7A [20:34:42]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [20:34:42]wFMCommunicate OK [20:34:42]SAM_PROTO_GetShiftState done [20:34:42]FM_GetShiftState done [20:34:42]opened in 1709425694 [20:34:42]opened+sec_in_day 1709512094 [20:34:42]quantity*price = 4000 [20:34:42]sum+1 = 4001 [20:34:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 40.00 НСП 1% : 0.35 НДС 12% : 4.25 Наличными: 0.00 Безнал.: 40.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 87 03.03.2024 20:34 Смена: 331 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874796 ФД: 45250 ФПД: 49577551958700 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T203455&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45250&fm=49577551958700&tin=02508201610067®Number=0000000000090572&sum=4000 0 [20:34:43]StoreToDocumentArchive [20:34:43]shift 331 fd 45250 [20:34:43]save to /storage/0331/doc_00045250 [20:34:43]save last doc name /storage/0331/doc_00045250 to /storage/kkm_last_doc_name [20:34:43]save OK [20:34:43]Clear old archive folders... [20:34:43]ProcessDocumentItem done err = 0, tmpTLVsize=311 [20:34:43]tlvbuf is 01B41A70 [20:34:43]SAM_PROTO_ClearQueue [20:34:43]wFMCommunicate request_size=4 [20:34:43]MH_SAM_APDU [20:34:43]CAPDU: 80 09 00 00 [20:34:43]Write to MH i2c: E2 08 00 7C 58 80 09 00 00 00 00 00 00 46 [20:34:43]Write i2c OK [20:34:43]MH_I2C_Read... [20:34:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:34:43]Read from MH i2c: E2 [20:34:43]MH_I2C_Read... [20:34:43]Read from MH i2c: E2 03 00 [20:34:43]MH_I2C_Read... [20:34:43]Read from MH i2c: E2 03 00 7C 58 00 90 00 48 [20:34:43]RAPDU: 90 00 [20:34:43]wFMCommunicate OK [20:34:43]SAM_PROTO_ClearQueue done [20:34:43]KKMCreateOFDPacket [20:34:43]OFDProtocolAddRootSTLVToBuf [20:34:43]FM_MakeSignedData [20:34:43]FM_MakeSignedData [20:34:43]SAM_PROTO_SignData [20:34:43]wFMCommunicate request_size=4 [20:34:43]MH_SAM_APDU [20:34:43]CAPDU: 80 0D 01 02 [20:34:43]Write to MH i2c: E2 08 00 7D 58 80 0D 01 02 00 00 00 00 4E [20:34:43]Write i2c OK [20:34:43]MH_I2C_Read... [20:34:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:34:43]Read from MH i2c: E2 [20:34:43]MH_I2C_Read... [20:34:43]Read from MH i2c: E2 03 00 [20:34:43]MH_I2C_Read... [20:34:43]Read from MH i2c: E2 03 00 7D 58 00 90 00 49 [20:34:43]RAPDU: 90 00 [20:34:43]wFMCommunicate OK [20:34:43]wFMCommunicate request_size=255 [20:34:43]MH_SAM_APDU [20:34:43]CAPDU: 80 0D 02 02 FA 03 00 37 01 1E 04 01 00 01 23 04 89 00 8A 04 0D 00 34 36 30 37 30 31 34 38 32 37 36 36 39 06 04 45 00 D0 9B D1 8E D0 B1 D0 B8 D0 BC D1 8B D0 B9 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A2 D1 80 D0 BE D0 BF D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 D0 BC D0 B8 D0 BA D1 81 20 32 30 30 D0 BC D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 0F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 EF DE E4 65 0E 04 04 00 4B 01 [20:34:43]Write to MH i2c: E2 02 01 7E 58 80 0D 02 02 FA 00 03 00 37 01 1E 04 01 00 01 23 04 89 00 8A 04 0D 00 34 36 30 37 30 31 34 38 32 37 36 36 39 06 04 45 00 D0 9B D1 8E D0 B1 D0 B8 D0 BC D1 8B D0 B9 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A2 D1 80 D0 BE D0 BF D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 D0 BC D0 B8 D0 BA D1 81 20 32 30 30 D0 BC D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 0F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 EF DE E4 65 0E 04 04 00 4B 01 00 00 01 [20:34:43]Write i2c OK [20:34:43]MH_I2C_Read... [20:34:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:34:43]Read from MH i2c: E2 [20:34:43]MH_I2C_Read... [20:34:43]Read from MH i2c: E2 03 00 [20:34:43]MH_I2C_Read... [20:34:43]Read from MH i2c: E2 03 00 7E 58 00 90 00 4A [20:34:43]RAPDU: 90 00 [20:34:43]wFMCommunicate OK [20:34:43]wFMCommunicate request_size=70 [20:34:43]MH_SAM_APDU [20:34:43]CAPDU: 80 0D 02 02 41 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 C2 B0 00 00 35 04 06 00 2D 17 2C 5F 92 AC [20:34:43]Write to MH i2c: E2 49 00 7F 58 80 0D 02 02 41 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 C2 B0 00 00 35 04 06 00 2D 17 2C 5F 92 AC 00 00 EE [20:34:43]Write i2c OK [20:34:43]MH_I2C_Read... [20:34:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:34:44]Read from MH i2c: E2 [20:34:44]MH_I2C_Read... [20:34:44]Read from MH i2c: E2 03 00 [20:34:44]MH_I2C_Read... [20:34:44]Read from MH i2c: E2 03 00 7F 58 00 90 00 4B [20:34:44]RAPDU: 90 00 [20:34:44]wFMCommunicate OK [20:34:44]wFMCommunicate request_size=4 [20:34:44]MH_SAM_APDU [20:34:44]CAPDU: 80 0D 03 02 [20:34:44]Write to MH i2c: E2 08 00 80 58 80 0D 03 02 00 00 00 00 53 [20:34:44]Write i2c OK [20:34:44]MH_I2C_Read... [20:34:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:34:44]Read from MH i2c: E2 [20:34:44]MH_I2C_Read... [20:34:44]Read from MH i2c: E2 0B 00 [20:34:44]MH_I2C_Read... [20:34:44]Read from MH i2c: E2 0B 00 80 58 00 2D 81 D3 E0 78 5D 02 F4 90 00 80 [20:34:44]RAPDU: 2D 81 D3 E0 78 5D 02 F4 90 00 [20:34:44]wFMCommunicate OK [20:34:44]SAM_PROTO_SignData done [20:34:44]FM_MakeSignedData done [20:34:44]CreateOFDProtocolMessage [20:34:44]wFMCommunicate request_size=4 [20:34:44]MH_SAM_APDU [20:34:44]CAPDU: 80 11 00 00 [20:34:44]Write to MH i2c: E2 08 00 81 58 80 11 00 00 00 00 00 00 53 [20:34:44]Write i2c OK [20:34:44]MH_I2C_Read... [20:34:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:34:44]Read from MH i2c: E2 [20:34:44]MH_I2C_Read... [20:34:44]Read from MH i2c: E2 17 00 [20:34:44]MH_I2C_Read... [20:34:44]Read from MH i2c: E2 17 00 81 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 AF [20:34:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [20:34:44]wFMCommunicate OK [20:34:44]CreateOFDProtocolMessage done [20:34:44]OFDSenderStorePacket 45250 [20:34:44]StoreOFDPacket docnum=45250 [20:34:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4B 01 00 00 EB 3C 43 01 0A 1D 5A 03 01 00 03 00 37 01 1E 04 01 00 01 23 04 89 00 8A 04 0D 00 34 36 30 37 30 31 34 38 32 37 36 36 39 06 04 45 00 D0 9B D1 8E D0 B1 D0 B8 D0 BC D1 8B D0 B9 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A2 D1 80 D0 BE D0 BF D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 D0 BC D0 B8 D0 BA D1 81 20 32 30 30 D0 BC D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 0F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 EF DE E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 C2 B0 00 00 35 04 06 00 2D 17 2C 5F 92 AC 2D 81 D3 E0 78 5D 02 F4 [20:34:44]CheckFolder [20:34:44]dirname=/storage/ofd_packets [20:34:44]CheckFolder done [20:34:44]ProducePacketName [20:34:44]name=ofd_packets/00045250 [20:34:44]NVStorageSaveData ofd_packets/00045250 [20:34:44]File name is /storage/ofd_packets/00045250 [20:34:44]Write 361 bytes [20:34:44]NVStorageSaveData done [20:34:44]OFDSenderStorePacket done [20:34:44]KKMCreateOFDPacket done [20:34:44]NVStorageSaveData kkm_last_timestamp [20:34:44]File name is /storage/kkm_last_timestamp [20:34:44]Write 4 bytes [20:34:44]NVStorageSaveData done [20:34:44]ExternCall_PrintAddStr [20:34:44]wPrintStart [20:34:44]Write to MH i2c: 01 00 00 82 58 DA [20:34:44]Write i2c OK [20:34:44]MH_I2C_Read... [20:34:44]Read from MH i2c: 01 [20:34:44]MH_I2C_Read... [20:34:44]Read from MH i2c: 01 07 00 [20:34:44]MH_I2C_Read... [20:34:44]Read from MH i2c: 01 07 00 82 58 00 00 00 00 00 FF 0F EF [20:34:44]RasterBufferAndPrint [20:34:44]line Счет N : (3)184210 [20:34:44]line ИНН: 02508201610067 [20:34:44]line Контрольно-Кассовый Чек [20:34:44]line ПРОДАЖА [20:34:44]line Товар: 4607014827669 [20:34:44]line Любимый напиток Тропический микс 200мл [20:34:44]line 1.000 * 40.00 [20:34:44]line = 40.00 [20:34:44]line НДС 12% НСП 1% [20:34:44]line > о реализуемом товаре [20:34:44]line ИТОГО: 40.00 [20:34:44]line НСП 1% : 0.35 [20:34:44]line НДС 12% : 4.25 [20:34:44]line Наличными: 0.00 [20:34:44]line Безнал.: 40.00 [20:34:44]line Место: АЗС № 25 "Партнер Нефть" [20:34:44]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [20:34:44]line СНО: Общий режим [20:34:44]line Чек 87 03.03.2024 20:34 [20:34:44]line Смена: 331 ФФД: 1.0 [20:34:44]line ЗНМ: 0300000013 [20:34:44]line РНМ: 0000000000090572 [20:34:44]line Версия ККМ: 001 [20:34:44]line Платежная система: Бакай Банк [20:34:44]line ФМ: 0000000000874796 [20:34:44]line ФД: 45250 [20:34:44]line ФПД: 49577551958700 [20:34:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T203455&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45250&fm=49577551958700&tin=02508201610067®Number=0000000000090572&sum=4000 [20:34:44]line 0 [20:34:44]OFD Sender: Processing packet 45250 [packets to send 17, broken 16] [20:34:44]ProducePacketName [20:34:44]name=ofd_packets/00045250 [20:34:44]OFD Sender: To server: pG, [20:34:44]CommunicateWithHost lk.salyk.kg:30040 [20:34:44]ConnectInit lk.salyk.kg [20:34:44]written 0, free lines is 4095 [20:34:44]Connected sock=10 [20:34:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4B 01 00 00 EB 3C 43 01 0A 1D 5A 03 01 00 03 00 37 01 1E 04 01 00 01 23 04 89 00 8A 04 0D 00 34 36 30 37 30 31 34 38 32 37 36 36 39 06 04 45 00 D0 9B D1 8E D0 B1 D0 B8 D0 BC D1 8B D0 B9 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A2 D1 80 D0 BE D0 BF D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 D0 BC D0 B8 D0 BA D1 81 20 32 30 30 D0 BC D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 0F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 EF DE E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 C2 B0 00 00 35 04 06 00 2D 17 2C 5F 92 AC 2D 81 D3 E0 78 5D 02 F4 [20:34:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 E6 BF 47 00 5D 86 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 C2 B0 00 00 F4 03 04 00 B3 8A E4 65 B6 04 01 00 00 BC F5 F0 7D E1 37 E2 D7 [20:34:44]CommunicateWithHost err = 0 [20:34:44]CheckOFDResponse [20:34:44]1017 (14) - 77093643461234 [20:34:44]1041 (16) - 0000000000874796 [20:34:44]1040 (4) - 45250 [20:34:44]1012 (4) - 03.03.2024 14:35 [20:34:44]1206 (1) - 0 [20:34:44]OFD Sender: Remove packet 45250 [20:34:44]ProducePacketName [20:34:44]name=ofd_packets/00045250 [20:34:44]NVStorageDeleteData [20:34:44]Write to MH i2c: 01 00 00 AD 58 05 [20:34:44]Write i2c OK [20:34:44]MH_I2C_Read... [20:34:44]Read from MH i2c: 01 [20:34:44]MH_I2C_Read... [20:34:44]Read from MH i2c: 01 07 00 [20:34:44]MH_I2C_Read... [20:34:44]Read from MH i2c: 01 07 00 AD 58 00 00 00 00 00 D0 0C E8 [20:34:44]RasterBufferAndPrint [20:34:44]line [20:34:44]line [20:34:44]line [20:34:44]line [20:34:44]line [20:34:44]written 0, free lines is 3286 [20:34:44]MH_Cut [20:34:44]Write to MH i2c: D1 01 00 B4 58 01 DE [20:34:44]Write i2c OK [20:34:44]MH_I2C_Read... [20:34:44]Read from MH i2c: D1 [20:34:44]MH_I2C_Read... [20:34:44]Read from MH i2c: D1 01 00 [20:34:44]MH_I2C_Read... [20:34:44]Read from MH i2c: D1 01 00 B4 58 00 DD [20:34:44]Write to MH i2c: 01 00 00 B5 58 0D [20:34:44]Write i2c OK [20:34:44]MH_I2C_Read... [20:34:45]OFD Sender: No OFD packet to send [20:34:45]*** Cut start [20:34:45]*** Purtial cut [20:34:45]*** Stage 1: CUTSNS_PIN = 1 [20:34:47]Read from MH i2c: 01 [20:34:47]MH_I2C_Read... [20:34:47]*** Stop cut motor [20:34:47]*** Cut end [20:34:47]Read from MH i2c: 01 07 00 [20:34:47]MH_I2C_Read... [20:34:47]Read from MH i2c: 01 07 00 B5 58 00 00 00 00 00 FF 0F 22 [20:34:47]process_action close_receipt done [20:34:47]requested_data is exist [20:34:47]produce_requested_data [20:34:47]requested_item fm.sn is exist - process it [20:34:47]wFMCommunicate request_size=4 [20:34:47]MH_SAM_APDU [20:34:47]CAPDU: 80 11 00 00 [20:34:47]Write to MH i2c: E2 08 00 B6 58 80 11 00 00 00 00 00 00 88 [20:34:47]Write i2c OK [20:34:47]MH_I2C_Read... [20:34:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:34:47]Read from MH i2c: E2 [20:34:47]MH_I2C_Read... [20:34:47]Read from MH i2c: E2 17 00 [20:34:47]MH_I2C_Read... [20:34:47]Read from MH i2c: E2 17 00 B6 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 E4 [20:34:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [20:34:47]wFMCommunicate OK [20:34:47]requested_item fd.num is exist - process it [20:34:47]SAM_PROTO_GetFieldsCounters [20:34:47]wFMCommunicate request_size=4 [20:34:47]MH_SAM_APDU [20:34:47]CAPDU: 80 13 00 00 [20:34:47]Write to MH i2c: E2 08 00 B7 58 80 13 00 00 00 00 00 00 8B [20:34:47]Write i2c OK [20:34:47]MH_I2C_Read... [20:34:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:34:47]Read from MH i2c: E2 [20:34:47]MH_I2C_Read... [20:34:47]Read from MH i2c: E2 62 00 [20:34:47]MH_I2C_Read... [20:34:47]Read from MH i2c: E2 62 00 B7 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 C2 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 76 [20:34:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 C2 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:34:47]wFMCommunicate OK [20:34:47]SAM_PROTO_GetFieldsCounters done [20:34:47]requested_item shift.num is exist - process it [20:34:47]requested_item shift.opened is exist - process it [20:34:47]req_shift_opened [20:34:47]FM_GetShiftState [20:34:47]SAM_PROTO_GetShiftState [20:34:47]wFMCommunicate request_size=4 [20:34:47]MH_SAM_APDU [20:34:47]CAPDU: 80 13 01 00 [20:34:47]Write to MH i2c: E2 08 00 B8 58 80 13 01 00 00 00 00 00 8D [20:34:47]Write i2c OK [20:34:47]MH_I2C_Read... [20:34:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:34:47]Read from MH i2c: E2 [20:34:47]MH_I2C_Read... [20:34:47]Read from MH i2c: E2 0E 00 [20:34:47]MH_I2C_Read... [20:34:47]Read from MH i2c: E2 0E 00 B8 58 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 C3 [20:34:47]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [20:34:47]wFMCommunicate OK [20:34:47]SAM_PROTO_GetShiftState done [20:34:47]FM_GetShiftState done [20:34:47]req_shift_opened done [20:34:47]requested_item shift.open_date is exist - process it [20:34:47]req_shift_open_date [20:34:47]req_shift_open_date done [20:34:47]produce_requested_data done [20:34:47]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45250,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [20:34:47]process_action_free close_receipt [20:34:47]json_value_free [20:34:47]json_value_free done [20:34:47]process_json_proto returns [20:34:47]Send response to host [20:34:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45250,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [20:34:47]free response buf [20:34:47]execute_script done [20:34:47]execute_script returns [20:34:47]free content buf [20:34:47]Sock 9.Close socket [20:34:47]Sock 9.Thread stoped [20:34:50]OFD Sender: No OFD packet to send [20:34:55]OFD Sender: No OFD packet to send [20:35:00]OFD Sender: No OFD packet to send [20:35:05]OFD Sender: No OFD packet to send [20:35:10]OFD Sender: No OFD packet to send [20:35:15]OFD Sender: No OFD packet to send [20:35:20]OFD Sender: No OFD packet to send [20:35:25]OFD Sender: No OFD packet to send [20:35:30]OFD Sender: No OFD packet to send [20:35:35]OFD Sender: No OFD packet to send [20:35:40]OFD Sender: No OFD packet to send [20:35:45]OFD Sender: No OFD packet to send [20:35:50]OFD Sender: No OFD packet to send [20:35:55]OFD Sender: No OFD packet to send [20:36:00]OFD Sender: No OFD packet to send [20:36:05]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:30]OFD Sender: No OFD packet to send [20:46:35]OFD Sender: No OFD packet to send [20:46:38]accept exits with 6 [20:46:38]New connection [20:46:38]New thread 3067014500 created [20:46:38]Thread 3067157860 joined [20:46:38]Waiting for new connection... [20:46:38] Sock 6.Parse request [20:46:38]Sock 6.Check first char [20:46:38]Sock 6.First char is OK [20:46:38]request: POST /json_proto HTTP/1.0 [20:46:38]Method: POST [20:46:38]URL: /json_proto [20:46:38]Method is POST - this is cgi request [20:46:38]url: /json_proto [20:46:38]query_string will be loaded in cgi processing [20:46:38]execute_cgi json_proto POST (null) [20:46:38]execute_cgi path=json_proto method=POST [20:46:38]POST find Content-Length [20:46:38]Host: 172.17.48.198:8080 [20:46:38]Content-Length: 968 [20:46:38]Content-Type: application/json [20:46:38] [20:46:38]POST finish read [20:46:38]Found Content-Length = 968 [20:46:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184211", "tax_sys" : 0, "items" : [ { "code": "4860019001414", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,75\u043B \u041F\u042D\u0422", "price" : 165.00, "quantity" : 2.000, "sum" : 330.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000027340020", "name": "\u041F\u0430\u043A\u0435\u0442 \u0431\u0443\u043C\u0430\u0436\u043D\u044B\u0439 \u0432\u0438\u0442\u0430\u044F \u0440\u0443\u0447\u043A\u0430", "price" : 25.00, "quantity" : 1.000, "sum" : 25.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 355.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:46:38]execute_script... [20:46:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184211", "tax_sys" : 0, "items" : [ { "code": "4860019001414", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,75\u043B \u041F\u042D\u0422", "price" : 165.00, "quantity" : 2.000, "sum" : 330.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000027340020", "name": "\u041F\u0430\u043A\u0435\u0442 \u0431\u0443\u043C\u0430\u0436\u043D\u044B\u0439 \u0432\u0438\u0442\u0430\u044F \u0440\u0443\u0447\u043A\u0430", "price" : 25.00, "quantity" : 1.000, "sum" : 25.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 355.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:46:38]POST & json_proto [20:46:38]process_json_proto [20:46:38]json parsed OK: [20:46:38]protocol is kg_v1.0 [20:46:38]action value=close_receipt [20:46:38]process_action close_receipt [20:46:38]cmd_close_receipt [20:46:38]MH_GetDate [20:46:38]Write to MH i2c: F0 00 00 B9 58 00 [20:46:38]Write i2c OK [20:46:38]MH_I2C_Read... [20:46:38]Read from MH i2c: F0 [20:46:38]MH_I2C_Read... [20:46:38]Read from MH i2c: F0 09 00 [20:46:38]MH_I2C_Read... [20:46:38]Read from MH i2c: F0 09 00 B9 58 00 BB E1 E4 65 CE C4 D4 65 B9 [20:46:38]GetLastDocTimeStamp 1709498095 [20:46:38]current date 1709498811 [20:46:38]FM_GetShiftState [20:46:38]SAM_PROTO_GetShiftState [20:46:38]wFMCommunicate request_size=4 [20:46:38]MH_SAM_APDU [20:46:38]CAPDU: 80 13 01 00 [20:46:38]Write to MH i2c: E2 08 00 BA 58 80 13 01 00 00 00 00 00 8F [20:46:38]Write i2c OK [20:46:38]MH_I2C_Read... [20:46:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:46:38]Read from MH i2c: E2 [20:46:38]MH_I2C_Read... [20:46:38]Read from MH i2c: E2 0E 00 [20:46:38]MH_I2C_Read... [20:46:38]Read from MH i2c: E2 0E 00 BA 58 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 C5 [20:46:38]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [20:46:38]wFMCommunicate OK [20:46:38]SAM_PROTO_GetShiftState done [20:46:38]FM_GetShiftState done [20:46:38]opened in 1709425694 [20:46:38]opened+sec_in_day 1709512094 [20:46:38]quantity*price = 33000 [20:46:38]sum+1 = 33001 [20:46:38]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000027340020 Пакет бумажный витая ручка 1.000 * 25.00 = 25.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 355.00 НСП 1% : 3.14 НДС 12% : 37.69 Наличными: 355.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 88 03.03.2024 20:46 Смена: 331 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 ФМ: 0000000000874796 ФД: 45251 ФПД: 12865347980904 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T204651&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45251&fm=12865347980904&tin=02508201610067®Number=0000000000090572&sum=35500 0 [20:46:39]StoreToDocumentArchive [20:46:39]shift 331 fd 45251 [20:46:39]save to /storage/0331/doc_00045251 [20:46:39]save last doc name /storage/0331/doc_00045251 to /storage/kkm_last_doc_name [20:46:39]save OK [20:46:39]Clear old archive folders... [20:46:39]ProcessDocumentItem done err = 0, tmpTLVsize=400 [20:46:39]tlvbuf is 01B73820 [20:46:39]SAM_PROTO_ClearQueue [20:46:39]wFMCommunicate request_size=4 [20:46:39]MH_SAM_APDU [20:46:39]CAPDU: 80 09 00 00 [20:46:39]Write to MH i2c: E2 08 00 C7 58 80 09 00 00 00 00 00 00 91 [20:46:39]Write i2c OK [20:46:39]MH_I2C_Read... [20:46:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:46:39]Read from MH i2c: E2 [20:46:39]MH_I2C_Read... [20:46:39]Read from MH i2c: E2 03 00 [20:46:39]MH_I2C_Read... [20:46:39]Read from MH i2c: E2 03 00 C7 58 00 90 00 93 [20:46:39]RAPDU: 90 00 [20:46:39]wFMCommunicate OK [20:46:39]SAM_PROTO_ClearQueue done [20:46:39]KKMCreateOFDPacket [20:46:39]OFDProtocolAddRootSTLVToBuf [20:46:39]FM_MakeSignedData [20:46:39]FM_MakeSignedData [20:46:39]SAM_PROTO_SignData [20:46:39]wFMCommunicate request_size=4 [20:46:39]MH_SAM_APDU [20:46:39]CAPDU: 80 0D 01 02 [20:46:39]Write to MH i2c: E2 08 00 C8 58 80 0D 01 02 00 00 00 00 99 [20:46:39]Write i2c OK [20:46:39]MH_I2C_Read... [20:46:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:46:39]Read from MH i2c: E2 [20:46:39]MH_I2C_Read... [20:46:39]Read from MH i2c: E2 03 00 [20:46:39]MH_I2C_Read... [20:46:39]Read from MH i2c: E2 03 00 C8 58 00 90 00 94 [20:46:39]RAPDU: 90 00 [20:46:39]wFMCommunicate OK [20:46:39]wFMCommunicate request_size=255 [20:46:39]MH_SAM_APDU [20:46:39]CAPDU: 80 0D 02 02 FA 03 00 90 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 34 31 34 06 04 25 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 37 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 74 40 00 00 00 00 13 04 06 00 E8 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 0D 00 32 30 30 30 30 32 37 33 34 30 30 32 30 06 04 31 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 B1 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D1 82 D0 B0 D1 8F 20 D1 80 D1 83 D1 87 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 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 [20:46:39]Write to MH i2c: E2 02 01 C9 58 80 0D 02 02 FA 00 03 00 90 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 34 31 34 06 04 25 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 37 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 74 40 00 00 00 00 13 04 06 00 E8 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 0D 00 32 30 30 30 30 32 37 33 34 30 30 32 30 06 04 31 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 B1 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D1 82 D0 B0 D1 8F 20 D1 80 D1 83 D1 87 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 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 00 00 45 [20:46:39]Write i2c OK [20:46:39]MH_I2C_Read... [20:46:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:46:40]Read from MH i2c: E2 [20:46:40]MH_I2C_Read... [20:46:40]Read from MH i2c: E2 03 00 [20:46:40]MH_I2C_Read... [20:46:40]Read from MH i2c: E2 03 00 C9 58 00 90 00 95 [20:46:40]RAPDU: 90 00 [20:46:40]wFMCommunicate OK [20:46:40]wFMCommunicate request_size=159 [20:46:40]MH_SAM_APDU [20:46:40]CAPDU: 80 0D 02 02 9A 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 B9 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 58 00 00 00 F4 03 04 00 BB E1 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 C3 B0 00 00 35 04 06 00 0B B3 72 7F 0E 68 [20:46:40]Write to MH i2c: E2 A2 00 CA 58 80 0D 02 02 9A 00 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 B9 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 58 00 00 00 F4 03 04 00 BB E1 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 C3 B0 00 00 35 04 06 00 0B B3 72 7F 0E 68 00 00 82 [20:46:40]Write i2c OK [20:46:40]MH_I2C_Read... [20:46:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:46:40]Read from MH i2c: E2 [20:46:40]MH_I2C_Read... [20:46:40]Read from MH i2c: E2 03 00 [20:46:40]MH_I2C_Read... [20:46:40]Read from MH i2c: E2 03 00 CA 58 00 90 00 96 [20:46:40]RAPDU: 90 00 [20:46:40]wFMCommunicate OK [20:46:40]wFMCommunicate request_size=4 [20:46:40]MH_SAM_APDU [20:46:40]CAPDU: 80 0D 03 02 [20:46:40]Write to MH i2c: E2 08 00 CB 58 80 0D 03 02 00 00 00 00 9E [20:46:40]Write i2c OK [20:46:40]MH_I2C_Read... [20:46:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:46:40]Read from MH i2c: E2 [20:46:40]MH_I2C_Read... [20:46:40]Read from MH i2c: E2 0B 00 [20:46:40]MH_I2C_Read... [20:46:40]Read from MH i2c: E2 0B 00 CB 58 00 CD 88 84 B3 DB 9B 7C AD 90 00 CA [20:46:40]RAPDU: CD 88 84 B3 DB 9B 7C AD 90 00 [20:46:40]wFMCommunicate OK [20:46:40]SAM_PROTO_SignData done [20:46:40]FM_MakeSignedData done [20:46:40]CreateOFDProtocolMessage [20:46:40]wFMCommunicate request_size=4 [20:46:40]MH_SAM_APDU [20:46:40]CAPDU: 80 11 00 00 [20:46:40]Write to MH i2c: E2 08 00 CC 58 80 11 00 00 00 00 00 00 9E [20:46:40]Write i2c OK [20:46:40]MH_I2C_Read... [20:46:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:46:40]Read from MH i2c: E2 [20:46:40]MH_I2C_Read... [20:46:40]Read from MH i2c: E2 17 00 [20:46:40]MH_I2C_Read... [20:46:40]Read from MH i2c: E2 17 00 CC 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 FA [20:46:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [20:46:40]wFMCommunicate OK [20:46:40]CreateOFDProtocolMessage done [20:46:40]OFDSenderStorePacket 45251 [20:46:40]StoreOFDPacket docnum=45251 [20:46:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 A4 01 00 00 9F 8F 9C 01 F1 42 5A 03 01 00 03 00 90 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 34 31 34 06 04 25 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 37 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 74 40 00 00 00 00 13 04 06 00 E8 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 0D 00 32 30 30 30 30 32 37 33 34 30 30 32 30 06 04 31 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 B1 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D1 82 D0 B0 D1 8F 20 D1 80 D1 83 D1 87 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 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 B9 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 58 00 00 00 F4 03 04 00 BB E1 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 C3 B0 00 00 35 04 06 00 0B B3 72 7F 0E 68 CD 88 84 B3 DB 9B 7C AD [20:46:40]CheckFolder [20:46:40]dirname=/storage/ofd_packets [20:46:40]CheckFolder done [20:46:40]ProducePacketName [20:46:40]name=ofd_packets/00045251 [20:46:40]NVStorageSaveData ofd_packets/00045251 [20:46:40]File name is /storage/ofd_packets/00045251 [20:46:40]Write 450 bytes [20:46:40]NVStorageSaveData done [20:46:40]OFDSenderStorePacket done [20:46:40]KKMCreateOFDPacket done [20:46:40]NVStorageSaveData kkm_last_timestamp [20:46:40]File name is /storage/kkm_last_timestamp [20:46:40]Write 4 bytes [20:46:40]NVStorageSaveData done [20:46:40]ExternCall_PrintAddStr [20:46:40]wPrintStart [20:46:40]Write to MH i2c: 01 00 00 CD 58 25 [20:46:40]OFD Sender: Processing packet 45251 [packets to send 17, broken 16] [20:46:40]ProducePacketName [20:46:40]name=ofd_packets/00045251 [20:46:40]OFD Sender: To server: pG, [20:46:40]CommunicateWithHost lk.salyk.kg:30040 [20:46:40]ConnectInit lk.salyk.kg [20:46:40]Write i2c OK [20:46:40]MH_I2C_Read... [20:46:40]Read from MH i2c: 01 [20:46:40]MH_I2C_Read... [20:46:40]Read from MH i2c: 01 07 00 [20:46:40]MH_I2C_Read... [20:46:40]Read from MH i2c: 01 07 00 CD 58 00 00 00 00 00 FF 0F 3A [20:46:40]RasterBufferAndPrint [20:46:40]line Счет N : (3)184211 [20:46:40]line ИНН: 02508201610067 [20:46:40]line Контрольно-Кассовый Чек [20:46:40]line ПРОДАЖА [20:46:40]line Товар: 4860019001414 [20:46:40]line Вода Боржоми 0,75л ПЭТ [20:46:40]line 2.000 * 165.00 [20:46:40]line = 330.00 [20:46:40]line НДС 12% НСП 1% [20:46:40]line > о реализуемом товаре [20:46:40]line Товар: 2000027340020 [20:46:40]line Пакет бумажный витая ручка [20:46:40]line 1.000 * 25.00 [20:46:40]line = 25.00 [20:46:40]line НДС 12% НСП 1% [20:46:40]line > о реализуемом товаре [20:46:40]line ИТОГО: 355.00 [20:46:40]line НСП 1% : 3.14 [20:46:40]line НДС 12% : 37.69 [20:46:40]line Наличными: 355.00 [20:46:40]line Безнал.: 0.00 [20:46:40]line Место: АЗС № 25 "Партнер Нефть" [20:46:40]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [20:46:40]line СНО: Общий режим [20:46:40]line Чек 88 03.03.2024 20:46 [20:46:40]line Смена: 331 ФФД: 1.0 [20:46:40]line ЗНМ: 0300000013 [20:46:40]line РНМ: 0000000000090572 [20:46:40]line Версия ККМ: 001 [20:46:40]line ФМ: 0000000000874796 [20:46:40]line ФД: 45251 [20:46:40]line ФПД: 12865347980904 [20:46:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T204651&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45251&fm=12865347980904&tin=02508201610067®Number=0000000000090572&sum=35500 [20:46:40]line 0 [20:46:40]written 0, free lines is 4095 [20:46:40]Connected sock=10 [20:46:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 A4 01 00 00 9F 8F 9C 01 F1 42 5A 03 01 00 03 00 90 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 34 31 34 06 04 25 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 37 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 74 40 00 00 00 00 13 04 06 00 E8 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 0D 00 32 30 30 30 30 32 37 33 34 30 30 32 30 06 04 31 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 B1 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D1 82 D0 B0 D1 8F 20 D1 80 D1 83 D1 87 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 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 B9 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 58 00 00 00 F4 03 04 00 BB E1 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 C3 B0 00 00 35 04 06 00 0B B3 72 7F 0E 68 CD 88 84 B3 DB 9B 7C AD [20:46:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 F0 E4 47 00 D5 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 34 37 39 36 10 04 04 00 C3 B0 00 00 F4 03 04 00 7F 8D E4 65 B6 04 01 00 00 3C 08 4D E4 74 5B 5F E8 [20:46:40]CommunicateWithHost err = 0 [20:46:40]CheckOFDResponse [20:46:40]1017 (14) - 77093643461234 [20:46:40]1041 (16) - 0000000000874796 [20:46:40]1040 (4) - 45251 [20:46:40]1012 (4) - 03.03.2024 14:47 [20:46:40]1206 (1) - 0 [20:46:40]OFD Sender: Remove packet 45251 [20:46:40]ProducePacketName [20:46:40]name=ofd_packets/00045251 [20:46:40]NVStorageDeleteData [20:46:41]Write to MH i2c: 01 00 00 FB 58 53 [20:46:41]Write i2c OK [20:46:41]MH_I2C_Read... [20:46:41]Read from MH i2c: 01 [20:46:41]MH_I2C_Read... [20:46:41]Read from MH i2c: 01 07 00 [20:46:41]MH_I2C_Read... [20:46:41]Read from MH i2c: 01 07 00 FB 58 00 00 00 00 00 BD 0C 23 [20:46:41]RasterBufferAndPrint [20:46:41]line [20:46:41]line [20:46:41]line [20:46:41]line [20:46:41]line [20:46:41]written 0, free lines is 3268 [20:46:41]MH_Cut [20:46:41]Write to MH i2c: D1 01 00 02 59 01 2D [20:46:41]Write i2c OK [20:46:41]MH_I2C_Read... [20:46:41]Read from MH i2c: D1 [20:46:41]MH_I2C_Read... [20:46:41]Read from MH i2c: D1 01 00 [20:46:41]MH_I2C_Read... [20:46:41]Read from MH i2c: D1 01 00 02 59 00 2C [20:46:41]Write to MH i2c: 01 00 00 03 59 5C [20:46:41]Write i2c OK [20:46:41]MH_I2C_Read... [20:46:41]OFD Sender: No OFD packet to send [20:46:41]*** Cut start [20:46:41]*** Purtial cut [20:46:41]*** Stage 1: CUTSNS_PIN = 1 [20:46:43]Read from MH i2c: 01 [20:46:43]MH_I2C_Read... [20:46:43]*** Stop cut motor [20:46:43]*** Cut end [20:46:43]Read from MH i2c: 01 07 00 [20:46:43]MH_I2C_Read... [20:46:43]Read from MH i2c: 01 07 00 03 59 00 00 00 00 00 FF 0F 71 [20:46:43]process_action close_receipt done [20:46:43]requested_data is exist [20:46:43]produce_requested_data [20:46:43]requested_item fm.sn is exist - process it [20:46:43]wFMCommunicate request_size=4 [20:46:43]MH_SAM_APDU [20:46:43]CAPDU: 80 11 00 00 [20:46:43]Write to MH i2c: E2 08 00 04 59 80 11 00 00 00 00 00 00 D7 [20:46:43]Write i2c OK [20:46:43]MH_I2C_Read... [20:46:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:46:43]Read from MH i2c: E2 [20:46:43]MH_I2C_Read... [20:46:43]Read from MH i2c: E2 17 00 [20:46:43]MH_I2C_Read... [20:46:43]Read from MH i2c: E2 17 00 04 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 33 [20:46:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [20:46:43]wFMCommunicate OK [20:46:43]requested_item fd.num is exist - process it [20:46:43]SAM_PROTO_GetFieldsCounters [20:46:43]wFMCommunicate request_size=4 [20:46:43]MH_SAM_APDU [20:46:43]CAPDU: 80 13 00 00 [20:46:43]Write to MH i2c: E2 08 00 05 59 80 13 00 00 00 00 00 00 DA [20:46:43]Write i2c OK [20:46:43]MH_I2C_Read... [20:46:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:46:44]Read from MH i2c: E2 [20:46:44]MH_I2C_Read... [20:46:44]Read from MH i2c: E2 62 00 [20:46:44]MH_I2C_Read... [20:46:44]Read from MH i2c: E2 62 00 05 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 C3 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 C9 [20:46:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 C3 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:46:44]wFMCommunicate OK [20:46:44]SAM_PROTO_GetFieldsCounters done [20:46:44]requested_item shift.num is exist - process it [20:46:44]requested_item shift.opened is exist - process it [20:46:44]req_shift_opened [20:46:44]FM_GetShiftState [20:46:44]SAM_PROTO_GetShiftState [20:46:44]wFMCommunicate request_size=4 [20:46:44]MH_SAM_APDU [20:46:44]CAPDU: 80 13 01 00 [20:46:44]Write to MH i2c: E2 08 00 06 59 80 13 01 00 00 00 00 00 DC [20:46:44]Write i2c OK [20:46:44]MH_I2C_Read... [20:46:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:46:44]Read from MH i2c: E2 [20:46:44]MH_I2C_Read... [20:46:44]Read from MH i2c: E2 0E 00 [20:46:44]MH_I2C_Read... [20:46:44]Read from MH i2c: E2 0E 00 06 59 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 12 [20:46:44]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [20:46:44]wFMCommunicate OK [20:46:44]SAM_PROTO_GetShiftState done [20:46:44]FM_GetShiftState done [20:46:44]req_shift_opened done [20:46:44]requested_item shift.open_date is exist - process it [20:46:44]req_shift_open_date [20:46:44]req_shift_open_date done [20:46:44]produce_requested_data done [20:46:44]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45251,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [20:46:44]process_action_free close_receipt [20:46:44]json_value_free [20:46:44]json_value_free done [20:46:44]process_json_proto returns [20:46:44]Send response to host [20:46:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45251,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [20:46:44]free response buf [20:46:44]execute_script done [20:46:44]execute_script returns [20:46:44]free content buf [20:46:44]Sock 6.Close socket [20:46:44]Sock 6.Thread stoped [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:26]OFD Sender: No OFD packet to send [20:48:31]OFD Sender: No OFD packet to send [20:48:36]OFD Sender: No OFD packet to send [20:48:41]OFD Sender: No OFD packet to send [20:48:46]OFD Sender: No OFD packet to send [20:48:51]OFD Sender: No OFD packet to send [20:48:56]OFD Sender: No OFD packet to send [20:49:01]OFD Sender: No OFD packet to send [20:49:06]OFD Sender: No OFD packet to send [20:49:11]OFD Sender: No OFD packet to send [20:49:16]OFD Sender: No OFD packet to send [20:49:21]OFD Sender: No OFD packet to send [20:49:26]OFD Sender: No OFD packet to send [20:49:31]OFD Sender: No OFD packet to send [20:49:36]OFD Sender: No OFD packet to send [20:49:41]OFD Sender: No OFD packet to send [20:49:46]OFD Sender: No OFD packet to send [20:49:51]OFD Sender: No OFD packet to send [20:49:56]OFD Sender: No OFD packet to send [20:50:01]OFD Sender: No OFD packet to send [20:50:06]OFD Sender: No OFD packet to send [20:50:11]OFD Sender: No OFD packet to send [20:50:16]OFD Sender: No OFD packet to send [20:50:21]OFD Sender: No OFD packet to send [20:50:26]OFD Sender: No OFD packet to send [20:50:31]OFD Sender: No OFD packet to send [20:50:36]OFD Sender: No OFD packet to send [20:50:41]OFD Sender: No OFD packet to send [20:50:46]OFD Sender: No OFD packet to send [20:50:51]OFD Sender: No OFD packet to send [20:50:56]OFD Sender: No OFD packet to send [20:51:01]OFD Sender: No OFD packet to send [20:51:06]OFD Sender: No OFD packet to send [20:51:11]OFD Sender: No OFD packet to send [20:51:16]OFD Sender: No OFD packet to send [20:51:21]OFD Sender: No OFD packet to send [20:51:26]OFD Sender: No OFD packet to send [20:51:31]OFD Sender: No OFD packet to send [20:51:36]OFD Sender: No OFD packet to send [20:51:41]OFD Sender: No OFD packet to send [20:51:46]OFD Sender: No OFD packet to send [20:51:51]OFD Sender: No OFD packet to send [20:51:56]OFD Sender: No OFD packet to send [20:52:01]OFD Sender: No OFD packet to send [20:52:06]OFD Sender: No OFD packet to send [20:52:11]OFD Sender: No OFD packet to send [20:52:16]OFD Sender: No OFD packet to send [20:52:21]OFD Sender: No OFD packet to send [20:52:26]OFD Sender: No OFD packet to send [20:52:31]OFD Sender: No OFD packet to send [20:52:36]OFD Sender: No OFD packet to send [20:52:41]OFD Sender: No OFD packet to send [20:52:46]OFD Sender: No OFD packet to send [20:52:51]OFD Sender: No OFD packet to send [20:52:56]OFD Sender: No OFD packet to send [20:53:01]OFD Sender: No OFD packet to send [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: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:36]OFD Sender: No OFD packet to send [20:53:41]OFD Sender: No OFD packet to send [20:53:46]OFD Sender: No OFD packet to send [20:53:51]OFD Sender: No OFD packet to send [20:53:56]OFD Sender: No OFD packet to send [20:54:01]OFD Sender: No OFD packet to send [20:54:06]OFD Sender: No OFD packet to send [20:54:11]OFD Sender: No OFD packet to send [20:54:16]OFD Sender: No OFD packet to send [20:54:21]OFD Sender: No OFD packet to send [20:54:26]OFD Sender: No OFD packet to send [20:54:31]OFD Sender: No OFD packet to send [20:54:36]OFD Sender: No OFD packet to send [20:54:41]OFD Sender: No OFD packet to send [20:54:46]OFD Sender: No OFD packet to send [20:54:51]OFD Sender: No OFD packet to send [20:54:56]OFD Sender: No OFD packet to send [20:55:01]OFD Sender: No OFD packet to send [20:55:06]OFD Sender: No OFD packet to send [20:55:11]OFD Sender: No OFD packet to send [20:55:16]OFD Sender: No OFD packet to send [20:55:21]OFD Sender: No OFD packet to send [20:55:26]OFD Sender: No OFD packet to send [20:55:31]OFD Sender: No OFD packet to send [20:55:36]OFD Sender: No OFD packet to send [20:55:41]OFD Sender: No OFD packet to send [20:55:46]OFD Sender: No OFD packet to send [20:55:51]OFD Sender: No OFD packet to send [20:55:56]OFD Sender: No OFD packet to send [20:56:01]OFD Sender: No OFD packet to send [20:56:06]OFD Sender: No OFD packet to send [20:56:11]OFD Sender: No OFD packet to send [20:56:16]OFD Sender: No OFD packet to send [20:56:21]OFD Sender: No OFD packet to send [20:56:26]OFD Sender: No OFD packet to send [20:56:31]OFD Sender: No OFD packet to send [20:56:36]OFD Sender: No OFD packet to send [20:56:41]OFD Sender: No OFD packet to send [20:56:46]OFD Sender: No OFD packet to send [20:56:51]OFD Sender: No OFD packet to send [20:56:56]OFD Sender: No OFD packet to send [20:57:01]OFD Sender: No OFD packet to send [20:57:06]OFD Sender: No OFD packet to send [20:57:11]OFD Sender: No OFD packet to send [20:57:16]OFD Sender: No OFD packet to send [20:57:21]OFD Sender: No OFD packet to send [20:57:26]OFD Sender: No OFD packet to send [20:57:31]OFD Sender: No OFD packet to send [20:57:36]OFD Sender: No OFD packet to send [20:57:41]OFD Sender: No OFD packet to send [20:57:46]OFD Sender: No OFD packet to send [20:57:51]OFD Sender: No OFD packet to send [20:57:57]OFD Sender: No OFD packet to send [20:58:02]OFD Sender: No OFD packet to send [20:58:07]OFD Sender: No OFD packet to send [20:58:12]OFD Sender: No OFD packet to send [20:58:17]OFD Sender: No OFD packet to send [20:58:22]OFD Sender: No OFD packet to send [20:58:27]OFD Sender: No OFD packet to send [20:58:32]OFD Sender: No OFD packet to send [20:58:37]OFD Sender: No OFD packet to send [20:58:42]OFD Sender: No OFD packet to send [20:58:47]OFD Sender: No OFD packet to send [20:58:52]OFD Sender: No OFD packet to send [20:58:57]OFD Sender: No OFD packet to send [20:59:02]OFD Sender: No OFD packet to send [20:59:07]OFD Sender: No OFD packet to send [20:59:12]OFD Sender: No OFD packet to send [20:59:17]OFD Sender: No OFD packet to send [20:59:22]OFD Sender: No OFD packet to send [20:59:27]OFD Sender: No OFD packet to send [20:59:32]OFD Sender: No OFD packet to send [20:59:37]OFD Sender: No OFD packet to send [20:59:42]OFD Sender: No OFD packet to send [20:59:47]OFD Sender: No OFD packet to send [20:59:52]OFD Sender: No OFD packet to send [20:59:57]OFD Sender: No OFD packet to send [21:00:02]OFD Sender: No OFD packet to send [21:00:07]OFD Sender: No OFD packet to send [21:00:12]OFD Sender: No OFD packet to send [21:00:17]OFD Sender: No OFD packet to send [21:00:22]OFD Sender: No OFD packet to send [21:00:27]OFD Sender: No OFD packet to send [21:00:32]OFD Sender: No OFD packet to send [21:00:37]OFD Sender: No OFD packet to send [21:00:42]OFD Sender: No OFD packet to send [21:00:47]OFD Sender: No OFD packet to send [21:00:52]OFD Sender: No OFD packet to send [21:00:57]OFD Sender: No OFD packet to send [21:01:02]OFD Sender: No OFD packet to send [21:01:07]OFD Sender: No OFD packet to send [21:01:12]OFD Sender: No OFD packet to send [21:01:17]OFD Sender: No OFD packet to send [21:01:22]OFD Sender: No OFD packet to send [21:01:24]accept exits with 9 [21:01:24]New connection [21:01:24]New thread 3067157860 created [21:01:24]Thread 3067014500 joined [21:01:24]Waiting for new connection... [21:01:24] Sock 9.Parse request [21:01:24]Sock 9.Check first char [21:01:24]Sock 9.First char is OK [21:01:24]request: POST /json_proto HTTP/1.0 [21:01:24]Method: POST [21:01:24]URL: /json_proto [21:01:24]Method is POST - this is cgi request [21:01:24]url: /json_proto [21:01:24]query_string will be loaded in cgi processing [21:01:24]execute_cgi json_proto POST (null) [21:01:24]execute_cgi path=json_proto method=POST [21:01:24]POST find Content-Length [21:01:24]Host: 172.17.48.198:8080 [21:01:24]Content-Length: 642 [21:01:24]Content-Type: application/json [21:01:24] [21:01:24]POST finish read [21:01:24]Found Content-Length = 642 [21:01:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184212", "tax_sys" : 0, "items" : [ { "code": "46116482", "name": "\u0416\u0435\u0432 Orbit \u044F\u0433\u043E\u0434\u043D\u044B\u0439 \u043C\u0438\u043A\u0441", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:01:24]execute_script... [21:01:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184212", "tax_sys" : 0, "items" : [ { "code": "46116482", "name": "\u0416\u0435\u0432 Orbit \u044F\u0433\u043E\u0434\u043D\u044B\u0439 \u043C\u0438\u043A\u0441", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:01:24]POST & json_proto [21:01:24]process_json_proto [21:01:24]json parsed OK: [21:01:24]protocol is kg_v1.0 [21:01:24]action value=close_receipt [21:01:24]process_action close_receipt [21:01:24]cmd_close_receipt [21:01:24]MH_GetDate [21:01:24]Write to MH i2c: F0 00 00 07 59 4F [21:01:24]Write i2c OK [21:01:24]MH_I2C_Read... [21:01:24]Read from MH i2c: F0 [21:01:24]MH_I2C_Read... [21:01:24]Read from MH i2c: F0 09 00 [21:01:24]MH_I2C_Read... [21:01:24]Read from MH i2c: F0 09 00 07 59 00 31 E5 E4 65 CE C4 D4 65 82 [21:01:24]GetLastDocTimeStamp 1709498811 [21:01:24]current date 1709499697 [21:01:24]FM_GetShiftState [21:01:24]SAM_PROTO_GetShiftState [21:01:24]wFMCommunicate request_size=4 [21:01:24]MH_SAM_APDU [21:01:24]CAPDU: 80 13 01 00 [21:01:24]Write to MH i2c: E2 08 00 08 59 80 13 01 00 00 00 00 00 DE [21:01:24]Write i2c OK [21:01:24]MH_I2C_Read... [21:01:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:01:24]Read from MH i2c: E2 [21:01:24]MH_I2C_Read... [21:01:24]Read from MH i2c: E2 0E 00 [21:01:24]MH_I2C_Read... [21:01:24]Read from MH i2c: E2 0E 00 08 59 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 14 [21:01:24]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [21:01:24]wFMCommunicate OK [21:01:24]SAM_PROTO_GetShiftState done [21:01:24]FM_GetShiftState done [21:01:24]opened in 1709425694 [21:01:24]opened+sec_in_day 1709512094 [21:01:24]quantity*price = 4000 [21:01:24]sum+1 = 4001 [21:01:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 40.00 НСП 1% : 0.35 НДС 12% : 4.25 Наличными: 40.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 89 03.03.2024 21:01 Смена: 331 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 ФМ: 0000000000874796 ФД: 45252 ФПД: 20401627580264 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T210137&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45252&fm=20401627580264&tin=02508201610067®Number=0000000000090572&sum=4000 0 [21:01:25]StoreToDocumentArchive [21:01:25]shift 331 fd 45252 [21:01:25]save to /storage/0331/doc_00045252 [21:01:25]save last doc name /storage/0331/doc_00045252 to /storage/kkm_last_doc_name [21:01:25]save OK [21:01:25]Clear old archive folders... [21:01:25]ProcessDocumentItem done err = 0, tmpTLVsize=273 [21:01:25]tlvbuf is 01BF7BA0 [21:01:25]SAM_PROTO_ClearQueue [21:01:25]wFMCommunicate request_size=4 [21:01:25]MH_SAM_APDU [21:01:25]CAPDU: 80 09 00 00 [21:01:25]Write to MH i2c: E2 08 00 15 59 80 09 00 00 00 00 00 00 E0 [21:01:25]Write i2c OK [21:01:25]MH_I2C_Read... [21:01:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:01:25]Read from MH i2c: E2 [21:01:25]MH_I2C_Read... [21:01:25]Read from MH i2c: E2 03 00 [21:01:25]MH_I2C_Read... [21:01:25]Read from MH i2c: E2 03 00 15 59 00 90 00 E2 [21:01:25]RAPDU: 90 00 [21:01:25]wFMCommunicate OK [21:01:25]SAM_PROTO_ClearQueue done [21:01:25]KKMCreateOFDPacket [21:01:25]OFDProtocolAddRootSTLVToBuf [21:01:25]FM_MakeSignedData [21:01:25]FM_MakeSignedData [21:01:25]SAM_PROTO_SignData [21:01:25]wFMCommunicate request_size=4 [21:01:25]MH_SAM_APDU [21:01:25]CAPDU: 80 0D 01 02 [21:01:25]Write to MH i2c: E2 08 00 16 59 80 0D 01 02 00 00 00 00 E8 [21:01:25]Write i2c OK [21:01:25]MH_I2C_Read... [21:01:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:01:25]Read from MH i2c: E2 [21:01:25]MH_I2C_Read... [21:01:25]Read from MH i2c: E2 03 00 [21:01:25]MH_I2C_Read... [21:01:25]Read from MH i2c: E2 03 00 16 59 00 90 00 E3 [21:01:25]RAPDU: 90 00 [21:01:25]wFMCommunicate OK [21:01:25]wFMCommunicate request_size=255 [21:01:25]MH_SAM_APDU [21:01:25]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 36 31 31 36 34 38 32 06 04 24 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D1 8F D0 B3 D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D0 BC D0 B8 D0 BA D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 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 31 E5 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 [21:01:25]Write to MH i2c: E2 02 01 17 59 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 36 31 31 36 34 38 32 06 04 24 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D1 8F D0 B3 D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D0 BC D0 B8 D0 BA D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 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 31 E5 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 00 00 DA [21:01:25]Write i2c OK [21:01:25]MH_I2C_Read... [21:01:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:01:25]Read from MH i2c: E2 [21:01:25]MH_I2C_Read... [21:01:25]Read from MH i2c: E2 03 00 [21:01:25]MH_I2C_Read... [21:01:25]Read from MH i2c: E2 03 00 17 59 00 90 00 E4 [21:01:25]RAPDU: 90 00 [21:01:25]wFMCommunicate OK [21:01:25]wFMCommunicate request_size=32 [21:01:25]MH_SAM_APDU [21:01:25]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 37 39 36 10 04 04 00 C4 B0 00 00 35 04 06 00 12 8E 1F C3 C7 68 [21:01:25]Write to MH i2c: E2 23 00 18 59 80 0D 02 02 1B 00 30 30 30 38 37 34 37 39 36 10 04 04 00 C4 B0 00 00 35 04 06 00 12 8E 1F C3 C7 68 00 00 76 [21:01:25]Write i2c OK [21:01:25]MH_I2C_Read... [21:01:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:01:25]Read from MH i2c: E2 [21:01:25]MH_I2C_Read... [21:01:25]Read from MH i2c: E2 03 00 [21:01:25]MH_I2C_Read... [21:01:25]Read from MH i2c: E2 03 00 18 59 00 90 00 E5 [21:01:25]RAPDU: 90 00 [21:01:25]wFMCommunicate OK [21:01:25]wFMCommunicate request_size=4 [21:01:25]MH_SAM_APDU [21:01:25]CAPDU: 80 0D 03 02 [21:01:25]Write to MH i2c: E2 08 00 19 59 80 0D 03 02 00 00 00 00 ED [21:01:25]Write i2c OK [21:01:25]MH_I2C_Read... [21:01:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:01:25]Read from MH i2c: E2 [21:01:25]MH_I2C_Read... [21:01:25]Read from MH i2c: E2 0B 00 [21:01:25]MH_I2C_Read... [21:01:25]Read from MH i2c: E2 0B 00 19 59 00 79 76 AA 09 6E 48 D0 03 90 00 19 [21:01:25]RAPDU: 79 76 AA 09 6E 48 D0 03 90 00 [21:01:25]wFMCommunicate OK [21:01:25]SAM_PROTO_SignData done [21:01:25]FM_MakeSignedData done [21:01:25]CreateOFDProtocolMessage [21:01:25]wFMCommunicate request_size=4 [21:01:25]MH_SAM_APDU [21:01:25]CAPDU: 80 11 00 00 [21:01:25]Write to MH i2c: E2 08 00 1A 59 80 11 00 00 00 00 00 00 ED [21:01:25]Write i2c OK [21:01:25]MH_I2C_Read... [21:01:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:01:25]Read from MH i2c: E2 [21:01:25]MH_I2C_Read... [21:01:25]Read from MH i2c: E2 17 00 [21:01:25]MH_I2C_Read... [21:01:25]Read from MH i2c: E2 17 00 1A 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 49 [21:01:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [21:01:25]wFMCommunicate OK [21:01:25]CreateOFDProtocolMessage done [21:01:25]OFDSenderStorePacket 45252 [21:01:25]StoreOFDPacket docnum=45252 [21:01:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 25 01 00 00 41 D6 1D 01 6B EE 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 36 31 31 36 34 38 32 06 04 24 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D1 8F D0 B3 D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D0 BC D0 B8 D0 BA D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 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 31 E5 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 C4 B0 00 00 35 04 06 00 12 8E 1F C3 C7 68 79 76 AA 09 6E 48 D0 03 [21:01:25]CheckFolder [21:01:25]dirname=/storage/ofd_packets [21:01:25]CheckFolder done [21:01:25]ProducePacketName [21:01:25]name=ofd_packets/00045252 [21:01:25]NVStorageSaveData ofd_packets/00045252 [21:01:25]File name is /storage/ofd_packets/00045252 [21:01:25]Write 323 bytes [21:01:25]NVStorageSaveData done [21:01:25]OFDSenderStorePacket done [21:01:25]KKMCreateOFDPacket done [21:01:25]NVStorageSaveData kkm_last_timestamp [21:01:25]File name is /storage/kkm_last_timestamp [21:01:25]Write 4 bytes [21:01:25]NVStorageSaveData done [21:01:25]ExternCall_PrintAddStr [21:01:25]wPrintStart [21:01:25]Write to MH i2c: 01 00 00 1B 59 74 [21:01:25]Write i2c OK [21:01:25]MH_I2C_Read... [21:01:25]Read from MH i2c: 01 [21:01:25]MH_I2C_Read... [21:01:25]Read from MH i2c: 01 07 00 [21:01:25]MH_I2C_Read... [21:01:25]Read from MH i2c: 01 07 00 1B 59 00 00 00 00 00 FF 0F 89 [21:01:25]RasterBufferAndPrint [21:01:25]line Счет N : (3)184212 [21:01:25]line ИНН: 02508201610067 [21:01:25]line Контрольно-Кассовый Чек [21:01:25]line ПРОДАЖА [21:01:25]line Товар: 46116482 [21:01:25]line Жев Orbit ягодный микс [21:01:25]line 1.000 * 40.00 [21:01:25]line = 40.00 [21:01:25]line НДС 12% НСП 1% [21:01:25]line > о реализуемом товаре [21:01:25]line ИТОГО: 40.00 [21:01:25]line НСП 1% : 0.35 [21:01:25]line НДС 12% : 4.25 [21:01:25]line Наличными: 40.00 [21:01:25]line Безнал.: 0.00 [21:01:25]line Место: АЗС № 25 "Партнер Нефть" [21:01:25]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [21:01:25]line СНО: Общий режим [21:01:25]line Чек 89 03.03.2024 21:01 [21:01:25]line Смена: 331 ФФД: 1.0 [21:01:25]line ЗНМ: 0300000013 [21:01:25]line РНМ: 0000000000090572 [21:01:25]line Версия ККМ: 001 [21:01:25]line ФМ: 0000000000874796 [21:01:25]line ФД: 45252 [21:01:25]line ФПД: 20401627580264 [21:01:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T210137&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45252&fm=20401627580264&tin=02508201610067®Number=0000000000090572&sum=4000 [21:01:26]line 0 [21:01:26]OFD Sender: Processing packet 45252 [packets to send 17, broken 16] [21:01:26]ProducePacketName [21:01:26]name=ofd_packets/00045252 [21:01:26]OFD Sender: To server: pG, [21:01:26]CommunicateWithHost lk.salyk.kg:30040 [21:01:26]ConnectInit lk.salyk.kg [21:01:26]written 0, free lines is 4095 [21:01:26]Connected sock=10 [21:01:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 25 01 00 00 41 D6 1D 01 6B EE 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 36 31 31 36 34 38 32 06 04 24 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D1 8F D0 B3 D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D0 BC D0 B8 D0 BA D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 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 31 E5 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 C4 B0 00 00 35 04 06 00 12 8E 1F C3 C7 68 79 76 AA 09 6E 48 D0 03 [21:01:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 08 8C 47 00 07 50 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 C4 B0 00 00 F4 03 04 00 F5 90 E4 65 B6 04 01 00 00 F1 AE 79 AB 9E C9 61 F2 [21:01:26]CommunicateWithHost err = 0 [21:01:26]CheckOFDResponse [21:01:26]1017 (14) - 77093643461234 [21:01:26]1041 (16) - 0000000000874796 [21:01:26]1040 (4) - 45252 [21:01:26]1012 (4) - 03.03.2024 15:02 [21:01:26]1206 (1) - 0 [21:01:26]OFD Sender: Remove packet 45252 [21:01:26]ProducePacketName [21:01:26]name=ofd_packets/00045252 [21:01:26]NVStorageDeleteData [21:01:26]Write to MH i2c: 01 00 00 43 59 9C [21:01:26]Write i2c OK [21:01:26]MH_I2C_Read... [21:01:26]Read from MH i2c: 01 [21:01:26]MH_I2C_Read... [21:01:26]Read from MH i2c: 01 07 00 [21:01:26]MH_I2C_Read... [21:01:26]Read from MH i2c: 01 07 00 43 59 00 00 00 00 00 08 0D B8 [21:01:26]RasterBufferAndPrint [21:01:26]line [21:01:26]line [21:01:26]line [21:01:26]line [21:01:26]line [21:01:26]written 0, free lines is 3342 [21:01:26]MH_Cut [21:01:26]Write to MH i2c: D1 01 00 4A 59 01 75 [21:01:26]Write i2c OK [21:01:26]MH_I2C_Read... [21:01:26]Read from MH i2c: D1 [21:01:26]MH_I2C_Read... [21:01:26]Read from MH i2c: D1 01 00 [21:01:26]MH_I2C_Read... [21:01:26]Read from MH i2c: D1 01 00 4A 59 00 74 [21:01:26]Write to MH i2c: 01 00 00 4B 59 A4 [21:01:26]Write i2c OK [21:01:26]MH_I2C_Read... [21:01:26]OFD Sender: No OFD packet to send [21:01:27]*** Cut start [21:01:27]*** Purtial cut [21:01:27]*** Stage 1: CUTSNS_PIN = 1 [21:01:29]Read from MH i2c: 01 [21:01:29]MH_I2C_Read... [21:01:29]*** Stop cut motor [21:01:29]*** Cut end [21:01:29]Read from MH i2c: 01 07 00 [21:01:29]MH_I2C_Read... [21:01:29]Read from MH i2c: 01 07 00 4B 59 00 00 00 00 00 FF 0F B9 [21:01:29]process_action close_receipt done [21:01:29]requested_data is exist [21:01:29]produce_requested_data [21:01:29]requested_item fm.sn is exist - process it [21:01:29]wFMCommunicate request_size=4 [21:01:29]MH_SAM_APDU [21:01:29]CAPDU: 80 11 00 00 [21:01:29]Write to MH i2c: E2 08 00 4C 59 80 11 00 00 00 00 00 00 1F [21:01:29]Write i2c OK [21:01:29]MH_I2C_Read... [21:01:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:01:29]Read from MH i2c: E2 [21:01:29]MH_I2C_Read... [21:01:29]Read from MH i2c: E2 17 00 [21:01:29]MH_I2C_Read... [21:01:29]Read from MH i2c: E2 17 00 4C 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 7B [21:01:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [21:01:29]wFMCommunicate OK [21:01:29]requested_item fd.num is exist - process it [21:01:29]SAM_PROTO_GetFieldsCounters [21:01:29]wFMCommunicate request_size=4 [21:01:29]MH_SAM_APDU [21:01:29]CAPDU: 80 13 00 00 [21:01:29]Write to MH i2c: E2 08 00 4D 59 80 13 00 00 00 00 00 00 22 [21:01:29]Write i2c OK [21:01:29]MH_I2C_Read... [21:01:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:01:29]Read from MH i2c: E2 [21:01:29]MH_I2C_Read... [21:01:29]Read from MH i2c: E2 62 00 [21:01:29]MH_I2C_Read... [21:01:29]Read from MH i2c: E2 62 00 4D 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 C4 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 15 [21:01:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 C4 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:01:29]wFMCommunicate OK [21:01:29]SAM_PROTO_GetFieldsCounters done [21:01:29]requested_item shift.num is exist - process it [21:01:29]requested_item shift.opened is exist - process it [21:01:29]req_shift_opened [21:01:29]FM_GetShiftState [21:01:29]SAM_PROTO_GetShiftState [21:01:29]wFMCommunicate request_size=4 [21:01:29]MH_SAM_APDU [21:01:29]CAPDU: 80 13 01 00 [21:01:29]Write to MH i2c: E2 08 00 4E 59 80 13 01 00 00 00 00 00 24 [21:01:29]Write i2c OK [21:01:29]MH_I2C_Read... [21:01:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:01:29]Read from MH i2c: E2 [21:01:29]MH_I2C_Read... [21:01:29]Read from MH i2c: E2 0E 00 [21:01:29]MH_I2C_Read... [21:01:29]Read from MH i2c: E2 0E 00 4E 59 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 5A [21:01:29]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [21:01:29]wFMCommunicate OK [21:01:29]SAM_PROTO_GetShiftState done [21:01:29]FM_GetShiftState done [21:01:29]req_shift_opened done [21:01:29]requested_item shift.open_date is exist - process it [21:01:29]req_shift_open_date [21:01:29]req_shift_open_date done [21:01:29]produce_requested_data done [21:01:29]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45252,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [21:01:29]process_action_free close_receipt [21:01:29]json_value_free [21:01:29]json_value_free done [21:01:29]process_json_proto returns [21:01:29]Send response to host [21:01:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45252,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [21:01:29]free response buf [21:01:29]execute_script done [21:01:29]execute_script returns [21:01:29]free content buf [21:01:29]Sock 9.Close socket [21:01:29]Sock 9.Thread stoped [21:01:31]OFD Sender: No OFD packet to send [21:01:36]OFD Sender: No OFD packet to send [21:01:41]OFD Sender: No OFD packet to send [21:01:46]OFD Sender: No OFD packet to send [21:01:51]OFD Sender: No OFD packet to send [21:01:56]OFD Sender: No OFD packet to send [21:02:02]OFD Sender: No OFD packet to send [21:02:07]OFD Sender: No OFD packet to send [21:02:12]OFD Sender: No OFD packet to send [21:02:17]OFD Sender: No OFD packet to send [21:02:22]OFD Sender: No OFD packet to send [21:02:27]OFD Sender: No OFD packet to send [21:02:32]OFD Sender: No OFD packet to send [21:02:37]OFD Sender: No OFD packet to send [21:02:42]OFD Sender: No OFD packet to send [21:02:47]OFD Sender: No OFD packet to send [21:02:52]OFD Sender: No OFD packet to send [21:02:57]OFD Sender: No OFD packet to send [21:03:02]OFD Sender: No OFD packet to send [21:03:07]OFD Sender: No OFD packet to send [21:03:12]OFD Sender: No OFD packet to send [21:03:17]OFD Sender: No OFD packet to send [21:03:22]OFD Sender: No OFD packet to send [21:03:27]OFD Sender: No OFD packet to send [21:03:32]OFD Sender: No OFD packet to send [21:03:37]OFD Sender: No OFD packet to send [21:03:42]OFD Sender: No OFD packet to send [21:03:47]OFD Sender: No OFD packet to send [21:03:52]OFD Sender: No OFD packet to send [21:03:57]OFD Sender: No OFD packet to send [21:04:02]OFD Sender: No OFD packet to send [21:04:07]OFD Sender: No OFD packet to send [21:04:12]OFD Sender: No OFD packet to send [21:04:17]OFD Sender: No OFD packet to send [21:04:22]OFD Sender: No OFD packet to send [21:04:27]OFD Sender: No OFD packet to send [21:04:30]accept exits with 7 [21:04:30]New connection [21:04:30]New thread 3067014500 created [21:04:30]Thread 3067157860 joined [21:04:30]Waiting for new connection... [21:04:30] Sock 7.Parse request [21:04:30]Sock 7.Check first char [21:04:30]Sock 7.First char is OK [21:04:30]request: POST /json_proto HTTP/1.0 [21:04:30]Method: POST [21:04:30]URL: /json_proto [21:04:30]Method is POST - this is cgi request [21:04:30]url: /json_proto [21:04:30]query_string will be loaded in cgi processing [21:04:30]execute_cgi json_proto POST (null) [21:04:30]execute_cgi path=json_proto method=POST [21:04:30]POST find Content-Length [21:04:30]Host: 172.17.48.198:8080 [21:04:30]Content-Length: 808 [21:04:30]Content-Type: application/json [21:04:30] [21:04:30]POST finish read [21:04:30]Found Content-Length = 808 [21:04:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184213", "tax_sys" : 0, "items" : [ { "code": "4640030092567", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Esse Exchange Summer Red", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 138.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:04:30]execute_script... [21:04:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184213", "tax_sys" : 0, "items" : [ { "code": "4640030092567", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Esse Exchange Summer Red", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 138.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:04:30]POST & json_proto [21:04:30]process_json_proto [21:04:30]json parsed OK: [21:04:30]protocol is kg_v1.0 [21:04:30]action value=close_receipt [21:04:30]process_action close_receipt [21:04:30]cmd_close_receipt [21:04:30]MH_GetDate [21:04:30]Write to MH i2c: F0 00 00 4F 59 97 [21:04:30]Write i2c OK [21:04:30]MH_I2C_Read... [21:04:30]Read from MH i2c: F0 [21:04:30]MH_I2C_Read... [21:04:30]Read from MH i2c: F0 09 00 [21:04:30]MH_I2C_Read... [21:04:30]Read from MH i2c: F0 09 00 4F 59 00 EB E5 E4 65 CE C4 D4 65 84 [21:04:30]GetLastDocTimeStamp 1709499697 [21:04:30]current date 1709499883 [21:04:30]FM_GetShiftState [21:04:30]SAM_PROTO_GetShiftState [21:04:30]wFMCommunicate request_size=4 [21:04:30]MH_SAM_APDU [21:04:30]CAPDU: 80 13 01 00 [21:04:30]Write to MH i2c: E2 08 00 50 59 80 13 01 00 00 00 00 00 26 [21:04:30]Write i2c OK [21:04:30]MH_I2C_Read... [21:04:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:04:30]Read from MH i2c: E2 [21:04:30]MH_I2C_Read... [21:04:30]Read from MH i2c: E2 0E 00 [21:04:30]MH_I2C_Read... [21:04:30]Read from MH i2c: E2 0E 00 50 59 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 5C [21:04:30]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [21:04:30]wFMCommunicate OK [21:04:30]SAM_PROTO_GetShiftState done [21:04:30]FM_GetShiftState done [21:04:30]opened in 1709425694 [21:04:30]opened+sec_in_day 1709512094 [21:04:30]quantity*price = 13800 [21:04:30]sum+1 = 13801 [21:04:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 138.00 НСП 1% : 1.22 НДС 12% : 14.65 Наличными: 0.00 Безнал.: 138.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 90 03.03.2024 21:04 Смена: 331 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874796 ФД: 45253 ФПД: 204562008041213 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T210443&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45253&fm=204562008041213&tin=02508201610067®Number=0000000000090572&sum=13800 0 [21:04:31]StoreToDocumentArchive [21:04:31]shift 331 fd 45253 [21:04:31]save to /storage/0331/doc_00045253 [21:04:31]save last doc name /storage/0331/doc_00045253 to /storage/kkm_last_doc_name [21:04:31]save OK [21:04:31]Clear old archive folders... [21:04:31]ProcessDocumentItem done err = 0, tmpTLVsize=283 [21:04:31]tlvbuf is 01AFC6E0 [21:04:31]SAM_PROTO_ClearQueue [21:04:31]wFMCommunicate request_size=4 [21:04:31]MH_SAM_APDU [21:04:31]CAPDU: 80 09 00 00 [21:04:31]Write to MH i2c: E2 08 00 5D 59 80 09 00 00 00 00 00 00 28 [21:04:31]Write i2c OK [21:04:31]MH_I2C_Read... [21:04:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:04:31]Read from MH i2c: E2 [21:04:31]MH_I2C_Read... [21:04:31]Read from MH i2c: E2 03 00 [21:04:31]MH_I2C_Read... [21:04:31]Read from MH i2c: E2 03 00 5D 59 00 90 00 2A [21:04:31]RAPDU: 90 00 [21:04:31]wFMCommunicate OK [21:04:31]SAM_PROTO_ClearQueue done [21:04:31]KKMCreateOFDPacket [21:04:31]OFDProtocolAddRootSTLVToBuf [21:04:31]FM_MakeSignedData [21:04:31]FM_MakeSignedData [21:04:31]SAM_PROTO_SignData [21:04:31]wFMCommunicate request_size=4 [21:04:31]MH_SAM_APDU [21:04:31]CAPDU: 80 0D 01 02 [21:04:31]Write to MH i2c: E2 08 00 5E 59 80 0D 01 02 00 00 00 00 30 [21:04:31]Write i2c OK [21:04:31]MH_I2C_Read... [21:04:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:04:31]Read from MH i2c: E2 [21:04:31]MH_I2C_Read... [21:04:31]Read from MH i2c: E2 03 00 [21:04:31]MH_I2C_Read... [21:04:31]Read from MH i2c: E2 03 00 5E 59 00 90 00 2B [21:04:31]RAPDU: 90 00 [21:04:31]wFMCommunicate OK [21:04:31]wFMCommunicate request_size=255 [21:04:31]MH_SAM_APDU [21:04:31]CAPDU: 80 0D 02 02 FA 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 35 36 37 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 45 78 63 68 61 6E 67 65 20 53 75 6D 6D 65 72 20 52 65 64 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 00 00 00 00 00 00 39 04 06 00 E8 35 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 EB E5 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 [21:04:31]Write to MH i2c: E2 02 01 5F 59 80 0D 02 02 FA 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 35 36 37 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 45 78 63 68 61 6E 67 65 20 53 75 6D 6D 65 72 20 52 65 64 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 00 00 00 00 00 00 39 04 06 00 E8 35 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 EB E5 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 00 00 DC [21:04:31]Write i2c OK [21:04:31]MH_I2C_Read... [21:04:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:04:31]Read from MH i2c: E2 [21:04:31]MH_I2C_Read... [21:04:31]Read from MH i2c: E2 03 00 [21:04:31]MH_I2C_Read... [21:04:31]Read from MH i2c: E2 03 00 5F 59 00 90 00 2C [21:04:31]RAPDU: 90 00 [21:04:31]wFMCommunicate OK [21:04:31]wFMCommunicate request_size=42 [21:04:31]MH_SAM_APDU [21:04:31]CAPDU: 80 0D 02 02 25 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 C5 B0 00 00 35 04 06 00 BA 0C 4D D2 E6 FD [21:04:31]Write to MH i2c: E2 2D 00 60 59 80 0D 02 02 25 00 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 C5 B0 00 00 35 04 06 00 BA 0C 4D D2 E6 FD 00 00 4E [21:04:31]Write i2c OK [21:04:31]MH_I2C_Read... [21:04:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:04:31]Read from MH i2c: E2 [21:04:31]MH_I2C_Read... [21:04:31]Read from MH i2c: E2 03 00 [21:04:31]MH_I2C_Read... [21:04:31]Read from MH i2c: E2 03 00 60 59 00 90 00 2D [21:04:31]RAPDU: 90 00 [21:04:31]wFMCommunicate OK [21:04:31]wFMCommunicate request_size=4 [21:04:31]MH_SAM_APDU [21:04:31]CAPDU: 80 0D 03 02 [21:04:31]Write to MH i2c: E2 08 00 61 59 80 0D 03 02 00 00 00 00 35 [21:04:31]Write i2c OK [21:04:31]MH_I2C_Read... [21:04:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:04:31]Read from MH i2c: E2 [21:04:31]MH_I2C_Read... [21:04:31]Read from MH i2c: E2 0B 00 [21:04:31]MH_I2C_Read... [21:04:31]Read from MH i2c: E2 0B 00 61 59 00 DA 29 81 10 BF 71 B9 73 90 00 26 [21:04:31]RAPDU: DA 29 81 10 BF 71 B9 73 90 00 [21:04:31]wFMCommunicate OK [21:04:31]SAM_PROTO_SignData done [21:04:31]FM_MakeSignedData done [21:04:31]CreateOFDProtocolMessage [21:04:31]wFMCommunicate request_size=4 [21:04:31]MH_SAM_APDU [21:04:31]CAPDU: 80 11 00 00 [21:04:31]Write to MH i2c: E2 08 00 62 59 80 11 00 00 00 00 00 00 35 [21:04:31]Write i2c OK [21:04:31]MH_I2C_Read... [21:04:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:04:31]Read from MH i2c: E2 [21:04:31]MH_I2C_Read... [21:04:31]Read from MH i2c: E2 17 00 [21:04:31]MH_I2C_Read... [21:04:31]Read from MH i2c: E2 17 00 62 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 91 [21:04:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [21:04:31]wFMCommunicate OK [21:04:31]CreateOFDProtocolMessage done [21:04:31]OFDSenderStorePacket 45253 [21:04:31]StoreOFDPacket docnum=45253 [21:04:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 2F 01 00 00 57 71 27 01 24 50 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 35 36 37 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 45 78 63 68 61 6E 67 65 20 53 75 6D 6D 65 72 20 52 65 64 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 00 00 00 00 00 00 39 04 06 00 E8 35 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 EB E5 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 C5 B0 00 00 35 04 06 00 BA 0C 4D D2 E6 FD DA 29 81 10 BF 71 B9 73 [21:04:31]CheckFolder [21:04:31]dirname=/storage/ofd_packets [21:04:31]CheckFolder done [21:04:31]ProducePacketName [21:04:31]name=ofd_packets/00045253 [21:04:31]NVStorageSaveData ofd_packets/00045253 [21:04:31]File name is /storage/ofd_packets/00045253 [21:04:31]Write 333 bytes [21:04:31]NVStorageSaveData done [21:04:31]OFDSenderStorePacket done [21:04:31]KKMCreateOFDPacket done [21:04:31]NVStorageSaveData kkm_last_timestamp [21:04:31]File name is /storage/kkm_last_timestamp [21:04:31]Write 4 bytes [21:04:31]NVStorageSaveData done [21:04:31]ExternCall_PrintAddStr [21:04:31]wPrintStart [21:04:31]Write to MH i2c: 01 00 00 63 59 BC [21:04:31]Write i2c OK [21:04:31]MH_I2C_Read... [21:04:31]Read from MH i2c: 01 [21:04:31]MH_I2C_Read... [21:04:31]Read from MH i2c: 01 07 00 [21:04:31]MH_I2C_Read... [21:04:31]OFD Sender: Processing packet 45253 [packets to send 17, broken 16] [21:04:31]ProducePacketName [21:04:31]name=ofd_packets/00045253 [21:04:31]OFD Sender: To server: pG, [21:04:31]CommunicateWithHost lk.salyk.kg:30040 [21:04:31]ConnectInit lk.salyk.kg [21:04:31]Read from MH i2c: 01 07 00 63 59 00 00 00 00 00 FF 0F D1 [21:04:31]RasterBufferAndPrint [21:04:31]line Счет N : (3)184213 [21:04:31]line ИНН: 02508201610067 [21:04:31]line Контрольно-Кассовый Чек [21:04:31]line ПРОДАЖА [21:04:31]line Товар: 4640030092567 [21:04:31]line Сигареты Esse Exchange Summer Red [21:04:31]line 1.000 * 138.00 [21:04:31]line = 138.00 [21:04:31]line НДС 12% НСП 1% [21:04:31]line > о реализуемом товаре [21:04:31]line ИТОГО: 138.00 [21:04:31]line НСП 1% : 1.22 [21:04:31]line НДС 12% : 14.65 [21:04:31]line Наличными: 0.00 [21:04:31]line Безнал.: 138.00 [21:04:31]line Место: АЗС № 25 "Партнер Нефть" [21:04:31]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [21:04:31]line СНО: Общий режим [21:04:31]line Чек 90 03.03.2024 21:04 [21:04:31]line Смена: 331 ФФД: 1.0 [21:04:31]line ЗНМ: 0300000013 [21:04:31]line РНМ: 0000000000090572 [21:04:31]line Версия ККМ: 001 [21:04:31]line Платежная система: Бакай Банк [21:04:31]line ФМ: 0000000000874796 [21:04:31]line ФД: 45253 [21:04:31]line ФПД: 204562008041213 [21:04:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T210443&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45253&fm=204562008041213&tin=02508201610067®Number=0000000000090572&sum=13800 [21:04:32]line 0 [21:04:32]Connected sock=10 [21:04:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 2F 01 00 00 57 71 27 01 24 50 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 35 36 37 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 45 78 63 68 61 6E 67 65 20 53 75 6D 6D 65 72 20 52 65 64 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 00 00 00 00 00 00 39 04 06 00 E8 35 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 EB E5 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 C5 B0 00 00 35 04 06 00 BA 0C 4D D2 E6 FD DA 29 81 10 BF 71 B9 73 [21:04:32]written 0, free lines is 4095 [21:04:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 EB D4 47 00 D7 2D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 C5 B0 00 00 F4 03 04 00 AF 91 E4 65 B6 04 01 00 00 22 EA A1 DB 79 6E B5 E0 [21:04:32]CommunicateWithHost err = 0 [21:04:32]CheckOFDResponse [21:04:32]1017 (14) - 77093643461234 [21:04:32]1041 (16) - 0000000000874796 [21:04:32]1040 (4) - 45253 [21:04:32]1012 (4) - 03.03.2024 15:05 [21:04:32]1206 (1) - 0 [21:04:32]OFD Sender: Remove packet 45253 [21:04:32]ProducePacketName [21:04:32]name=ofd_packets/00045253 [21:04:32]NVStorageDeleteData [21:04:32]Write to MH i2c: 01 00 00 8E 59 E7 [21:04:32]Write i2c OK [21:04:32]MH_I2C_Read... [21:04:32]Read from MH i2c: 01 [21:04:32]MH_I2C_Read... [21:04:32]Read from MH i2c: 01 07 00 [21:04:32]MH_I2C_Read... [21:04:32]Read from MH i2c: 01 07 00 8E 59 00 00 00 00 00 E0 0C DA [21:04:32]RasterBufferAndPrint [21:04:32]line [21:04:32]line [21:04:32]line [21:04:32]line [21:04:32]line [21:04:32]written 0, free lines is 3302 [21:04:32]MH_Cut [21:04:32]Write to MH i2c: D1 01 00 95 59 01 C0 [21:04:32]Write i2c OK [21:04:32]MH_I2C_Read... [21:04:32]Read from MH i2c: D1 [21:04:32]MH_I2C_Read... [21:04:32]Read from MH i2c: D1 01 00 [21:04:32]MH_I2C_Read... [21:04:32]Read from MH i2c: D1 01 00 95 59 00 BF [21:04:32]Write to MH i2c: 01 00 00 96 59 EF [21:04:32]Write i2c OK [21:04:32]MH_I2C_Read... [21:04:33]OFD Sender: No OFD packet to send [21:04:33]*** Cut start [21:04:33]*** Purtial cut [21:04:33]*** Stage 1: CUTSNS_PIN = 1 [21:04:35]Read from MH i2c: 01 [21:04:35]MH_I2C_Read... [21:04:35]*** Stop cut motor [21:04:35]*** Cut end [21:04:35]Read from MH i2c: 01 07 00 [21:04:35]MH_I2C_Read... [21:04:35]Read from MH i2c: 01 07 00 96 59 00 00 00 00 00 FF 0F 04 [21:04:35]process_action close_receipt done [21:04:35]requested_data is exist [21:04:35]produce_requested_data [21:04:35]requested_item fm.sn is exist - process it [21:04:35]wFMCommunicate request_size=4 [21:04:35]MH_SAM_APDU [21:04:35]CAPDU: 80 11 00 00 [21:04:35]Write to MH i2c: E2 08 00 97 59 80 11 00 00 00 00 00 00 6A [21:04:35]Write i2c OK [21:04:35]MH_I2C_Read... [21:04:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:04:35]Read from MH i2c: E2 [21:04:35]MH_I2C_Read... [21:04:35]Read from MH i2c: E2 17 00 [21:04:35]MH_I2C_Read... [21:04:35]Read from MH i2c: E2 17 00 97 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 C6 [21:04:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [21:04:35]wFMCommunicate OK [21:04:35]requested_item fd.num is exist - process it [21:04:35]SAM_PROTO_GetFieldsCounters [21:04:35]wFMCommunicate request_size=4 [21:04:35]MH_SAM_APDU [21:04:35]CAPDU: 80 13 00 00 [21:04:35]Write to MH i2c: E2 08 00 98 59 80 13 00 00 00 00 00 00 6D [21:04:35]Write i2c OK [21:04:35]MH_I2C_Read... [21:04:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:04:35]Read from MH i2c: E2 [21:04:35]MH_I2C_Read... [21:04:35]Read from MH i2c: E2 62 00 [21:04:35]MH_I2C_Read... [21:04:35]Read from MH i2c: E2 62 00 98 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 C5 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 64 [21: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 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 C5 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:04:35]wFMCommunicate OK [21:04:35]SAM_PROTO_GetFieldsCounters done [21:04:35]requested_item shift.num is exist - process it [21:04:35]requested_item shift.opened is exist - process it [21:04:35]req_shift_opened [21:04:35]FM_GetShiftState [21:04:35]SAM_PROTO_GetShiftState [21:04:35]wFMCommunicate request_size=4 [21:04:35]MH_SAM_APDU [21:04:35]CAPDU: 80 13 01 00 [21:04:35]Write to MH i2c: E2 08 00 99 59 80 13 01 00 00 00 00 00 6F [21:04:35]Write i2c OK [21:04:35]MH_I2C_Read... [21:04:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:04:35]Read from MH i2c: E2 [21:04:35]MH_I2C_Read... [21:04:35]Read from MH i2c: E2 0E 00 [21:04:35]MH_I2C_Read... [21:04:35]Read from MH i2c: E2 0E 00 99 59 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 A5 [21:04:35]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [21:04:35]wFMCommunicate OK [21:04:35]SAM_PROTO_GetShiftState done [21:04:35]FM_GetShiftState done [21:04:35]req_shift_opened done [21:04:35]requested_item shift.open_date is exist - process it [21:04:35]req_shift_open_date [21:04:35]req_shift_open_date done [21:04:35]produce_requested_data done [21:04:35]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45253,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [21:04:35]process_action_free close_receipt [21:04:35]json_value_free [21:04:35]json_value_free done [21:04:35]process_json_proto returns [21:04:35]Send response to host [21:04:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45253,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [21:04:35]free response buf [21:04:35]execute_script done [21:04:35]execute_script returns [21:04:35]free content buf [21:04:35]Sock 7.Close socket [21:04:35]Sock 7.Thread stoped [21:04:38]OFD Sender: No OFD packet to send [21:04:43]OFD Sender: No OFD packet to send [21:04:48]OFD Sender: No OFD packet to send [21:04:53]OFD Sender: No OFD packet to send [21:04:58]OFD Sender: No OFD packet to send [21:05:03]OFD Sender: No OFD packet to send [21:05:08]OFD Sender: No OFD packet to send [21:05:13]OFD Sender: No OFD packet to send [21:05:18]OFD Sender: No OFD packet to send [21:05:23]OFD Sender: No OFD packet to send [21:05:28]OFD Sender: No OFD packet to send [21:05:33]OFD Sender: No OFD packet to send [21:05:38]OFD Sender: No OFD packet to send [21:05:43]OFD Sender: No OFD packet to send [21:05:48]OFD Sender: No OFD packet to send [21:05:53]OFD Sender: No OFD packet to send [21:05:58]OFD Sender: No OFD packet to send [21:06:03]OFD Sender: No OFD packet to send [21:06:08]OFD Sender: No OFD packet to send [21:06:13]OFD Sender: No OFD packet to send [21:06:18]OFD Sender: No OFD packet to send [21:06:23]OFD Sender: No OFD packet to send [21:06:28]OFD Sender: No OFD packet to send [21:06:33]OFD Sender: No OFD packet to send [21:06:38]OFD Sender: No OFD packet to send [21:06:43]OFD Sender: No OFD packet to send [21:06:48]OFD Sender: No OFD packet to send [21:06:53]OFD Sender: No OFD packet to send [21:06:58]OFD Sender: No OFD packet to send [21:07:03]OFD Sender: No OFD packet to send [21:07:08]OFD Sender: No OFD packet to send [21:07:13]OFD Sender: No OFD packet to send [21:07:18]OFD Sender: No OFD packet to send [21:07:23]OFD Sender: No OFD packet to send [21:07:28]OFD Sender: No OFD packet to send [21:07:33]OFD Sender: No OFD packet to send [21:07:38]OFD Sender: No OFD packet to send [21:07:43]OFD Sender: No OFD packet to send [21:07:48]OFD Sender: No OFD packet to send [21:07:53]OFD Sender: No OFD packet to send [21:07:58]OFD Sender: No OFD packet to send [21:08:03]OFD Sender: No OFD packet to send [21:08:08]OFD Sender: No OFD packet to send [21:08:13]OFD Sender: No OFD packet to send [21:08:18]OFD Sender: No OFD packet to send [21:08:23]OFD Sender: No OFD packet to send [21:08:28]OFD Sender: No OFD packet to send [21:08:33]OFD Sender: No OFD packet to send [21:08:38]OFD Sender: No OFD packet to send [21:08:43]OFD Sender: No OFD packet to send [21:08:48]OFD Sender: No OFD packet to send [21:08:53]OFD Sender: No OFD packet to send [21:08:58]OFD Sender: No OFD packet to send [21:09:03]OFD Sender: No OFD packet to send [21:09:08]OFD Sender: No OFD packet to send [21:09:13]OFD Sender: No OFD packet to send [21:09:18]OFD Sender: No OFD packet to send [21:09:23]OFD Sender: No OFD packet to send [21:09:28]OFD Sender: No OFD packet to send [21:09:33]OFD Sender: No OFD packet to send [21:09:38]OFD Sender: No OFD packet to send [21:09:43]OFD Sender: No OFD packet to send [21:09:48]OFD Sender: No OFD packet to send [21:09:53]OFD Sender: No OFD packet to send [21:09:58]OFD Sender: No OFD packet to send [21:10:03]OFD Sender: No OFD packet to send [21:10:08]OFD Sender: No OFD packet to send [21:10:13]OFD Sender: No OFD packet to send [21:10:18]OFD Sender: No OFD packet to send [21:10:23]OFD Sender: No OFD packet to send [21:10:28]OFD Sender: No OFD packet to send [21:10:33]OFD Sender: No OFD packet to send [21:10:38]OFD Sender: No OFD packet to send [21:10:43]OFD Sender: No OFD packet to send [21:10:48]OFD Sender: No OFD packet to send [21:10:53]OFD Sender: No OFD packet to send [21:10:58]OFD Sender: No OFD packet to send [21:11:03]OFD Sender: No OFD packet to send [21:11:08]OFD Sender: No OFD packet to send [21:11:13]OFD Sender: No OFD packet to send [21:11:18]OFD Sender: No OFD packet to send [21:11:23]OFD Sender: No OFD packet to send [21:11:28]OFD Sender: No OFD packet to send [21:11:33]OFD Sender: No OFD packet to send [21:11:38]OFD Sender: No OFD packet to send [21:11:43]OFD Sender: No OFD packet to send [21:11:48]OFD Sender: No OFD packet to send [21:11:53]OFD Sender: No OFD packet to send [21:11:58]OFD Sender: No OFD packet to send [21:12:03]OFD Sender: No OFD packet to send [21:12:08]OFD Sender: No OFD packet to send [21:12:13]OFD Sender: No OFD packet to send [21:12:18]OFD Sender: No OFD packet to send [21:12:23]OFD Sender: No OFD packet to send [21:12:28]OFD Sender: No OFD packet to send [21:12:33]OFD Sender: No OFD packet to send [21:12:38]OFD Sender: No OFD packet to send [21:12:43]OFD Sender: No OFD packet to send [21:12:48]OFD Sender: No OFD packet to send [21:12:53]OFD Sender: No OFD packet to send [21:12:58]OFD Sender: No OFD packet to send [21:13:03]OFD Sender: No OFD packet to send [21:13:08]OFD Sender: No OFD packet to send [21:13:13]OFD Sender: No OFD packet to send [21:13:18]OFD Sender: No OFD packet to send [21:13:23]OFD Sender: No OFD packet to send [21:13:28]OFD Sender: No OFD packet to send [21:13:33]OFD Sender: No OFD packet to send [21:13:38]accept exits with 9 [21:13:38]New connection [21:13:38]New thread 3067157860 created [21:13:38]Thread 3067014500 joined [21:13:38]Waiting for new connection... [21:13:38] Sock 9.Parse request [21:13:38]Sock 9.Check first char [21:13:38]Sock 9.First char is OK [21:13:38]request: POST /json_proto HTTP/1.0 [21:13:38]Method: POST [21:13:38]URL: /json_proto [21:13:38]Method is POST - this is cgi request [21:13:38]url: /json_proto [21:13:38]query_string will be loaded in cgi processing [21:13:38]execute_cgi json_proto POST (null) [21:13:38]execute_cgi path=json_proto method=POST [21:13:38]POST find Content-Length [21:13:38]Host: 172.17.48.198:8080 [21:13:38]Content-Length: 632 [21:13:38]Content-Type: application/json [21:13:38] [21:13:38]POST finish read [21:13:38]Found Content-Length = 632 [21:13:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184214", "tax_sys" : 0, "items" : [ { "code": "50173372", "name": "\u0416\u0435\u0432 Orbit \u0434\u043B\u044F \u0434\u0435\u0442\u0435\u0439 Classic", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:13:38]execute_script... [21:13: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)184214", "tax_sys" : 0, "items" : [ { "code": "50173372", "name": "\u0416\u0435\u0432 Orbit \u0434\u043B\u044F \u0434\u0435\u0442\u0435\u0439 Classic", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:13:38]POST & json_proto [21:13:38]process_json_proto [21:13:38]json parsed OK: [21:13:38]protocol is kg_v1.0 [21:13:38]action value=close_receipt [21:13:38]process_action close_receipt [21:13:38]cmd_close_receipt [21:13:38]MH_GetDate [21:13:38]Write to MH i2c: F0 00 00 9A 59 E2 [21:13:38]Write i2c OK [21:13:38]MH_I2C_Read... [21:13:38]Read from MH i2c: F0 [21:13:38]MH_I2C_Read... [21:13:38]Read from MH i2c: F0 09 00 [21:13:38]MH_I2C_Read... [21:13:38]Read from MH i2c: F0 09 00 9A 59 00 0F E8 E4 65 CE C4 D4 65 F6 [21:13:38]GetLastDocTimeStamp 1709499883 [21:13:38]current date 1709500431 [21:13:38]FM_GetShiftState [21:13:38]SAM_PROTO_GetShiftState [21:13:38]wFMCommunicate request_size=4 [21:13:38]MH_SAM_APDU [21:13:38]CAPDU: 80 13 01 00 [21:13:38]Write to MH i2c: E2 08 00 9B 59 80 13 01 00 00 00 00 00 71 [21:13:38]Write i2c OK [21:13:38]MH_I2C_Read... [21:13:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:13:38]Read from MH i2c: E2 [21:13:38]MH_I2C_Read... [21:13:38]Read from MH i2c: E2 0E 00 [21:13:38]MH_I2C_Read... [21:13:38]Read from MH i2c: E2 0E 00 9B 59 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 A7 [21:13:38]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [21:13:38]wFMCommunicate OK [21:13:38]SAM_PROTO_GetShiftState done [21:13:38]FM_GetShiftState done [21:13:38]opened in 1709425694 [21:13:38]opened+sec_in_day 1709512094 [21:13:38]quantity*price = 4000 [21:13:38]sum+1 = 4001 [21:13:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 40.00 НСП 1% : 0.35 НДС 12% : 4.25 Наличными: 40.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 91 03.03.2024 21:13 Смена: 331 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 ФМ: 0000000000874796 ФД: 45254 ФПД: 253948720931300 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T211351&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45254&fm=253948720931300&tin=02508201610067®Number=0000000000090572&sum=4000 0 [21:13:39]StoreToDocumentArchive [21:13:39]shift 331 fd 45254 [21:13:39]save to /storage/0331/doc_00045254 [21:13:39]save last doc name /storage/0331/doc_00045254 to /storage/kkm_last_doc_name [21:13:39]save OK [21:13:39]Clear old archive folders... [21:13:39]ProcessDocumentItem done err = 0, tmpTLVsize=275 [21:13:39]tlvbuf is 01B5F740 [21:13:39]SAM_PROTO_ClearQueue [21:13:39]wFMCommunicate request_size=4 [21:13:39]MH_SAM_APDU [21:13:39]CAPDU: 80 09 00 00 [21:13:39]Write to MH i2c: E2 08 00 A8 59 80 09 00 00 00 00 00 00 73 [21:13:39]Write i2c OK [21:13:39]MH_I2C_Read... [21:13:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:13:39]Read from MH i2c: E2 [21:13:39]MH_I2C_Read... [21:13:39]Read from MH i2c: E2 03 00 [21:13:39]MH_I2C_Read... [21:13:39]Read from MH i2c: E2 03 00 A8 59 00 90 00 75 [21:13:39]RAPDU: 90 00 [21:13:39]wFMCommunicate OK [21:13:39]SAM_PROTO_ClearQueue done [21:13:39]KKMCreateOFDPacket [21:13:39]OFDProtocolAddRootSTLVToBuf [21:13:39]FM_MakeSignedData [21:13:39]FM_MakeSignedData [21:13:39]SAM_PROTO_SignData [21:13:39]wFMCommunicate request_size=4 [21:13:39]MH_SAM_APDU [21:13:39]CAPDU: 80 0D 01 02 [21:13:39]Write to MH i2c: E2 08 00 A9 59 80 0D 01 02 00 00 00 00 7B [21:13:39]Write i2c OK [21:13:39]MH_I2C_Read... [21:13:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:13:39]Read from MH i2c: E2 [21:13:39]MH_I2C_Read... [21:13:39]Read from MH i2c: E2 03 00 [21:13:39]MH_I2C_Read... [21:13:39]Read from MH i2c: E2 03 00 A9 59 00 90 00 76 [21:13:39]RAPDU: 90 00 [21:13:39]wFMCommunicate OK [21:13:39]wFMCommunicate request_size=255 [21:13:39]MH_SAM_APDU [21:13:39]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 30 31 37 33 33 37 32 06 04 26 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B4 D0 BB D1 8F 20 D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 43 6C 61 73 73 69 63 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 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 0F E8 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 [21:13:39]Write to MH i2c: E2 02 01 AA 59 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 30 31 37 33 33 37 32 06 04 26 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B4 D0 BB D1 8F 20 D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 43 6C 61 73 73 69 63 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 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 0F E8 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 00 00 56 [21:13:39]Write i2c OK [21:13:39]MH_I2C_Read... [21:13:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:13:39]Read from MH i2c: E2 [21:13:39]MH_I2C_Read... [21:13:39]Read from MH i2c: E2 03 00 [21:13:39]MH_I2C_Read... [21:13:39]Read from MH i2c: E2 03 00 AA 59 00 90 00 77 [21:13:39]RAPDU: 90 00 [21:13:39]wFMCommunicate OK [21:13:39]wFMCommunicate request_size=34 [21:13:39]MH_SAM_APDU [21:13:39]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 C6 B0 00 00 35 04 06 00 E6 F7 0B 4D 61 E4 [21:13:39]Write to MH i2c: E2 25 00 AB 59 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 C6 B0 00 00 35 04 06 00 E6 F7 0B 4D 61 E4 00 00 38 [21:13:39]Write i2c OK [21:13:39]MH_I2C_Read... [21:13:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:13:39]Read from MH i2c: E2 [21:13:39]MH_I2C_Read... [21:13:39]Read from MH i2c: E2 03 00 [21:13:39]MH_I2C_Read... [21:13:39]Read from MH i2c: E2 03 00 AB 59 00 90 00 78 [21:13:39]RAPDU: 90 00 [21:13:39]wFMCommunicate OK [21:13:39]wFMCommunicate request_size=4 [21:13:39]MH_SAM_APDU [21:13:39]CAPDU: 80 0D 03 02 [21:13:39]Write to MH i2c: E2 08 00 AC 59 80 0D 03 02 00 00 00 00 80 [21:13:39]Write i2c OK [21:13:39]MH_I2C_Read... [21:13:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:13:39]Read from MH i2c: E2 [21:13:39]MH_I2C_Read... [21:13:39]Read from MH i2c: E2 0B 00 [21:13:39]MH_I2C_Read... [21:13:39]Read from MH i2c: E2 0B 00 AC 59 00 E5 B1 3C 5D 45 C7 61 36 90 00 53 [21:13:39]RAPDU: E5 B1 3C 5D 45 C7 61 36 90 00 [21:13:39]wFMCommunicate OK [21:13:39]SAM_PROTO_SignData done [21:13:39]FM_MakeSignedData done [21:13:39]CreateOFDProtocolMessage [21:13:39]wFMCommunicate request_size=4 [21:13:39]MH_SAM_APDU [21:13:39]CAPDU: 80 11 00 00 [21:13:39]Write to MH i2c: E2 08 00 AD 59 80 11 00 00 00 00 00 00 80 [21:13:39]Write i2c OK [21:13:39]MH_I2C_Read... [21:13:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:13:39]Read from MH i2c: E2 [21:13:39]MH_I2C_Read... [21:13:39]Read from MH i2c: E2 17 00 [21:13:39]MH_I2C_Read... [21:13:39]Read from MH i2c: E2 17 00 AD 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 DC [21:13:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [21:13:39]wFMCommunicate OK [21:13:39]CreateOFDProtocolMessage done [21:13:39]OFDSenderStorePacket 45254 [21:13:39]StoreOFDPacket docnum=45254 [21:13:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 27 01 00 00 CE 02 1F 01 2D 06 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 30 31 37 33 33 37 32 06 04 26 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B4 D0 BB D1 8F 20 D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 43 6C 61 73 73 69 63 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 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 0F E8 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 C6 B0 00 00 35 04 06 00 E6 F7 0B 4D 61 E4 E5 B1 3C 5D 45 C7 61 36 [21:13:39]CheckFolder [21:13:39]dirname=/storage/ofd_packets [21:13:39]CheckFolder done [21:13:39]ProducePacketName [21:13:39]name=ofd_packets/00045254 [21:13:39]NVStorageSaveData ofd_packets/00045254 [21:13:39]File name is /storage/ofd_packets/00045254 [21:13:39]Write 325 bytes [21:13:39]NVStorageSaveData done [21:13:39]OFDSenderStorePacket done [21:13:39]KKMCreateOFDPacket done [21:13:39]NVStorageSaveData kkm_last_timestamp [21:13:39]File name is /storage/kkm_last_timestamp [21:13:39]Write 4 bytes [21:13:39]NVStorageSaveData done [21:13:39]ExternCall_PrintAddStr [21:13:39]wPrintStart [21:13:39]Write to MH i2c: 01 00 00 AE 59 07 [21:13:39]Write i2c OK [21:13:39]MH_I2C_Read... [21:13:39]Read from MH i2c: 01 [21:13:39]MH_I2C_Read... [21:13:39]Read from MH i2c: 01 07 00 [21:13:39]MH_I2C_Read... [21:13:39]Read from MH i2c: 01 07 00 AE 59 00 00 00 00 00 FF 0F 1C [21:13:39]RasterBufferAndPrint [21:13:39]line Счет N : (3)184214 [21:13:39]line ИНН: 02508201610067 [21:13:39]line Контрольно-Кассовый Чек [21:13:39]line ПРОДАЖА [21:13:39]line Товар: 50173372 [21:13:39]line Жев Orbit для детей Classic [21:13:39]line 1.000 * 40.00 [21:13:39]line = 40.00 [21:13:39]line НДС 12% НСП 1% [21:13:39]line > о реализуемом товаре [21:13:39]line ИТОГО: 40.00 [21:13:39]line НСП 1% : 0.35 [21:13:39]line НДС 12% : 4.25 [21:13:39]line Наличными: 40.00 [21:13:39]line Безнал.: 0.00 [21:13:39]line Место: АЗС № 25 "Партнер Нефть" [21:13:39]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [21:13:39]line СНО: Общий режим [21:13:39]line Чек 91 03.03.2024 21:13 [21:13:39]line Смена: 331 ФФД: 1.0 [21:13:39]line ЗНМ: 0300000013 [21:13:39]line РНМ: 0000000000090572 [21:13:39]line Версия ККМ: 001 [21:13:39]line ФМ: 0000000000874796 [21:13:39]line ФД: 45254 [21:13:39]line ФПД: 253948720931300 [21:13:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T211351&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45254&fm=253948720931300&tin=02508201610067®Number=0000000000090572&sum=4000 [21:13:40]line 0 [21:13:40]OFD Sender: Processing packet 45254 [packets to send 17, broken 16] [21:13:40]ProducePacketName [21:13:40]name=ofd_packets/00045254 [21:13:40]OFD Sender: To server: pG, [21:13:40]CommunicateWithHost lk.salyk.kg:30040 [21:13:40]ConnectInit lk.salyk.kg [21:13:40]written 0, free lines is 4095 [21:13:40]Connected sock=10 [21:13:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 27 01 00 00 CE 02 1F 01 2D 06 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 30 31 37 33 33 37 32 06 04 26 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B4 D0 BB D1 8F 20 D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 43 6C 61 73 73 69 63 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 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 0F E8 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 C6 B0 00 00 35 04 06 00 E6 F7 0B 4D 61 E4 E5 B1 3C 5D 45 C7 61 36 [21:13:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 AF F5 47 00 11 01 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 C6 B0 00 00 F4 03 04 00 D3 93 E4 65 B6 04 01 00 00 59 60 62 4C 90 67 65 12 [21:13:40]CommunicateWithHost err = 0 [21:13:40]CheckOFDResponse [21:13:40]1017 (14) - 77093643461234 [21:13:40]1041 (16) - 0000000000874796 [21:13:40]1040 (4) - 45254 [21:13:40]1012 (4) - 03.03.2024 15:14 [21:13:40]1206 (1) - 0 [21:13:40]OFD Sender: Remove packet 45254 [21:13:40]ProducePacketName [21:13:40]name=ofd_packets/00045254 [21:13:40]NVStorageDeleteData [21:13:40]Write to MH i2c: 01 00 00 D6 59 2F [21:13:40]Write i2c OK [21:13:40]MH_I2C_Read... [21:13:40]Read from MH i2c: 01 [21:13:40]MH_I2C_Read... [21:13:40]Read from MH i2c: 01 07 00 [21:13:40]MH_I2C_Read... [21:13:40]Read from MH i2c: 01 07 00 D6 59 00 00 00 00 00 FE 0C 40 [21:13:40]RasterBufferAndPrint [21:13:40]line [21:13:40]line [21:13:40]line [21:13:40]line [21:13:40]line [21:13:40]written 0, free lines is 3332 [21:13:40]MH_Cut [21:13:40]Write to MH i2c: D1 01 00 DD 59 01 08 [21:13:40]Write i2c OK [21:13:40]MH_I2C_Read... [21:13:40]Read from MH i2c: D1 [21:13:40]MH_I2C_Read... [21:13:40]Read from MH i2c: D1 01 00 [21:13:40]MH_I2C_Read... [21:13:40]Read from MH i2c: D1 01 00 DD 59 00 07 [21:13:40]Write to MH i2c: 01 00 00 DE 59 37 [21:13:40]Write i2c OK [21:13:40]MH_I2C_Read... [21:13:41]OFD Sender: No OFD packet to send [21:13:41]*** Cut start [21:13:41]*** Purtial cut [21:13:41]*** Stage 1: CUTSNS_PIN = 1 [21:13:43]Read from MH i2c: 01 [21:13:43]MH_I2C_Read... [21:13:43]*** Stop cut motor [21:13:43]*** Cut end [21:13:43]Read from MH i2c: 01 07 00 [21:13:43]MH_I2C_Read... [21:13:43]Read from MH i2c: 01 07 00 DE 59 00 00 00 00 00 FF 0F 4C [21:13:43]process_action close_receipt done [21:13:43]requested_data is exist [21:13:43]produce_requested_data [21:13:43]requested_item fm.sn is exist - process it [21:13:43]wFMCommunicate request_size=4 [21:13:43]MH_SAM_APDU [21:13:43]CAPDU: 80 11 00 00 [21:13:43]Write to MH i2c: E2 08 00 DF 59 80 11 00 00 00 00 00 00 B2 [21:13:43]Write i2c OK [21:13:43]MH_I2C_Read... [21:13:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:13:43]Read from MH i2c: E2 [21:13:43]MH_I2C_Read... [21:13:43]Read from MH i2c: E2 17 00 [21:13:43]MH_I2C_Read... [21:13:43]Read from MH i2c: E2 17 00 DF 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 0E [21:13:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [21:13:43]wFMCommunicate OK [21:13:43]requested_item fd.num is exist - process it [21:13:43]SAM_PROTO_GetFieldsCounters [21:13:43]wFMCommunicate request_size=4 [21:13:43]MH_SAM_APDU [21:13:43]CAPDU: 80 13 00 00 [21:13:43]Write to MH i2c: E2 08 00 E0 59 80 13 00 00 00 00 00 00 B5 [21:13:43]Write i2c OK [21:13:43]MH_I2C_Read... [21:13:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:13:43]Read from MH i2c: E2 [21:13:43]MH_I2C_Read... [21:13:43]Read from MH i2c: E2 62 00 [21:13:43]MH_I2C_Read... [21:13:43]Read from MH i2c: E2 62 00 E0 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 C6 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 B0 [21:13:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 C6 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:13:43]wFMCommunicate OK [21:13:43]SAM_PROTO_GetFieldsCounters done [21:13:43]requested_item shift.num is exist - process it [21:13:43]requested_item shift.opened is exist - process it [21:13:43]req_shift_opened [21:13:43]FM_GetShiftState [21:13:43]SAM_PROTO_GetShiftState [21:13:43]wFMCommunicate request_size=4 [21:13:43]MH_SAM_APDU [21:13:43]CAPDU: 80 13 01 00 [21:13:43]Write to MH i2c: E2 08 00 E1 59 80 13 01 00 00 00 00 00 B7 [21:13:43]Write i2c OK [21:13:43]MH_I2C_Read... [21:13:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:13:43]Read from MH i2c: E2 [21:13:43]MH_I2C_Read... [21:13:43]Read from MH i2c: E2 0E 00 [21:13:43]MH_I2C_Read... [21:13:43]Read from MH i2c: E2 0E 00 E1 59 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 ED [21:13:43]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [21:13:43]wFMCommunicate OK [21:13:43]SAM_PROTO_GetShiftState done [21:13:43]FM_GetShiftState done [21:13:43]req_shift_opened done [21:13:43]requested_item shift.open_date is exist - process it [21:13:43]req_shift_open_date [21:13:43]req_shift_open_date done [21:13:43]produce_requested_data done [21:13:43]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45254,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [21:13:43]process_action_free close_receipt [21:13:43]json_value_free [21:13:43]json_value_free done [21:13:43]process_json_proto returns [21:13:43]Send response to host [21:13:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45254,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [21:13:43]free response buf [21:13:43]execute_script done [21:13:43]execute_script returns [21:13:43]free content buf [21:13:43]Sock 9.Close socket [21:13:43]Sock 9.Thread stoped [21:13:46]OFD Sender: No OFD packet to send [21:13:51]OFD Sender: No OFD packet to send [21:13:56]OFD Sender: No OFD packet to send [21:14:01]OFD Sender: No OFD packet to send [21:14:06]OFD Sender: No OFD packet to send [21:14:11]OFD Sender: No OFD packet to send [21:14:16]OFD Sender: No OFD packet to send [21:14:21]OFD Sender: No OFD packet to send [21:14:26]OFD Sender: No OFD packet to send [21:14:31]OFD Sender: No OFD packet to send [21:14:36]OFD Sender: No OFD packet to send [21:14:41]OFD Sender: No OFD packet to send [21:14:46]OFD Sender: No OFD packet to send [21:14:51]OFD Sender: No OFD packet to send [21:14:56]OFD Sender: No OFD packet to send [21:15:01]OFD Sender: No OFD packet to send [21:15:06]OFD Sender: No OFD packet to send [21:15:11]OFD Sender: No OFD packet to send [21:15:16]OFD Sender: No OFD packet to send [21:15:21]OFD Sender: No OFD packet to send [21:15:26]OFD Sender: No OFD packet to send [21:15:31]OFD Sender: No OFD packet to send [21:15:36]OFD Sender: No OFD packet to send [21:15:41]OFD Sender: No OFD packet to send [21:15:46]OFD Sender: No OFD packet to send [21:15:51]OFD Sender: No OFD packet to send [21:15:56]OFD Sender: No OFD packet to send [21:16:01]OFD Sender: No OFD packet to send [21:16:06]OFD Sender: No OFD packet to send [21:16:11]OFD Sender: No OFD packet to send [21:16:16]OFD Sender: No OFD packet to send [21:16:21]OFD Sender: No OFD packet to send [21:16:26]OFD Sender: No OFD packet to send [21:16:31]OFD Sender: No OFD packet to send [21:16:36]OFD Sender: No OFD packet to send [21:16:41]OFD Sender: No OFD packet to send [21:16:46]OFD Sender: No OFD packet to send [21:16:51]OFD Sender: No OFD packet to send [21:16:56]OFD Sender: No OFD packet to send [21:17:01]OFD Sender: No OFD packet to send [21:17:06]OFD Sender: No OFD packet to send [21:17:11]OFD Sender: No OFD packet to send [21:17:16]OFD Sender: No OFD packet to send [21:17:21]OFD Sender: No OFD packet to send [21:17:26]OFD Sender: No OFD packet to send [21:17:31]OFD Sender: No OFD packet to send [21:17:36]OFD Sender: No OFD packet to send [21:17:41]OFD Sender: No OFD packet to send [21:17:46]OFD Sender: No OFD packet to send [21:17:51]OFD Sender: No OFD packet to send [21:17:56]OFD Sender: No OFD packet to send [21:18:01]OFD Sender: No OFD packet to send [21:18:06]OFD Sender: No OFD packet to send [21:18:11]OFD Sender: No OFD packet to send [21:18:16]OFD Sender: No OFD packet to send [21:18:21]OFD Sender: No OFD packet to send [21:18:26]OFD Sender: No OFD packet to send [21:18:31]OFD Sender: No OFD packet to send [21:18:36]OFD Sender: No OFD packet to send [21:18:41]OFD Sender: No OFD packet to send [21:18:46]OFD Sender: No OFD packet to send [21:18:51]OFD Sender: No OFD packet to send [21:18:56]OFD Sender: No OFD packet to send [21:19:01]OFD Sender: No OFD packet to send [21:19:06]OFD Sender: No OFD packet to send [21:19:11]OFD Sender: No OFD packet to send [21:19:16]OFD Sender: No OFD packet to send [21:19:21]OFD Sender: No OFD packet to send [21:19:26]OFD Sender: No OFD packet to send [21:19:31]OFD Sender: No OFD packet to send [21:19:36]OFD Sender: No OFD packet to send [21:19:41]OFD Sender: No OFD packet to send [21:19:46]OFD Sender: No OFD packet to send [21:19:51]OFD Sender: No OFD packet to send [21:19:56]OFD Sender: No OFD packet to send [21:20:01]OFD Sender: No OFD packet to send [21:20:06]OFD Sender: No OFD packet to send [21:20:11]OFD Sender: No OFD packet to send [21:20:16]OFD Sender: No OFD packet to send [21:20:21]OFD Sender: No OFD packet to send [21:20:26]OFD Sender: No OFD packet to send [21:20:31]OFD Sender: No OFD packet to send [21:20:36]OFD Sender: No OFD packet to send [21:20:41]OFD Sender: No OFD packet to send [21:20:46]OFD Sender: No OFD packet to send [21:20:51]OFD Sender: No OFD packet to send [21:20:56]OFD Sender: No OFD packet to send [21:21:01]OFD Sender: No OFD packet to send [21:21:06]OFD Sender: No OFD packet to send [21:21:11]OFD Sender: No OFD packet to send [21:21:16]OFD Sender: No OFD packet to send [21:21:21]OFD Sender: No OFD packet to send [21:21:26]OFD Sender: No OFD packet to send [21:21:31]OFD Sender: No OFD packet to send [21:21:36]OFD Sender: No OFD packet to send [21:21:41]OFD Sender: No OFD packet to send [21:21:46]OFD Sender: No OFD packet to send [21:21:51]OFD Sender: No OFD packet to send [21:21:56]OFD Sender: No OFD packet to send [21:22:01]OFD Sender: No OFD packet to send [21:22:06]OFD Sender: No OFD packet to send [21:22:11]OFD Sender: No OFD packet to send [21:22:16]OFD Sender: No OFD packet to send [21:22:21]OFD Sender: No OFD packet to send [21:22:26]OFD Sender: No OFD packet to send [21:22:31]OFD Sender: No OFD packet to send [21:22:36]OFD Sender: No OFD packet to send [21:22:41]OFD Sender: No OFD packet to send [21:22:46]OFD Sender: No OFD packet to send [21:22:51]OFD Sender: No OFD packet to send [21:22:56]OFD Sender: No OFD packet to send [21:23:01]OFD Sender: No OFD packet to send [21:23:06]OFD Sender: No OFD packet to send [21:23:11]OFD Sender: No OFD packet to send [21:23:16]OFD Sender: No OFD packet to send [21:23:21]OFD Sender: No OFD packet to send [21:23:26]OFD Sender: No OFD packet to send [21:23:31]OFD Sender: No OFD packet to send [21:23:36]OFD Sender: No OFD packet to send [21:23:41]OFD Sender: No OFD packet to send [21:23:46]OFD Sender: No OFD packet to send [21:23:51]OFD Sender: No OFD packet to send [21:23:56]OFD Sender: No OFD packet to send [21:24:01]OFD Sender: No OFD packet to send [21:24:06]OFD Sender: No OFD packet to send [21:24:11]OFD Sender: No OFD packet to send [21:24:16]OFD Sender: No OFD packet to send [21:24:21]OFD Sender: No OFD packet to send [21:24:26]OFD Sender: No OFD packet to send [21:24:31]OFD Sender: No OFD packet to send [21:24:36]OFD Sender: No OFD packet to send [21:24:41]OFD Sender: No OFD packet to send [21:24:46]OFD Sender: No OFD packet to send [21:24:51]OFD Sender: No OFD packet to send [21:24:56]OFD Sender: No OFD packet to send [21:25:01]OFD Sender: No OFD packet to send [21:25:06]OFD Sender: No OFD packet to send [21:25:11]OFD Sender: No OFD packet to send [21:25:16]OFD Sender: No OFD packet to send [21:25:21]OFD Sender: No OFD packet to send [21:25:26]OFD Sender: No OFD packet to send [21:25:31]OFD Sender: No OFD packet to send [21:25:36]OFD Sender: No OFD packet to send [21:25:41]OFD Sender: No OFD packet to send [21:25:46]OFD Sender: No OFD packet to send [21:25:49]accept exits with 7 [21:25:49]New connection [21:25:49]New thread 3067014500 created [21:25:49]Thread 3067157860 joined [21:25:49]Waiting for new connection... [21:25:49] Sock 7.Parse request [21:25:49]Sock 7.Check first char [21:25:49]Sock 7.First char is OK [21:25:49]request: POST /json_proto HTTP/1.0 [21:25:49]Method: POST [21:25:49]URL: /json_proto [21:25:49]Method is POST - this is cgi request [21:25:49]url: /json_proto [21:25:49]query_string will be loaded in cgi processing [21:25:49]execute_cgi json_proto POST (null) [21:25:49]execute_cgi path=json_proto method=POST [21:25:49]POST find Content-Length [21:25:49]Host: 172.17.48.198:8080 [21:25:49]Content-Length: 621 [21:25:49]Content-Type: application/json [21:25:49] [21:25:49]POST finish read [21:25:49]Found Content-Length = 621 [21:25:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184215", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:25:49]execute_script... [21:25:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184215", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:25:49]POST & json_proto [21:25:49]process_json_proto [21:25:49]json parsed OK: [21:25:49]protocol is kg_v1.0 [21:25:49]action value=close_receipt [21:25:49]process_action close_receipt [21:25:49]cmd_close_receipt [21:25:49]MH_GetDate [21:25:49]Write to MH i2c: F0 00 00 E2 59 2A [21:25:49]Write i2c OK [21:25:49]MH_I2C_Read... [21:25:49]Read from MH i2c: F0 [21:25:49]MH_I2C_Read... [21:25:49]Read from MH i2c: F0 09 00 [21:25:49]MH_I2C_Read... [21:25:49]Read from MH i2c: F0 09 00 E2 59 00 EA EA E4 65 CE C4 D4 65 1B [21:25:49]GetLastDocTimeStamp 1709500431 [21:25:49]current date 1709501162 [21:25:49]FM_GetShiftState [21:25:49]SAM_PROTO_GetShiftState [21:25:49]wFMCommunicate request_size=4 [21:25:49]MH_SAM_APDU [21:25:49]CAPDU: 80 13 01 00 [21:25:49]Write to MH i2c: E2 08 00 E3 59 80 13 01 00 00 00 00 00 B9 [21:25:49]Write i2c OK [21:25:49]MH_I2C_Read... [21:25:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:25:49]Read from MH i2c: E2 [21:25:49]MH_I2C_Read... [21:25:49]Read from MH i2c: E2 0E 00 [21:25:49]MH_I2C_Read... [21:25:49]Read from MH i2c: E2 0E 00 E3 59 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 EF [21:25:49]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [21:25:49]wFMCommunicate OK [21:25:49]SAM_PROTO_GetShiftState done [21:25:49]FM_GetShiftState done [21:25:49]opened in 1709425694 [21:25:49]opened+sec_in_day 1709512094 [21:25:49]quantity*price = 13500 [21:25:49]sum+1 = 13501 [21:25:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 135.00 НСП 1% : 1.19 НДС 12% : 14.34 Наличными: 135.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 92 03.03.2024 21:26 Смена: 331 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 ФМ: 0000000000874796 ФД: 45255 ФПД: 237498383263762 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T212602&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45255&fm=237498383263762&tin=02508201610067®Number=0000000000090572&sum=13500 0 [21:25:50]StoreToDocumentArchive [21:25:50]shift 331 fd 45255 [21:25:50]save to /storage/0331/doc_00045255 [21:25:50]save last doc name /storage/0331/doc_00045255 to /storage/kkm_last_doc_name [21:25:50]save OK [21:25:50]Clear old archive folders... [21:25:50]ProcessDocumentItem done err = 0, tmpTLVsize=273 [21:25:50]tlvbuf is 01CF1550 [21:25:50]SAM_PROTO_ClearQueue [21:25:50]wFMCommunicate request_size=4 [21:25:50]MH_SAM_APDU [21:25:50]CAPDU: 80 09 00 00 [21:25:50]Write to MH i2c: E2 08 00 F0 59 80 09 00 00 00 00 00 00 BB [21:25:50]Write i2c OK [21:25:50]MH_I2C_Read... [21:25:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:25:50]Read from MH i2c: E2 [21:25:50]MH_I2C_Read... [21:25:50]Read from MH i2c: E2 03 00 [21:25:50]MH_I2C_Read... [21:25:50]Read from MH i2c: E2 03 00 F0 59 00 90 00 BD [21:25:50]RAPDU: 90 00 [21:25:50]wFMCommunicate OK [21:25:50]SAM_PROTO_ClearQueue done [21:25:50]KKMCreateOFDPacket [21:25:50]OFDProtocolAddRootSTLVToBuf [21:25:50]FM_MakeSignedData [21:25:50]FM_MakeSignedData [21:25:50]SAM_PROTO_SignData [21:25:50]wFMCommunicate request_size=4 [21:25:50]MH_SAM_APDU [21:25:50]CAPDU: 80 0D 01 02 [21:25:50]Write to MH i2c: E2 08 00 F1 59 80 0D 01 02 00 00 00 00 C3 [21:25:50]Write i2c OK [21:25:50]MH_I2C_Read... [21:25:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:25:50]Read from MH i2c: E2 [21:25:50]MH_I2C_Read... [21:25:50]Read from MH i2c: E2 03 00 [21:25:50]MH_I2C_Read... [21:25:50]Read from MH i2c: E2 03 00 F1 59 00 90 00 BE [21:25:50]RAPDU: 90 00 [21:25:50]wFMCommunicate OK [21:25:50]wFMCommunicate request_size=255 [21:25:50]MH_SAM_APDU [21:25:50]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 EA EA E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 [21:25:50]Write to MH i2c: E2 02 01 F2 59 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 EA EA E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 00 00 69 [21:25:50]Write i2c OK [21:25:50]MH_I2C_Read... [21:25:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:25:50]Read from MH i2c: E2 [21:25:50]MH_I2C_Read... [21:25:50]Read from MH i2c: E2 03 00 [21:25:50]MH_I2C_Read... [21:25:50]Read from MH i2c: E2 03 00 F2 59 00 90 00 BF [21:25:50]RAPDU: 90 00 [21:25:50]wFMCommunicate OK [21:25:50]wFMCommunicate request_size=32 [21:25:50]MH_SAM_APDU [21:25:50]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 37 39 36 10 04 04 00 C7 B0 00 00 35 04 06 00 D8 00 E6 C4 E8 12 [21:25:50]Write to MH i2c: E2 23 00 F3 59 80 0D 02 02 1B 00 30 30 30 38 37 34 37 39 36 10 04 04 00 C7 B0 00 00 35 04 06 00 D8 00 E6 C4 E8 12 00 00 1F [21:25:50]Write i2c OK [21:25:50]MH_I2C_Read... [21:25:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:25:50]Read from MH i2c: E2 [21:25:50]MH_I2C_Read... [21:25:50]Read from MH i2c: E2 03 00 [21:25:50]MH_I2C_Read... [21:25:50]Read from MH i2c: E2 03 00 F3 59 00 90 00 C0 [21:25:50]RAPDU: 90 00 [21:25:50]wFMCommunicate OK [21:25:50]wFMCommunicate request_size=4 [21:25:50]MH_SAM_APDU [21:25:50]CAPDU: 80 0D 03 02 [21:25:50]Write to MH i2c: E2 08 00 F4 59 80 0D 03 02 00 00 00 00 C8 [21:25:50]Write i2c OK [21:25:50]MH_I2C_Read... [21:25:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:25:50]Read from MH i2c: E2 [21:25:50]MH_I2C_Read... [21:25:50]Read from MH i2c: E2 0B 00 [21:25:50]MH_I2C_Read... [21:25:50]Read from MH i2c: E2 0B 00 F4 59 00 68 0D 25 22 CB 8C DD 95 90 00 4E [21:25:50]RAPDU: 68 0D 25 22 CB 8C DD 95 90 00 [21:25:50]wFMCommunicate OK [21:25:50]SAM_PROTO_SignData done [21:25:50]FM_MakeSignedData done [21:25:50]CreateOFDProtocolMessage [21:25:50]wFMCommunicate request_size=4 [21:25:50]MH_SAM_APDU [21:25:50]CAPDU: 80 11 00 00 [21:25:50]Write to MH i2c: E2 08 00 F5 59 80 11 00 00 00 00 00 00 C8 [21:25:50]Write i2c OK [21:25:50]MH_I2C_Read... [21:25:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:25:50]Read from MH i2c: E2 [21:25:50]MH_I2C_Read... [21:25:50]Read from MH i2c: E2 17 00 [21:25:50]MH_I2C_Read... [21:25:50]Read from MH i2c: E2 17 00 F5 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 24 [21:25:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [21:25:50]wFMCommunicate OK [21:25:50]CreateOFDProtocolMessage done [21:25:50]OFDSenderStorePacket 45255 [21:25:50]StoreOFDPacket docnum=45255 [21:25:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 25 01 00 00 3C A8 1D 01 23 BF 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 EA EA E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 C7 B0 00 00 35 04 06 00 D8 00 E6 C4 E8 12 68 0D 25 22 CB 8C DD 95 [21:25:50]CheckFolder [21:25:50]dirname=/storage/ofd_packets [21:25:50]CheckFolder done [21:25:50]ProducePacketName [21:25:50]name=ofd_packets/00045255 [21:25:50]NVStorageSaveData ofd_packets/00045255 [21:25:50]File name is /storage/ofd_packets/00045255 [21:25:50]Write 323 bytes [21:25:50]NVStorageSaveData done [21:25:50]OFDSenderStorePacket done [21:25:50]KKMCreateOFDPacket done [21:25:50]NVStorageSaveData kkm_last_timestamp [21:25:50]File name is /storage/kkm_last_timestamp [21:25:50]Write 4 bytes [21:25:50]NVStorageSaveData done [21:25:50]ExternCall_PrintAddStr [21:25:50]wPrintStart [21:25:50]Write to MH i2c: 01 00 00 F6 59 4F [21:25:50]Write i2c OK [21:25:50]MH_I2C_Read... [21:25:50]Read from MH i2c: 01 [21:25:50]MH_I2C_Read... [21:25:50]Read from MH i2c: 01 07 00 [21:25:50]MH_I2C_Read... [21:25:50]Read from MH i2c: 01 07 00 F6 59 00 00 00 00 00 FF 0F 64 [21:25:50]RasterBufferAndPrint [21:25:50]line Счет N : (3)184215 [21:25:50]line ИНН: 02508201610067 [21:25:50]line Контрольно-Кассовый Чек [21:25:50]line ПРОДАЖА [21:25:50]line Товар: 48743570 [21:25:50]line Сигареты Winston XStyle Blue [21:25:50]line 1.000 * 135.00 [21:25:50]line = 135.00 [21:25:50]line НДС 12% НСП 1% [21:25:50]line > о реализуемом товаре [21:25:50]line ИТОГО: 135.00 [21:25:50]line НСП 1% : 1.19 [21:25:50]line НДС 12% : 14.34 [21:25:50]line Наличными: 135.00 [21:25:50]line Безнал.: 0.00 [21:25:50]line Место: АЗС № 25 "Партнер Нефть" [21:25:50]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [21:25:50]line СНО: Общий режим [21:25:50]line Чек 92 03.03.2024 21:26 [21:25:50]line Смена: 331 ФФД: 1.0 [21:25:50]line ЗНМ: 0300000013 [21:25:50]line РНМ: 0000000000090572 [21:25:50]line Версия ККМ: 001 [21:25:50]line ФМ: 0000000000874796 [21:25:50]line ФД: 45255 [21:25:50]line ФПД: 237498383263762 [21:25:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T212602&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45255&fm=237498383263762&tin=02508201610067®Number=0000000000090572&sum=13500 [21:25:50]line 0 [21:25:51]written 0, free lines is 4095 [21:25:51]OFD Sender: Processing packet 45255 [packets to send 17, broken 16] [21:25:51]ProducePacketName [21:25:51]name=ofd_packets/00045255 [21:25:51]OFD Sender: To server: pG, [21:25:51]CommunicateWithHost lk.salyk.kg:30040 [21:25:51]ConnectInit lk.salyk.kg [21:25:51]Connected sock=10 [21:25:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 25 01 00 00 3C A8 1D 01 23 BF 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 EA EA E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 C7 B0 00 00 35 04 06 00 D8 00 E6 C4 E8 12 68 0D 25 22 CB 8C DD 95 [21:25:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 EA AD 47 00 2A F9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 C7 B0 00 00 F4 03 04 00 AE 96 E4 65 B6 04 01 00 00 73 BA 00 B0 53 69 0E 2D [21:25:51]CommunicateWithHost err = 0 [21:25:51]CheckOFDResponse [21:25:51]1017 (14) - 77093643461234 [21:25:51]1041 (16) - 0000000000874796 [21:25:51]1040 (4) - 45255 [21:25:51]1012 (4) - 03.03.2024 15:26 [21:25:51]1206 (1) - 0 [21:25:51]OFD Sender: Remove packet 45255 [21:25:51]ProducePacketName [21:25:51]name=ofd_packets/00045255 [21:25:51]NVStorageDeleteData [21:25:51]Write to MH i2c: 01 00 00 1E 5A 78 [21:25:51]Write i2c OK [21:25:51]MH_I2C_Read... [21:25:51]Read from MH i2c: 01 [21:25:51]MH_I2C_Read... [21:25:51]Read from MH i2c: 01 07 00 [21:25:51]MH_I2C_Read... [21:25:51]Read from MH i2c: 01 07 00 1E 5A 00 00 00 00 00 03 0D 8F [21:25:51]RasterBufferAndPrint [21:25:51]line [21:25:51]line [21:25:51]line [21:25:51]line [21:25:51]line [21:25:51]written 0, free lines is 3340 [21:25:51]MH_Cut [21:25:51]Write to MH i2c: D1 01 00 25 5A 01 51 [21:25:51]Write i2c OK [21:25:51]MH_I2C_Read... [21:25:51]Read from MH i2c: D1 [21:25:51]MH_I2C_Read... [21:25:51]Read from MH i2c: D1 01 00 [21:25:51]MH_I2C_Read... [21:25:51]Read from MH i2c: D1 01 00 25 5A 00 50 [21:25:51]Write to MH i2c: 01 00 00 26 5A 80 [21:25:51]Write i2c OK [21:25:51]MH_I2C_Read... [21:25:52]OFD Sender: No OFD packet to send [21:25:52]*** Cut start [21:25:52]*** Purtial cut [21:25:52]*** Stage 1: CUTSNS_PIN = 1 [21:25:54]Read from MH i2c: 01 [21:25:54]MH_I2C_Read... [21:25:54]*** Stop cut motor [21:25:54]*** Cut end [21:25:54]Read from MH i2c: 01 07 00 [21:25:54]MH_I2C_Read... [21:25:54]Read from MH i2c: 01 07 00 26 5A 00 00 00 00 00 FF 0F 95 [21:25:54]process_action close_receipt done [21:25:54]requested_data is exist [21:25:54]produce_requested_data [21:25:54]requested_item fm.sn is exist - process it [21:25:54]wFMCommunicate request_size=4 [21:25:54]MH_SAM_APDU [21:25:54]CAPDU: 80 11 00 00 [21:25:54]Write to MH i2c: E2 08 00 27 5A 80 11 00 00 00 00 00 00 FB [21:25:54]Write i2c OK [21:25:54]MH_I2C_Read... [21:25:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:25:54]Read from MH i2c: E2 [21:25:54]MH_I2C_Read... [21:25:54]Read from MH i2c: E2 17 00 [21:25:54]MH_I2C_Read... [21:25:54]Read from MH i2c: E2 17 00 27 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 57 [21:25:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [21:25:54]wFMCommunicate OK [21:25:54]requested_item fd.num is exist - process it [21:25:54]SAM_PROTO_GetFieldsCounters [21:25:54]wFMCommunicate request_size=4 [21:25:54]MH_SAM_APDU [21:25:54]CAPDU: 80 13 00 00 [21:25:54]Write to MH i2c: E2 08 00 28 5A 80 13 00 00 00 00 00 00 FE [21:25:54]Write i2c OK [21:25:54]MH_I2C_Read... [21:25:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:25:54]Read from MH i2c: E2 [21:25:54]MH_I2C_Read... [21:25:54]Read from MH i2c: E2 62 00 [21:25:54]MH_I2C_Read... [21:25:54]Read from MH i2c: E2 62 00 28 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 C7 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 FD [21:25:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 C7 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:25:54]wFMCommunicate OK [21:25:54]SAM_PROTO_GetFieldsCounters done [21:25:54]requested_item shift.num is exist - process it [21:25:54]requested_item shift.opened is exist - process it [21:25:54]req_shift_opened [21:25:54]FM_GetShiftState [21:25:54]SAM_PROTO_GetShiftState [21:25:54]wFMCommunicate request_size=4 [21:25:54]MH_SAM_APDU [21:25:54]CAPDU: 80 13 01 00 [21:25:54]Write to MH i2c: E2 08 00 29 5A 80 13 01 00 00 00 00 00 00 [21:25:54]Write i2c OK [21:25:54]MH_I2C_Read... [21:25:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:25:54]Read from MH i2c: E2 [21:25:54]MH_I2C_Read... [21:25:54]Read from MH i2c: E2 0E 00 [21:25:54]MH_I2C_Read... [21:25:54]Read from MH i2c: E2 0E 00 29 5A 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 36 [21:25:54]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [21:25:54]wFMCommunicate OK [21:25:54]SAM_PROTO_GetShiftState done [21:25:54]FM_GetShiftState done [21:25:54]req_shift_opened done [21:25:54]requested_item shift.open_date is exist - process it [21:25:54]req_shift_open_date [21:25:54]req_shift_open_date done [21:25:54]produce_requested_data done [21:25:54]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45255,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [21:25:54]process_action_free close_receipt [21:25:54]json_value_free [21:25:54]json_value_free done [21:25:54]process_json_proto returns [21:25:54]Send response to host [21:25:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45255,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [21:25:54]free response buf [21:25:54]execute_script done [21:25:54]execute_script returns [21:25:54]free content buf [21:25:54]Sock 7.Close socket [21:25:54]Sock 7.Thread stoped [21:25:57]OFD Sender: No OFD packet to send [21:26:02]OFD Sender: No OFD packet to send [21:26:07]OFD Sender: No OFD packet to send [21:26:12]OFD Sender: No OFD packet to send [21:26:17]OFD Sender: No OFD packet to send [21:26:22]OFD Sender: No OFD packet to send [21:26:27]OFD Sender: No OFD packet to send [21:26:32]OFD Sender: No OFD packet to send [21:26:32]accept exits with 9 [21:26:32]New connection [21:26:32]New thread 3067157860 created [21:26:32]Thread 3067014500 joined [21:26:32]Waiting for new connection... [21:26:32] Sock 9.Parse request [21:26:32]Sock 9.Check first char [21:26:32]Sock 9.First char is OK [21:26:32]request: POST /json_proto HTTP/1.0 [21:26:32]Method: POST [21:26:32]URL: /json_proto [21:26:32]Method is POST - this is cgi request [21:26:32]url: /json_proto [21:26:32]query_string will be loaded in cgi processing [21:26:32]execute_cgi json_proto POST (null) [21:26:32]execute_cgi path=json_proto method=POST [21:26:32]POST find Content-Length [21:26:32]Host: 172.17.48.198:8080 [21:26:32]Content-Length: 817 [21:26:32]Content-Type: application/json [21:26:32] [21:26:32]POST finish read [21:26:32]Found Content-Length = 817 [21:26:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106343", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.080, "sum" : 500.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:26:32]execute_script... [21:26:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106343", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.080, "sum" : 500.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:26:32]POST & json_proto [21:26:32]process_json_proto [21:26:32]json parsed OK: [21:26:32]protocol is kg_v1.0 [21:26:32]action value=close_receipt [21:26:32]process_action close_receipt [21:26:32]cmd_close_receipt [21:26:32]MH_GetDate [21:26:32]Write to MH i2c: F0 00 00 2A 5A 73 [21:26:32]Write i2c OK [21:26:32]MH_I2C_Read... [21:26:32]Read from MH i2c: F0 [21:26:32]MH_I2C_Read... [21:26:32]Read from MH i2c: F0 09 00 [21:26:32]MH_I2C_Read... [21:26:32]Read from MH i2c: F0 09 00 2A 5A 00 16 EB E4 65 CE C4 D4 65 91 [21:26:32]GetLastDocTimeStamp 1709501162 [21:26:32]current date 1709501206 [21:26:32]FM_GetShiftState [21:26:32]SAM_PROTO_GetShiftState [21:26:32]wFMCommunicate request_size=4 [21:26:32]MH_SAM_APDU [21:26:32]CAPDU: 80 13 01 00 [21:26:32]Write to MH i2c: E2 08 00 2B 5A 80 13 01 00 00 00 00 00 02 [21:26:32]Write i2c OK [21:26:32]MH_I2C_Read... [21:26:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:26:32]Read from MH i2c: E2 [21:26:32]MH_I2C_Read... [21:26:32]Read from MH i2c: E2 0E 00 [21:26:32]MH_I2C_Read... [21:26:32]Read from MH i2c: E2 0E 00 2B 5A 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 38 [21:26:32]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [21:26:32]wFMCommunicate OK [21:26:32]SAM_PROTO_GetShiftState done [21:26:32]FM_GetShiftState done [21:26:32]opened in 1709425694 [21:26:32]opened+sec_in_day 1709512094 [21:26:32]quantity*price = 50015 [21:26:32]sum+1 = 50016 [21:26:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.15 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.15 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 93 03.03.2024 21:26 Смена: 331 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874796 ФД: 45256 ФПД: 124686277446100 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T212646&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45256&fm=124686277446100&tin=02508201610067®Number=0000000000090572&sum=50015 [21:26:34]StoreToDocumentArchive [21:26:34]shift 331 fd 45256 [21:26:34]save to /storage/0331/doc_00045256 [21:26:34]save last doc name /storage/0331/doc_00045256 to /storage/kkm_last_doc_name [21:26:34]save OK [21:26:34]Clear old archive folders... [21:26:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:26:34]tlvbuf is 01B1F1F0 [21:26:34]SAM_PROTO_ClearQueue [21:26:34]wFMCommunicate request_size=4 [21:26:34]MH_SAM_APDU [21:26:34]CAPDU: 80 09 00 00 [21:26:34]Write to MH i2c: E2 08 00 38 5A 80 09 00 00 00 00 00 00 04 [21:26:34]Write i2c OK [21:26:34]MH_I2C_Read... [21:26:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:26:34]Read from MH i2c: E2 [21:26:34]MH_I2C_Read... [21:26:34]Read from MH i2c: E2 03 00 [21:26:34]MH_I2C_Read... [21:26:34]Read from MH i2c: E2 03 00 38 5A 00 90 00 06 [21:26:34]RAPDU: 90 00 [21:26:34]wFMCommunicate OK [21:26:34]SAM_PROTO_ClearQueue done [21:26:34]KKMCreateOFDPacket [21:26:34]OFDProtocolAddRootSTLVToBuf [21:26:34]FM_MakeSignedData [21:26:34]FM_MakeSignedData [21:26:34]SAM_PROTO_SignData [21:26:34]wFMCommunicate request_size=4 [21:26:34]MH_SAM_APDU [21:26:34]CAPDU: 80 0D 01 02 [21:26:34]Write to MH i2c: E2 08 00 39 5A 80 0D 01 02 00 00 00 00 0C [21:26:34]Write i2c OK [21:26:34]MH_I2C_Read... [21:26:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:26:34]Read from MH i2c: E2 [21:26:34]MH_I2C_Read... [21:26:34]Read from MH i2c: E2 03 00 [21:26:34]MH_I2C_Read... [21:26:34]Read from MH i2c: E2 03 00 39 5A 00 90 00 07 [21:26:34]RAPDU: 90 00 [21:26:34]wFMCommunicate OK [21:26:34]wFMCommunicate request_size=255 [21:26:34]MH_SAM_APDU [21:26:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 16 EB E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 C8 B0 00 00 35 04 06 00 71 [21:26:34]Write to MH i2c: E2 02 01 3A 5A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 16 EB E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 C8 B0 00 00 35 04 06 00 71 00 00 E3 [21:26:34]Write i2c OK [21:26:34]MH_I2C_Read... [21:26:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:26:34]Read from MH i2c: E2 [21:26:34]MH_I2C_Read... [21:26:34]Read from MH i2c: E2 03 00 [21:26:34]MH_I2C_Read... [21:26:34]Read from MH i2c: E2 03 00 3A 5A 00 90 00 08 [21:26:34]RAPDU: 90 00 [21:26:34]wFMCommunicate OK [21:26:34]wFMCommunicate request_size=10 [21:26:34]MH_SAM_APDU [21:26:34]CAPDU: 80 0D 02 02 05 66 C9 46 89 D4 [21:26:34]Write to MH i2c: E2 0D 00 3B 5A 80 0D 02 02 05 00 66 C9 46 89 D4 00 00 EB [21:26:34]Write i2c OK [21:26:34]MH_I2C_Read... [21:26:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:26:34]Read from MH i2c: E2 [21:26:34]MH_I2C_Read... [21:26:34]Read from MH i2c: E2 03 00 [21:26:34]MH_I2C_Read... [21:26:34]Read from MH i2c: E2 03 00 3B 5A 00 90 00 09 [21:26:34]RAPDU: 90 00 [21:26:34]wFMCommunicate OK [21:26:34]wFMCommunicate request_size=4 [21:26:34]MH_SAM_APDU [21:26:34]CAPDU: 80 0D 03 02 [21:26:34]Write to MH i2c: E2 08 00 3C 5A 80 0D 03 02 00 00 00 00 11 [21:26:34]Write i2c OK [21:26:34]MH_I2C_Read... [21:26:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:26:34]Read from MH i2c: E2 [21:26:34]MH_I2C_Read... [21:26:34]Read from MH i2c: E2 0B 00 [21:26:34]MH_I2C_Read... [21:26:34]Read from MH i2c: E2 0B 00 3C 5A 00 CB E4 DA 82 16 CC 6E C8 90 00 35 [21:26:34]RAPDU: CB E4 DA 82 16 CC 6E C8 90 00 [21:26:34]wFMCommunicate OK [21:26:34]SAM_PROTO_SignData done [21:26:34]FM_MakeSignedData done [21:26:34]CreateOFDProtocolMessage [21:26:34]wFMCommunicate request_size=4 [21:26:34]MH_SAM_APDU [21:26:34]CAPDU: 80 11 00 00 [21:26:34]Write to MH i2c: E2 08 00 3D 5A 80 11 00 00 00 00 00 00 11 [21:26:34]Write i2c OK [21:26:34]MH_I2C_Read... [21:26:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:26:34]Read from MH i2c: E2 [21:26:34]MH_I2C_Read... [21:26:34]Read from MH i2c: E2 17 00 [21:26:34]MH_I2C_Read... [21:26:34]Read from MH i2c: E2 17 00 3D 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 6D [21:26:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [21:26:34]wFMCommunicate OK [21:26:34]CreateOFDProtocolMessage done [21:26:34]OFDSenderStorePacket 45256 [21:26:34]StoreOFDPacket docnum=45256 [21:26:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0F 01 00 00 94 4F 07 01 18 E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 16 EB E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 C8 B0 00 00 35 04 06 00 71 66 C9 46 89 D4 CB E4 DA 82 16 CC 6E C8 [21:26:34]CheckFolder [21:26:34]dirname=/storage/ofd_packets [21:26:34]CheckFolder done [21:26:34]ProducePacketName [21:26:34]name=ofd_packets/00045256 [21:26:34]NVStorageSaveData ofd_packets/00045256 [21:26:34]File name is /storage/ofd_packets/00045256 [21:26:34]Write 301 bytes [21:26:34]NVStorageSaveData done [21:26:34]OFDSenderStorePacket done [21:26:34]KKMCreateOFDPacket done [21:26:34]NVStorageSaveData kkm_last_timestamp [21:26:34]File name is /storage/kkm_last_timestamp [21:26:34]Write 4 bytes [21:26:34]NVStorageSaveData done [21:26:34]ExternCall_PrintAddStr [21:26:34]wPrintStart [21:26:34]Write to MH i2c: 01 00 00 3E 5A 98 [21:26:34]Write i2c OK [21:26:34]MH_I2C_Read... [21:26:34]Read from MH i2c: 01 [21:26:34]MH_I2C_Read... [21:26:34]Read from MH i2c: 01 07 00 [21:26:34]MH_I2C_Read... [21:26:34]Read from MH i2c: 01 07 00 3E 5A 00 00 00 00 00 FF 0F AD [21:26:34]RasterBufferAndPrint [21:26:34]line Счет N : (1)1106343 [21:26:34]line ИНН: 02508201610067 [21:26:34]line Контрольно-Кассовый Чек [21:26:34]line ПРОДАЖА [21:26:34]line ТРК (МРК, ГНК) : 11 [21:26:34]line Товар: 2710124130 [21:26:34]line Аи-92-К-5 [21:26:34]line 8.080 * 61.90 [21:26:34]line = 500.15 [21:26:34]line НДС 12% НСП 1% [21:26:34]line > о реализуемом товаре [21:26:34]line ИТОГО: 500.15 [21:26:34]line НСП 1% : 4.43 [21:26:34]line НДС 12% : 53.11 [21:26:34]line Наличными: 0.00 [21:26:34]line Безнал.: 500.15 [21:26:34]line Место: АЗС № 25 "Партнер Нефть" [21:26:34]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [21:26:34]line СНО: Общий режим [21:26:34]line Чек 93 03.03.2024 21:26 [21:26:34]line Смена: 331 ФФД: 1.0 [21:26:34]line ЗНМ: 0300000013 [21:26:34]line РНМ: 0000000000090572 [21:26:34]line Версия ККМ: 001 [21:26:34]line Платежная система: Бакай Банк [21:26:34]line ФМ: 0000000000874796 [21:26:34]line ФД: 45256 [21:26:34]line ФПД: 124686277446100 [21:26:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T212646&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45256&fm=124686277446100&tin=02508201610067®Number=0000000000090572&sum=50015 [21:26:34]OFD Sender: Processing packet 45256 [packets to send 17, broken 16] [21:26:34]ProducePacketName [21:26:34]name=ofd_packets/00045256 [21:26:34]OFD Sender: To server: pG, [21:26:34]CommunicateWithHost lk.salyk.kg:30040 [21:26:34]ConnectInit lk.salyk.kg [21:26:34]written 0, free lines is 4095 [21:26:34]Connected sock=10 [21:26:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0F 01 00 00 94 4F 07 01 18 E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 16 EB E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 C8 B0 00 00 35 04 06 00 71 66 C9 46 89 D4 CB E4 DA 82 16 CC 6E C8 [21:26:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 D5 86 47 00 CC 91 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 C8 B0 00 00 F4 03 04 00 DA 96 E4 65 B6 04 01 00 00 32 84 14 FC 9D 70 38 F9 [21:26:35]CommunicateWithHost err = 0 [21:26:35]CheckOFDResponse [21:26:35]1017 (14) - 77093643461234 [21:26:35]1041 (16) - 0000000000874796 [21:26:35]1040 (4) - 45256 [21:26:35]1012 (4) - 03.03.2024 15:27 [21:26:35]1206 (1) - 0 [21:26:35]OFD Sender: Remove packet 45256 [21:26:35]ProducePacketName [21:26:35]name=ofd_packets/00045256 [21:26:35]NVStorageDeleteData [21:26:35]Write to MH i2c: 01 00 00 68 5A C2 [21:26:35]Write i2c OK [21:26:35]MH_I2C_Read... [21:26:35]Read from MH i2c: 01 [21:26:35]MH_I2C_Read... [21:26:35]Read from MH i2c: 01 07 00 [21:26:35]MH_I2C_Read... [21:26:35]Read from MH i2c: 01 07 00 68 5A 00 00 00 00 00 E8 0C BD [21:26:35]RasterBufferAndPrint [21:26:35]line [21:26:35]line [21:26:35]line [21:26:35]line [21:26:35]line [21:26:35]written 0, free lines is 3310 [21:26:35]MH_Cut [21:26:35]Write to MH i2c: D1 01 00 6F 5A 01 9B [21:26:35]Write i2c OK [21:26:35]MH_I2C_Read... [21:26:35]Read from MH i2c: D1 [21:26:35]MH_I2C_Read... [21:26:35]Read from MH i2c: D1 01 00 [21:26:35]MH_I2C_Read... [21:26:35]Read from MH i2c: D1 01 00 6F 5A 00 9A [21:26:35]Write to MH i2c: 01 00 00 70 5A CA [21:26:35]Write i2c OK [21:26:35]MH_I2C_Read... [21:26:35]OFD Sender: No OFD packet to send [21:26:36]*** Cut start [21:26:36]*** Purtial cut [21:26:36]*** Stage 1: CUTSNS_PIN = 1 [21:26:38]Read from MH i2c: 01 [21:26:38]MH_I2C_Read... [21:26:38]*** Stop cut motor [21:26:38]*** Cut end [21:26:38]Read from MH i2c: 01 07 00 [21:26:38]MH_I2C_Read... [21:26:38]Read from MH i2c: 01 07 00 70 5A 00 00 00 00 00 FF 0F DF [21:26:38]process_action close_receipt done [21:26:38]requested_data is exist [21:26:38]produce_requested_data [21:26:38]requested_item fm.sn is exist - process it [21:26:38]wFMCommunicate request_size=4 [21:26:38]MH_SAM_APDU [21:26:38]CAPDU: 80 11 00 00 [21:26:38]Write to MH i2c: E2 08 00 71 5A 80 11 00 00 00 00 00 00 45 [21:26:38]Write i2c OK [21:26:38]MH_I2C_Read... [21:26:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:26:38]Read from MH i2c: E2 [21:26:38]MH_I2C_Read... [21:26:38]Read from MH i2c: E2 17 00 [21:26:38]MH_I2C_Read... [21:26:38]Read from MH i2c: E2 17 00 71 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 A1 [21:26:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [21:26:38]wFMCommunicate OK [21:26:38]requested_item fd.num is exist - process it [21:26:38]SAM_PROTO_GetFieldsCounters [21:26:38]wFMCommunicate request_size=4 [21:26:38]MH_SAM_APDU [21:26:38]CAPDU: 80 13 00 00 [21:26:38]Write to MH i2c: E2 08 00 72 5A 80 13 00 00 00 00 00 00 48 [21:26:38]Write i2c OK [21:26:38]MH_I2C_Read... [21:26:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:26:38]Read from MH i2c: E2 [21:26:38]MH_I2C_Read... [21:26:38]Read from MH i2c: E2 62 00 [21:26:38]MH_I2C_Read... [21:26:38]Read from MH i2c: E2 62 00 72 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 C8 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 4B [21:26:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 C8 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:26:38]wFMCommunicate OK [21:26:38]SAM_PROTO_GetFieldsCounters done [21:26:38]requested_item shift.num is exist - process it [21:26:38]requested_item shift.opened is exist - process it [21:26:38]req_shift_opened [21:26:38]FM_GetShiftState [21:26:38]SAM_PROTO_GetShiftState [21:26:38]wFMCommunicate request_size=4 [21:26:38]MH_SAM_APDU [21:26:38]CAPDU: 80 13 01 00 [21:26:38]Write to MH i2c: E2 08 00 73 5A 80 13 01 00 00 00 00 00 4A [21:26:38]Write i2c OK [21:26:38]MH_I2C_Read... [21:26:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:26:38]Read from MH i2c: E2 [21:26:38]MH_I2C_Read... [21:26:38]Read from MH i2c: E2 0E 00 [21:26:38]MH_I2C_Read... [21:26:38]Read from MH i2c: E2 0E 00 73 5A 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 80 [21:26:38]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [21:26:38]wFMCommunicate OK [21:26:38]SAM_PROTO_GetShiftState done [21:26:38]FM_GetShiftState done [21:26:38]req_shift_opened done [21:26:38]requested_item shift.open_date is exist - process it [21:26:38]req_shift_open_date [21:26:38]req_shift_open_date done [21:26:38]produce_requested_data done [21:26:38]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45256,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [21:26:38]process_action_free close_receipt [21:26:38]json_value_free [21:26:38]json_value_free done [21:26:38]process_json_proto returns [21:26:38]Send response to host [21:26:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45256,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [21:26:38]free response buf [21:26:38]execute_script done [21:26:38]execute_script returns [21:26:38]free content buf [21:26:38]Sock 9.Close socket [21:26:38]Sock 9.Thread stoped [21:26:40]OFD Sender: No OFD packet to send [21:26:45]OFD Sender: No OFD packet to send [21:26:50]OFD Sender: No OFD packet to send [21:26:55]OFD Sender: No OFD packet to send [21:27:00]OFD Sender: No OFD packet to send [21:27:05]OFD Sender: No OFD packet to send [21:27:10]OFD Sender: No OFD packet to send [21:27:15]OFD Sender: No OFD packet to send [21:27:20]OFD Sender: No OFD packet to send [21:27:25]OFD Sender: No OFD packet to send [21:27:30]OFD Sender: No OFD packet to send [21:27:35]OFD Sender: No OFD packet to send [21:27:40]OFD Sender: No OFD packet to send [21:27:45]OFD Sender: No OFD packet to send [21:27:50]OFD Sender: No OFD packet to send [21:27:55]OFD Sender: No OFD packet to send [21:28:00]OFD Sender: No OFD packet to send [21:28:05]OFD Sender: No OFD packet to send [21:28:10]OFD Sender: No OFD packet to send [21:28:15]OFD Sender: No OFD packet to send [21:28:20]OFD Sender: No OFD packet to send [21:28:25]OFD Sender: No OFD packet to send [21:28:30]OFD Sender: No OFD packet to send [21:28:35]OFD Sender: No OFD packet to send [21:28:40]OFD Sender: No OFD packet to send [21:28:45]OFD Sender: No OFD packet to send [21:28:50]OFD Sender: No OFD packet to send [21:28:55]OFD Sender: No OFD packet to send [21:29:00]OFD Sender: No OFD packet to send [21:29:05]OFD Sender: No OFD packet to send [21:29:10]OFD Sender: No OFD packet to send [21:29:15]OFD Sender: No OFD packet to send [21:29:20]OFD Sender: No OFD packet to send [21:29:25]OFD Sender: No OFD packet to send [21:29:30]OFD Sender: No OFD packet to send [21:29:35]OFD Sender: No OFD packet to send [21:29:40]OFD Sender: No OFD packet to send [21:29:45]OFD Sender: No OFD packet to send [21:29:50]OFD Sender: No OFD packet to send [21:29:55]OFD Sender: No OFD packet to send [21:30:00]OFD Sender: No OFD packet to send [21:30:05]OFD Sender: No OFD packet to send [21:30:10]OFD Sender: No OFD packet to send [21:30:15]OFD Sender: No OFD packet to send [21:30:20]OFD Sender: No OFD packet to send [21:30:25]OFD Sender: No OFD packet to send [21:30:30]OFD Sender: No OFD packet to send [21:30:35]OFD Sender: No OFD packet to send [21:30:40]OFD Sender: No OFD packet to send [21:30:45]OFD Sender: No OFD packet to send [21:30:50]OFD Sender: No OFD packet to send [21:30:55]OFD Sender: No OFD packet to send [21:31:00]OFD Sender: No OFD packet to send [21:31:05]OFD Sender: No OFD packet to send [21:31:10]OFD Sender: No OFD packet to send [21:31:15]OFD Sender: No OFD packet to send [21:31:20]OFD Sender: No OFD packet to send [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: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:21]OFD Sender: No OFD packet to send [21:33:26]OFD Sender: No OFD packet to send [21:33:31]OFD Sender: No OFD packet to send [21:33:36]OFD Sender: No OFD packet to send [21:33:41]OFD Sender: No OFD packet to send [21:33:46]OFD Sender: No OFD packet to send [21:33:51]OFD Sender: No OFD packet to send [21:33:56]OFD Sender: No OFD packet to send [21:34:01]OFD Sender: No OFD packet to send [21:34:06]OFD Sender: No OFD packet to send [21:34:11]OFD Sender: No OFD packet to send [21:34:16]OFD Sender: No OFD packet to send [21:34:21]OFD Sender: No OFD packet to send [21:34:26]OFD Sender: No OFD packet to send [21:34:31]OFD Sender: No OFD packet to send [21:34:36]OFD Sender: No OFD packet to send [21:34:41]OFD Sender: No OFD packet to send [21:34:46]OFD Sender: No OFD packet to send [21:34:51]OFD Sender: No OFD packet to send [21:34:56]OFD Sender: No OFD packet to send [21:35:01]OFD Sender: No OFD packet to send [21:35:06]OFD Sender: No OFD packet to send [21:35:11]OFD Sender: No OFD packet to send [21:35:16]OFD Sender: No OFD packet to send [21:35:21]OFD Sender: No OFD packet to send [21:35:26]OFD Sender: No OFD packet to send [21:35:31]OFD Sender: No OFD packet to send [21:35:36]OFD Sender: No OFD packet to send [21:35:41]OFD Sender: No OFD packet to send [21:35:46]OFD Sender: No OFD packet to send [21:35:51]OFD Sender: No OFD packet to send [21:35:56]OFD Sender: No OFD packet to send [21:36:01]OFD Sender: No OFD packet to send [21:36:06]OFD Sender: No OFD packet to send [21:36:11]OFD Sender: No OFD packet to send [21:36:16]OFD Sender: No OFD packet to send [21:36: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:46]OFD Sender: No OFD packet to send [21:38:51]OFD Sender: No OFD packet to send [21:38:56]OFD Sender: No OFD packet to send [21:39:01]OFD Sender: No OFD packet to send [21:39:06]OFD Sender: No OFD packet to send [21:39:11]OFD Sender: No OFD packet to send [21:39:16]OFD Sender: No OFD packet to send [21:39:21]OFD Sender: No OFD packet to send [21:39:26]OFD Sender: No OFD packet to send [21:39:31]OFD Sender: No OFD packet to send [21:39:36]OFD Sender: No OFD packet to send [21:39:41]OFD Sender: No OFD packet to send [21:39:46]OFD Sender: No OFD packet to send [21:39:51]OFD Sender: No OFD packet to send [21:39:56]OFD Sender: No OFD packet to send [21:40:01]OFD Sender: No OFD packet to send [21:40:06]OFD Sender: No OFD packet to send [21:40:11]OFD Sender: No OFD packet to send [21:40:16]OFD Sender: No OFD packet to send [21:40:21]OFD Sender: No OFD packet to send [21:40:26]OFD Sender: No OFD packet to send [21:40:31]OFD Sender: No OFD packet to send [21:40:36]OFD Sender: No OFD packet to send [21:40:41]OFD Sender: No OFD packet to send [21:40:46]OFD Sender: No OFD packet to send [21:40:51]OFD Sender: No OFD packet to send [21:40:56]OFD Sender: No OFD packet to send [21:41:01]OFD Sender: No OFD packet to send [21:41:06]OFD Sender: No OFD packet to send [21:41:11]OFD Sender: No OFD packet to send [21:41:16]OFD Sender: No OFD packet to send [21:41:21]OFD Sender: No OFD packet to send [21:41:26]OFD Sender: No OFD packet to send [21:41:31]OFD Sender: No OFD packet to send [21:41:36]OFD Sender: No OFD packet to send [21:41:41]OFD Sender: No OFD packet to send [21:41:46]OFD Sender: No OFD packet to send [21:41:51]OFD Sender: No OFD packet to send [21:41:56]OFD Sender: No OFD packet to send [21:42:01]OFD Sender: No OFD packet to send [21:42:06]OFD Sender: No OFD packet to send [21:42:11]OFD Sender: No OFD packet to send [21:42:16]OFD Sender: No OFD packet to send [21:42:21]OFD Sender: No OFD packet to send [21:42:26]OFD Sender: No OFD packet to send [21:42:31]OFD Sender: No OFD packet to send [21:42:36]OFD Sender: No OFD packet to send [21:42:41]OFD Sender: No OFD packet to send [21:42:46]OFD Sender: No OFD packet to send [21:42:51]OFD Sender: No OFD packet to send [21:42:56]OFD Sender: No OFD packet to send [21:43:01]OFD Sender: No OFD packet to send [21:43:06]OFD Sender: No OFD packet to send [21:43:11]OFD Sender: No OFD packet to send [21:43:16]OFD Sender: No OFD packet to send [21:43:21]OFD Sender: No OFD packet to send [21:43:26]OFD Sender: No OFD packet to send [21:43:31]OFD Sender: No OFD packet to send [21:43:36]OFD Sender: No OFD packet to send [21:43:41]OFD Sender: No OFD packet to send [21:43:46]OFD Sender: No OFD packet to send [21:43:51]OFD Sender: No OFD packet to send [21:43:56]OFD Sender: No OFD packet to send [21:44:01]OFD Sender: No OFD packet to send [21:44:06]OFD Sender: No OFD packet to send [21:44:11]OFD Sender: No OFD packet to send [21:44:16]OFD Sender: No OFD packet to send [21:44:21]OFD Sender: No OFD packet to send [21:44:26]OFD Sender: No OFD packet to send [21:44:31]OFD Sender: No OFD packet to send [21:44:36]OFD Sender: No OFD packet to send [21:44:41]OFD Sender: No OFD packet to send [21:44:46]OFD Sender: No OFD packet to send [21:44:51]OFD Sender: No OFD packet to send [21:44:56]OFD Sender: No OFD packet to send [21:45:01]OFD Sender: No OFD packet to send [21:45:06]OFD Sender: No OFD packet to send [21:45:11]OFD Sender: No OFD packet to send [21:45:16]OFD Sender: No OFD packet to send [21:45:21]OFD Sender: No OFD packet to send [21:45:26]OFD Sender: No OFD packet to send [21:45:31]OFD Sender: No OFD packet to send [21:45:36]OFD Sender: No OFD packet to send [21:45:41]OFD Sender: No OFD packet to send [21:45:46]OFD Sender: No OFD packet to send [21:45:51]OFD Sender: No OFD packet to send [21:45:56]OFD Sender: No OFD packet to send [21:46:01]OFD Sender: No OFD packet to send [21:46:06]OFD Sender: No OFD packet to send [21:46:11]OFD Sender: No OFD packet to send [21:46:16]OFD Sender: No OFD packet to send [21:46:21]OFD Sender: No OFD packet to send [21:46:26]OFD Sender: No OFD packet to send [21:46:31]OFD Sender: No OFD packet to send [21:46:36]OFD Sender: No OFD packet to send [21:46:41]OFD Sender: No OFD packet to send [21:46:46]OFD Sender: No OFD packet to send [21:46:51]OFD Sender: No OFD packet to send [21:46:56]OFD Sender: No OFD packet to send [21:47:01]OFD Sender: No OFD packet to send [21:47:06]OFD Sender: No OFD packet to send [21:47:11]OFD Sender: No OFD packet to send [21:47:16]OFD Sender: No OFD packet to send [21:47:21]OFD Sender: No OFD packet to send [21:47:26]OFD Sender: No OFD packet to send [21:47:31]OFD Sender: No OFD packet to send [21:47:36]OFD Sender: No OFD packet to send [21:47:41]OFD Sender: No OFD packet to send [21:47:46]OFD Sender: No OFD packet to send [21:47:51]OFD Sender: No OFD packet to send [21:47:56]OFD Sender: No OFD packet to send [21:48:01]OFD Sender: No OFD packet to send [21:48:06]OFD Sender: No OFD packet to send [21:48:11]OFD Sender: No OFD packet to send [21:48:16]OFD Sender: No OFD packet to send [21:48:21]OFD Sender: No OFD packet to send [21:48:26]OFD Sender: No OFD packet to send [21:48:31]OFD Sender: No OFD packet to send [21:48:36]OFD Sender: No OFD packet to send [21:48:41]OFD Sender: No OFD packet to send [21:48:46]OFD Sender: No OFD packet to send [21:48:51]OFD Sender: No OFD packet to send [21:48:56]OFD Sender: No OFD packet to send [21:49:01]OFD Sender: No OFD packet to send [21:49:06]OFD Sender: No OFD packet to send [21:49:11]OFD Sender: No OFD packet to send [21:49:16]OFD Sender: No OFD packet to send [21:49:21]OFD Sender: No OFD packet to send [21:49:26]OFD Sender: No OFD packet to send [21:49:31]OFD Sender: No OFD packet to send [21:49:36]OFD Sender: No OFD packet to send [21:49:41]OFD Sender: No OFD packet to send [21:49:46]OFD Sender: No OFD packet to send [21:49:51]OFD Sender: No OFD packet to send [21:49:56]OFD Sender: No OFD packet to send [21:50:01]OFD Sender: No OFD packet to send [21:50:06]OFD Sender: No OFD packet to send [21:50:11]OFD Sender: No OFD packet to send [21:50:16]OFD Sender: No OFD packet to send [21:50:21]OFD Sender: No OFD packet to send [21:50:26]OFD Sender: No OFD packet to send [21:50:31]OFD Sender: No OFD packet to send [21:50:36]OFD Sender: No OFD packet to send [21:50:41]OFD Sender: No OFD packet to send [21:50:46]OFD Sender: No OFD packet to send [21:50:51]OFD Sender: No OFD packet to send [21:50:56]OFD Sender: No OFD packet to send [21:51:01]OFD Sender: No OFD packet to send [21:51:06]OFD Sender: No OFD packet to send [21:51:11]OFD Sender: No OFD packet to send [21:51:16]OFD Sender: No OFD packet to send [21:51:21]OFD Sender: No OFD packet to send [21:51:26]OFD Sender: No OFD packet to send [21:51:31]OFD Sender: No OFD packet to send [21:51:36]OFD Sender: No OFD packet to send [21:51:41]OFD Sender: No OFD packet to send [21:51:46]OFD Sender: No OFD packet to send [21:51:51]OFD Sender: No OFD packet to send [21:51:56]OFD Sender: No OFD packet to send [21:52:01]OFD Sender: No OFD packet to send [21:52:06]OFD Sender: No OFD packet to send [21:52:11]OFD Sender: No OFD packet to send [21:52:16]OFD Sender: No OFD packet to send [21:52:21]OFD Sender: No OFD packet to send [21:52:26]OFD Sender: No OFD packet to send [21:52:31]OFD Sender: No OFD packet to send [21:52:36]OFD Sender: No OFD packet to send [21:52:41]OFD Sender: No OFD packet to send [21:52:46]OFD Sender: No OFD packet to send [21:52:51]OFD Sender: No OFD packet to send [21:52:56]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:12]OFD Sender: No OFD packet to send [21:54:17]OFD Sender: No OFD packet to send [21:54:22]OFD Sender: No OFD packet to send [21:54:27]OFD Sender: No OFD packet to send [21:54:32]OFD Sender: No OFD packet to send [21:54:37]OFD Sender: No OFD packet to send [21:54:42]OFD Sender: No OFD packet to send [21:54:47]OFD Sender: No OFD packet to send [21:54:52]OFD Sender: No OFD packet to send [21:54:57]OFD Sender: No OFD packet to send [21:55:02]OFD Sender: No OFD packet to send [21:55:07]OFD Sender: No OFD packet to send [21:55:12]OFD Sender: No OFD packet to send [21:55:17]OFD Sender: No OFD packet to send [21:55:22]OFD Sender: No OFD packet to send [21:55:27]OFD Sender: No OFD packet to send [21:55:32]OFD Sender: No OFD packet to send [21:55:37]OFD Sender: No OFD packet to send [21:55:42]OFD Sender: No OFD packet to send [21:55:47]OFD Sender: No OFD packet to send [21:55:52]OFD Sender: No OFD packet to send [21:55:57]OFD Sender: No OFD packet to send [21:56:02]OFD Sender: No OFD packet to send [21:56:07]OFD Sender: No OFD packet to send [21:56:12]OFD Sender: No OFD packet to send [21:56:17]OFD Sender: No OFD packet to send [21:56:22]OFD Sender: No OFD packet to send [21:56:27]OFD Sender: No OFD packet to send [21:56:32]OFD Sender: No OFD packet to send [21:56:37]OFD Sender: No OFD packet to send [21:56:42]OFD Sender: No OFD packet to send [21:56:47]OFD Sender: No OFD packet to send [21:56:52]OFD Sender: No OFD packet to send [21:56:57]OFD Sender: No OFD packet to send [21:57:02]OFD Sender: No OFD packet to send [21:57:07]OFD Sender: No OFD packet to send [21:57:12]OFD Sender: No OFD packet to send [21:57:17]OFD Sender: No OFD packet to send [21:57:22]OFD Sender: No OFD packet to send [21:57:27]OFD Sender: No OFD packet to send [21:57:32]OFD Sender: No OFD packet to send [21:57:32]accept exits with 7 [21:57:32]New connection [21:57:32]New thread 3067014500 created [21:57:32]Thread 3067157860 joined [21:57:32]Waiting for new connection... [21:57:32] Sock 7.Parse request [21:57:32]Sock 7.Check first char [21:57:32]Sock 7.First char is OK [21:57:32]request: POST /json_proto HTTP/1.0 [21:57:32]Method: POST [21:57:32]URL: /json_proto [21:57:32]Method is POST - this is cgi request [21:57:32]url: /json_proto [21:57:32]query_string will be loaded in cgi processing [21:57:32]execute_cgi json_proto POST (null) [21:57:32]execute_cgi path=json_proto method=POST [21:57:32]POST find Content-Length [21:57:32]Host: 172.17.48.198:8080 [21:57:32]Content-Length: 870 [21:57:32]Content-Type: application/json [21:57:32] [21:57:32]POST finish read [21:57:32]Found Content-Length = 870 [21:57:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184216", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 195.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:57:32]execute_script... [21:57: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)184216", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 195.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:57:32]POST & json_proto [21:57:32]process_json_proto [21:57:32]json parsed OK: [21:57:32]protocol is kg_v1.0 [21:57:32]action value=close_receipt [21:57:32]process_action close_receipt [21:57:32]cmd_close_receipt [21:57:32]MH_GetDate [21:57:32]Write to MH i2c: F0 00 00 74 5A BD [21:57:32]Write i2c OK [21:57:32]MH_I2C_Read... [21:57:32]Read from MH i2c: F0 [21:57:32]MH_I2C_Read... [21:57:32]Read from MH i2c: F0 09 00 [21:57:32]MH_I2C_Read... [21:57:32]Read from MH i2c: F0 09 00 74 5A 00 59 F2 E4 65 CE C4 D4 65 25 [21:57:32]GetLastDocTimeStamp 1709501206 [21:57:32]current date 1709503065 [21:57:32]FM_GetShiftState [21:57:32]SAM_PROTO_GetShiftState [21:57:32]wFMCommunicate request_size=4 [21:57:32]MH_SAM_APDU [21:57:32]CAPDU: 80 13 01 00 [21:57:32]Write to MH i2c: E2 08 00 75 5A 80 13 01 00 00 00 00 00 4C [21:57:32]Write i2c OK [21:57:32]MH_I2C_Read... [21:57:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:57:32]Read from MH i2c: E2 [21:57:32]MH_I2C_Read... [21:57:32]Read from MH i2c: E2 0E 00 [21:57:32]MH_I2C_Read... [21:57:32]Read from MH i2c: E2 0E 00 75 5A 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 82 [21:57:32]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [21:57:32]wFMCommunicate OK [21:57:32]SAM_PROTO_GetShiftState done [21:57:32]FM_GetShiftState done [21:57:32]opened in 1709425694 [21:57:32]opened+sec_in_day 1709512094 [21:57:32]quantity*price = 6000 [21:57:32]sum+1 = 6001 [21:57:32]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48747059 Сигареты Winston Legend Blue 1.000 * 135.00 = 135.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 195.00 НСП 1% : 1.72 НДС 12% : 20.71 Наличными: 195.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 94 03.03.2024 21:57 Смена: 331 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 ФМ: 0000000000874796 ФД: 45257 ФПД: 209620668585506 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T215745&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45257&fm=209620668585506&tin=02508201610067®Number=0000000000090572&sum=19500 0 [21:57:33]StoreToDocumentArchive [21:57:33]shift 331 fd 45257 [21:57:33]save to /storage/0331/doc_00045257 [21:57:33]save last doc name /storage/0331/doc_00045257 to /storage/kkm_last_doc_name [21:57:33]save OK [21:57:33]Clear old archive folders... [21:57:33]ProcessDocumentItem done err = 0, tmpTLVsize=374 [21:57:33]tlvbuf is 01C44030 [21:57:33]SAM_PROTO_ClearQueue [21:57:33]wFMCommunicate request_size=4 [21:57:33]MH_SAM_APDU [21:57:33]CAPDU: 80 09 00 00 [21:57:33]Write to MH i2c: E2 08 00 82 5A 80 09 00 00 00 00 00 00 4E [21:57:33]Write i2c OK [21:57:33]MH_I2C_Read... [21:57:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:57:33]Read from MH i2c: E2 [21:57:33]MH_I2C_Read... [21:57:33]Read from MH i2c: E2 03 00 [21:57:33]MH_I2C_Read... [21:57:33]Read from MH i2c: E2 03 00 82 5A 00 90 00 50 [21:57:33]RAPDU: 90 00 [21:57:33]wFMCommunicate OK [21:57:33]SAM_PROTO_ClearQueue done [21:57:33]KKMCreateOFDPacket [21:57:33]OFDProtocolAddRootSTLVToBuf [21:57:33]FM_MakeSignedData [21:57:33]FM_MakeSignedData [21:57:33]SAM_PROTO_SignData [21:57:33]wFMCommunicate request_size=4 [21:57:33]MH_SAM_APDU [21:57:33]CAPDU: 80 0D 01 02 [21:57:33]Write to MH i2c: E2 08 00 83 5A 80 0D 01 02 00 00 00 00 56 [21:57:33]Write i2c OK [21:57:33]MH_I2C_Read... [21:57:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:57:33]Read from MH i2c: E2 [21:57:33]MH_I2C_Read... [21:57:33]Read from MH i2c: E2 03 00 [21:57:33]MH_I2C_Read... [21:57:33]Read from MH i2c: E2 03 00 83 5A 00 90 00 51 [21:57:33]RAPDU: 90 00 [21:57:33]wFMCommunicate OK [21:57:33]wFMCommunicate request_size=255 [21:57:33]MH_SAM_APDU [21:57:33]CAPDU: 80 0D 02 02 FA 03 00 76 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AC 00 00 00 00 00 EE 03 0F 00 [21:57:33]Write to MH i2c: E2 02 01 84 5A 80 0D 02 02 FA 00 03 00 76 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AC 00 00 00 00 00 EE 03 0F 00 00 00 76 [21:57:33]Write i2c OK [21:57:33]MH_I2C_Read... [21:57:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:57:33]Read from MH i2c: E2 [21:57:33]MH_I2C_Read... [21:57:33]Read from MH i2c: E2 03 00 [21:57:33]MH_I2C_Read... [21:57:33]Read from MH i2c: E2 03 00 84 5A 00 90 00 52 [21:57:33]RAPDU: 90 00 [21:57:33]wFMCommunicate OK [21:57:33]wFMCommunicate request_size=133 [21:57:33]MH_SAM_APDU [21:57:33]CAPDU: 80 0D 02 02 80 F2 03 01 00 01 F3 03 06 00 17 08 00 00 00 00 07 04 06 00 2C 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 59 F2 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 C9 B0 00 00 35 04 06 00 BE A6 1D 7D 16 22 [21:57:33]Write to MH i2c: E2 88 00 85 5A 80 0D 02 02 80 00 F2 03 01 00 01 F3 03 06 00 17 08 00 00 00 00 07 04 06 00 2C 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 59 F2 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 C9 B0 00 00 35 04 06 00 BE A6 1D 7D 16 22 00 00 11 [21:57:33]Write i2c OK [21:57:33]MH_I2C_Read... [21:57:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:57:33]Read from MH i2c: E2 [21:57:33]MH_I2C_Read... [21:57:33]Read from MH i2c: E2 03 00 [21:57:33]MH_I2C_Read... [21:57:33]Read from MH i2c: E2 03 00 85 5A 00 90 00 53 [21:57:33]RAPDU: 90 00 [21:57:33]wFMCommunicate OK [21:57:33]wFMCommunicate request_size=4 [21:57:33]MH_SAM_APDU [21:57:33]CAPDU: 80 0D 03 02 [21:57:33]Write to MH i2c: E2 08 00 86 5A 80 0D 03 02 00 00 00 00 5B [21:57:33]Write i2c OK [21:57:33]MH_I2C_Read... [21:57:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:57:33]Read from MH i2c: E2 [21:57:33]MH_I2C_Read... [21:57:33]Read from MH i2c: E2 0B 00 [21:57:33]MH_I2C_Read... [21:57:33]Read from MH i2c: E2 0B 00 86 5A 00 F1 DE 0F 53 D6 DF 0F 8A 90 00 DB [21:57:33]RAPDU: F1 DE 0F 53 D6 DF 0F 8A 90 00 [21:57:33]wFMCommunicate OK [21:57:33]SAM_PROTO_SignData done [21:57:33]FM_MakeSignedData done [21:57:33]CreateOFDProtocolMessage [21:57:33]wFMCommunicate request_size=4 [21:57:33]MH_SAM_APDU [21:57:33]CAPDU: 80 11 00 00 [21:57:33]Write to MH i2c: E2 08 00 87 5A 80 11 00 00 00 00 00 00 5B [21:57:33]Write i2c OK [21:57:33]MH_I2C_Read... [21:57:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:57:34]Read from MH i2c: E2 [21:57:34]MH_I2C_Read... [21:57:34]Read from MH i2c: E2 17 00 [21:57:34]MH_I2C_Read... [21:57:34]Read from MH i2c: E2 17 00 87 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 B7 [21:57:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [21:57:34]wFMCommunicate OK [21:57:34]CreateOFDProtocolMessage done [21:57:34]OFDSenderStorePacket 45257 [21:57:34]StoreOFDPacket docnum=45257 [21:57:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 8A 01 00 00 C0 6E 82 01 2F 80 5A 03 01 00 03 00 76 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 08 00 00 00 00 07 04 06 00 2C 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 59 F2 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 C9 B0 00 00 35 04 06 00 BE A6 1D 7D 16 22 F1 DE 0F 53 D6 DF 0F 8A [21:57:34]CheckFolder [21:57:34]dirname=/storage/ofd_packets [21:57:34]CheckFolder done [21:57:34]ProducePacketName [21:57:34]name=ofd_packets/00045257 [21:57:34]NVStorageSaveData ofd_packets/00045257 [21:57:34]File name is /storage/ofd_packets/00045257 [21:57:34]Write 424 bytes [21:57:34]NVStorageSaveData done [21:57:34]OFDSenderStorePacket done [21:57:34]KKMCreateOFDPacket done [21:57:34]NVStorageSaveData kkm_last_timestamp [21:57:34]File name is /storage/kkm_last_timestamp [21:57:34]Write 4 bytes [21:57:34]NVStorageSaveData done [21:57:34]ExternCall_PrintAddStr [21:57:34]wPrintStart [21:57:34]Write to MH i2c: 01 00 00 88 5A E2 [21:57:34]Write i2c OK [21:57:34]MH_I2C_Read... [21:57:34]Read from MH i2c: 01 [21:57:34]MH_I2C_Read... [21:57:34]Read from MH i2c: 01 07 00 [21:57:34]MH_I2C_Read... [21:57:34]Read from MH i2c: 01 07 00 88 5A 00 00 00 00 00 FF 0F F7 [21:57:34]RasterBufferAndPrint [21:57:34]line Счет N : (3)184216 [21:57:34]line ИНН: 02508201610067 [21:57:34]line Контрольно-Кассовый Чек [21:57:34]line ПРОДАЖА [21:57:34]line Товар: 4700000160204 [21:57:34]line Вода Легенда 1,5л [21:57:34]line 1.000 * 60.00 [21:57:34]line = 60.00 [21:57:34]line НДС 12% НСП 1% [21:57:34]line > о реализуемом товаре [21:57:34]line Товар: 48747059 [21:57:34]line Сигареты Winston Legend Blue [21:57:34]line 1.000 * 135.00 [21:57:34]line = 135.00 [21:57:34]line НДС 12% НСП 1% [21:57:34]line > о реализуемом товаре [21:57:34]line ИТОГО: 195.00 [21:57:34]line НСП 1% : 1.72 [21:57:34]line НДС 12% : 20.71 [21:57:34]line Наличными: 195.00 [21:57:34]line Безнал.: 0.00 [21:57:34]line Место: АЗС № 25 "Партнер Нефть" [21:57:34]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [21:57:34]line СНО: Общий режим [21:57:34]line Чек 94 03.03.2024 21:57 [21:57:34]line Смена: 331 ФФД: 1.0 [21:57:34]line ЗНМ: 0300000013 [21:57:34]line РНМ: 0000000000090572 [21:57:34]line Версия ККМ: 001 [21:57:34]line ФМ: 0000000000874796 [21:57:34]line ФД: 45257 [21:57:34]line ФПД: 209620668585506 [21:57:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T215745&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45257&fm=209620668585506&tin=02508201610067®Number=0000000000090572&sum=19500 [21:57:34]OFD Sender: Processing packet 45257 [packets to send 17, broken 16] [21:57:34]ProducePacketName [21:57:34]name=ofd_packets/00045257 [21:57:34]OFD Sender: To server: pG, [21:57:34]CommunicateWithHost lk.salyk.kg:30040 [21:57:34]ConnectInit lk.salyk.kg [21:57:34]line 0 [21:57:34]written 0, free lines is 4095 [21:57:34]Connected sock=10 [21:57:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 8A 01 00 00 C0 6E 82 01 2F 80 5A 03 01 00 03 00 76 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 08 00 00 00 00 07 04 06 00 2C 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 59 F2 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 C9 B0 00 00 35 04 06 00 BE A6 1D 7D 16 22 F1 DE 0F 53 D6 DF 0F 8A [21:57:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 02 A4 47 00 C2 CE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 C9 B0 00 00 F4 03 04 00 1D 9E E4 65 B6 04 01 00 00 4F BA 51 07 48 F5 F2 A7 [21:57:34]CommunicateWithHost err = 0 [21:57:34]CheckOFDResponse [21:57:34]1017 (14) - 77093643461234 [21:57:34]1041 (16) - 0000000000874796 [21:57:34]1040 (4) - 45257 [21:57:34]1012 (4) - 03.03.2024 15:58 [21:57:34]1206 (1) - 0 [21:57:34]OFD Sender: Remove packet 45257 [21:57:34]ProducePacketName [21:57:34]name=ofd_packets/00045257 [21:57:34]NVStorageDeleteData [21:57:34]Write to MH i2c: 01 00 00 B7 5A 11 [21:57:34]Write i2c OK [21:57:34]MH_I2C_Read... [21:57:34]Read from MH i2c: 01 [21:57:34]MH_I2C_Read... [21:57:34]Read from MH i2c: 01 07 00 [21:57:34]MH_I2C_Read... [21:57:34]Read from MH i2c: 01 07 00 B7 5A 00 00 00 00 00 97 0C BB [21:57:34]RasterBufferAndPrint [21:57:34]line [21:57:34]line [21:57:34]line [21:57:34]line [21:57:34]line [21:57:34]written 0, free lines is 3229 [21:57:34]MH_Cut [21:57:34]Write to MH i2c: D1 01 00 BE 5A 01 EA [21:57:34]Write i2c OK [21:57:34]MH_I2C_Read... [21:57:34]Read from MH i2c: D1 [21:57:34]MH_I2C_Read... [21:57:34]Read from MH i2c: D1 01 00 [21:57:34]MH_I2C_Read... [21:57:34]Read from MH i2c: D1 01 00 BE 5A 00 E9 [21:57:34]Write to MH i2c: 01 00 00 BF 5A 19 [21:57:34]Write i2c OK [21:57:34]MH_I2C_Read... [21:57:35]OFD Sender: No OFD packet to send [21:57:35]*** Cut start [21:57:35]*** Purtial cut [21:57:35]*** Stage 1: CUTSNS_PIN = 1 [21:57:37]Read from MH i2c: 01 [21:57:37]MH_I2C_Read... [21:57:37]*** Stop cut motor [21:57:37]*** Cut end [21:57:37]Read from MH i2c: 01 07 00 [21:57:37]MH_I2C_Read... [21:57:37]Read from MH i2c: 01 07 00 BF 5A 00 00 00 00 00 FF 0F 2E [21:57:37]process_action close_receipt done [21:57:37]requested_data is exist [21:57:37]produce_requested_data [21:57:37]requested_item fm.sn is exist - process it [21:57:37]wFMCommunicate request_size=4 [21:57:37]MH_SAM_APDU [21:57:37]CAPDU: 80 11 00 00 [21:57:37]Write to MH i2c: E2 08 00 C0 5A 80 11 00 00 00 00 00 00 94 [21:57:37]Write i2c OK [21:57:37]MH_I2C_Read... [21:57:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:57:37]Read from MH i2c: E2 [21:57:37]MH_I2C_Read... [21:57:37]Read from MH i2c: E2 17 00 [21:57:37]MH_I2C_Read... [21:57:37]Read from MH i2c: E2 17 00 C0 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 F0 [21:57:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [21:57:37]wFMCommunicate OK [21:57:37]requested_item fd.num is exist - process it [21:57:37]SAM_PROTO_GetFieldsCounters [21:57:37]wFMCommunicate request_size=4 [21:57:37]MH_SAM_APDU [21:57:37]CAPDU: 80 13 00 00 [21:57:37]Write to MH i2c: E2 08 00 C1 5A 80 13 00 00 00 00 00 00 97 [21:57:37]Write i2c OK [21:57:37]MH_I2C_Read... [21:57:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:57:37]Read from MH i2c: E2 [21:57:37]MH_I2C_Read... [21:57:37]Read from MH i2c: E2 62 00 [21:57:37]MH_I2C_Read... [21:57:37]Read from MH i2c: E2 62 00 C1 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 C9 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 9E [21:57:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 C9 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:57:37]wFMCommunicate OK [21:57:37]SAM_PROTO_GetFieldsCounters done [21:57:37]requested_item shift.num is exist - process it [21:57:37]requested_item shift.opened is exist - process it [21:57:37]req_shift_opened [21:57:37]FM_GetShiftState [21:57:37]SAM_PROTO_GetShiftState [21:57:37]wFMCommunicate request_size=4 [21:57:37]MH_SAM_APDU [21:57:37]CAPDU: 80 13 01 00 [21:57:37]Write to MH i2c: E2 08 00 C2 5A 80 13 01 00 00 00 00 00 99 [21:57:37]Write i2c OK [21:57:37]MH_I2C_Read... [21:57:37]Read from MH i2c: E2 [21:57:37]MH_I2C_Read... [21:57:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:57:37]Read from MH i2c: E2 0E 00 [21:57:37]MH_I2C_Read... [21:57:37]Read from MH i2c: E2 0E 00 C2 5A 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 CF [21:57:37]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [21:57:37]wFMCommunicate OK [21:57:37]SAM_PROTO_GetShiftState done [21:57:37]FM_GetShiftState done [21:57:37]req_shift_opened done [21:57:37]requested_item shift.open_date is exist - process it [21:57:37]req_shift_open_date [21:57:37]req_shift_open_date done [21:57:37]produce_requested_data done [21:57:37]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45257,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [21:57:37]process_action_free close_receipt [21:57:37]json_value_free [21:57:37]json_value_free done [21:57:37]process_json_proto returns [21:57:37]Send response to host [21:57:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45257,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [21:57:37]free response buf [21:57:37]execute_script done [21:57:37]execute_script returns [21:57:37]free content buf [21:57:37]Sock 7.Close socket [21:57:37]Sock 7.Thread stoped [21:57:40]OFD Sender: No OFD packet to send [21:57:45]OFD Sender: No OFD packet to send [21:57:50]OFD Sender: No OFD packet to send [21:57:55]OFD Sender: No OFD packet to send [21:58:00]OFD Sender: No OFD packet to send [21:58:05]OFD Sender: No OFD packet to send [21:58:10]OFD Sender: No OFD packet to send [21:58:15]OFD Sender: No OFD packet to send [21:58:20]OFD Sender: No OFD packet to send [21:58:25]OFD Sender: No OFD packet to send [21:58:30]OFD Sender: No OFD packet to send [21:58:35]OFD Sender: No OFD packet to send [21:58:40]OFD Sender: No OFD packet to send [21:58:45]OFD Sender: No OFD packet to send [21:58:50]OFD Sender: No OFD packet to send [21:58:55]OFD Sender: No OFD packet to send [21:59:00]OFD Sender: No OFD packet to send [21:59:05]OFD Sender: No OFD packet to send [21:59:10]OFD Sender: No OFD packet to send [21:59:15]OFD Sender: No OFD packet to send [21:59:20]OFD Sender: No OFD packet to send [21:59:25]OFD Sender: No OFD packet to send [21:59:30]OFD Sender: No OFD packet to send [21:59:35]OFD Sender: No OFD packet to send [21:59:40]OFD Sender: No OFD packet to send [21:59:45]OFD Sender: No OFD packet to send [21:59:50]OFD Sender: No OFD packet to send [21:59:55]OFD Sender: No OFD packet to send [22:00:00]OFD Sender: No OFD packet to send [22:00:05]OFD Sender: No OFD packet to send [22:00:10]OFD Sender: No OFD packet to send [22:00:15]OFD Sender: No OFD packet to send [22:00:20]OFD Sender: No OFD packet to send [22:00:25]OFD Sender: No OFD packet to send [22:00:30]OFD Sender: No OFD packet to send [22:00:35]OFD Sender: No OFD packet to send [22:00:40]OFD Sender: No OFD packet to send [22:00:45]OFD Sender: No OFD packet to send [22:00:50]OFD Sender: No OFD packet to send [22:00:55]OFD Sender: No OFD packet to send [22:01:00]OFD Sender: No OFD packet to send [22:01:05]OFD Sender: No OFD packet to send [22:01:10]OFD Sender: No OFD packet to send [22:01:15]OFD Sender: No OFD packet to send [22:01:20]OFD Sender: No OFD packet to send [22:01:25]OFD Sender: No OFD packet to send [22:01:30]OFD Sender: No OFD packet to send [22:01:35]OFD Sender: No OFD packet to send [22:01:40]OFD Sender: No OFD packet to send [22:01:45]OFD Sender: No OFD packet to send [22:01:50]OFD Sender: No OFD packet to send [22:01:55]OFD Sender: No OFD packet to send [22:02:00]OFD Sender: No OFD packet to send [22:02:05]OFD Sender: No OFD packet to send [22:02:10]OFD Sender: No OFD packet to send [22:02:15]OFD Sender: No OFD packet to send [22:02:20]OFD Sender: No OFD packet to send [22:02:25]OFD Sender: No OFD packet to send [22:02:30]OFD Sender: No OFD packet to send [22:02:35]OFD Sender: No OFD packet to send [22:02:40]OFD Sender: No OFD packet to send [22:02:45]OFD Sender: No OFD packet to send [22:02:50]OFD Sender: No OFD packet to send [22:02:55]OFD Sender: No OFD packet to send [22:03:00]OFD Sender: No OFD packet to send [22:03:05]OFD Sender: No OFD packet to send [22:03:10]OFD Sender: No OFD packet to send [22:03:15]OFD Sender: No OFD packet to send [22:03:20]OFD Sender: No OFD packet to send [22:03:25]OFD Sender: No OFD packet to send [22:03:30]OFD Sender: No OFD packet to send [22:03:35]OFD Sender: No OFD packet to send [22:03:40]OFD Sender: No OFD packet to send [22:03:45]OFD Sender: No OFD packet to send [22:03:50]OFD Sender: No OFD packet to send [22:03:55]OFD Sender: No OFD packet to send [22:04:00]OFD Sender: No OFD packet to send [22:04:05]OFD Sender: No OFD packet to send [22:04:10]OFD Sender: No OFD packet to send [22:04:15]OFD Sender: No OFD packet to send [22:04:20]OFD Sender: No OFD packet to send [22:04:25]OFD Sender: No OFD packet to send [22:04:30]OFD Sender: No OFD packet to send [22:04:35]OFD Sender: No OFD packet to send [22:04:40]OFD Sender: No OFD packet to send [22:04:45]OFD Sender: No OFD packet to send [22:04:50]OFD Sender: No OFD packet to send [22:04:55]OFD Sender: No OFD packet to send [22:05:00]OFD Sender: No OFD packet to send [22:05:05]OFD Sender: No OFD packet to send [22:05:10]OFD Sender: No OFD packet to send [22:05:15]OFD Sender: No OFD packet to send [22:05:20]OFD Sender: No OFD packet to send [22:05:25]OFD Sender: No OFD packet to send [22:05:30]OFD Sender: No OFD packet to send [22:05:35]OFD Sender: No OFD packet to send [22:05:40]OFD Sender: No OFD packet to send [22:05:45]OFD Sender: No OFD packet to send [22:05:50]OFD Sender: No OFD packet to send [22:05:55]OFD Sender: No OFD packet to send [22:06:00]OFD Sender: No OFD packet to send [22:06:05]OFD Sender: No OFD packet to send [22:06:10]OFD Sender: No OFD packet to send [22:06:15]OFD Sender: No OFD packet to send [22:06:20]OFD Sender: No OFD packet to send [22:06:25]OFD Sender: No OFD packet to send [22:06:30]OFD Sender: No OFD packet to send [22:06:35]OFD Sender: No OFD packet to send [22:06:40]OFD Sender: No OFD packet to send [22:06:45]OFD Sender: No OFD packet to send [22:06:50]OFD Sender: No OFD packet to send [22:06:55]OFD Sender: No OFD packet to send [22:07:00]OFD Sender: No OFD packet to send [22:07:05]OFD Sender: No OFD packet to send [22:07:10]OFD Sender: No OFD packet to send [22:07:15]OFD Sender: No OFD packet to send [22:07:20]OFD Sender: No OFD packet to send [22:07:25]OFD Sender: No OFD packet to send [22:07:30]OFD Sender: No OFD packet to send [22:07:35]OFD Sender: No OFD packet to send [22:07:40]OFD Sender: No OFD packet to send [22:07:45]OFD Sender: No OFD packet to send [22:07:50]OFD Sender: No OFD packet to send [22:07:55]OFD Sender: No OFD packet to send [22:08:00]OFD Sender: No OFD packet to send [22:08:05]OFD Sender: No OFD packet to send [22:08:10]OFD Sender: No OFD packet to send [22:08:15]OFD Sender: No OFD packet to send [22:08:20]OFD Sender: No OFD packet to send [22:08:25]OFD Sender: No OFD packet to send [22:08:30]OFD Sender: No OFD packet to send [22:08:35]OFD Sender: No OFD packet to send [22:08:40]OFD Sender: No OFD packet to send [22:08:45]OFD Sender: No OFD packet to send [22:08:50]OFD Sender: No OFD packet to send [22:08:55]OFD Sender: No OFD packet to send [22:09:00]OFD Sender: No OFD packet to send [22:09:05]OFD Sender: No OFD packet to send [22:09:10]OFD Sender: No OFD packet to send [22:09:15]OFD Sender: No OFD packet to send [22:09:20]OFD Sender: No OFD packet to send [22:09:25]OFD Sender: No OFD packet to send [22:09:30]OFD Sender: No OFD packet to send [22:09:35]OFD Sender: No OFD packet to send [22:09:40]OFD Sender: No OFD packet to send [22:09:45]OFD Sender: No OFD packet to send [22:09:50]OFD Sender: No OFD packet to send [22:09:55]OFD Sender: No OFD packet to send [22:10:00]OFD Sender: No OFD packet to send [22:10:05]OFD Sender: No OFD packet to send [22:10:10]OFD Sender: No OFD packet to send [22:10:15]OFD Sender: No OFD packet to send [22:10:20]OFD Sender: No OFD packet to send [22:10:25]OFD Sender: No OFD packet to send [22:10:30]OFD Sender: No OFD packet to send [22:10:35]OFD Sender: No OFD packet to send [22:10:40]OFD Sender: No OFD packet to send [22:10:45]OFD Sender: No OFD packet to send [22:10:50]OFD Sender: No OFD packet to send [22:10:55]OFD Sender: No OFD packet to send [22:11:00]OFD Sender: No OFD packet to send [22:11:05]OFD Sender: No OFD packet to send [22:11:10]OFD Sender: No OFD packet to send [22:11:15]OFD Sender: No OFD packet to send [22:11:20]OFD Sender: No OFD packet to send [22:11:25]OFD Sender: No OFD packet to send [22:11:30]OFD Sender: No OFD packet to send [22:11:35]OFD Sender: No OFD packet to send [22:11:40]OFD Sender: No OFD packet to send [22:11:45]OFD Sender: No OFD packet to send [22:11:50]OFD Sender: No OFD packet to send [22:11:55]OFD Sender: No OFD packet to send [22:12:00]OFD Sender: No OFD packet to send [22:12:05]OFD Sender: No OFD packet to send [22:12:10]OFD Sender: No OFD packet to send [22:12:15]OFD Sender: No OFD packet to send [22:12:20]OFD Sender: No OFD packet to send [22:12:25]OFD Sender: No OFD packet to send [22:12:30]OFD Sender: No OFD packet to send [22:12:35]OFD Sender: No OFD packet to send [22:12:40]OFD Sender: No OFD packet to send [22:12:45]OFD Sender: No OFD packet to send [22:12:50]OFD Sender: No OFD packet to send [22:12:55]OFD Sender: No OFD packet to send [22:13:00]OFD Sender: No OFD packet to send [22:13:05]OFD Sender: No OFD packet to send [22:13:10]OFD Sender: No OFD packet to send [22:13:15]OFD Sender: No OFD packet to send [22:13:20]OFD Sender: No OFD packet to send [22:13:25]OFD Sender: No OFD packet to send [22:13:30]OFD Sender: No OFD packet to send [22:13:35]OFD Sender: No OFD packet to send [22:13:40]OFD Sender: No OFD packet to send [22:13:45]OFD Sender: No OFD packet to send [22:13:50]OFD Sender: No OFD packet to send [22:13:55]OFD Sender: No OFD packet to send [22:14:00]OFD Sender: No OFD packet to send [22:14:05]OFD Sender: No OFD packet to send [22:14:10]OFD Sender: No OFD packet to send [22:14:15]OFD Sender: No OFD packet to send [22:14:20]OFD Sender: No OFD packet to send [22:14:25]OFD Sender: No OFD packet to send [22:14:30]OFD Sender: No OFD packet to send [22:14:35]OFD Sender: No OFD packet to send [22:14:38]accept exits with 9 [22:14:38]New connection [22:14:38]New thread 3067157860 created [22:14:38]Thread 3067014500 joined [22:14:38]Waiting for new connection... [22:14:38] Sock 9.Parse request [22:14:38]Sock 9.Check first char [22:14:38]Sock 9.First char is OK [22:14:38]request: POST /json_proto HTTP/1.0 [22:14:38]Method: POST [22:14:38]URL: /json_proto [22:14:38]Method is POST - this is cgi request [22:14:38]url: /json_proto [22:14:38]query_string will be loaded in cgi processing [22:14:38]execute_cgi json_proto POST (null) [22:14:38]execute_cgi path=json_proto method=POST [22:14:38]POST find Content-Length [22:14:38]Host: 172.17.48.198:8080 [22:14:38]Content-Length: 1077 [22:14:38]Content-Type: application/json [22:14:38] [22:14:38]POST finish read [22:14:38]Found Content-Length = 1077 [22:14:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184217", "tax_sys" : 0, "items" : [ { "code": "4800452010610", "name": "\u041A\u043E\u0444\u0435 \u043A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL (\u0410\u041A\u0426\u0418\u042F)", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 250.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:14:38]execute_script... [22:14: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)184217", "tax_sys" : 0, "items" : [ { "code": "4800452010610", "name": "\u041A\u043E\u0444\u0435 \u043A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL (\u0410\u041A\u0426\u0418\u042F)", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 250.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:14:38]POST & json_proto [22:14:38]process_json_proto [22:14:38]json parsed OK: [22:14:38]protocol is kg_v1.0 [22:14:38]action value=close_receipt [22:14:38]process_action close_receipt [22:14:38]cmd_close_receipt [22:14:38]MH_GetDate [22:14:38]Write to MH i2c: F0 00 00 C3 5A 0C [22:14:38]Write i2c OK [22:14:38]MH_I2C_Read... [22:14:38]Read from MH i2c: F0 [22:14:38]MH_I2C_Read... [22:14:38]Read from MH i2c: F0 09 00 [22:14:38]MH_I2C_Read... [22:14:38]Read from MH i2c: F0 09 00 C3 5A 00 5C F6 E4 65 CE C4 D4 65 7B [22:14:38]GetLastDocTimeStamp 1709503065 [22:14:38]current date 1709504092 [22:14:38]FM_GetShiftState [22:14:38]SAM_PROTO_GetShiftState [22:14:38]wFMCommunicate request_size=4 [22:14:38]MH_SAM_APDU [22:14:38]CAPDU: 80 13 01 00 [22:14:38]Write to MH i2c: E2 08 00 C4 5A 80 13 01 00 00 00 00 00 9B [22:14:38]Write i2c OK [22:14:38]MH_I2C_Read... [22:14:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:14:38]Read from MH i2c: E2 [22:14:38]MH_I2C_Read... [22:14:38]Read from MH i2c: E2 0E 00 [22:14:38]MH_I2C_Read... [22:14:38]Read from MH i2c: E2 0E 00 C4 5A 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 D1 [22:14:38]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [22:14:38]wFMCommunicate OK [22:14:38]SAM_PROTO_GetShiftState done [22:14:38]FM_GetShiftState done [22:14:38]opened in 1709425694 [22:14:38]opened+sec_in_day 1709512094 [22:14:38]quantity*price = 12000 [22:14:38]sum+1 = 12001 [22:14:38]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036230011 Кофе Латте XL(GABB TRADE) 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 250.00 НСП 1% : 2.21 НДС 12% : 26.54 Наличными: 0.00 Безнал.: 250.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 95 03.03.2024 22:14 Смена: 331 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874796 ФД: 45258 ФПД: 179546946291330 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T221452&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45258&fm=179546946291330&tin=02508201610067®Number=0000000000090572&sum=25000 0 [22:14:39]StoreToDocumentArchive [22:14:39]shift 331 fd 45258 [22:14:39]save to /storage/0331/doc_00045258 [22:14:39]save last doc name /storage/0331/doc_00045258 to /storage/kkm_last_doc_name [22:14:39]save OK [22:14:39]Clear old archive folders... [22:14:39]ProcessDocumentItem done err = 0, tmpTLVsize=389 [22:14:39]tlvbuf is 01CE5DF0 [22:14:39]SAM_PROTO_ClearQueue [22:14:39]wFMCommunicate request_size=4 [22:14:39]MH_SAM_APDU [22:14:39]CAPDU: 80 09 00 00 [22:14:39]Write to MH i2c: E2 08 00 D1 5A 80 09 00 00 00 00 00 00 9D [22:14:39]Write i2c OK [22:14:39]MH_I2C_Read... [22:14:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:14:39]Read from MH i2c: E2 [22:14:39]MH_I2C_Read... [22:14:39]Read from MH i2c: E2 03 00 [22:14:39]MH_I2C_Read... [22:14:39]Read from MH i2c: E2 03 00 D1 5A 00 90 00 9F [22:14:39]RAPDU: 90 00 [22:14:39]wFMCommunicate OK [22:14:39]SAM_PROTO_ClearQueue done [22:14:39]KKMCreateOFDPacket [22:14:39]OFDProtocolAddRootSTLVToBuf [22:14:39]FM_MakeSignedData [22:14:39]FM_MakeSignedData [22:14:39]SAM_PROTO_SignData [22:14:39]wFMCommunicate request_size=4 [22:14:39]MH_SAM_APDU [22:14:39]CAPDU: 80 0D 01 02 [22:14:39]Write to MH i2c: E2 08 00 D2 5A 80 0D 01 02 00 00 00 00 A5 [22:14:39]Write i2c OK [22:14:39]MH_I2C_Read... [22:14:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:14:39]Read from MH i2c: E2 [22:14:39]MH_I2C_Read... [22:14:39]Read from MH i2c: E2 03 00 [22:14:39]MH_I2C_Read... [22:14:39]Read from MH i2c: E2 03 00 D2 5A 00 90 00 A0 [22:14:39]RAPDU: 90 00 [22:14:39]wFMCommunicate OK [22:14:39]wFMCommunicate request_size=255 [22:14:39]MH_SAM_APDU [22:14:39]CAPDU: 80 0D 02 02 FA 03 00 85 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 38 30 30 34 35 32 30 31 30 36 31 30 06 04 29 00 D0 9A D0 BE D1 84 D0 B5 20 D0 BA D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 20 28 D0 90 D0 9A D0 A6 D0 98 D0 AF 29 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 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 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 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 [22:14:39]Write to MH i2c: E2 02 01 D3 5A 80 0D 02 02 FA 00 03 00 85 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 38 30 30 34 35 32 30 31 30 36 31 30 06 04 29 00 D0 9A D0 BE D1 84 D0 B5 20 D0 BA D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 20 28 D0 90 D0 9A D0 A6 D0 98 D0 AF 29 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 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 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 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 00 00 40 [22:14:39]Write i2c OK [22:14:39]MH_I2C_Read... [22:14:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:14:39]Read from MH i2c: E2 [22:14:39]MH_I2C_Read... [22:14:39]Read from MH i2c: E2 03 00 [22:14:39]MH_I2C_Read... [22:14:39]Read from MH i2c: E2 03 00 D3 5A 00 90 00 A1 [22:14:39]RAPDU: 90 00 [22:14:39]wFMCommunicate OK [22:14:39]wFMCommunicate request_size=148 [22:14:39]MH_SAM_APDU [22:14:39]CAPDU: 80 0D 02 02 8F 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 5C F6 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 CA B0 00 00 35 04 06 00 A3 4C 07 F4 46 82 [22:14:39]Write to MH i2c: E2 97 00 D4 5A 80 0D 02 02 8F 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 5C F6 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 CA B0 00 00 35 04 06 00 A3 4C 07 F4 46 82 00 00 BB [22:14:39]Write i2c OK [22:14:39]MH_I2C_Read... [22:14:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:14:40]Read from MH i2c: E2 [22:14:40]MH_I2C_Read... [22:14:40]Read from MH i2c: E2 03 00 [22:14:40]MH_I2C_Read... [22:14:40]Read from MH i2c: E2 03 00 D4 5A 00 90 00 A2 [22:14:40]RAPDU: 90 00 [22:14:40]wFMCommunicate OK [22:14:40]wFMCommunicate request_size=4 [22:14:40]MH_SAM_APDU [22:14:40]CAPDU: 80 0D 03 02 [22:14:40]Write to MH i2c: E2 08 00 D5 5A 80 0D 03 02 00 00 00 00 AA [22:14:40]Write i2c OK [22:14:40]MH_I2C_Read... [22:14:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:14:40]Read from MH i2c: E2 [22:14:40]MH_I2C_Read... [22:14:40]Read from MH i2c: E2 0B 00 [22:14:40]MH_I2C_Read... [22:14:40]Read from MH i2c: E2 0B 00 D5 5A 00 5F D5 84 B7 D3 4B C4 3D 90 00 39 [22:14:40]RAPDU: 5F D5 84 B7 D3 4B C4 3D 90 00 [22:14:40]wFMCommunicate OK [22:14:40]SAM_PROTO_SignData done [22:14:40]FM_MakeSignedData done [22:14:40]CreateOFDProtocolMessage [22:14:40]wFMCommunicate request_size=4 [22:14:40]MH_SAM_APDU [22:14:40]CAPDU: 80 11 00 00 [22:14:40]Write to MH i2c: E2 08 00 D6 5A 80 11 00 00 00 00 00 00 AA [22:14:40]Write i2c OK [22:14:40]MH_I2C_Read... [22:14:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:14:40]Read from MH i2c: E2 [22:14:40]MH_I2C_Read... [22:14:40]Read from MH i2c: E2 17 00 [22:14:40]MH_I2C_Read... [22:14:40]Read from MH i2c: E2 17 00 D6 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 06 [22:14:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [22:14:40]wFMCommunicate OK [22:14:40]CreateOFDProtocolMessage done [22:14:40]OFDSenderStorePacket 45258 [22:14:40]StoreOFDPacket docnum=45258 [22:14:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 99 01 00 00 58 D6 91 01 2E C2 5A 03 01 00 03 00 85 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 38 30 30 34 35 32 30 31 30 36 31 30 06 04 29 00 D0 9A D0 BE D1 84 D0 B5 20 D0 BA D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 20 28 D0 90 D0 9A D0 A6 D0 98 D0 AF 29 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 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 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 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 5C F6 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 CA B0 00 00 35 04 06 00 A3 4C 07 F4 46 82 5F D5 84 B7 D3 4B C4 3D [22:14:40]CheckFolder [22:14:40]dirname=/storage/ofd_packets [22:14:40]CheckFolder done [22:14:40]ProducePacketName [22:14:40]name=ofd_packets/00045258 [22:14:40]NVStorageSaveData ofd_packets/00045258 [22:14:40]File name is /storage/ofd_packets/00045258 [22:14:40]Write 439 bytes [22:14:40]NVStorageSaveData done [22:14:40]OFDSenderStorePacket done [22:14:40]KKMCreateOFDPacket done [22:14:40]NVStorageSaveData kkm_last_timestamp [22:14:40]File name is /storage/kkm_last_timestamp [22:14:40]Write 4 bytes [22:14:40]NVStorageSaveData done [22:14:40]ExternCall_PrintAddStr [22:14:40]wPrintStart [22:14:40]Write to MH i2c: 01 00 00 D7 5A 31 [22:14:40]OFD Sender: Processing packet 45258 [packets to send 17, broken 16] [22:14:40]ProducePacketName [22:14:40]name=ofd_packets/00045258 [22:14:40]OFD Sender: To server: pG, [22:14:40]CommunicateWithHost lk.salyk.kg:30040 [22:14:40]ConnectInit lk.salyk.kg [22:14:40]Write i2c OK [22:14:40]MH_I2C_Read... [22:14:40]Read from MH i2c: 01 [22:14:40]MH_I2C_Read... [22:14:40]Read from MH i2c: 01 07 00 [22:14:40]MH_I2C_Read... [22:14:40]Read from MH i2c: 01 07 00 D7 5A 00 00 00 00 00 FF 0F 46 [22:14:40]RasterBufferAndPrint [22:14:40]line Счет N : (3)184217 [22:14:40]line ИНН: 02508201610067 [22:14:40]line Контрольно-Кассовый Чек [22:14:40]line ПРОДАЖА [22:14:40]line Товар: 4800452010610 [22:14:40]line Кофе капучино XL (АКЦИЯ) [22:14:40]line 1.000 * 120.00 [22:14:40]line = 120.00 [22:14:40]line НДС 12% НСП 1% [22:14:40]line > о реализуемом товаре [22:14:40]line Товар: 2000036230011 [22:14:40]line Кофе Латте XL(GABB TRADE) [22:14:40]line 1.000 * 130.00 [22:14:40]line = 130.00 [22:14:40]line НДС 12% НСП 1% [22:14:40]line > о реализуемом товаре [22:14:40]line ИТОГО: 250.00 [22:14:40]line НСП 1% : 2.21 [22:14:40]line НДС 12% : 26.54 [22:14:40]line Наличными: 0.00 [22:14:40]line Безнал.: 250.00 [22:14:40]line Место: АЗС № 25 "Партнер Нефть" [22:14:40]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [22:14:40]line СНО: Общий режим [22:14:40]line Чек 95 03.03.2024 22:14 [22:14:40]line Смена: 331 ФФД: 1.0 [22:14:40]line ЗНМ: 0300000013 [22:14:40]line РНМ: 0000000000090572 [22:14:40]line Версия ККМ: 001 [22:14:40]line Платежная система: О! деньги [22:14:40]line ФМ: 0000000000874796 [22:14:40]line ФД: 45258 [22:14:40]line ФПД: 179546946291330 [22:14:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T221452&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45258&fm=179546946291330&tin=02508201610067®Number=0000000000090572&sum=25000 [22:14:40]line 0 [22:14:40]written 0, free lines is 4095 [22:14:40]Connected sock=10 [22:14:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 99 01 00 00 58 D6 91 01 2E C2 5A 03 01 00 03 00 85 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 38 30 30 34 35 32 30 31 30 36 31 30 06 04 29 00 D0 9A D0 BE D1 84 D0 B5 20 D0 BA D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 20 28 D0 90 D0 9A D0 A6 D0 98 D0 AF 29 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 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 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 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 5C F6 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 CA B0 00 00 35 04 06 00 A3 4C 07 F4 46 82 5F D5 84 B7 D3 4B C4 3D [22:14:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 80 3E 47 00 9D 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 34 37 39 36 10 04 04 00 CA B0 00 00 F4 03 04 00 1F A2 E4 65 B6 04 01 00 00 DF E2 1A AA 45 41 1D 36 [22:14:40]CommunicateWithHost err = 0 [22:14:40]CheckOFDResponse [22:14:40]1017 (14) - 77093643461234 [22:14:40]1041 (16) - 0000000000874796 [22:14:40]1040 (4) - 45258 [22:14:40]1012 (4) - 03.03.2024 16:15 [22:14:40]1206 (1) - 0 [22:14:40]OFD Sender: Remove packet 45258 [22:14:40]ProducePacketName [22:14:40]name=ofd_packets/00045258 [22:14:40]NVStorageDeleteData [22:14:41]Write to MH i2c: 01 00 00 07 5B 62 [22:14:41]Write i2c OK [22:14:41]MH_I2C_Read... [22:14:41]Read from MH i2c: 01 [22:14:41]MH_I2C_Read... [22:14:41]Read from MH i2c: 01 07 00 [22:14:41]MH_I2C_Read... [22:14:41]Read from MH i2c: 01 07 00 07 5B 00 00 00 00 00 B3 0C 28 [22:14:41]RasterBufferAndPrint [22:14:41]line [22:14:41]line [22:14:41]line [22:14:41]line [22:14:41]line [22:14:41]written 0, free lines is 3257 [22:14:41]MH_Cut [22:14:41]Write to MH i2c: D1 01 00 0E 5B 01 3B [22:14:41]Write i2c OK [22:14:41]MH_I2C_Read... [22:14:41]Read from MH i2c: D1 [22:14:41]MH_I2C_Read... [22:14:41]Read from MH i2c: D1 01 00 [22:14:41]MH_I2C_Read... [22:14:41]Read from MH i2c: D1 01 00 0E 5B 00 3A [22:14:41]Write to MH i2c: 01 00 00 0F 5B 6A [22:14:41]Write i2c OK [22:14:41]MH_I2C_Read... [22:14:41]OFD Sender: No OFD packet to send [22:14:41]*** Cut start [22:14:41]*** Purtial cut [22:14:41]*** Stage 1: CUTSNS_PIN = 1 [22:14:43]Read from MH i2c: 01 [22:14:43]MH_I2C_Read... [22:14:43]*** Stop cut motor [22:14:43]*** Cut end [22:14:43]Read from MH i2c: 01 07 00 [22:14:43]MH_I2C_Read... [22:14:43]Read from MH i2c: 01 07 00 0F 5B 00 00 00 00 00 FF 0F 7F [22:14:43]process_action close_receipt done [22:14:43]requested_data is exist [22:14:43]produce_requested_data [22:14:43]requested_item fm.sn is exist - process it [22:14:43]wFMCommunicate request_size=4 [22:14:43]MH_SAM_APDU [22:14:43]CAPDU: 80 11 00 00 [22:14:43]Write to MH i2c: E2 08 00 10 5B 80 11 00 00 00 00 00 00 E5 [22:14:43]Write i2c OK [22:14:43]MH_I2C_Read... [22:14:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:14:43]Read from MH i2c: E2 [22:14:43]MH_I2C_Read... [22:14:43]Read from MH i2c: E2 17 00 [22:14:43]MH_I2C_Read... [22:14:43]Read from MH i2c: E2 17 00 10 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 41 [22:14:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [22:14:43]wFMCommunicate OK [22:14:43]requested_item fd.num is exist - process it [22:14:43]SAM_PROTO_GetFieldsCounters [22:14:43]wFMCommunicate request_size=4 [22:14:43]MH_SAM_APDU [22:14:43]CAPDU: 80 13 00 00 [22:14:43]Write to MH i2c: E2 08 00 11 5B 80 13 00 00 00 00 00 00 E8 [22:14:43]Write i2c OK [22:14:43]MH_I2C_Read... [22:14:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:14:44]Read from MH i2c: E2 [22:14:44]MH_I2C_Read... [22:14:44]Read from MH i2c: E2 62 00 [22:14:44]MH_I2C_Read... [22:14:44]Read from MH i2c: E2 62 00 11 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 CA B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 F3 [22:14:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 CA B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:14:44]wFMCommunicate OK [22:14:44]SAM_PROTO_GetFieldsCounters done [22:14:44]requested_item shift.num is exist - process it [22:14:44]requested_item shift.opened is exist - process it [22:14:44]req_shift_opened [22:14:44]FM_GetShiftState [22:14:44]SAM_PROTO_GetShiftState [22:14:44]wFMCommunicate request_size=4 [22:14:44]MH_SAM_APDU [22:14:44]CAPDU: 80 13 01 00 [22:14:44]Write to MH i2c: E2 08 00 12 5B 80 13 01 00 00 00 00 00 EA [22:14:44]Write i2c OK [22:14:44]MH_I2C_Read... [22:14:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:14:44]Read from MH i2c: E2 [22:14:44]MH_I2C_Read... [22:14:44]Read from MH i2c: E2 0E 00 [22:14:44]MH_I2C_Read... [22:14:44]Read from MH i2c: E2 0E 00 12 5B 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 20 [22:14:44]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [22:14:44]wFMCommunicate OK [22:14:44]SAM_PROTO_GetShiftState done [22:14:44]FM_GetShiftState done [22:14:44]req_shift_opened done [22:14:44]requested_item shift.open_date is exist - process it [22:14:44]req_shift_open_date [22:14:44]req_shift_open_date done [22:14:44]produce_requested_data done [22:14:44]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45258,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [22:14:44]process_action_free close_receipt [22:14:44]json_value_free [22:14:44]json_value_free done [22:14:44]process_json_proto returns [22:14:44]Send response to host [22:14:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45258,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [22:14:44]free response buf [22:14:44]execute_script done [22:14:44]execute_script returns [22:14:44]free content buf [22:14:44]Sock 9.Close socket [22:14:44]Sock 9.Thread stoped [22:14:46]OFD Sender: No OFD packet to send [22:14:51]OFD Sender: No OFD packet to send [22:14:56]OFD Sender: No OFD packet to send [22:15:01]OFD Sender: No OFD packet to send [22:15:06]OFD Sender: No OFD packet to send [22:15:11]OFD Sender: No OFD packet to send [22:15:16]OFD Sender: No OFD packet to send [22:15:21]OFD Sender: No OFD packet to send [22:15:26]OFD Sender: No OFD packet to send [22:15:31]OFD Sender: No OFD packet to send [22:15:36]OFD Sender: No OFD packet to send [22:15:41]OFD Sender: No OFD packet to send [22:15:46]OFD Sender: No OFD packet to send [22:15:51]OFD Sender: No OFD packet to send [22:15:56]OFD Sender: No OFD packet to send [22:16:01]OFD Sender: No OFD packet to send [22:16:06]OFD Sender: No OFD packet to send [22:16:11]OFD Sender: No OFD packet to send [22:16:16]OFD Sender: No OFD packet to send [22:16:21]OFD Sender: No OFD packet to send [22:16:26]OFD Sender: No OFD packet to send [22:16:31]OFD Sender: No OFD packet to send [22:16:36]OFD Sender: No OFD packet to send [22:16:41]OFD Sender: No OFD packet to send [22:16:46]OFD Sender: No OFD packet to send [22:16:51]OFD Sender: No OFD packet to send [22:16:56]OFD Sender: No OFD packet to send [22:17:01]OFD Sender: No OFD packet to send [22:17:06]OFD Sender: No OFD packet to send [22:17:11]OFD Sender: No OFD packet to send [22:17:16]OFD Sender: No OFD packet to send [22:17:21]OFD Sender: No OFD packet to send [22:17:26]OFD Sender: No OFD packet to send [22:17:31]OFD Sender: No OFD packet to send [22:17:36]OFD Sender: No OFD packet to send [22:17:41]OFD Sender: No OFD packet to send [22:17:46]OFD Sender: No OFD packet to send [22:17:51]OFD Sender: No OFD packet to send [22:17:56]OFD Sender: No OFD packet to send [22:18:01]OFD Sender: No OFD packet to send [22:18:06]OFD Sender: No OFD packet to send [22:18:11]OFD Sender: No OFD packet to send [22:18:16]OFD Sender: No OFD packet to send [22:18:21]OFD Sender: No OFD packet to send [22:18:26]OFD Sender: No OFD packet to send [22:18:31]OFD Sender: No OFD packet to send [22:18:36]OFD Sender: No OFD packet to send [22:18:41]OFD Sender: No OFD packet to send [22:18:46]OFD Sender: No OFD packet to send [22:18:51]OFD Sender: No OFD packet to send [22:18:56]OFD Sender: No OFD packet to send [22:19:01]OFD Sender: No OFD packet to send [22:19:06]OFD Sender: No OFD packet to send [22:19:11]OFD Sender: No OFD packet to send [22:19:16]OFD Sender: No OFD packet to send [22:19:21]OFD Sender: No OFD packet to send [22:19:26]OFD Sender: No OFD packet to send [22:19:31]OFD Sender: No OFD packet to send [22:19:36]OFD Sender: No OFD packet to send [22:19:41]OFD Sender: No OFD packet to send [22:19:46]OFD Sender: No OFD packet to send [22:19:51]OFD Sender: No OFD packet to send [22:19:56]OFD Sender: No OFD packet to send [22:20:01]OFD Sender: No OFD packet to send [22:20:06]OFD Sender: No OFD packet to send [22:20:11]OFD Sender: No OFD packet to send [22:20:16]OFD Sender: No OFD packet to send [22:20:21]OFD Sender: No OFD packet to send [22:20:26]OFD Sender: No OFD packet to send [22:20:31]OFD Sender: No OFD packet to send [22:20:36]OFD Sender: No OFD packet to send [22:20:41]OFD Sender: No OFD packet to send [22:20:46]OFD Sender: No OFD packet to send [22:20:51]OFD Sender: No OFD packet to send [22:20:56]OFD Sender: No OFD packet to send [22:21:01]OFD Sender: No OFD packet to send [22:21:06]OFD Sender: No OFD packet to send [22:21:11]OFD Sender: No OFD packet to send [22:21:16]OFD Sender: No OFD packet to send [22:21:21]OFD Sender: No OFD packet to send [22:21:26]OFD Sender: No OFD packet to send [22:21:31]OFD Sender: No OFD packet to send [22:21:36]OFD Sender: No OFD packet to send [22:21:41]OFD Sender: No OFD packet to send [22:21:46]OFD Sender: No OFD packet to send [22:21:51]OFD Sender: No OFD packet to send [22:21:56]OFD Sender: No OFD packet to send [22:22:01]OFD Sender: No OFD packet to send [22:22:06]OFD Sender: No OFD packet to send [22:22:11]OFD Sender: No OFD packet to send [22:22:16]OFD Sender: No OFD packet to send [22:22:21]OFD Sender: No OFD packet to send [22:22:26]OFD Sender: No OFD packet to send [22:22:31]OFD Sender: No OFD packet to send [22:22:36]OFD Sender: No OFD packet to send [22:22:41]OFD Sender: No OFD packet to send [22:22:46]OFD Sender: No OFD packet to send [22:22:51]OFD Sender: No OFD packet to send [22:22:56]OFD Sender: No OFD packet to send [22:23:01]OFD Sender: No OFD packet to send [22:23:06]OFD Sender: No OFD packet to send [22:23:11]OFD Sender: No OFD packet to send [22:23:16]OFD Sender: No OFD packet to send [22:23:21]OFD Sender: No OFD packet to send [22:23:26]OFD Sender: No OFD packet to send [22:23:31]OFD Sender: No OFD packet to send [22:23:36]accept exits with 7 [22:23:36]New connection [22:23:36]New thread 3067014500 created [22:23:36]Thread 3067157860 joined [22:23:36]Waiting for new connection... [22:23:36] Sock 7.Parse request [22:23:36]Sock 7.Check first char [22:23:36]Sock 7.First char is OK [22:23:36]request: POST /json_proto HTTP/1.0 [22:23:36]Method: POST [22:23:36]URL: /json_proto [22:23:36]Method is POST - this is cgi request [22:23:36]url: /json_proto [22:23:36]query_string will be loaded in cgi processing [22:23:36]execute_cgi json_proto POST (null) [22:23:36]execute_cgi path=json_proto method=POST [22:23:36]POST find Content-Length [22:23:36]Host: 172.17.48.198:8080 [22:23:36]Content-Length: 613 [22:23:36]Content-Type: application/json [22:23:36] [22:23:36]POST finish read [22:23:36]Found Content-Length = 613 [22:23:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184218", "tax_sys" : 0, "items" : [ { "code": "47803152", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Mevius Revo", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:23:36]execute_script... [22:23:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184218", "tax_sys" : 0, "items" : [ { "code": "47803152", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Mevius Revo", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:23:36]POST & json_proto [22:23:36]process_json_proto [22:23:36]json parsed OK: [22:23:36]protocol is kg_v1.0 [22:23:36]action value=close_receipt [22:23:36]process_action close_receipt [22:23:36]cmd_close_receipt [22:23:36]MH_GetDate [22:23:36]Write to MH i2c: F0 00 00 13 5B 5D [22:23:36]Write i2c OK [22:23:36]MH_I2C_Read... [22:23:36]Read from MH i2c: F0 [22:23:36]MH_I2C_Read... [22:23:36]Read from MH i2c: F0 09 00 [22:23:36]MH_I2C_Read... [22:23:36]Read from MH i2c: F0 09 00 13 5B 00 75 F8 E4 65 CE C4 D4 65 E7 [22:23:36]GetLastDocTimeStamp 1709504092 [22:23:36]current date 1709504629 [22:23:36]FM_GetShiftState [22:23:36]SAM_PROTO_GetShiftState [22:23:36]wFMCommunicate request_size=4 [22:23:36]MH_SAM_APDU [22:23:36]CAPDU: 80 13 01 00 [22:23:36]Write to MH i2c: E2 08 00 14 5B 80 13 01 00 00 00 00 00 EC [22:23:36]Write i2c OK [22:23:36]MH_I2C_Read... [22:23:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:23:36]Read from MH i2c: E2 [22:23:36]MH_I2C_Read... [22:23:36]Read from MH i2c: E2 0E 00 [22:23:36]MH_I2C_Read... [22:23:36]Read from MH i2c: E2 0E 00 14 5B 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 22 [22:23:36]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [22:23:36]wFMCommunicate OK [22:23:36]SAM_PROTO_GetShiftState done [22:23:36]FM_GetShiftState done [22:23:36]opened in 1709425694 [22:23:36]opened+sec_in_day 1709512094 [22:23:36]quantity*price = 15000 [22:23:36]sum+1 = 15001 [22:23:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 96 03.03.2024 22:23 Смена: 331 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 ФМ: 0000000000874796 ФД: 45259 ФПД: 124108401296468 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T222349&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45259&fm=124108401296468&tin=02508201610067®Number=0000000000090572&sum=15000 0 [22:23:37]StoreToDocumentArchive [22:23:37]shift 331 fd 45259 [22:23:37]save to /storage/0331/doc_00045259 [22:23:37]save last doc name /storage/0331/doc_00045259 to /storage/kkm_last_doc_name [22:23:37]save OK [22:23:37]Clear old archive folders... [22:23:37]ProcessDocumentItem done err = 0, tmpTLVsize=265 [22:23:37]tlvbuf is 01B6BDB0 [22:23:37]SAM_PROTO_ClearQueue [22:23:37]wFMCommunicate request_size=4 [22:23:37]MH_SAM_APDU [22:23:37]CAPDU: 80 09 00 00 [22:23:37]Write to MH i2c: E2 08 00 21 5B 80 09 00 00 00 00 00 00 EE [22:23:37]Write i2c OK [22:23:37]MH_I2C_Read... [22:23:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:23:37]Read from MH i2c: E2 [22:23:37]MH_I2C_Read... [22:23:37]Read from MH i2c: E2 03 00 [22:23:37]MH_I2C_Read... [22:23:37]Read from MH i2c: E2 03 00 21 5B 00 90 00 F0 [22:23:37]RAPDU: 90 00 [22:23:37]wFMCommunicate OK [22:23:37]SAM_PROTO_ClearQueue done [22:23:37]KKMCreateOFDPacket [22:23:37]OFDProtocolAddRootSTLVToBuf [22:23:37]FM_MakeSignedData [22:23:37]FM_MakeSignedData [22:23:37]SAM_PROTO_SignData [22:23:37]wFMCommunicate request_size=4 [22:23:37]MH_SAM_APDU [22:23:37]CAPDU: 80 0D 01 02 [22:23:37]Write to MH i2c: E2 08 00 22 5B 80 0D 01 02 00 00 00 00 F6 [22:23:37]Write i2c OK [22:23:37]MH_I2C_Read... [22:23:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:23:37]Read from MH i2c: E2 [22:23:37]MH_I2C_Read... [22:23:37]Read from MH i2c: E2 03 00 [22:23:37]MH_I2C_Read... [22:23:37]Read from MH i2c: E2 03 00 22 5B 00 90 00 F1 [22:23:37]RAPDU: 90 00 [22:23:37]wFMCommunicate OK [22:23:37]wFMCommunicate request_size=255 [22:23:37]MH_SAM_APDU [22:23:37]CAPDU: 80 0D 02 02 FA 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 75 F8 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 [22:23:37]Write to MH i2c: E2 02 01 23 5B 80 0D 02 02 FA 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 75 F8 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 00 00 04 [22:23:37]Write i2c OK [22:23:37]MH_I2C_Read... [22:23:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:23:37]Read from MH i2c: E2 [22:23:37]MH_I2C_Read... [22:23:37]Read from MH i2c: E2 03 00 [22:23:37]MH_I2C_Read... [22:23:37]Read from MH i2c: E2 03 00 23 5B 00 90 00 F2 [22:23:37]RAPDU: 90 00 [22:23:37]wFMCommunicate OK [22:23:37]wFMCommunicate request_size=24 [22:23:37]MH_SAM_APDU [22:23:37]CAPDU: 80 0D 02 02 13 36 10 04 04 00 CB B0 00 00 35 04 06 00 70 E0 3D 2C 44 54 [22:23:37]Write to MH i2c: E2 1B 00 24 5B 80 0D 02 02 13 00 36 10 04 04 00 CB B0 00 00 35 04 06 00 70 E0 3D 2C 44 54 00 00 78 [22:23:37]Write i2c OK [22:23:37]MH_I2C_Read... [22:23:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:23:37]Read from MH i2c: E2 [22:23:37]MH_I2C_Read... [22:23:37]Read from MH i2c: E2 03 00 [22:23:37]MH_I2C_Read... [22:23:37]Read from MH i2c: E2 03 00 24 5B 00 90 00 F3 [22:23:37]RAPDU: 90 00 [22:23:37]wFMCommunicate OK [22:23:37]wFMCommunicate request_size=4 [22:23:37]MH_SAM_APDU [22:23:37]CAPDU: 80 0D 03 02 [22:23:37]Write to MH i2c: E2 08 00 25 5B 80 0D 03 02 00 00 00 00 FB [22:23:37]Write i2c OK [22:23:37]MH_I2C_Read... [22:23:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:23:37]Read from MH i2c: E2 [22:23:37]MH_I2C_Read... [22:23:37]Read from MH i2c: E2 0B 00 [22:23:37]MH_I2C_Read... [22:23:37]Read from MH i2c: E2 0B 00 25 5B 00 00 8C 5C 50 2C 11 F0 15 90 00 76 [22:23:37]RAPDU: 00 8C 5C 50 2C 11 F0 15 90 00 [22:23:37]wFMCommunicate OK [22:23:37]SAM_PROTO_SignData done [22:23:37]FM_MakeSignedData done [22:23:37]CreateOFDProtocolMessage [22:23:37]wFMCommunicate request_size=4 [22:23:37]MH_SAM_APDU [22:23:37]CAPDU: 80 11 00 00 [22:23:37]Write to MH i2c: E2 08 00 26 5B 80 11 00 00 00 00 00 00 FB [22:23:37]Write i2c OK [22:23:37]MH_I2C_Read... [22:23:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:23:37]Read from MH i2c: E2 [22:23:37]MH_I2C_Read... [22:23:37]Read from MH i2c: E2 17 00 [22:23:37]MH_I2C_Read... [22:23:37]Read from MH i2c: E2 17 00 26 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 57 [22:23:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [22:23:37]wFMCommunicate OK [22:23:37]CreateOFDProtocolMessage done [22:23:37]OFDSenderStorePacket 45259 [22:23:37]StoreOFDPacket docnum=45259 [22:23:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 1D 01 00 00 F7 B0 15 01 BE 9A 5A 03 01 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 75 F8 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 CB B0 00 00 35 04 06 00 70 E0 3D 2C 44 54 00 8C 5C 50 2C 11 F0 15 [22:23:37]CheckFolder [22:23:37]dirname=/storage/ofd_packets [22:23:37]CheckFolder done [22:23:37]ProducePacketName [22:23:37]name=ofd_packets/00045259 [22:23:37]NVStorageSaveData ofd_packets/00045259 [22:23:37]File name is /storage/ofd_packets/00045259 [22:23:37]Write 315 bytes [22:23:37]NVStorageSaveData done [22:23:37]OFDSenderStorePacket done [22:23:37]KKMCreateOFDPacket done [22:23:37]NVStorageSaveData kkm_last_timestamp [22:23:37]File name is /storage/kkm_last_timestamp [22:23:37]Write 4 bytes [22:23:37]NVStorageSaveData done [22:23:37]ExternCall_PrintAddStr [22:23:37]wPrintStart [22:23:37]Write to MH i2c: 01 00 00 27 5B 82 [22:23:37]Write i2c OK [22:23:37]MH_I2C_Read... [22:23:37]Read from MH i2c: 01 [22:23:37]MH_I2C_Read... [22:23:37]Read from MH i2c: 01 07 00 [22:23:37]MH_I2C_Read... [22:23:37]Read from MH i2c: 01 07 00 27 5B 00 00 00 00 00 FF 0F 97 [22:23:37]RasterBufferAndPrint [22:23:37]line Счет N : (3)184218 [22:23:37]line ИНН: 02508201610067 [22:23:37]line Контрольно-Кассовый Чек [22:23:37]line ПРОДАЖА [22:23:37]line Товар: 47803152 [22:23:37]line Сигареты Mevius Revo [22:23:37]line 1.000 * 150.00 [22:23:37]line = 150.00 [22:23:37]line НДС 12% НСП 1% [22:23:37]line > о реализуемом товаре [22:23:37]line ИТОГО: 150.00 [22:23:37]line НСП 1% : 1.33 [22:23:37]line НДС 12% : 15.93 [22:23:37]line Наличными: 150.00 [22:23:37]line Безнал.: 0.00 [22:23:37]line Место: АЗС № 25 "Партнер Нефть" [22:23:37]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [22:23:37]line СНО: Общий режим [22:23:37]line Чек 96 03.03.2024 22:23 [22:23:37]line Смена: 331 ФФД: 1.0 [22:23:37]line ЗНМ: 0300000013 [22:23:37]line РНМ: 0000000000090572 [22:23:37]line Версия ККМ: 001 [22:23:37]line ФМ: 0000000000874796 [22:23:37]line ФД: 45259 [22:23:37]line ФПД: 124108401296468 [22:23:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T222349&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45259&fm=124108401296468&tin=02508201610067®Number=0000000000090572&sum=15000 [22:23:38]line 0 [22:23:38]OFD Sender: Processing packet 45259 [packets to send 17, broken 16] [22:23:38]ProducePacketName [22:23:38]name=ofd_packets/00045259 [22:23:38]OFD Sender: To server: pG, [22:23:38]CommunicateWithHost lk.salyk.kg:30040 [22:23:38]ConnectInit lk.salyk.kg [22:23:38]written 0, free lines is 4095 [22:23:38]Connected sock=10 [22:23:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 1D 01 00 00 F7 B0 15 01 BE 9A 5A 03 01 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 75 F8 E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 CB B0 00 00 35 04 06 00 70 E0 3D 2C 44 54 00 8C 5C 50 2C 11 F0 15 [22:23:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 9E D9 47 00 5C 13 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 CB B0 00 00 F4 03 04 00 39 A4 E4 65 B6 04 01 00 00 AF 92 9F F7 79 AF 3F B5 [22:23:38]CommunicateWithHost err = 0 [22:23:38]CheckOFDResponse [22:23:38]1017 (14) - 77093643461234 [22:23:38]1041 (16) - 0000000000874796 [22:23:38]1040 (4) - 45259 [22:23:38]1012 (4) - 03.03.2024 16:24 [22:23:38]1206 (1) - 0 [22:23:38]OFD Sender: Remove packet 45259 [22:23:38]ProducePacketName [22:23:38]name=ofd_packets/00045259 [22:23:38]NVStorageDeleteData [22:23:38]Write to MH i2c: 01 00 00 4F 5B AA [22:23:38]Write i2c OK [22:23:38]MH_I2C_Read... [22:23:38]Read from MH i2c: 01 [22:23:38]MH_I2C_Read... [22:23:38]Read from MH i2c: 01 07 00 [22:23:38]MH_I2C_Read... [22:23:38]Read from MH i2c: 01 07 00 4F 5B 00 00 00 00 00 06 0D C4 [22:23:38]RasterBufferAndPrint [22:23:38]line [22:23:38]line [22:23:38]line [22:23:38]line [22:23:38]line [22:23:38]written 0, free lines is 3340 [22:23:38]MH_Cut [22:23:38]Write to MH i2c: D1 01 00 56 5B 01 83 [22:23:38]Write i2c OK [22:23:38]MH_I2C_Read... [22:23:38]Read from MH i2c: D1 [22:23:38]MH_I2C_Read... [22:23:38]Read from MH i2c: D1 01 00 [22:23:38]MH_I2C_Read... [22:23:38]Read from MH i2c: D1 01 00 56 5B 00 82 [22:23:38]Write to MH i2c: 01 00 00 57 5B B2 [22:23:38]Write i2c OK [22:23:38]MH_I2C_Read... [22:23:38]OFD Sender: No OFD packet to send [22:23:39]*** Cut start [22:23:39]*** Purtial cut [22:23:39]*** Stage 1: CUTSNS_PIN = 1 [22:23:41]Read from MH i2c: 01 [22:23:41]MH_I2C_Read... [22:23:41]*** Stop cut motor [22:23:41]*** Cut end [22:23:41]Read from MH i2c: 01 07 00 [22:23:41]MH_I2C_Read... [22:23:41]Read from MH i2c: 01 07 00 57 5B 00 00 00 00 00 FF 0F C7 [22:23:41]process_action close_receipt done [22:23:41]requested_data is exist [22:23:41]produce_requested_data [22:23:41]requested_item fm.sn is exist - process it [22:23:41]wFMCommunicate request_size=4 [22:23:41]MH_SAM_APDU [22:23:41]CAPDU: 80 11 00 00 [22:23:41]Write to MH i2c: E2 08 00 58 5B 80 11 00 00 00 00 00 00 2D [22:23:41]Write i2c OK [22:23:41]MH_I2C_Read... [22:23:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:23:41]Read from MH i2c: E2 [22:23:41]MH_I2C_Read... [22:23:41]Read from MH i2c: E2 17 00 [22:23:41]MH_I2C_Read... [22:23:41]Read from MH i2c: E2 17 00 58 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 89 [22:23:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [22:23:41]wFMCommunicate OK [22:23:41]requested_item fd.num is exist - process it [22:23:41]SAM_PROTO_GetFieldsCounters [22:23:41]wFMCommunicate request_size=4 [22:23:41]MH_SAM_APDU [22:23:41]CAPDU: 80 13 00 00 [22:23:41]Write to MH i2c: E2 08 00 59 5B 80 13 00 00 00 00 00 00 30 [22:23:41]Write i2c OK [22:23:41]MH_I2C_Read... [22:23:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:23:41]Read from MH i2c: E2 [22:23:41]MH_I2C_Read... [22:23:41]Read from MH i2c: E2 62 00 [22:23:41]MH_I2C_Read... [22:23:41]Read from MH i2c: E2 62 00 59 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 CB B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 3F [22:23:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 CB B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:23:41]wFMCommunicate OK [22:23:41]SAM_PROTO_GetFieldsCounters done [22:23:41]requested_item shift.num is exist - process it [22:23:41]requested_item shift.opened is exist - process it [22:23:41]req_shift_opened [22:23:41]FM_GetShiftState [22:23:41]SAM_PROTO_GetShiftState [22:23:41]wFMCommunicate request_size=4 [22:23:41]MH_SAM_APDU [22:23:41]CAPDU: 80 13 01 00 [22:23:41]Write to MH i2c: E2 08 00 5A 5B 80 13 01 00 00 00 00 00 32 [22:23:41]Write i2c OK [22:23:41]MH_I2C_Read... [22:23:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:23:41]Read from MH i2c: E2 [22:23:41]MH_I2C_Read... [22:23:41]Read from MH i2c: E2 0E 00 [22:23:41]MH_I2C_Read... [22:23:41]Read from MH i2c: E2 0E 00 5A 5B 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 68 [22:23:41]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [22:23:41]wFMCommunicate OK [22:23:41]SAM_PROTO_GetShiftState done [22:23:41]FM_GetShiftState done [22:23:41]req_shift_opened done [22:23:41]requested_item shift.open_date is exist - process it [22:23:41]req_shift_open_date [22:23:41]req_shift_open_date done [22:23:41]produce_requested_data done [22:23:41]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45259,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [22:23:41]process_action_free close_receipt [22:23:41]json_value_free [22:23:41]json_value_free done [22:23:41]process_json_proto returns [22:23:41]Send response to host [22:23:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45259,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [22:23:41]free response buf [22:23:41]execute_script done [22:23:41]execute_script returns [22:23:41]free content buf [22:23:41]Sock 7.Close socket [22:23:41]Sock 7.Thread stoped [22:23:43]OFD Sender: No OFD packet to send [22:23:48]OFD Sender: No OFD packet to send [22:23:53]OFD Sender: No OFD packet to send [22:23:58]OFD Sender: No OFD packet to send [22:24:03]OFD Sender: No OFD packet to send [22:24:08]OFD Sender: No OFD packet to send [22:24:13]OFD Sender: No OFD packet to send [22:24:18]OFD Sender: No OFD packet to send [22:24:23]OFD Sender: No OFD packet to send [22:24:28]OFD Sender: No OFD packet to send [22:24:33]OFD Sender: No OFD packet to send [22:24:38]OFD Sender: No OFD packet to send [22:24:43]OFD Sender: No OFD packet to send [22:24:48]OFD Sender: No OFD packet to send [22:24:53]OFD Sender: No OFD packet to send [22:24:58]OFD Sender: No OFD packet to send [22:25:03]OFD Sender: No OFD packet to send [22:25:08]OFD Sender: No OFD packet to send [22:25:13]OFD Sender: No OFD packet to send [22:25:18]OFD Sender: No OFD packet to send [22:25:23]OFD Sender: No OFD packet to send [22:25:28]OFD Sender: No OFD packet to send [22:25:33]OFD Sender: No OFD packet to send [22:25:39]OFD Sender: No OFD packet to send [22:25:44]OFD Sender: No OFD packet to send [22:25:49]OFD Sender: No OFD packet to send [22:25:54]OFD Sender: No OFD packet to send [22:25:59]OFD Sender: No OFD packet to send [22:26:04]OFD Sender: No OFD packet to send [22:26:09]OFD Sender: No OFD packet to send [22:26:14]OFD Sender: No OFD packet to send [22:26:19]OFD Sender: No OFD packet to send [22:26:24]OFD Sender: No OFD packet to send [22:26:29]OFD Sender: No OFD packet to send [22:26:34]OFD Sender: No OFD packet to send [22:26:39]OFD Sender: No OFD packet to send [22:26:44]OFD Sender: No OFD packet to send [22:26:49]OFD Sender: No OFD packet to send [22:26:54]OFD Sender: No OFD packet to send [22:26:59]OFD Sender: No OFD packet to send [22:27:04]OFD Sender: No OFD packet to send [22:27:09]OFD Sender: No OFD packet to send [22:27:14]OFD Sender: No OFD packet to send [22:27:19]OFD Sender: No OFD packet to send [22:27:24]OFD Sender: No OFD packet to send [22:27:29]OFD Sender: No OFD packet to send [22:27:34]OFD Sender: No OFD packet to send [22:27:39]OFD Sender: No OFD packet to send [22:27:44]OFD Sender: No OFD packet to send [22:27:49]OFD Sender: No OFD packet to send [22:27:54]OFD Sender: No OFD packet to send [22:27:59]OFD Sender: No OFD packet to send [22:28:04]OFD Sender: No OFD packet to send [22:28:09]OFD Sender: No OFD packet to send [22:28:14]OFD Sender: No OFD packet to send [22:28:19]OFD Sender: No OFD packet to send [22:28:24]OFD Sender: No OFD packet to send [22:28:29]OFD Sender: No OFD packet to send [22:28:34]OFD Sender: No OFD packet to send [22:28:39]OFD Sender: No OFD packet to send [22:28:44]OFD Sender: No OFD packet to send [22:28:49]OFD Sender: No OFD packet to send [22:28:54]OFD Sender: No OFD packet to send [22:28:59]OFD Sender: No OFD packet to send [22:29:04]OFD Sender: No OFD packet to send [22:29:09]OFD Sender: No OFD packet to send [22:29:14]OFD Sender: No OFD packet to send [22:29:19]OFD Sender: No OFD packet to send [22:29:24]OFD Sender: No OFD packet to send [22:29:29]OFD Sender: No OFD packet to send [22:29:34]OFD Sender: No OFD packet to send [22:29:39]OFD Sender: No OFD packet to send [22:29:44]OFD Sender: No OFD packet to send [22:29:49]OFD Sender: No OFD packet to send [22:29:54]OFD Sender: No OFD packet to send [22:29:59]OFD Sender: No OFD packet to send [22:30:04]OFD Sender: No OFD packet to send [22:30:09]OFD Sender: No OFD packet to send [22:30:14]OFD Sender: No OFD packet to send [22:30:19]OFD Sender: No OFD packet to send [22:30:24]OFD Sender: No OFD packet to send [22:30:29]OFD Sender: No OFD packet to send [22:30:34]OFD Sender: No OFD packet to send [22:30:39]OFD Sender: No OFD packet to send [22:30:44]OFD Sender: No OFD packet to send [22:30:49]OFD Sender: No OFD packet to send [22:30:54]OFD Sender: No OFD packet to send [22:30:59]OFD Sender: No OFD packet to send [22:31:04]OFD Sender: No OFD packet to send [22:31:09]OFD Sender: No OFD packet to send [22:31:14]OFD Sender: No OFD packet to send [22:31:19]OFD Sender: No OFD packet to send [22:31:24]OFD Sender: No OFD packet to send [22:31:29]OFD Sender: No OFD packet to send [22:31:34]OFD Sender: No OFD packet to send [22:31:39]OFD Sender: No OFD packet to send [22:31:44]OFD Sender: No OFD packet to send [22:31:49]OFD Sender: No OFD packet to send [22:31:54]OFD Sender: No OFD packet to send [22:31:59]OFD Sender: No OFD packet to send [22:32:04]OFD Sender: No OFD packet to send [22:32:09]OFD Sender: No OFD packet to send [22:32:14]OFD Sender: No OFD packet to send [22:32:19]OFD Sender: No OFD packet to send [22:32:24]OFD Sender: No OFD packet to send [22:32:29]OFD Sender: No OFD packet to send [22:32:34]OFD Sender: No OFD packet to send [22:32:39]OFD Sender: No OFD packet to send [22:32:44]OFD Sender: No OFD packet to send [22:32:49]OFD Sender: No OFD packet to send [22:32:54]OFD Sender: No OFD packet to send [22:32:59]OFD Sender: No OFD packet to send [22:33:04]OFD Sender: No OFD packet to send [22:33:09]OFD Sender: No OFD packet to send [22:33:14]OFD Sender: No OFD packet to send [22:33:19]OFD Sender: No OFD packet to send [22:33:24]OFD Sender: No OFD packet to send [22:33:29]OFD Sender: No OFD packet to send [22:33:34]OFD Sender: No OFD packet to send [22:33:39]OFD Sender: No OFD packet to send [22:33:42]accept exits with 9 [22:33:42]New connection [22:33:42]New thread 3067157860 created [22:33:42]Thread 3067014500 joined [22:33:42]Waiting for new connection... [22:33:42] Sock 9.Parse request [22:33:42]Sock 9.Check first char [22:33:42]Sock 9.First char is OK [22:33:42]request: POST /json_proto HTTP/1.0 [22:33:42]Method: POST [22:33:42]URL: /json_proto [22:33:42]Method is POST - this is cgi request [22:33:42]url: /json_proto [22:33:42]query_string will be loaded in cgi processing [22:33:42]execute_cgi json_proto POST (null) [22:33:42]execute_cgi path=json_proto method=POST [22:33:42]POST find Content-Length [22:33:42]Host: 172.17.48.198:8080 [22:33:42]Content-Length: 662 [22:33:42]Content-Type: application/json [22:33:42] [22:33:42]POST finish read [22:33:42]Found Content-Length = 662 [22:33:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184219", "tax_sys" : 0, "items" : [ { "code": "4870240014831", "name": "\u041D\u0430\u0433\u0440.\u0422\u0430\u0431\u0430\u0447.\u041F\u0430\u043B\u043E\u0447.HEETS Summer Wave", "price" : 141.00, "quantity" : 1.000, "sum" : 141.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 141.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:33:42]execute_script... [22:33:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184219", "tax_sys" : 0, "items" : [ { "code": "4870240014831", "name": "\u041D\u0430\u0433\u0440.\u0422\u0430\u0431\u0430\u0447.\u041F\u0430\u043B\u043E\u0447.HEETS Summer Wave", "price" : 141.00, "quantity" : 1.000, "sum" : 141.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 141.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:33:42]POST & json_proto [22:33:42]process_json_proto [22:33:42]json parsed OK: [22:33:42]protocol is kg_v1.0 [22:33:42]action value=close_receipt [22:33:42]process_action close_receipt [22:33:42]cmd_close_receipt [22:33:42]MH_GetDate [22:33:42]Write to MH i2c: F0 00 00 5B 5B A5 [22:33:42]Write i2c OK [22:33:42]MH_I2C_Read... [22:33:42]Read from MH i2c: F0 [22:33:42]MH_I2C_Read... [22:33:42]Read from MH i2c: F0 09 00 [22:33:42]MH_I2C_Read... [22:33:42]Read from MH i2c: F0 09 00 5B 5B 00 D3 FA E4 65 CE C4 D4 65 8F [22:33:42]GetLastDocTimeStamp 1709504629 [22:33:42]current date 1709505235 [22:33:42]FM_GetShiftState [22:33:42]SAM_PROTO_GetShiftState [22:33:42]wFMCommunicate request_size=4 [22:33:42]MH_SAM_APDU [22:33:42]CAPDU: 80 13 01 00 [22:33:42]Write to MH i2c: E2 08 00 5C 5B 80 13 01 00 00 00 00 00 34 [22:33:42]Write i2c OK [22:33:42]MH_I2C_Read... [22:33:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:33:42]Read from MH i2c: E2 [22:33:42]MH_I2C_Read... [22:33:42]Read from MH i2c: E2 0E 00 [22:33:42]MH_I2C_Read... [22:33:42]Read from MH i2c: E2 0E 00 5C 5B 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 6A [22:33:42]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [22:33:42]wFMCommunicate OK [22:33:42]SAM_PROTO_GetShiftState done [22:33:42]FM_GetShiftState done [22:33:42]opened in 1709425694 [22:33:42]opened+sec_in_day 1709512094 [22:33:42]quantity*price = 14100 [22:33:42]sum+1 = 14101 [22:33:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 141.00 НСП 1% : 1.25 НДС 12% : 14.97 Наличными: 141.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 97 03.03.2024 22:33 Смена: 331 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 ФМ: 0000000000874796 ФД: 45260 ФПД: 145270094235566 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T223356&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45260&fm=145270094235566&tin=02508201610067®Number=0000000000090572&sum=14100 0 [22:33:43]StoreToDocumentArchive [22:33:43]shift 331 fd 45260 [22:33:43]save to /storage/0331/doc_00045260 [22:33:43]save last doc name /storage/0331/doc_00045260 to /storage/kkm_last_doc_name [22:33:43]save OK [22:33:43]Clear old archive folders... [22:33:43]ProcessDocumentItem done err = 0, tmpTLVsize=290 [22:33:43]tlvbuf is 01BA1570 [22:33:43]SAM_PROTO_ClearQueue [22:33:43]wFMCommunicate request_size=4 [22:33:43]MH_SAM_APDU [22:33:43]CAPDU: 80 09 00 00 [22:33:43]Write to MH i2c: E2 08 00 69 5B 80 09 00 00 00 00 00 00 36 [22:33:43]Write i2c OK [22:33:43]MH_I2C_Read... [22:33:43]Read from MH i2c: E2 [22:33:43]MH_I2C_Read... [22:33:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:33:43]Read from MH i2c: E2 03 00 [22:33:43]MH_I2C_Read... [22:33:43]Read from MH i2c: E2 03 00 69 5B 00 90 00 38 [22:33:43]RAPDU: 90 00 [22:33:43]wFMCommunicate OK [22:33:43]SAM_PROTO_ClearQueue done [22:33:43]KKMCreateOFDPacket [22:33:43]OFDProtocolAddRootSTLVToBuf [22:33:43]FM_MakeSignedData [22:33:43]FM_MakeSignedData [22:33:43]SAM_PROTO_SignData [22:33:43]wFMCommunicate request_size=4 [22:33:43]MH_SAM_APDU [22:33:43]CAPDU: 80 0D 01 02 [22:33:43]Write to MH i2c: E2 08 00 6A 5B 80 0D 01 02 00 00 00 00 3E [22:33:43]Write i2c OK [22:33:43]MH_I2C_Read... [22:33:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:33:43]Read from MH i2c: E2 [22:33:43]MH_I2C_Read... [22:33:43]Read from MH i2c: E2 03 00 [22:33:43]MH_I2C_Read... [22:33:43]Read from MH i2c: E2 03 00 6A 5B 00 90 00 39 [22:33:43]RAPDU: 90 00 [22:33:43]wFMCommunicate OK [22:33:43]wFMCommunicate request_size=255 [22:33:43]MH_SAM_APDU [22:33:43]CAPDU: 80 0D 02 02 FA 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 32 34 30 30 31 34 38 33 31 06 04 30 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 D0 B0 D1 87 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 48 45 45 54 53 20 53 75 6D 6D 65 72 20 57 61 76 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 05 00 00 00 00 07 04 06 00 14 37 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 D4 FA E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 [22:33:43]Write to MH i2c: E2 02 01 6B 5B 80 0D 02 02 FA 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 32 34 30 30 31 34 38 33 31 06 04 30 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 D0 B0 D1 87 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 48 45 45 54 53 20 53 75 6D 6D 65 72 20 57 61 76 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 05 00 00 00 00 07 04 06 00 14 37 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 D4 FA E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 06 [22:33:43]Write i2c OK [22:33:43]MH_I2C_Read... [22:33:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:33:43]Read from MH i2c: E2 [22:33:43]MH_I2C_Read... [22:33:43]Read from MH i2c: E2 03 00 [22:33:43]MH_I2C_Read... [22:33:43]Read from MH i2c: E2 03 00 6B 5B 00 90 00 3A [22:33:43]RAPDU: 90 00 [22:33:43]wFMCommunicate OK [22:33:43]wFMCommunicate request_size=49 [22:33:43]MH_SAM_APDU [22:33:43]CAPDU: 80 0D 02 02 2C 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 CC B0 00 00 35 04 06 00 84 1F 54 5D 07 AE [22:33:43]Write to MH i2c: E2 34 00 6C 5B 80 0D 02 02 2C 00 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 CC B0 00 00 35 04 06 00 84 1F 54 5D 07 AE 00 00 FA [22:33:43]Write i2c OK [22:33:43]MH_I2C_Read... [22:33:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:33:43]Read from MH i2c: E2 [22:33:43]MH_I2C_Read... [22:33:43]Read from MH i2c: E2 03 00 [22:33:43]MH_I2C_Read... [22:33:43]Read from MH i2c: E2 03 00 6C 5B 00 90 00 3B [22:33:43]RAPDU: 90 00 [22:33:43]wFMCommunicate OK [22:33:43]wFMCommunicate request_size=4 [22:33:43]MH_SAM_APDU [22:33:43]CAPDU: 80 0D 03 02 [22:33:43]Write to MH i2c: E2 08 00 6D 5B 80 0D 03 02 00 00 00 00 43 [22:33:43]Write i2c OK [22:33:43]MH_I2C_Read... [22:33:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:33:43]Read from MH i2c: E2 [22:33:43]MH_I2C_Read... [22:33:43]Read from MH i2c: E2 0B 00 [22:33:43]MH_I2C_Read... [22:33:43]Read from MH i2c: E2 0B 00 6D 5B 00 92 36 03 12 29 9D 3F CD 90 00 F3 [22:33:43]RAPDU: 92 36 03 12 29 9D 3F CD 90 00 [22:33:43]wFMCommunicate OK [22:33:43]SAM_PROTO_SignData done [22:33:43]FM_MakeSignedData done [22:33:43]CreateOFDProtocolMessage [22:33:43]wFMCommunicate request_size=4 [22:33:43]MH_SAM_APDU [22:33:43]CAPDU: 80 11 00 00 [22:33:43]Write to MH i2c: E2 08 00 6E 5B 80 11 00 00 00 00 00 00 43 [22:33:43]Write i2c OK [22:33:43]MH_I2C_Read... [22:33:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:33:43]Read from MH i2c: E2 [22:33:43]MH_I2C_Read... [22:33:43]Read from MH i2c: E2 17 00 [22:33:43]MH_I2C_Read... [22:33:43]Read from MH i2c: E2 17 00 6E 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 9F [22:33:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [22:33:43]wFMCommunicate OK [22:33:43]CreateOFDProtocolMessage done [22:33:43]OFDSenderStorePacket 45260 [22:33:43]StoreOFDPacket docnum=45260 [22:33:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 36 01 00 00 C6 74 2E 01 EA 28 5A 03 01 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 32 34 30 30 31 34 38 33 31 06 04 30 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 D0 B0 D1 87 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 48 45 45 54 53 20 53 75 6D 6D 65 72 20 57 61 76 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 05 00 00 00 00 07 04 06 00 14 37 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 D4 FA E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 CC B0 00 00 35 04 06 00 84 1F 54 5D 07 AE 92 36 03 12 29 9D 3F CD [22:33:43]CheckFolder [22:33:43]dirname=/storage/ofd_packets [22:33:43]CheckFolder done [22:33:43]ProducePacketName [22:33:43]name=ofd_packets/00045260 [22:33:43]NVStorageSaveData ofd_packets/00045260 [22:33:43]File name is /storage/ofd_packets/00045260 [22:33:43]Write 340 bytes [22:33:43]NVStorageSaveData done [22:33:43]OFDSenderStorePacket done [22:33:43]KKMCreateOFDPacket done [22:33:43]NVStorageSaveData kkm_last_timestamp [22:33:43]File name is /storage/kkm_last_timestamp [22:33:43]Write 4 bytes [22:33:43]NVStorageSaveData done [22:33:43]ExternCall_PrintAddStr [22:33:43]wPrintStart [22:33:43]Write to MH i2c: 01 00 00 6F 5B CA [22:33:43]Write i2c OK [22:33:43]MH_I2C_Read... [22:33:43]Read from MH i2c: 01 [22:33:43]MH_I2C_Read... [22:33:43]Read from MH i2c: 01 07 00 [22:33:43]MH_I2C_Read... [22:33:43]Read from MH i2c: 01 07 00 6F 5B 00 00 00 00 00 FF 0F DF [22:33:43]RasterBufferAndPrint [22:33:43]line Счет N : (3)184219 [22:33:43]line ИНН: 02508201610067 [22:33:43]line Контрольно-Кассовый Чек [22:33:43]line ПРОДАЖА [22:33:43]line Товар: 4870240014831 [22:33:43]line Нагр.Табач.Палоч.HEETS Summer Wave [22:33:43]line 1.000 * 141.00 [22:33:43]line = 141.00 [22:33:43]line НДС 12% НСП 1% [22:33:43]line > о реализуемом товаре [22:33:43]line ИТОГО: 141.00 [22:33:43]line НСП 1% : 1.25 [22:33:43]line НДС 12% : 14.97 [22:33:43]line Наличными: 141.00 [22:33:43]line Безнал.: 0.00 [22:33:43]line Место: АЗС № 25 "Партнер Нефть" [22:33:43]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [22:33:43]line СНО: Общий режим [22:33:43]line Чек 97 03.03.2024 22:33 [22:33:43]line Смена: 331 ФФД: 1.0 [22:33:43]line ЗНМ: 0300000013 [22:33:43]line РНМ: 0000000000090572 [22:33:43]line Версия ККМ: 001 [22:33:43]line ФМ: 0000000000874796 [22:33:43]line ФД: 45260 [22:33:43]line ФПД: 145270094235566 [22:33:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T223356&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45260&fm=145270094235566&tin=02508201610067®Number=0000000000090572&sum=14100 [22:33:43]line 0 [22:33:43]written 0, free lines is 4095 [22:33:43]OFD Sender: Processing packet 45260 [packets to send 17, broken 16] [22:33:43]ProducePacketName [22:33:43]name=ofd_packets/00045260 [22:33:43]OFD Sender: To server: pG, [22:33:43]CommunicateWithHost lk.salyk.kg:30040 [22:33:43]ConnectInit lk.salyk.kg [22:33:43]Connected sock=10 [22:33:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 36 01 00 00 C6 74 2E 01 EA 28 5A 03 01 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 32 34 30 30 31 34 38 33 31 06 04 30 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 D0 B0 D1 87 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 48 45 45 54 53 20 53 75 6D 6D 65 72 20 57 61 76 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 05 00 00 00 00 07 04 06 00 14 37 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 D4 FA E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 CC B0 00 00 35 04 06 00 84 1F 54 5D 07 AE 92 36 03 12 29 9D 3F CD [22:33:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 83 FB 47 00 95 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 CC B0 00 00 F4 03 04 00 97 A6 E4 65 B6 04 01 00 00 15 3A 81 F6 78 6D 26 91 [22:33:44]CommunicateWithHost err = 0 [22:33:44]CheckOFDResponse [22:33:44]1017 (14) - 77093643461234 [22:33:44]1041 (16) - 0000000000874796 [22:33:44]1040 (4) - 45260 [22:33:44]1012 (4) - 03.03.2024 16:34 [22:33:44]1206 (1) - 0 [22:33:44]OFD Sender: Remove packet 45260 [22:33:44]ProducePacketName [22:33:44]name=ofd_packets/00045260 [22:33:44]NVStorageDeleteData [22:33:44]Write to MH i2c: 01 00 00 98 5B F3 [22:33:44]Write i2c OK [22:33:44]MH_I2C_Read... [22:33:44]Read from MH i2c: 01 [22:33:44]MH_I2C_Read... [22:33:44]Read from MH i2c: 01 07 00 [22:33:44]MH_I2C_Read... [22:33:44]Read from MH i2c: 01 07 00 98 5B 00 00 00 00 00 07 0D 0E [22:33:44]RasterBufferAndPrint [22:33:44]line [22:33:44]line [22:33:44]line [22:33:44]line [22:33:44]line [22:33:44]written 0, free lines is 3341 [22:33:44]MH_Cut [22:33:44]Write to MH i2c: D1 01 00 9F 5B 01 CC [22:33:44]Write i2c OK [22:33:44]MH_I2C_Read... [22:33:44]Read from MH i2c: D1 [22:33:44]MH_I2C_Read... [22:33:44]Read from MH i2c: D1 01 00 [22:33:44]MH_I2C_Read... [22:33:44]Read from MH i2c: D1 01 00 9F 5B 00 CB [22:33:44]Write to MH i2c: 01 00 00 A0 5B FB [22:33:44]Write i2c OK [22:33:44]MH_I2C_Read... [22:33:44]OFD Sender: No OFD packet to send [22:33:44]*** Cut start [22:33:44]*** Purtial cut [22:33:44]*** Stage 1: CUTSNS_PIN = 1 [22:33:47]Read from MH i2c: 01 [22:33:47]MH_I2C_Read... [22:33:47]*** Stop cut motor [22:33:47]*** Cut end [22:33:47]Read from MH i2c: 01 07 00 [22:33:47]MH_I2C_Read... [22:33:47]Read from MH i2c: 01 07 00 A0 5B 00 00 00 00 00 FF 0F 10 [22:33:47]process_action close_receipt done [22:33:47]requested_data is exist [22:33:47]produce_requested_data [22:33:47]requested_item fm.sn is exist - process it [22:33:47]wFMCommunicate request_size=4 [22:33:47]MH_SAM_APDU [22:33:47]CAPDU: 80 11 00 00 [22:33:47]Write to MH i2c: E2 08 00 A1 5B 80 11 00 00 00 00 00 00 76 [22:33:47]Write i2c OK [22:33:47]MH_I2C_Read... [22:33:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:33:47]Read from MH i2c: E2 [22:33:47]MH_I2C_Read... [22:33:47]Read from MH i2c: E2 17 00 [22:33:47]MH_I2C_Read... [22:33:47]Read from MH i2c: E2 17 00 A1 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 D2 [22:33:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [22:33:47]wFMCommunicate OK [22:33:47]requested_item fd.num is exist - process it [22:33:47]SAM_PROTO_GetFieldsCounters [22:33:47]wFMCommunicate request_size=4 [22:33:47]MH_SAM_APDU [22:33:47]CAPDU: 80 13 00 00 [22:33:47]Write to MH i2c: E2 08 00 A2 5B 80 13 00 00 00 00 00 00 79 [22:33:47]Write i2c OK [22:33:47]MH_I2C_Read... [22:33:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:33:47]Read from MH i2c: E2 [22:33:47]MH_I2C_Read... [22:33:47]Read from MH i2c: E2 62 00 [22:33:47]MH_I2C_Read... [22:33:47]Read from MH i2c: E2 62 00 A2 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 CC B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 8C [22:33:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 CC B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:33:47]wFMCommunicate OK [22:33:47]SAM_PROTO_GetFieldsCounters done [22:33:47]requested_item shift.num is exist - process it [22:33:47]requested_item shift.opened is exist - process it [22:33:47]req_shift_opened [22:33:47]FM_GetShiftState [22:33:47]SAM_PROTO_GetShiftState [22:33:47]wFMCommunicate request_size=4 [22:33:47]MH_SAM_APDU [22:33:47]CAPDU: 80 13 01 00 [22:33:47]Write to MH i2c: E2 08 00 A3 5B 80 13 01 00 00 00 00 00 7B [22:33:47]Write i2c OK [22:33:47]MH_I2C_Read... [22:33:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:33:47]Read from MH i2c: E2 [22:33:47]MH_I2C_Read... [22:33:47]Read from MH i2c: E2 0E 00 [22:33:47]MH_I2C_Read... [22:33:47]Read from MH i2c: E2 0E 00 A3 5B 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 B1 [22:33:47]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [22:33:47]wFMCommunicate OK [22:33:47]SAM_PROTO_GetShiftState done [22:33:47]FM_GetShiftState done [22:33:47]req_shift_opened done [22:33:47]requested_item shift.open_date is exist - process it [22:33:47]req_shift_open_date [22:33:47]req_shift_open_date done [22:33:47]produce_requested_data done [22:33:47]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45260,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [22:33:47]process_action_free close_receipt [22:33:47]json_value_free [22:33:47]json_value_free done [22:33:47]process_json_proto returns [22:33:47]Send response to host [22:33:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45260,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [22:33:47]free response buf [22:33:47]execute_script done [22:33:47]execute_script returns [22:33:47]free content buf [22:33:47]Sock 9.Close socket [22:33:47]Sock 9.Thread stoped [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:04]OFD Sender: No OFD packet to send [22:38:09]OFD Sender: No OFD packet to send [22:38:14]OFD Sender: No OFD packet to send [22:38:19]OFD Sender: No OFD packet to send [22:38:24]OFD Sender: No OFD packet to send [22:38:29]OFD Sender: No OFD packet to send [22:38:34]OFD Sender: No OFD packet to send [22:38:39]OFD Sender: No OFD packet to send [22:38:44]OFD Sender: No OFD packet to send [22:38:49]OFD Sender: No OFD packet to send [22:38:54]OFD Sender: No OFD packet to send [22:38:59]OFD Sender: No OFD packet to send [22:39:04]OFD Sender: No OFD packet to send [22:39:09]OFD Sender: No OFD packet to send [22:39:14]OFD Sender: No OFD packet to send [22:39:19]OFD Sender: No OFD packet to send [22:39:24]OFD Sender: No OFD packet to send [22:39:29]OFD Sender: No OFD packet to send [22:39:34]OFD Sender: No OFD packet to send [22:39:39]OFD Sender: No OFD packet to send [22:39:44]OFD Sender: No OFD packet to send [22:39:49]OFD Sender: No OFD packet to send [22:39:54]OFD Sender: No OFD packet to send [22:39:59]OFD Sender: No OFD packet to send [22:40:04]OFD Sender: No OFD packet to send [22:40: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: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:15]OFD Sender: No OFD packet to send [22:43:20]OFD Sender: No OFD packet to send [22:43:24]accept exits with 7 [22:43:24]New connection [22:43:24]New thread 3067014500 created [22:43:24]Thread 3067157860 joined [22:43:24]Waiting for new connection... [22:43:24] Sock 7.Parse request [22:43:24]Sock 7.Check first char [22:43:24]Sock 7.First char is OK [22:43:24]request: POST /json_proto HTTP/1.0 [22:43:24]Method: POST [22:43:24]URL: /json_proto [22:43:24]Method is POST - this is cgi request [22:43:24]url: /json_proto [22:43:24]query_string will be loaded in cgi processing [22:43:24]execute_cgi json_proto POST (null) [22:43:24]execute_cgi path=json_proto method=POST [22:43:24]POST find Content-Length [22:43:24]Host: 172.17.48.198:8080 [22:43:24]Content-Length: 913 [22:43:24]Content-Type: application/json [22:43:24] [22:43:24]POST finish read [22:43:24]Found Content-Length = 913 [22:43:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184220", "tax_sys" : 0, "items" : [ { "code": "2000028410025", "name": "\u041E\u0447\u043A\u0438 \u0441\u043E\u043B\u043D\u0446\u0435\u0437\u0430\u0449\u0438\u0442\u043D\u044B\u0435 \u0432 \u0430\u0441\u0441\u043E\u0440\u0442\u0438\u043C\u0435\u043D\u0442\u0435", "price" : 590.00, "quantity" : 1.000, "sum" : 590.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 590.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:43:24]execute_script... [22:43:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184220", "tax_sys" : 0, "items" : [ { "code": "2000028410025", "name": "\u041E\u0447\u043A\u0438 \u0441\u043E\u043B\u043D\u0446\u0435\u0437\u0430\u0449\u0438\u0442\u043D\u044B\u0435 \u0432 \u0430\u0441\u0441\u043E\u0440\u0442\u0438\u043C\u0435\u043D\u0442\u0435", "price" : 590.00, "quantity" : 1.000, "sum" : 590.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 590.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:43:24]POST & json_proto [22:43:24]process_json_proto [22:43:24]json parsed OK: [22:43:24]protocol is kg_v1.0 [22:43:24]action value=close_receipt [22:43:24]process_action close_receipt [22:43:24]cmd_close_receipt [22:43:24]MH_GetDate [22:43:24]Write to MH i2c: F0 00 00 A4 5B EE [22:43:24]Write i2c OK [22:43:24]MH_I2C_Read... [22:43:24]Read from MH i2c: F0 [22:43:24]MH_I2C_Read... [22:43:24]Read from MH i2c: F0 09 00 [22:43:24]MH_I2C_Read... [22:43:24]Read from MH i2c: F0 09 00 A4 5B 00 1A FD E4 65 CE C4 D4 65 22 [22:43:24]GetLastDocTimeStamp 1709505236 [22:43:24]current date 1709505818 [22:43:24]FM_GetShiftState [22:43:24]SAM_PROTO_GetShiftState [22:43:24]wFMCommunicate request_size=4 [22:43:24]MH_SAM_APDU [22:43:24]CAPDU: 80 13 01 00 [22:43:24]Write to MH i2c: E2 08 00 A5 5B 80 13 01 00 00 00 00 00 7D [22:43:24]Write i2c OK [22:43:24]MH_I2C_Read... [22:43:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:43:24]Read from MH i2c: E2 [22:43:24]MH_I2C_Read... [22:43:24]Read from MH i2c: E2 0E 00 [22:43:24]MH_I2C_Read... [22:43:24]Read from MH i2c: E2 0E 00 A5 5B 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 B3 [22:43:24]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [22:43:24]wFMCommunicate OK [22:43:24]SAM_PROTO_GetShiftState done [22:43:24]FM_GetShiftState done [22:43:24]opened in 1709425694 [22:43:24]opened+sec_in_day 1709512094 [22:43:24]quantity*price = 59000 [22:43:24]sum+1 = 59001 [22:43:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 590.00 НСП 1% : 5.22 НДС 12% : 62.65 Наличными: 0.00 Безнал.: 590.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 98 03.03.2024 22:43 Смена: 331 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874796 ФД: 45261 ФПД: 257808651844643 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T224338&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45261&fm=257808651844643&tin=02508201610067®Number=0000000000090572&sum=59000 0 [22:43:25]StoreToDocumentArchive [22:43:25]shift 331 fd 45261 [22:43:25]save to /storage/0331/doc_00045261 [22:43:25]save last doc name /storage/0331/doc_00045261 to /storage/kkm_last_doc_name [22:43:25]save OK [22:43:25]Clear old archive folders... [22:43:25]ProcessDocumentItem done err = 0, tmpTLVsize=307 [22:43:25]tlvbuf is 01BD3340 [22:43:25]SAM_PROTO_ClearQueue [22:43:25]wFMCommunicate request_size=4 [22:43:25]MH_SAM_APDU [22:43:25]CAPDU: 80 09 00 00 [22:43:25]Write to MH i2c: E2 08 00 B2 5B 80 09 00 00 00 00 00 00 7F [22:43:25]Write i2c OK [22:43:25]MH_I2C_Read... [22:43:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:43:25]Read from MH i2c: E2 [22:43:25]MH_I2C_Read... [22:43:25]Read from MH i2c: E2 03 00 [22:43:25]MH_I2C_Read... [22:43:25]Read from MH i2c: E2 03 00 B2 5B 00 90 00 81 [22:43:25]RAPDU: 90 00 [22:43:25]wFMCommunicate OK [22:43:25]SAM_PROTO_ClearQueue done [22:43:25]KKMCreateOFDPacket [22:43:25]OFDProtocolAddRootSTLVToBuf [22:43:25]FM_MakeSignedData [22:43:25]FM_MakeSignedData [22:43:25]SAM_PROTO_SignData [22:43:25]wFMCommunicate request_size=4 [22:43:25]MH_SAM_APDU [22:43:25]CAPDU: 80 0D 01 02 [22:43:25]Write to MH i2c: E2 08 00 B3 5B 80 0D 01 02 00 00 00 00 87 [22:43:25]Write i2c OK [22:43:25]MH_I2C_Read... [22:43:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:43:25]Read from MH i2c: E2 [22:43:25]MH_I2C_Read... [22:43:25]Read from MH i2c: E2 03 00 [22:43:25]MH_I2C_Read... [22:43:25]Read from MH i2c: E2 03 00 B3 5B 00 90 00 82 [22:43:25]RAPDU: 90 00 [22:43:25]wFMCommunicate OK [22:43:25]wFMCommunicate request_size=255 [22:43:25]MH_SAM_APDU [22:43:25]CAPDU: 80 0D 02 02 FA 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 32 30 30 30 30 32 38 34 31 30 30 32 35 06 04 41 00 D0 9E D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 BD D1 86 D0 B5 D0 B7 D0 B0 D1 89 D0 B8 D1 82 D0 BD D1 8B D0 B5 20 D0 B2 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 D0 BC D0 B5 D0 BD D1 82 D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 78 E6 00 00 00 00 13 04 06 00 78 E6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 E6 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 1A FD E4 65 0E 04 04 00 4B 01 00 00 B9 04 [22:43:25]Write to MH i2c: E2 02 01 B4 5B 80 0D 02 02 FA 00 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 32 30 30 30 30 32 38 34 31 30 30 32 35 06 04 41 00 D0 9E D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 BD D1 86 D0 B5 D0 B7 D0 B0 D1 89 D0 B8 D1 82 D0 BD D1 8B D0 B5 20 D0 B2 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 D0 BC D0 B5 D0 BD D1 82 D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 78 E6 00 00 00 00 13 04 06 00 78 E6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 E6 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 1A FD E4 65 0E 04 04 00 4B 01 00 00 B9 04 00 00 16 [22:43:25]Write i2c OK [22:43:25]MH_I2C_Read... [22:43:25]Read from MH i2c: E2 [22:43:25]MH_I2C_Read... [22:43:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:43:25]Read from MH i2c: E2 03 00 [22:43:25]MH_I2C_Read... [22:43:25]Read from MH i2c: E2 03 00 B4 5B 00 90 00 83 [22:43:25]RAPDU: 90 00 [22:43:25]wFMCommunicate OK [22:43:25]wFMCommunicate request_size=66 [22:43:25]MH_SAM_APDU [22:43:25]CAPDU: 80 0D 02 02 3D 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 CD B0 00 00 35 04 06 00 EA 79 C1 1C FC 23 [22:43:25]Write to MH i2c: E2 45 00 B5 5B 80 0D 02 02 3D 00 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 CD B0 00 00 35 04 06 00 EA 79 C1 1C FC 23 00 00 BF [22:43:25]Write i2c OK [22:43:25]MH_I2C_Read... [22:43:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:43:25]Read from MH i2c: E2 [22:43:25]MH_I2C_Read... [22:43:25]Read from MH i2c: E2 03 00 [22:43:25]MH_I2C_Read... [22:43:25]Read from MH i2c: E2 03 00 B5 5B 00 90 00 84 [22:43:25]RAPDU: 90 00 [22:43:25]wFMCommunicate OK [22:43:25]wFMCommunicate request_size=4 [22:43:25]MH_SAM_APDU [22:43:25]CAPDU: 80 0D 03 02 [22:43:25]Write to MH i2c: E2 08 00 B6 5B 80 0D 03 02 00 00 00 00 8C [22:43:25]Write i2c OK [22:43:25]MH_I2C_Read... [22:43:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:43:25]Read from MH i2c: E2 [22:43:25]MH_I2C_Read... [22:43:25]Read from MH i2c: E2 0B 00 [22:43:25]MH_I2C_Read... [22:43:25]Read from MH i2c: E2 0B 00 B6 5B 00 9A 53 B3 77 55 E0 D4 4C 90 00 F9 [22:43:25]RAPDU: 9A 53 B3 77 55 E0 D4 4C 90 00 [22:43:25]wFMCommunicate OK [22:43:25]SAM_PROTO_SignData done [22:43:25]FM_MakeSignedData done [22:43:25]CreateOFDProtocolMessage [22:43:25]wFMCommunicate request_size=4 [22:43:25]MH_SAM_APDU [22:43:25]CAPDU: 80 11 00 00 [22:43:25]Write to MH i2c: E2 08 00 B7 5B 80 11 00 00 00 00 00 00 8C [22:43:25]Write i2c OK [22:43:25]MH_I2C_Read... [22:43:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:43:25]Read from MH i2c: E2 [22:43:25]MH_I2C_Read... [22:43:25]Read from MH i2c: E2 17 00 [22:43:25]MH_I2C_Read... [22:43:25]Read from MH i2c: E2 17 00 B7 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 E8 [22:43:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [22:43:25]wFMCommunicate OK [22:43:25]CreateOFDProtocolMessage done [22:43:25]OFDSenderStorePacket 45261 [22:43:25]StoreOFDPacket docnum=45261 [22:43:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 47 01 00 00 67 0D 3F 01 E2 1C 5A 03 01 00 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 32 30 30 30 30 32 38 34 31 30 30 32 35 06 04 41 00 D0 9E D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 BD D1 86 D0 B5 D0 B7 D0 B0 D1 89 D0 B8 D1 82 D0 BD D1 8B D0 B5 20 D0 B2 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 D0 BC D0 B5 D0 BD D1 82 D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 78 E6 00 00 00 00 13 04 06 00 78 E6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 E6 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 1A FD E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 CD B0 00 00 35 04 06 00 EA 79 C1 1C FC 23 9A 53 B3 77 55 E0 D4 4C [22:43:25]CheckFolder [22:43:25]dirname=/storage/ofd_packets [22:43:25]CheckFolder done [22:43:25]ProducePacketName [22:43:25]name=ofd_packets/00045261 [22:43:25]NVStorageSaveData ofd_packets/00045261 [22:43:25]File name is /storage/ofd_packets/00045261 [22:43:25]Write 357 bytes [22:43:25]NVStorageSaveData done [22:43:25]OFDSenderStorePacket done [22:43:25]KKMCreateOFDPacket done [22:43:25]NVStorageSaveData kkm_last_timestamp [22:43:25]File name is /storage/kkm_last_timestamp [22:43:25]Write 4 bytes [22:43:25]NVStorageSaveData done [22:43:25]ExternCall_PrintAddStr [22:43:25]wPrintStart [22:43:25]Write to MH i2c: 01 00 00 B8 5B 13 [22:43:25]Write i2c OK [22:43:25]MH_I2C_Read... [22:43:25]Read from MH i2c: 01 [22:43:25]MH_I2C_Read... [22:43:25]Read from MH i2c: 01 07 00 [22:43:25]MH_I2C_Read... [22:43:25]Read from MH i2c: 01 07 00 B8 5B 00 00 00 00 00 FF 0F 28 [22:43:25]RasterBufferAndPrint [22:43:25]line Счет N : (3)184220 [22:43:25]line ИНН: 02508201610067 [22:43:25]line Контрольно-Кассовый Чек [22:43:25]line ПРОДАЖА [22:43:25]line Товар: 2000028410025 [22:43:25]line Очки солнцезащитные в ассортименте [22:43:25]line 1.000 * 590.00 [22:43:25]line = 590.00 [22:43:25]line НДС 12% НСП 1% [22:43:25]line > о реализуемом товаре [22:43:25]line ИТОГО: 590.00 [22:43:25]line НСП 1% : 5.22 [22:43:25]line НДС 12% : 62.65 [22:43:25]line Наличными: 0.00 [22:43:25]line Безнал.: 590.00 [22:43:25]line Место: АЗС № 25 "Партнер Нефть" [22:43:25]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [22:43:25]line СНО: Общий режим [22:43:25]line Чек 98 03.03.2024 22:43 [22:43:25]line Смена: 331 ФФД: 1.0 [22:43:25]line ЗНМ: 0300000013 [22:43:25]line РНМ: 0000000000090572 [22:43:25]line Версия ККМ: 001 [22:43:25]line Платежная система: О! деньги [22:43:25]line ФМ: 0000000000874796 [22:43:25]line ФД: 45261 [22:43:26]line ФПД: 257808651844643 [22:43:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T224338&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45261&fm=257808651844643&tin=02508201610067®Number=0000000000090572&sum=59000 [22:43:26]line 0 [22:43:26]OFD Sender: Processing packet 45261 [packets to send 17, broken 16] [22:43:26]ProducePacketName [22:43:26]name=ofd_packets/00045261 [22:43:26]OFD Sender: To server: pG, [22:43:26]CommunicateWithHost lk.salyk.kg:30040 [22:43:26]ConnectInit lk.salyk.kg [22:43:26]written 0, free lines is 4095 [22:43:26]Connected sock=10 [22: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 34 37 39 36 47 01 00 00 67 0D 3F 01 E2 1C 5A 03 01 00 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 32 30 30 30 30 32 38 34 31 30 30 32 35 06 04 41 00 D0 9E D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 BD D1 86 D0 B5 D0 B7 D0 B0 D1 89 D0 B8 D1 82 D0 BD D1 8B D0 B5 20 D0 B2 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 D0 BC D0 B5 D0 BD D1 82 D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 78 E6 00 00 00 00 13 04 06 00 78 E6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 E6 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 1A FD E4 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 CD B0 00 00 35 04 06 00 EA 79 C1 1C FC 23 9A 53 B3 77 55 E0 D4 4C [22:43:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 3A 71 47 00 29 D3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 CD B0 00 00 F4 03 04 00 DD A8 E4 65 B6 04 01 00 00 47 72 97 93 4B 49 58 BD [22:43:26]CommunicateWithHost err = 0 [22:43:26]CheckOFDResponse [22:43:26]1017 (14) - 77093643461234 [22:43:26]1041 (16) - 0000000000874796 [22:43:26]1040 (4) - 45261 [22:43:26]1012 (4) - 03.03.2024 16:44 [22:43:26]1206 (1) - 0 [22:43:26]OFD Sender: Remove packet 45261 [22:43:26]ProducePacketName [22:43:26]name=ofd_packets/00045261 [22:43:26]NVStorageDeleteData [22:43:26]Write to MH i2c: 01 00 00 E3 5B 3E [22:43:26]Write i2c OK [22:43:26]MH_I2C_Read... [22:43:26]Read from MH i2c: 01 [22:43:26]MH_I2C_Read... [22:43:26]Read from MH i2c: 01 07 00 [22:43:26]MH_I2C_Read... [22:43:26]Read from MH i2c: 01 07 00 E3 5B 00 00 00 00 00 E3 0C 34 [22:43:26]RasterBufferAndPrint [22:43:26]line [22:43:26]line [22:43:26]line [22:43:26]line [22:43:26]line [22:43:26]written 0, free lines is 3305 [22:43:26]MH_Cut [22:43:26]Write to MH i2c: D1 01 00 EA 5B 01 17 [22:43:26]Write i2c OK [22:43:26]MH_I2C_Read... [22:43:26]Read from MH i2c: D1 [22:43:26]MH_I2C_Read... [22:43:26]Read from MH i2c: D1 01 00 [22:43:26]MH_I2C_Read... [22:43:26]Read from MH i2c: D1 01 00 EA 5B 00 16 [22:43:26]Write to MH i2c: 01 00 00 EB 5B 46 [22:43:26]Write i2c OK [22:43:26]MH_I2C_Read... [22:43:27]OFD Sender: No OFD packet to send [22:43:27]*** Cut start [22:43:27]*** Purtial cut [22:43:27]*** Stage 1: CUTSNS_PIN = 1 [22:43:29]Read from MH i2c: 01 [22:43:29]MH_I2C_Read... [22:43:29]*** Stop cut motor [22:43:29]*** Cut end [22:43:29]Read from MH i2c: 01 07 00 [22:43:29]MH_I2C_Read... [22:43:29]Read from MH i2c: 01 07 00 EB 5B 00 00 00 00 00 FF 0F 5B [22:43:29]process_action close_receipt done [22:43:29]requested_data is exist [22:43:29]produce_requested_data [22:43:29]requested_item fm.sn is exist - process it [22:43:29]wFMCommunicate request_size=4 [22:43:29]MH_SAM_APDU [22:43:29]CAPDU: 80 11 00 00 [22:43:29]Write to MH i2c: E2 08 00 EC 5B 80 11 00 00 00 00 00 00 C1 [22:43:29]Write i2c OK [22:43:29]MH_I2C_Read... [22:43:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:43:29]Read from MH i2c: E2 [22:43:29]MH_I2C_Read... [22:43:29]Read from MH i2c: E2 17 00 [22:43:29]MH_I2C_Read... [22:43:29]Read from MH i2c: E2 17 00 EC 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 1D [22:43:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [22:43:29]wFMCommunicate OK [22:43:29]requested_item fd.num is exist - process it [22:43:29]SAM_PROTO_GetFieldsCounters [22:43:29]wFMCommunicate request_size=4 [22:43:29]MH_SAM_APDU [22:43:29]CAPDU: 80 13 00 00 [22:43:29]Write to MH i2c: E2 08 00 ED 5B 80 13 00 00 00 00 00 00 C4 [22:43:29]Write i2c OK [22:43:29]MH_I2C_Read... [22:43:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:43:29]Read from MH i2c: E2 [22:43:29]MH_I2C_Read... [22:43:29]Read from MH i2c: E2 62 00 [22:43:29]MH_I2C_Read... [22:43:29]Read from MH i2c: E2 62 00 ED 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 CD B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 DB [22:43:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 CD B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:43:29]wFMCommunicate OK [22:43:29]SAM_PROTO_GetFieldsCounters done [22:43:29]requested_item shift.num is exist - process it [22:43:29]requested_item shift.opened is exist - process it [22:43:29]req_shift_opened [22:43:29]FM_GetShiftState [22:43:29]SAM_PROTO_GetShiftState [22:43:29]wFMCommunicate request_size=4 [22:43:29]MH_SAM_APDU [22:43:29]CAPDU: 80 13 01 00 [22:43:29]Write to MH i2c: E2 08 00 EE 5B 80 13 01 00 00 00 00 00 C6 [22:43:29]Write i2c OK [22:43:29]MH_I2C_Read... [22:43:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:43:29]Read from MH i2c: E2 [22:43:29]MH_I2C_Read... [22:43:29]Read from MH i2c: E2 0E 00 [22:43:29]MH_I2C_Read... [22:43:29]Read from MH i2c: E2 0E 00 EE 5B 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 FC [22:43:29]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [22:43:29]wFMCommunicate OK [22:43:29]SAM_PROTO_GetShiftState done [22:43:29]FM_GetShiftState done [22:43:29]req_shift_opened done [22:43:29]requested_item shift.open_date is exist - process it [22:43:29]req_shift_open_date [22:43:29]req_shift_open_date done [22:43:29]produce_requested_data done [22:43:29]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45261,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [22:43:29]process_action_free close_receipt [22:43:29]json_value_free [22:43:29]json_value_free done [22:43:29]process_json_proto returns [22:43:29]Send response to host [22:43:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45261,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [22:43:29]free response buf [22:43:29]execute_script done [22:43:29]execute_script returns [22:43:29]free content buf [22:43:29]Sock 7.Close socket [22:43:29]Sock 7.Thread stoped [22:43:32]OFD Sender: No OFD packet to send [22:43:37]OFD Sender: No OFD packet to send [22:43:42]OFD Sender: No OFD packet to send [22:43:47]OFD Sender: No OFD packet to send [22:43:52]OFD Sender: No OFD packet to send [22:43:57]OFD Sender: No OFD packet to send [22:44:02]OFD Sender: No OFD packet to send [22:44:07]OFD Sender: No OFD packet to send [22:44:12]OFD Sender: No OFD packet to send [22:44:17]OFD Sender: No OFD packet to send [22:44:22]OFD Sender: No OFD packet to send [22:44:27]OFD Sender: No OFD packet to send [22:44:32]OFD Sender: No OFD packet to send [22:44:37]OFD Sender: No OFD packet to send [22:44:42]OFD Sender: No OFD packet to send [22:44:47]OFD Sender: No OFD packet to send [22:44:52]OFD Sender: No OFD packet to send [22:44:57]OFD Sender: No OFD packet to send [22:45:02]OFD Sender: No OFD packet to send [22:45:07]OFD Sender: No OFD packet to send [22:45:12]OFD Sender: No OFD packet to send [22:45:17]OFD Sender: No OFD packet to send [22:45:22]OFD Sender: No OFD packet to send [22:45:27]OFD Sender: No OFD packet to send [22:45:32]OFD Sender: No OFD packet to send [22:45:37]OFD Sender: No OFD packet to send [22:45:42]OFD Sender: No OFD packet to send [22:45:47]OFD Sender: No OFD packet to send [22:45:52]OFD Sender: No OFD packet to send [22:45:57]OFD Sender: No OFD packet to send [22:46:02]OFD Sender: No OFD packet to send [22:46:07]OFD Sender: No OFD packet to send [22:46:12]OFD Sender: No OFD packet to send [22:46:17]OFD Sender: No OFD packet to send [22:46:22]OFD Sender: No OFD packet to send [22:46:27]OFD Sender: No OFD packet to send [22:46:32]OFD Sender: No OFD packet to send [22:46:37]OFD Sender: No OFD packet to send [22:46:42]OFD Sender: No OFD packet to send [22:46:47]OFD Sender: No OFD packet to send [22:46:52]OFD Sender: No OFD packet to send [22:46:57]OFD Sender: No OFD packet to send [22:47:02]OFD Sender: No OFD packet to send [22:47:07]OFD Sender: No OFD packet to send [22:47:12]OFD Sender: No OFD packet to send [22:47:17]OFD Sender: No OFD packet to send [22:47:22]OFD Sender: No OFD packet to send [22:47:27]OFD Sender: No OFD packet to send [22:47:32]OFD Sender: No OFD packet to send [22:47:37]OFD Sender: No OFD packet to send [22:47:42]OFD Sender: No OFD packet to send [22:47:44]int [22:47:44]Write to MH i2c: 01 00 00 EF 5B 4A [22:47:44]*** FLAG_PRN_PAP1 set [22:47:44]Write i2c OK [22:47:44]MH_I2C_Read... [22:47:44]Read from MH i2c: 01 [22:47:44]MH_I2C_Read... [22:47:44]Read from MH i2c: 01 07 00 [22:47:44]MH_I2C_Read... [22:47:44]Read from MH i2c: 01 07 00 EF 5B 00 01 00 00 00 FF 0F 60 [22:47:44]state=0 [22:47:44]No paper [22:47:44]int [22:47:44]Write to MH i2c: 01 00 00 F0 5B 4B [22:47:44]*** FLAG_PRN_PAP2 set [22:47:44]Write i2c OK [22:47:44]MH_I2C_Read... [22:47:44]Read from MH i2c: 01 [22:47:44]MH_I2C_Read... [22:47:44]Read from MH i2c: 01 07 00 [22:47:44]MH_I2C_Read... [22:47:44]Read from MH i2c: 01 07 00 F0 5B 00 03 00 00 00 FF 0F 63 [22:47:44]state=0 [22:47:44]No paper [22:47:44]Cover opened [22:47:45]int [22:47:45]Write to MH i2c: 01 00 00 F1 5B 4C [22:47:45]*** FLAG_PRN_PAP2 reset [22:47:45]Write i2c OK [22:47:45]MH_I2C_Read... [22:47:45]Read from MH i2c: 01 [22:47:45]MH_I2C_Read... [22:47:45]Read from MH i2c: 01 07 00 [22:47:45]MH_I2C_Read... [22:47:45]Read from MH i2c: 01 07 00 F1 5B 00 01 00 00 00 FF 0F 62 [22:47:45]state=3 [22:47:45]No paper [22:47:45]Cover closed [22:47:46]int [22:47:46]Write to MH i2c: 01 00 00 F2 5B 4D [22:47:46]*** FLAG_PRN_PAP2 set [22:47:46]Write i2c OK [22:47:46]MH_I2C_Read... [22:47:46]Read from MH i2c: 01 [22:47:46]MH_I2C_Read... [22:47:46]Read from MH i2c: 01 07 00 [22:47:46]MH_I2C_Read... [22:47:46]Read from MH i2c: 01 07 00 F2 5B 00 03 00 00 00 FF 0F 65 [22:47:46]state=0 [22:47:46]No paper [22:47:46]Cover opened [22:47:46]int [22:47:46]Write to MH i2c: 01 00 00 F3 5B 4E [22:47:46]*** FLAG_PRN_PAP2 reset [22:47:46]Write i2c OK [22:47:46]MH_I2C_Read... [22:47:46]Read from MH i2c: 01 [22:47:46]MH_I2C_Read... [22:47:46]Read from MH i2c: 01 07 00 [22:47:46]MH_I2C_Read... [22:47:46]Read from MH i2c: 01 07 00 F3 5B 00 01 00 00 00 FF 0F 64 [22:47:46]state=3 [22:47:46]No paper [22:47:46]Cover closed [22:47:46]int [22:47:46]Write to MH i2c: 01 00 00 F4 5B 4F [22:47:46]*** FLAG_PRN_PAP2 set [22:47:46]Write i2c OK [22:47:46]MH_I2C_Read... [22:47:46]Read from MH i2c: 01 [22:47:46]MH_I2C_Read... [22:47:46]Read from MH i2c: 01 07 00 [22:47:46]MH_I2C_Read... [22:47:46]Read from MH i2c: 01 07 00 F4 5B 00 03 00 00 00 FF 0F 67 [22:47:46]state=0 [22:47:46]No paper [22:47:46]Cover opened [22:47:47]int [22:47:47]Write to MH i2c: 01 00 00 F5 5B 50 [22:47:47]*** FLAG_PRN_PAP2 reset [22:47:47]Write i2c OK [22:47:47]MH_I2C_Read... [22:47:47]Read from MH i2c: 01 [22:47:47]MH_I2C_Read... [22:47:47]Read from MH i2c: 01 07 00 [22:47:47]MH_I2C_Read... [22:47:47]Read from MH i2c: 01 07 00 F5 5B 00 01 00 00 00 FF 0F 66 [22:47:47]state=3 [22:47:47]No paper [22:47:47]Cover closed [22:47:47]OFD Sender: No OFD packet to send [22:47:47]int [22:47:47]Write to MH i2c: 01 00 00 F6 5B 51 [22:47:47]*** FLAG_PRN_PAP2 set [22:47:47]Write i2c OK [22:47:47]MH_I2C_Read... [22:47:47]Read from MH i2c: 01 [22:47:47]MH_I2C_Read... [22:47:47]Read from MH i2c: 01 07 00 [22:47:47]MH_I2C_Read... [22:47:47]Read from MH i2c: 01 07 00 F6 5B 00 03 00 00 00 FF 0F 69 [22:47:47]state=0 [22:47:47]No paper [22:47:47]Cover opened [22:47:49]int [22:47:49]Write to MH i2c: 01 00 00 F7 5B 52 [22:47:49]*** FLAG_PRN_PAP2 reset [22:47:49]Write i2c OK [22:47:49]MH_I2C_Read... [22:47:49]Read from MH i2c: 01 [22:47:49]MH_I2C_Read... [22:47:49]Read from MH i2c: 01 07 00 [22:47:49]MH_I2C_Read... [22:47:49]Read from MH i2c: 01 07 00 F7 5B 00 01 00 00 00 FF 0F 68 [22:47:49]state=3 [22:47:49]No paper [22:47:49]Cover closed [22:47:49]int [22:47:49]Write to MH i2c: 01 00 00 F8 5B 53 [22:47:49]*** FLAG_PRN_PAP1 reset [22:47:49]Write i2c OK [22:47:49]MH_I2C_Read... [22:47:49]Read from MH i2c: 01 [22:47:49]MH_I2C_Read... [22:47:49]Read from MH i2c: 01 07 00 [22:47:49]MH_I2C_Read... [22:47:49]Read from MH i2c: 01 07 00 F8 5B 00 00 00 00 00 FF 0F 68 [22:47:49]state=0 [22:47:52]OFD Sender: No OFD packet to send [22:47:57]OFD Sender: No OFD packet to send [22:48:02]OFD Sender: No OFD packet to send [22:48:07]OFD Sender: No OFD packet to send [22:48:12]OFD Sender: No OFD packet to send [22:48:17]OFD Sender: No OFD packet to send [22:48:22]OFD Sender: No OFD packet to send [22:48:27]OFD Sender: No OFD packet to send [22:48:32]OFD Sender: No OFD packet to send [22:48:37]OFD Sender: No OFD packet to send [22:48:42]OFD Sender: No OFD packet to send [22:48:47]OFD Sender: No OFD packet to send [22:48:52]OFD Sender: No OFD packet to send [22:48:57]OFD Sender: No OFD packet to send [22:49:02]OFD Sender: No OFD packet to send [22:49:07]OFD Sender: No OFD packet to send [22:49:12]OFD Sender: No OFD packet to send [22:49:17]OFD Sender: No OFD packet to send [22:49:22]OFD Sender: No OFD packet to send [22:49:27]OFD Sender: No OFD packet to send [22:49:32]OFD Sender: No OFD packet to send [22:49:37]OFD Sender: No OFD packet to send [22:49:42]OFD Sender: No OFD packet to send [22:49:47]OFD Sender: No OFD packet to send [22:49:52]OFD Sender: No OFD packet to send [22:49:57]OFD Sender: No OFD packet to send [22:50:02]OFD Sender: No OFD packet to send [22:50:07]OFD Sender: No OFD packet to send [22:50:12]OFD Sender: No OFD packet to send [22:50:17]OFD Sender: No OFD packet to send [22:50:22]OFD Sender: No OFD packet to send [22:50:27]OFD Sender: No OFD packet to send [22:50:32]OFD Sender: No OFD packet to send [22:50:37]OFD Sender: No OFD packet to send [22:50:42]OFD Sender: No OFD packet to send [22:50:47]OFD Sender: No OFD packet to send [22:50:52]OFD Sender: No OFD packet to send [22:50:57]OFD Sender: No OFD packet to send [22:51:02]OFD Sender: No OFD packet to send [22:51:07]OFD Sender: No OFD packet to send [22:51:12]OFD Sender: No OFD packet to send [22:51:17]OFD Sender: No OFD packet to send [22:51:22]OFD Sender: No OFD packet to send [22:51:27]OFD Sender: No OFD packet to send [22:51:32]OFD Sender: No OFD packet to send [22:51:37]OFD Sender: No OFD packet to send [22:51:42]OFD Sender: No OFD packet to send [22:51:47]OFD Sender: No OFD packet to send [22:51:52]OFD Sender: No OFD packet to send [22:51:57]OFD Sender: No OFD packet to send [22:52:02]OFD Sender: No OFD packet to send [22:52:07]OFD Sender: No OFD packet to send [22:52:12]OFD Sender: No OFD packet to send [22:52:17]OFD Sender: No OFD packet to send [22:52:22]OFD Sender: No OFD packet to send [22:52:27]OFD Sender: No OFD packet to send [22:52:32]OFD Sender: No OFD packet to send [22:52:37]OFD Sender: No OFD packet to send [22:52:42]OFD Sender: No OFD packet to send [22:52:47]OFD Sender: No OFD packet to send [22:52:52]OFD Sender: No OFD packet to send [22:52:57]OFD Sender: No OFD packet to send [22:53:02]OFD Sender: No OFD packet to send [22:53:07]OFD Sender: No OFD packet to send [22:53:12]OFD Sender: No OFD packet to send [22:53:17]OFD Sender: No OFD packet to send [22:53:22]OFD Sender: No OFD packet to send [22:53:27]OFD Sender: No OFD packet to send [22:53:32]OFD Sender: No OFD packet to send [22:53:37]OFD Sender: No OFD packet to send [22:53:42]OFD Sender: No OFD packet to send [22:53:47]OFD Sender: No OFD packet to send [22:53:52]OFD Sender: No OFD packet to send [22:53:57]OFD Sender: No OFD packet to send [22:54:02]OFD Sender: No OFD packet to send [22:54:07]OFD Sender: No OFD packet to send [22:54:12]OFD Sender: No OFD packet to send [22:54:17]OFD Sender: No OFD packet to send [22:54:22]OFD Sender: No OFD packet to send [22:54:27]OFD Sender: No OFD packet to send [22:54:32]OFD Sender: No OFD packet to send [22:54:37]OFD Sender: No OFD packet to send [22:54:42]OFD Sender: No OFD packet to send [22:54:47]OFD Sender: No OFD packet to send [22:54:52]OFD Sender: No OFD packet to send [22:54:57]OFD Sender: No OFD packet to send [22:55:02]OFD Sender: No OFD packet to send [22:55:07]OFD Sender: No OFD packet to send [22:55:12]OFD Sender: No OFD packet to send [22:55:17]OFD Sender: No OFD packet to send [22:55:22]OFD Sender: No OFD packet to send [22:55:27]OFD Sender: No OFD packet to send [22:55:32]OFD Sender: No OFD packet to send [22:55:37]OFD Sender: No OFD packet to send [22:55:42]OFD Sender: No OFD packet to send [22:55:47]OFD Sender: No OFD packet to send [22:55:52]OFD Sender: No OFD packet to send [22:55:57]OFD Sender: No OFD packet to send [22:56:02]OFD Sender: No OFD packet to send [22:56:07]OFD Sender: No OFD packet to send [22:56:12]OFD Sender: No OFD packet to send [22:56:17]OFD Sender: No OFD packet to send [22:56:22]OFD Sender: No OFD packet to send [22:56:27]OFD Sender: No OFD packet to send [22:56:32]OFD Sender: No OFD packet to send [22:56:37]OFD Sender: No OFD packet to send [22:56:42]OFD Sender: No OFD packet to send [22:56:47]OFD Sender: No OFD packet to send [22:56:52]OFD Sender: No OFD packet to send [22:56:57]OFD Sender: No OFD packet to send [22:57:02]OFD Sender: No OFD packet to send [22:57:07]OFD Sender: No OFD packet to send [22:57:12]OFD Sender: No OFD packet to send [22:57:17]OFD Sender: No OFD packet to send [22:57:22]OFD Sender: No OFD packet to send [22:57:27]OFD Sender: No OFD packet to send [22:57:32]OFD Sender: No OFD packet to send [22:57:37]OFD Sender: No OFD packet to send [22:57:42]OFD Sender: No OFD packet to send [22:57:47]OFD Sender: No OFD packet to send [22:57:52]OFD Sender: No OFD packet to send [22:57:57]OFD Sender: No OFD packet to send [22:58:02]OFD Sender: No OFD packet to send [22:58:07]OFD Sender: No OFD packet to send [22:58:12]OFD Sender: No OFD packet to send [22:58:17]OFD Sender: No OFD packet to send [22:58:22]OFD Sender: No OFD packet to send [22:58:27]OFD Sender: No OFD packet to send [22:58:32]OFD Sender: No OFD packet to send [22:58:37]OFD Sender: No OFD packet to send [22:58:42]OFD Sender: No OFD packet to send [22:58:47]OFD Sender: No OFD packet to send [22:58:52]OFD Sender: No OFD packet to send [22:58:57]OFD Sender: No OFD packet to send [22:59:02]OFD Sender: No OFD packet to send [22:59:07]OFD Sender: No OFD packet to send [22:59:09]accept exits with 9 [22:59:09]New connection [22:59:09]New thread 3067157860 created [22:59:09]Thread 3067014500 joined [22:59:09]Waiting for new connection... [22:59:09] Sock 9.Parse request [22:59:09]Sock 9.Check first char [22:59:09]Sock 9.First char is OK [22:59:09]request: POST /json_proto HTTP/1.0 [22:59:09]Method: POST [22:59:09]URL: /json_proto [22:59:09]Method is POST - this is cgi request [22:59:09]url: /json_proto [22:59:09]query_string will be loaded in cgi processing [22:59:09]execute_cgi json_proto POST (null) [22:59:09]execute_cgi path=json_proto method=POST [22:59:09]POST find Content-Length [22:59:09]Host: 172.17.48.198:8080 [22:59:09]Content-Length: 793 [22:59:09]Content-Type: application/json [22:59:09] [22:59:09]POST finish read [22:59:09]Found Content-Length = 793 [22:59:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184221", "tax_sys" : 0, "items" : [ { "code": "745240075936", "name": "\u0410\u0432\u0442\u043E\u043F\u0430\u0440\u0444\u044E\u043C 4 SAUVAGE", "price" : 281.00, "quantity" : 1.000, "sum" : 281.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 281.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:59:09]execute_script... [22:59:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184221", "tax_sys" : 0, "items" : [ { "code": "745240075936", "name": "\u0410\u0432\u0442\u043E\u043F\u0430\u0440\u0444\u044E\u043C 4 SAUVAGE", "price" : 281.00, "quantity" : 1.000, "sum" : 281.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 281.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:59:09]POST & json_proto [22:59:09]process_json_proto [22:59:09]json parsed OK: [22:59:09]protocol is kg_v1.0 [22:59:09]action value=close_receipt [22:59:09]process_action close_receipt [22:59:09]cmd_close_receipt [22:59:09]MH_GetDate [22:59:09]Write to MH i2c: F0 00 00 F9 5B 43 [22:59:09]Write i2c OK [22:59:09]MH_I2C_Read... [22:59:09]Read from MH i2c: F0 [22:59:09]MH_I2C_Read... [22:59:09]Read from MH i2c: F0 09 00 [22:59:09]MH_I2C_Read... [22:59:09]Read from MH i2c: F0 09 00 F9 5B 00 CB 00 E5 65 CE C4 D4 65 2C [22:59:09]GetLastDocTimeStamp 1709505818 [22:59:09]current date 1709506763 [22:59:09]FM_GetShiftState [22:59:09]SAM_PROTO_GetShiftState [22:59:09]wFMCommunicate request_size=4 [22:59:09]MH_SAM_APDU [22:59:09]CAPDU: 80 13 01 00 [22:59:09]Write to MH i2c: E2 08 00 FA 5B 80 13 01 00 00 00 00 00 D2 [22:59:09]Write i2c OK [22:59:09]MH_I2C_Read... [22:59:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:59:09]Read from MH i2c: E2 [22:59:09]MH_I2C_Read... [22:59:09]Read from MH i2c: E2 0E 00 [22:59:09]MH_I2C_Read... [22:59:09]Read from MH i2c: E2 0E 00 FA 5B 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 08 [22:59:09]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [22:59:09]wFMCommunicate OK [22:59:09]SAM_PROTO_GetShiftState done [22:59:09]FM_GetShiftState done [22:59:09]opened in 1709425694 [22:59:09]opened+sec_in_day 1709512094 [22:59:09]quantity*price = 28100 [22:59:09]sum+1 = 28101 [22:59:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 281.00 НСП 1% : 2.49 НДС 12% : 29.84 Наличными: 0.00 Безнал.: 281.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 99 03.03.2024 22:59 Смена: 331 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874796 ФД: 45262 ФПД: 165554223492619 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T225923&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45262&fm=165554223492619&tin=02508201610067®Number=0000000000090572&sum=28100 0 [22:59:11]StoreToDocumentArchive [22:59:11]shift 331 fd 45262 [22:59:11]save to /storage/0331/doc_00045262 [22:59:11]save last doc name /storage/0331/doc_00045262 to /storage/kkm_last_doc_name [22:59:11]save OK [22:59:11]Clear old archive folders... [22:59:11]ProcessDocumentItem done err = 0, tmpTLVsize=271 [22:59:11]tlvbuf is 01CDB660 [22:59:11]SAM_PROTO_ClearQueue [22:59:11]wFMCommunicate request_size=4 [22:59:11]MH_SAM_APDU [22:59:11]CAPDU: 80 09 00 00 [22:59:11]Write to MH i2c: E2 08 00 07 5C 80 09 00 00 00 00 00 00 D5 [22:59:11]Write i2c OK [22:59:11]MH_I2C_Read... [22:59:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:59:11]Read from MH i2c: E2 [22:59:11]MH_I2C_Read... [22:59:11]Read from MH i2c: E2 03 00 [22:59:11]MH_I2C_Read... [22:59:11]Read from MH i2c: E2 03 00 07 5C 00 90 00 D7 [22:59:11]RAPDU: 90 00 [22:59:11]wFMCommunicate OK [22:59:11]SAM_PROTO_ClearQueue done [22:59:11]KKMCreateOFDPacket [22:59:11]OFDProtocolAddRootSTLVToBuf [22:59:11]FM_MakeSignedData [22:59:11]FM_MakeSignedData [22:59:11]SAM_PROTO_SignData [22:59:11]wFMCommunicate request_size=4 [22:59:11]MH_SAM_APDU [22:59:11]CAPDU: 80 0D 01 02 [22:59:11]Write to MH i2c: E2 08 00 08 5C 80 0D 01 02 00 00 00 00 DD [22:59:11]Write i2c OK [22:59:11]MH_I2C_Read... [22:59:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:59:11]Read from MH i2c: E2 [22:59:11]MH_I2C_Read... [22:59:11]Read from MH i2c: E2 03 00 [22:59:11]MH_I2C_Read... [22:59:11]Read from MH i2c: E2 03 00 08 5C 00 90 00 D8 [22:59:11]RAPDU: 90 00 [22:59:11]wFMCommunicate OK [22:59:11]wFMCommunicate request_size=255 [22:59:11]MH_SAM_APDU [22:59:11]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0C 00 37 34 35 32 34 30 30 37 35 39 33 36 06 04 1E 00 D0 90 D0 B2 D1 82 D0 BE D0 BF D0 B0 D1 80 D1 84 D1 8E D0 BC 20 34 20 53 41 55 56 41 47 45 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 6D 00 00 00 00 13 04 06 00 C4 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 6D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 CB 00 E5 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 [22:59:11]Write to MH i2c: E2 02 01 09 5C 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0C 00 37 34 35 32 34 30 30 37 35 39 33 36 06 04 1E 00 D0 90 D0 B2 D1 82 D0 BE D0 BF D0 B0 D1 80 D1 84 D1 8E D0 BC 20 34 20 53 41 55 56 41 47 45 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 6D 00 00 00 00 13 04 06 00 C4 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 6D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 CB 00 E5 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 63 [22:59:11]Write i2c OK [22:59:11]MH_I2C_Read... [22:59:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:59:11]Read from MH i2c: E2 [22:59:11]MH_I2C_Read... [22:59:11]Read from MH i2c: E2 03 00 [22:59:11]MH_I2C_Read... [22:59:11]Read from MH i2c: E2 03 00 09 5C 00 90 00 D9 [22:59:11]RAPDU: 90 00 [22:59:11]wFMCommunicate OK [22:59:11]wFMCommunicate request_size=30 [22:59:11]MH_SAM_APDU [22:59:11]CAPDU: 80 0D 02 02 19 30 38 37 34 37 39 36 10 04 04 00 CE B0 00 00 35 04 06 00 96 92 18 AE AE 0B [22:59:11]Write to MH i2c: E2 21 00 0A 5C 80 0D 02 02 19 00 30 38 37 34 37 39 36 10 04 04 00 CE B0 00 00 35 04 06 00 96 92 18 AE AE 0B 00 00 07 [22:59:11]Write i2c OK [22:59:11]MH_I2C_Read... [22:59:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:59:11]Read from MH i2c: E2 [22:59:11]MH_I2C_Read... [22:59:11]Read from MH i2c: E2 03 00 [22:59:11]MH_I2C_Read... [22:59:11]Read from MH i2c: E2 03 00 0A 5C 00 90 00 DA [22:59:11]RAPDU: 90 00 [22:59:11]wFMCommunicate OK [22:59:11]wFMCommunicate request_size=4 [22:59:11]MH_SAM_APDU [22:59:11]CAPDU: 80 0D 03 02 [22:59:11]Write to MH i2c: E2 08 00 0B 5C 80 0D 03 02 00 00 00 00 E2 [22:59:11]Write i2c OK [22:59:11]MH_I2C_Read... [22:59:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:59:11]Read from MH i2c: E2 [22:59:11]MH_I2C_Read... [22:59:11]Read from MH i2c: E2 0B 00 [22:59:11]MH_I2C_Read... [22:59:11]Read from MH i2c: E2 0B 00 0B 5C 00 06 F8 3B 6E 36 A1 DD 98 90 00 D6 [22:59:11]RAPDU: 06 F8 3B 6E 36 A1 DD 98 90 00 [22:59:11]wFMCommunicate OK [22:59:11]SAM_PROTO_SignData done [22:59:11]FM_MakeSignedData done [22:59:11]CreateOFDProtocolMessage [22:59:11]wFMCommunicate request_size=4 [22:59:11]MH_SAM_APDU [22:59:11]CAPDU: 80 11 00 00 [22:59:11]Write to MH i2c: E2 08 00 0C 5C 80 11 00 00 00 00 00 00 E2 [22:59:11]Write i2c OK [22:59:11]MH_I2C_Read... [22:59:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:59:11]Read from MH i2c: E2 [22:59:11]MH_I2C_Read... [22:59:11]Read from MH i2c: E2 17 00 [22:59:11]MH_I2C_Read... [22:59:11]Read from MH i2c: E2 17 00 0C 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 3E [22:59:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [22:59:11]wFMCommunicate OK [22:59:11]CreateOFDProtocolMessage done [22:59:11]OFDSenderStorePacket 45262 [22:59:11]StoreOFDPacket docnum=45262 [22:59:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 23 01 00 00 D8 86 1B 01 BF 7A 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0C 00 37 34 35 32 34 30 30 37 35 39 33 36 06 04 1E 00 D0 90 D0 B2 D1 82 D0 BE D0 BF D0 B0 D1 80 D1 84 D1 8E D0 BC 20 34 20 53 41 55 56 41 47 45 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 6D 00 00 00 00 13 04 06 00 C4 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 6D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 CB 00 E5 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 CE B0 00 00 35 04 06 00 96 92 18 AE AE 0B 06 F8 3B 6E 36 A1 DD 98 [22:59:11]CheckFolder [22:59:11]dirname=/storage/ofd_packets [22:59:11]CheckFolder done [22:59:11]ProducePacketName [22:59:11]name=ofd_packets/00045262 [22:59:11]NVStorageSaveData ofd_packets/00045262 [22:59:11]File name is /storage/ofd_packets/00045262 [22:59:11]Write 321 bytes [22:59:11]NVStorageSaveData done [22:59:11]OFDSenderStorePacket done [22:59:11]KKMCreateOFDPacket done [22:59:11]NVStorageSaveData kkm_last_timestamp [22:59:11]File name is /storage/kkm_last_timestamp [22:59:11]Write 4 bytes [22:59:11]NVStorageSaveData done [22:59:11]ExternCall_PrintAddStr [22:59:11]wPrintStart [22:59:11]Write to MH i2c: 01 00 00 0D 5C 69 [22:59:11]Write i2c OK [22:59:11]MH_I2C_Read... [22:59:11]Read from MH i2c: 01 [22:59:11]MH_I2C_Read... [22:59:11]Read from MH i2c: 01 07 00 [22:59:11]MH_I2C_Read... [22:59:11]Read from MH i2c: 01 07 00 0D 5C 00 00 00 00 00 FF 0F 7E [22:59:11]RasterBufferAndPrint [22:59:11]line Счет N : (3)184221 [22:59:11]line ИНН: 02508201610067 [22:59:11]line Контрольно-Кассовый Чек [22:59:11]line ПРОДАЖА [22:59:11]line Товар: 745240075936 [22:59:11]line Автопарфюм 4 SAUVAGE [22:59:11]line 1.000 * 281.00 [22:59:11]line = 281.00 [22:59:11]line НДС 12% НСП 1% [22:59:11]line > о реализуемом товаре [22:59:11]line ИТОГО: 281.00 [22:59:11]line НСП 1% : 2.49 [22:59:11]line НДС 12% : 29.84 [22:59:11]line Наличными: 0.00 [22:59:11]line Безнал.: 281.00 [22:59:11]line Место: АЗС № 25 "Партнер Нефть" [22:59:11]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [22:59:11]line СНО: Общий режим [22:59:11]line Чек 99 03.03.2024 22:59 [22:59:11]line Смена: 331 ФФД: 1.0 [22:59:11]line ЗНМ: 0300000013 [22:59:11]line РНМ: 0000000000090572 [22:59:11]line Версия ККМ: 001 [22:59:11]line Платежная система: О! деньги [22:59:11]line ФМ: 0000000000874796 [22:59:11]line ФД: 45262 [22:59:11]line ФПД: 165554223492619 [22:59:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T225923&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45262&fm=165554223492619&tin=02508201610067®Number=0000000000090572&sum=28100 [22:59:12]line 0 [22:59:12]OFD Sender: Processing packet 45262 [packets to send 17, broken 16] [22:59:12]ProducePacketName [22:59:12]name=ofd_packets/00045262 [22:59:12]OFD Sender: To server: pG, [22:59:12]CommunicateWithHost lk.salyk.kg:30040 [22:59:12]ConnectInit lk.salyk.kg [22:59:12]written 0, free lines is 4095 [22:59:12]Connected sock=10 [22:59:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 23 01 00 00 D8 86 1B 01 BF 7A 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0C 00 37 34 35 32 34 30 30 37 35 39 33 36 06 04 1E 00 D0 90 D0 B2 D1 82 D0 BE D0 BF D0 B0 D1 80 D1 84 D1 8E D0 BC 20 34 20 53 41 55 56 41 47 45 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 6D 00 00 00 00 13 04 06 00 C4 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 6D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 CB 00 E5 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 CE B0 00 00 35 04 06 00 96 92 18 AE AE 0B 06 F8 3B 6E 36 A1 DD 98 [22:59:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 23 E6 47 00 1C 2E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 CE B0 00 00 F4 03 04 00 8F AC E4 65 B6 04 01 00 00 55 2D F3 57 31 7C 70 47 [22:59:12]CommunicateWithHost err = 0 [22:59:12]CheckOFDResponse [22:59:12]1017 (14) - 77093643461234 [22:59:12]1041 (16) - 0000000000874796 [22:59:12]1040 (4) - 45262 [22:59:12]1012 (4) - 03.03.2024 16:59 [22:59:12]1206 (1) - 0 [22:59:12]OFD Sender: Remove packet 45262 [22:59:12]ProducePacketName [22:59:12]name=ofd_packets/00045262 [22:59:12]NVStorageDeleteData [22:59:12]Write to MH i2c: 01 00 00 37 5C 93 [22:59:12]Write i2c OK [22:59:12]MH_I2C_Read... [22:59:12]Read from MH i2c: 01 [22:59:12]MH_I2C_Read... [22:59:12]Read from MH i2c: 01 07 00 [22:59:12]MH_I2C_Read... [22:59:12]Read from MH i2c: 01 07 00 37 5C 00 00 00 00 00 FF 0C A5 [22:59:12]RasterBufferAndPrint [22:59:12]line [22:59:12]line [22:59:12]line [22:59:12]line [22:59:12]line [22:59:12]written 0, free lines is 3333 [22:59:12]MH_Cut [22:59:12]Write to MH i2c: D1 01 00 3E 5C 01 6C [22:59:12]Write i2c OK [22:59:12]MH_I2C_Read... [22:59:12]Read from MH i2c: D1 [22:59:12]MH_I2C_Read... [22:59:12]Read from MH i2c: D1 01 00 [22:59:12]MH_I2C_Read... [22:59:12]Read from MH i2c: D1 01 00 3E 5C 00 6B [22:59:12]Write to MH i2c: 01 00 00 3F 5C 9B [22:59:12]Write i2c OK [22:59:12]MH_I2C_Read... [22:59:12]OFD Sender: No OFD packet to send [22:59:13]*** Cut start [22:59:13]*** Purtial cut [22:59:13]*** Stage 1: CUTSNS_PIN = 1 [22:59:15]Read from MH i2c: 01 [22:59:15]MH_I2C_Read... [22:59:15]*** Stop cut motor [22:59:15]*** Cut end [22:59:15]Read from MH i2c: 01 07 00 [22:59:15]MH_I2C_Read... [22:59:15]Read from MH i2c: 01 07 00 3F 5C 00 00 00 00 00 FF 0F B0 [22:59:15]process_action close_receipt done [22:59:15]requested_data is exist [22:59:15]produce_requested_data [22:59:15]requested_item fm.sn is exist - process it [22:59:15]wFMCommunicate request_size=4 [22:59:15]MH_SAM_APDU [22:59:15]CAPDU: 80 11 00 00 [22:59:15]Write to MH i2c: E2 08 00 40 5C 80 11 00 00 00 00 00 00 16 [22:59:15]Write i2c OK [22:59:15]MH_I2C_Read... [22:59:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:59:15]Read from MH i2c: E2 [22:59:15]MH_I2C_Read... [22:59:15]Read from MH i2c: E2 17 00 [22:59:15]MH_I2C_Read... [22:59:15]Read from MH i2c: E2 17 00 40 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 72 [22:59:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [22:59:15]wFMCommunicate OK [22:59:15]requested_item fd.num is exist - process it [22:59:15]SAM_PROTO_GetFieldsCounters [22:59:15]wFMCommunicate request_size=4 [22:59:15]MH_SAM_APDU [22:59:15]CAPDU: 80 13 00 00 [22:59:15]Write to MH i2c: E2 08 00 41 5C 80 13 00 00 00 00 00 00 19 [22:59:15]Write i2c OK [22:59:15]MH_I2C_Read... [22:59:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:59:15]Read from MH i2c: E2 [22:59:15]MH_I2C_Read... [22:59:15]Read from MH i2c: E2 62 00 [22:59:15]MH_I2C_Read... [22:59:15]Read from MH i2c: E2 62 00 41 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 CE B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 34 [22:59:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 CE B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:59:15]wFMCommunicate OK [22:59:15]SAM_PROTO_GetFieldsCounters done [22:59:15]requested_item shift.num is exist - process it [22:59:15]requested_item shift.opened is exist - process it [22:59:15]req_shift_opened [22:59:15]FM_GetShiftState [22:59:15]SAM_PROTO_GetShiftState [22:59:15]wFMCommunicate request_size=4 [22:59:15]MH_SAM_APDU [22:59:15]CAPDU: 80 13 01 00 [22:59:15]Write to MH i2c: E2 08 00 42 5C 80 13 01 00 00 00 00 00 1B [22:59:15]Write i2c OK [22:59:15]MH_I2C_Read... [22:59:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:59:15]Read from MH i2c: E2 [22:59:15]MH_I2C_Read... [22:59:15]Read from MH i2c: E2 0E 00 [22:59:15]MH_I2C_Read... [22:59:15]Read from MH i2c: E2 0E 00 42 5C 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 51 [22:59:15]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [22:59:15]wFMCommunicate OK [22:59:15]SAM_PROTO_GetShiftState done [22:59:15]FM_GetShiftState done [22:59:15]req_shift_opened done [22:59:15]requested_item shift.open_date is exist - process it [22:59:15]req_shift_open_date [22:59:15]req_shift_open_date done [22:59:15]produce_requested_data done [22:59:15]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45262,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [22:59:15]process_action_free close_receipt [22:59:15]json_value_free [22:59:15]json_value_free done [22:59:15]process_json_proto returns [22:59:15]Send response to host [22:59:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45262,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [22:59:15]free response buf [22:59:15]execute_script done [22:59:15]execute_script returns [22:59:15]free content buf [22:59:15]Sock 9.Close socket [22:59:15]Sock 9.Thread stoped [22:59:17]OFD Sender: No OFD packet to send [22:59:22]OFD Sender: No OFD packet to send [22:59:27]OFD Sender: No OFD packet to send [22:59:32]OFD Sender: No OFD packet to send [22:59:37]OFD Sender: No OFD packet to send [22:59:42]OFD Sender: No OFD packet to send [22:59:47]OFD Sender: No OFD packet to send [22:59:52]OFD Sender: No OFD packet to send [22:59:57]OFD Sender: No OFD packet to send [23:00:02]OFD Sender: No OFD packet to send [23:00:07]OFD Sender: No OFD packet to send [23:00:12]OFD Sender: No OFD packet to send [23:00:17]OFD Sender: No OFD packet to send [23:00:22]OFD Sender: No OFD packet to send [23:00:27]OFD Sender: No OFD packet to send [23:00:32]OFD Sender: No OFD packet to send [23:00:37]OFD Sender: No OFD packet to send [23:00:42]OFD Sender: No OFD packet to send [23:00:47]OFD Sender: No OFD packet to send [23:00:52]OFD Sender: No OFD packet to send [23:00:57]OFD Sender: No OFD packet to send [23:01:02]OFD Sender: No OFD packet to send [23:01:07]OFD Sender: No OFD packet to send [23:01:12]OFD Sender: No OFD packet to send [23:01:17]OFD Sender: No OFD packet to send [23:01:22]OFD Sender: No OFD packet to send [23:01:27]OFD Sender: No OFD packet to send [23:01:32]OFD Sender: No OFD packet to send [23:01:37]OFD Sender: No OFD packet to send [23:01:42]OFD Sender: No OFD packet to send [23:01:47]OFD Sender: No OFD packet to send [23:01:52]OFD Sender: No OFD packet to send [23:01:57]OFD Sender: No OFD packet to send [23:02:02]OFD Sender: No OFD packet to send [23:02:07]OFD Sender: No OFD packet to send [23:02:12]OFD Sender: No OFD packet to send [23:02:17]OFD Sender: No OFD packet to send [23:02:22]OFD Sender: No OFD packet to send [23:02:27]OFD Sender: No OFD packet to send [23:02:32]OFD Sender: No OFD packet to send [23:02:37]OFD Sender: No OFD packet to send [23:02:42]OFD Sender: No OFD packet to send [23:02:47]OFD Sender: No OFD packet to send [23:02:52]OFD Sender: No OFD packet to send [23:02:57]OFD Sender: No OFD packet to send [23:03:02]OFD Sender: No OFD packet to send [23:03:07]OFD Sender: No OFD packet to send [23:03:12]OFD Sender: No OFD packet to send [23:03:17]OFD Sender: No OFD packet to send [23:03:22]OFD Sender: No OFD packet to send [23:03:27]OFD Sender: No OFD packet to send [23:03:32]OFD Sender: No OFD packet to send [23:03:38]OFD Sender: No OFD packet to send [23:03:43]OFD Sender: No OFD packet to send [23:03:48]OFD Sender: No OFD packet to send [23:03:53]OFD Sender: No OFD packet to send [23:03:58]OFD Sender: No OFD packet to send [23:04:03]OFD Sender: No OFD packet to send [23:04:08]OFD Sender: No OFD packet to send [23:04:13]OFD Sender: No OFD packet to send [23:04:18]OFD Sender: No OFD packet to send [23:04:23]OFD Sender: No OFD packet to send [23:04:28]OFD Sender: No OFD packet to send [23:04:33]OFD Sender: No OFD packet to send [23:04:38]OFD Sender: No OFD packet to send [23:04:43]OFD Sender: No OFD packet to send [23:04:48]OFD Sender: No OFD packet to send [23:04:53]OFD Sender: No OFD packet to send [23:04:58]OFD Sender: No OFD packet to send [23:05:03]OFD Sender: No OFD packet to send [23:05:08]OFD Sender: No OFD packet to send [23:05:13]OFD Sender: No OFD packet to send [23:05:18]OFD Sender: No OFD packet to send [23:05:23]OFD Sender: No OFD packet to send [23:05:28]OFD Sender: No OFD packet to send [23:05:33]OFD Sender: No OFD packet to send [23:05:38]OFD Sender: No OFD packet to send [23:05:43]OFD Sender: No OFD packet to send [23:05:48]OFD Sender: No OFD packet to send [23:05:53]OFD Sender: No OFD packet to send [23:05:58]OFD Sender: No OFD packet to send [23:06:03]OFD Sender: No OFD packet to send [23:06:08]OFD Sender: No OFD packet to send [23:06:13]OFD Sender: No OFD packet to send [23:06:18]OFD Sender: No OFD packet to send [23:06:23]OFD Sender: No OFD packet to send [23:06:28]OFD Sender: No OFD packet to send [23:06:33]OFD Sender: No OFD packet to send [23:06:38]OFD Sender: No OFD packet to send [23:06:43]OFD Sender: No OFD packet to send [23:06:48]OFD Sender: No OFD packet to send [23:06:53]OFD Sender: No OFD packet to send [23:06:58]OFD Sender: No OFD packet to send [23:07:03]OFD Sender: No OFD packet to send [23:07:08]OFD Sender: No OFD packet to send [23:07:13]OFD Sender: No OFD packet to send [23:07:18]OFD Sender: No OFD packet to send [23:07:23]OFD Sender: No OFD packet to send [23:07:28]OFD Sender: No OFD packet to send [23:07:33]OFD Sender: No OFD packet to send [23:07:38]OFD Sender: No OFD packet to send [23:07:43]OFD Sender: No OFD packet to send [23:07:48]OFD Sender: No OFD packet to send [23:07:53]OFD Sender: No OFD packet to send [23:07:58]OFD Sender: No OFD packet to send [23:08:03]OFD Sender: No OFD packet to send [23:08:08]OFD Sender: No OFD packet to send [23:08:13]OFD Sender: No OFD packet to send [23:08:18]OFD Sender: No OFD packet to send [23:08:23]OFD Sender: No OFD packet to send [23:08:28]OFD Sender: No OFD packet to send [23:08:33]OFD Sender: No OFD packet to send [23:08:38]OFD Sender: No OFD packet to send [23:08:43]OFD Sender: No OFD packet to send [23:08:48]OFD Sender: No OFD packet to send [23:08:53]OFD Sender: No OFD packet to send [23:08:58]OFD Sender: No OFD packet to send [23:09:03]OFD Sender: No OFD packet to send [23:09:08]OFD Sender: No OFD packet to send [23:09:13]OFD Sender: No OFD packet to send [23:09:18]OFD Sender: No OFD packet to send [23:09:23]OFD Sender: No OFD packet to send [23:09:28]OFD Sender: No OFD packet to send [23:09:33]OFD Sender: No OFD packet to send [23:09:38]OFD Sender: No OFD packet to send [23:09:43]OFD Sender: No OFD packet to send [23:09:48]OFD Sender: No OFD packet to send [23:09:53]OFD Sender: No OFD packet to send [23:09:58]OFD Sender: No OFD packet to send [23:10:03]OFD Sender: No OFD packet to send [23:10:08]OFD Sender: No OFD packet to send [23:10:13]OFD Sender: No OFD packet to send [23:10:18]OFD Sender: No OFD packet to send [23:10:23]OFD Sender: No OFD packet to send [23:10:28]OFD Sender: No OFD packet to send [23:10:33]OFD Sender: No OFD packet to send [23:10:38]OFD Sender: No OFD packet to send [23:10:43]OFD Sender: No OFD packet to send [23:10:48]OFD Sender: No OFD packet to send [23:10:53]OFD Sender: No OFD packet to send [23:10:58]OFD Sender: No OFD packet to send [23:11:03]OFD Sender: No OFD packet to send [23:11:08]OFD Sender: No OFD packet to send [23:11:13]OFD Sender: No OFD packet to send [23:11:18]OFD Sender: No OFD packet to send [23:11:23]OFD Sender: No OFD packet to send [23:11:28]OFD Sender: No OFD packet to send [23:11:33]OFD Sender: No OFD packet to send [23:11:38]OFD Sender: No OFD packet to send [23:11:43]OFD Sender: No OFD packet to send [23:11:48]OFD Sender: No OFD packet to send [23:11:53]OFD Sender: No OFD packet to send [23:11:58]OFD Sender: No OFD packet to send [23:12:03]OFD Sender: No OFD packet to send [23:12:08]OFD Sender: No OFD packet to send [23:12:13]OFD Sender: No OFD packet to send [23:12:18]OFD Sender: No OFD packet to send [23:12:23]OFD Sender: No OFD packet to send [23:12:28]OFD Sender: No OFD packet to send [23:12:33]OFD Sender: No OFD packet to send [23:12:38]OFD Sender: No OFD packet to send [23:12:43]OFD Sender: No OFD packet to send [23:12:48]OFD Sender: No OFD packet to send [23:12:53]OFD Sender: No OFD packet to send [23:12:58]OFD Sender: No OFD packet to send [23:13:03]OFD Sender: No OFD packet to send [23:13:08]OFD Sender: No OFD packet to send [23:13:13]OFD Sender: No OFD packet to send [23:13:18]OFD Sender: No OFD packet to send [23:13:23]OFD Sender: No OFD packet to send [23:13:28]OFD Sender: No OFD packet to send [23:13:33]OFD Sender: No OFD packet to send [23:13:38]OFD Sender: No OFD packet to send [23:13:43]OFD Sender: No OFD packet to send [23:13:48]OFD Sender: No OFD packet to send [23:13:53]OFD Sender: No OFD packet to send [23:13:58]OFD Sender: No OFD packet to send [23:14:03]OFD Sender: No OFD packet to send [23:14:08]OFD Sender: No OFD packet to send [23:14:13]OFD Sender: No OFD packet to send [23:14:18]OFD Sender: No OFD packet to send [23:14:23]OFD Sender: No OFD packet to send [23:14:28]OFD Sender: No OFD packet to send [23:14:33]OFD Sender: No OFD packet to send [23:14:38]OFD Sender: No OFD packet to send [23:14:43]OFD Sender: No OFD packet to send [23:14:48]OFD Sender: No OFD packet to send [23:14:53]OFD Sender: No OFD packet to send [23:14:58]OFD Sender: No OFD packet to send [23:15:03]OFD Sender: No OFD packet to send [23:15:08]OFD Sender: No OFD packet to send [23:15:13]OFD Sender: No OFD packet to send [23:15:18]OFD Sender: No OFD packet to send [23:15:23]OFD Sender: No OFD packet to send [23:15:28]OFD Sender: No OFD packet to send [23:15:33]OFD Sender: No OFD packet to send [23:15:38]OFD Sender: No OFD packet to send [23:15:43]OFD Sender: No OFD packet to send [23:15:48]OFD Sender: No OFD packet to send [23:15:53]OFD Sender: No OFD packet to send [23:15:58]OFD Sender: No OFD packet to send [23:16:03]OFD Sender: No OFD packet to send [23:16:08]OFD Sender: No OFD packet to send [23:16:13]OFD Sender: No OFD packet to send [23:16:18]OFD Sender: No OFD packet to send [23:16:23]OFD Sender: No OFD packet to send [23:16:28]OFD Sender: No OFD packet to send [23:16:33]OFD Sender: No OFD packet to send [23:16:38]OFD Sender: No OFD packet to send [23:16:43]OFD Sender: No OFD packet to send [23:16:48]OFD Sender: No OFD packet to send [23:16:53]OFD Sender: No OFD packet to send [23:16:58]OFD Sender: No OFD packet to send [23:17:03]OFD Sender: No OFD packet to send [23:17:08]OFD Sender: No OFD packet to send [23:17:13]OFD Sender: No OFD packet to send [23:17:18]OFD Sender: No OFD packet to send [23:17:23]OFD Sender: No OFD packet to send [23:17:28]OFD Sender: No OFD packet to send [23:17:33]OFD Sender: No OFD packet to send [23:17:38]OFD Sender: No OFD packet to send [23:17:43]OFD Sender: No OFD packet to send [23:17:48]OFD Sender: No OFD packet to send [23:17:53]OFD Sender: No OFD packet to send [23:17:58]OFD Sender: No OFD packet to send [23:18:03]OFD Sender: No OFD packet to send [23:18:08]OFD Sender: No OFD packet to send [23:18:13]OFD Sender: No OFD packet to send [23:18:18]OFD Sender: No OFD packet to send [23:18:23]OFD Sender: No OFD packet to send [23:18:28]OFD Sender: No OFD packet to send [23:18:33]OFD Sender: No OFD packet to send [23:18:38]OFD Sender: No OFD packet to send [23:18:43]OFD Sender: No OFD packet to send [23:18:48]OFD Sender: No OFD packet to send [23:18:53]OFD Sender: No OFD packet to send [23:18:58]OFD Sender: No OFD packet to send [23:19:03]OFD Sender: No OFD packet to send [23:19:08]OFD Sender: No OFD packet to send [23:19:13]OFD Sender: No OFD packet to send [23:19:18]OFD Sender: No OFD packet to send [23:19:23]OFD Sender: No OFD packet to send [23:19:28]OFD Sender: No OFD packet to send [23:19:33]OFD Sender: No OFD packet to send [23:19:38]OFD Sender: No OFD packet to send [23:19:43]OFD Sender: No OFD packet to send [23:19:48]OFD Sender: No OFD packet to send [23:19:50]accept exits with 7 [23:19:50]New connection [23:19:50]New thread 3067014500 created [23:19:50]Thread 3067157860 joined [23:19:50]Waiting for new connection... [23:19:50] Sock 7.Parse request [23:19:50]Sock 7.Check first char [23:19:50]Sock 7.First char is OK [23:19:50]request: POST /json_proto HTTP/1.0 [23:19:50]Method: POST [23:19:50]URL: /json_proto [23:19:50]Method is POST - this is cgi request [23:19:50]url: /json_proto [23:19:50]query_string will be loaded in cgi processing [23:19:50]execute_cgi json_proto POST (null) [23:19:50]execute_cgi path=json_proto method=POST [23:19:50]POST find Content-Length [23:19:50]Host: 172.17.48.198:8080 [23:19:50]Content-Length: 1990 [23:19:50]Content-Type: application/json [23:19:50] [23:19:50]POST finish read [23:19:50]Found Content-Length = 1990 [23:19:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184222", "tax_sys" : 0, "items" : [ { "code": "4000417700001", "name": "\u0428\u043E\u043A Ritter SPORT EN \u043C\u043E\u043B \u043B\u0435\u0449\u0438\u043D\u0430,\u0444\u0443\u043D\u0434 100\u0433", "price" : 249.00, "quantity" : 1.000, "sum" : 249.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4000417702005", "name": "\u0428\u043E\u043A\u043E\u043B\u0430\u0434 Ritter SPORT EN \u043B\u0435\u0449,\u043B\u0435\u0441.\u043E\u0440 100\u0433", "price" : 249.00, "quantity" : 1.000, "sum" : 249.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870002329999", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 1\u043B \u043B\u0438\u043C\u043E\u043D Regular", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003150400", "name": "\u0412\u043E\u0434\u043A\u0430 \u0424\u0440\u0443\u043D\u0437\u0435 0,75", "price" : 530.00, "quantity" : 1.000, "sum" : 530.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000027340020", "name": "\u041F\u0430\u043A\u0435\u0442 \u0431\u0443\u043C\u0430\u0436\u043D\u044B\u0439 \u0432\u0438\u0442\u0430\u044F \u0440\u0443\u0447\u043A\u0430", "price" : 25.00, "quantity" : 1.000, "sum" : 25.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1183.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:19:50]execute_script... [23:19:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184222", "tax_sys" : 0, "items" : [ { "code": "4000417700001", "name": "\u0428\u043E\u043A Ritter SPORT EN \u043C\u043E\u043B \u043B\u0435\u0449\u0438\u043D\u0430,\u0444\u0443\u043D\u0434 100\u0433", "price" : 249.00, "quantity" : 1.000, "sum" : 249.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4000417702005", "name": "\u0428\u043E\u043A\u043E\u043B\u0430\u0434 Ritter SPORT EN \u043B\u0435\u0449,\u043B\u0435\u0441.\u043E\u0440 100\u0433", "price" : 249.00, "quantity" : 1.000, "sum" : 249.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870002329999", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 1\u043B \u043B\u0438\u043C\u043E\u043D Regular", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003150400", "name": "\u0412\u043E\u0434\u043A\u0430 \u0424\u0440\u0443\u043D\u0437\u0435 0,75", "price" : 530.00, "quantity" : 1.000, "sum" : 530.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000027340020", "name": "\u041F\u0430\u043A\u0435\u0442 \u0431\u0443\u043C\u0430\u0436\u043D\u044B\u0439 \u0432\u0438\u0442\u0430\u044F \u0440\u0443\u0447\u043A\u0430", "price" : 25.00, "quantity" : 1.000, "sum" : 25.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1183.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:19:51]POST & json_proto [23:19:51]process_json_proto [23:19:51]json parsed OK: [23:19:51]protocol is kg_v1.0 [23:19:51]action value=close_receipt [23:19:51]process_action close_receipt [23:19:51]cmd_close_receipt [23:19:51]MH_GetDate [23:19:51]Write to MH i2c: F0 00 00 43 5C 8E [23:19:51]Write i2c OK [23:19:51]MH_I2C_Read... [23:19:51]Read from MH i2c: F0 [23:19:51]MH_I2C_Read... [23:19:51]Read from MH i2c: F0 09 00 [23:19:51]MH_I2C_Read... [23:19:51]Read from MH i2c: F0 09 00 43 5C 00 A5 05 E5 65 CE C4 D4 65 56 [23:19:51]GetLastDocTimeStamp 1709506763 [23:19:51]current date 1709508005 [23:19:51]FM_GetShiftState [23:19:51]SAM_PROTO_GetShiftState [23:19:51]wFMCommunicate request_size=4 [23:19:51]MH_SAM_APDU [23:19:51]CAPDU: 80 13 01 00 [23:19:51]Write to MH i2c: E2 08 00 44 5C 80 13 01 00 00 00 00 00 1D [23:19:51]Write i2c OK [23:19:51]MH_I2C_Read... [23:19:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:19:51]Read from MH i2c: E2 [23:19:51]MH_I2C_Read... [23:19:51]Read from MH i2c: E2 0E 00 [23:19:51]MH_I2C_Read... [23:19:51]Read from MH i2c: E2 0E 00 44 5C 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 53 [23:19:51]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [23:19:51]wFMCommunicate OK [23:19:51]SAM_PROTO_GetShiftState done [23:19:51]FM_GetShiftState done [23:19:51]opened in 1709425694 [23:19:51]opened+sec_in_day 1709512094 [23:19:51]quantity*price = 24900 [23:19:51]sum+1 = 24901 [23:19:51]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4000417702005 Шоколад Ritter SPORT EN лещ,лес.ор 100г 1.000 * 249.00 = 249.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870002329999 Напиток Lipton IceTea 1л лимон Regular 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700003150400 Водка Фрунзе 0,75 1.000 * 530.00 = 530.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000027340020 Пакет бумажный витая ручка 1.000 * 25.00 = 25.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 1183.00 НСП 1% : 10.46 НДС 12% : 125.61 Наличными: 0.00 Безнал.: 1183.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 100 03.03.2024 23:20 Смена: 331 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874796 ФД: 45263 ФПД: 164038886652143 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T232005&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45263&fm=164038886652143&tin=02508201610067®Number=0000000000090572&sum=118300 0 [23:19:52]StoreToDocumentArchive [23:19:52]shift 331 fd 45263 [23:19:52]save to /storage/0331/doc_00045263 [23:19:52]save last doc name /storage/0331/doc_00045263 to /storage/kkm_last_doc_name [23:19:52]save OK [23:19:52]Clear old archive folders... [23:19:52]ProcessDocumentItem done err = 0, tmpTLVsize=770 [23:19:52]tlvbuf is 01CD2C50 [23:19:52]SAM_PROTO_ClearQueue [23:19:52]wFMCommunicate request_size=4 [23:19:52]MH_SAM_APDU [23:19:52]CAPDU: 80 09 00 00 [23:19:52]Write to MH i2c: E2 08 00 51 5C 80 09 00 00 00 00 00 00 1F [23:19:52]Write i2c OK [23:19:52]MH_I2C_Read... [23:19:52]Read from MH i2c: E2 [23:19:52]MH_I2C_Read... [23:19:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:19:52]Read from MH i2c: E2 03 00 [23:19:52]MH_I2C_Read... [23:19:52]Read from MH i2c: E2 03 00 51 5C 00 90 00 21 [23:19:52]RAPDU: 90 00 [23:19:52]wFMCommunicate OK [23:19:52]SAM_PROTO_ClearQueue done [23:19:52]KKMCreateOFDPacket [23:19:52]OFDProtocolAddRootSTLVToBuf [23:19:52]FM_MakeSignedData [23:19:52]FM_MakeSignedData [23:19:52]SAM_PROTO_SignData [23:19:52]wFMCommunicate request_size=4 [23:19:52]MH_SAM_APDU [23:19:52]CAPDU: 80 0D 01 02 [23:19:52]Write to MH i2c: E2 08 00 52 5C 80 0D 01 02 00 00 00 00 27 [23:19:52]Write i2c OK [23:19:52]MH_I2C_Read... [23:19:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:19:52]Read from MH i2c: E2 [23:19:52]MH_I2C_Read... [23:19:52]Read from MH i2c: E2 03 00 [23:19:52]MH_I2C_Read... [23:19:52]Read from MH i2c: E2 03 00 52 5C 00 90 00 22 [23:19:52]RAPDU: 90 00 [23:19:52]wFMCommunicate OK [23:19:52]wFMCommunicate request_size=255 [23:19:52]MH_SAM_APDU [23:19:52]CAPDU: 80 0D 02 02 FA 03 00 02 03 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 30 30 30 34 31 37 37 30 30 30 30 31 06 04 39 00 D0 A8 D0 BE D0 BA 20 52 69 74 74 65 72 20 53 50 4F 52 54 20 45 4E 20 D0 BC D0 BE D0 BB 20 D0 BB D0 B5 D1 89 D0 B8 D0 BD D0 B0 2C D1 84 D1 83 D0 BD D0 B4 20 31 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 44 61 00 00 00 00 13 04 06 00 44 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 30 30 30 34 31 37 37 30 32 30 30 35 06 04 37 00 D0 A8 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 52 69 74 74 65 72 20 53 50 4F 52 54 20 45 4E 20 D0 BB D0 B5 D1 89 2C D0 BB D0 B5 D1 81 2E D0 BE D1 80 20 31 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 44 61 00 00 00 00 13 04 06 00 44 61 00 00 00 00 [23:19:52]Write to MH i2c: E2 02 01 53 5C 80 0D 02 02 FA 00 03 00 02 03 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 30 30 30 34 31 37 37 30 30 30 30 31 06 04 39 00 D0 A8 D0 BE D0 BA 20 52 69 74 74 65 72 20 53 50 4F 52 54 20 45 4E 20 D0 BC D0 BE D0 BB 20 D0 BB D0 B5 D1 89 D0 B8 D0 BD D0 B0 2C D1 84 D1 83 D0 BD D0 B4 20 31 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 44 61 00 00 00 00 13 04 06 00 44 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 30 30 30 34 31 37 37 30 32 30 30 35 06 04 37 00 D0 A8 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 52 69 74 74 65 72 20 53 50 4F 52 54 20 45 4E 20 D0 BB D0 B5 D1 89 2C D0 BB D0 B5 D1 81 2E D0 BE D1 80 20 31 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 44 61 00 00 00 00 13 04 06 00 44 61 00 00 00 00 00 00 F2 [23:19:52]Write i2c OK [23:19:52]MH_I2C_Read... [23:19:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:19:52]Read from MH i2c: E2 [23:19:52]MH_I2C_Read... [23:19:52]Read from MH i2c: E2 03 00 [23:19:52]MH_I2C_Read... [23:19:52]Read from MH i2c: E2 03 00 53 5C 00 90 00 23 [23:19:52]RAPDU: 90 00 [23:19:52]wFMCommunicate OK [23:19:52]wFMCommunicate request_size=255 [23:19:52]MH_SAM_APDU [23:19:52]CAPDU: 80 0D 02 02 FA F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 39 39 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 34 30 30 06 04 1C 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A4 D1 80 D1 83 D0 BD D0 B7 D0 B5 20 30 2C 37 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 CF 00 00 00 00 13 04 06 00 08 CF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 0D 00 32 30 30 30 [23:19:52]Write to MH i2c: E2 02 01 54 5C 80 0D 02 02 FA 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 39 39 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 34 30 30 06 04 1C 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A4 D1 80 D1 83 D0 BD D0 B7 D0 B5 20 30 2C 37 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 CF 00 00 00 00 13 04 06 00 08 CF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 0D 00 32 30 30 30 00 00 A6 [23:19:52]Write i2c OK [23:19:52]MH_I2C_Read... [23:19:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:19:53]Read from MH i2c: E2 [23:19:53]MH_I2C_Read... [23:19:53]Read from MH i2c: E2 03 00 [23:19:53]MH_I2C_Read... [23:19:53]Read from MH i2c: E2 03 00 54 5C 00 90 00 24 [23:19:53]RAPDU: 90 00 [23:19:53]wFMCommunicate OK [23:19:53]wFMCommunicate request_size=255 [23:19:53]MH_SAM_APDU [23:19:53]CAPDU: 80 0D 02 02 FA 30 32 37 33 34 30 30 32 30 06 04 31 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 B1 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D1 82 D0 B0 D1 8F 20 D1 80 D1 83 D1 87 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C CE 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 16 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 11 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C CE 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 A5 05 E5 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 [23:19:53]Write to MH i2c: E2 02 01 55 5C 80 0D 02 02 FA 00 30 32 37 33 34 30 30 32 30 06 04 31 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 B1 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D1 82 D0 B0 D1 8F 20 D1 80 D1 83 D1 87 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C CE 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 16 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 11 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C CE 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 A5 05 E5 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 0E [23:19:53]Write i2c OK [23:19:53]MH_I2C_Read... [23:19:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:19:53]Read from MH i2c: E2 [23:19:53]MH_I2C_Read... [23:19:53]Read from MH i2c: E2 03 00 [23:19:53]MH_I2C_Read... [23:19:53]Read from MH i2c: E2 03 00 55 5C 00 90 00 25 [23:19:53]RAPDU: 90 00 [23:19:53]wFMCommunicate OK [23:19:53]wFMCommunicate request_size=29 [23:19:53]MH_SAM_APDU [23:19:53]CAPDU: 80 0D 02 02 18 38 37 34 37 39 36 10 04 04 00 CF B0 00 00 35 04 06 00 95 31 47 91 78 EF [23:19:53]Write to MH i2c: E2 20 00 56 5C 80 0D 02 02 18 00 38 37 34 37 39 36 10 04 04 00 CF B0 00 00 35 04 06 00 95 31 47 91 78 EF 00 00 80 [23:19:53]Write i2c OK [23:19:53]MH_I2C_Read... [23:19:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:19:53]Read from MH i2c: E2 [23:19:53]MH_I2C_Read... [23:19:53]Read from MH i2c: E2 03 00 [23:19:53]MH_I2C_Read... [23:19:53]Read from MH i2c: E2 03 00 56 5C 00 90 00 26 [23:19:53]RAPDU: 90 00 [23:19:53]wFMCommunicate OK [23:19:53]wFMCommunicate request_size=4 [23:19:53]MH_SAM_APDU [23:19:53]CAPDU: 80 0D 03 02 [23:19:53]Write to MH i2c: E2 08 00 57 5C 80 0D 03 02 00 00 00 00 2E [23:19:53]Write i2c OK [23:19:53]MH_I2C_Read... [23:19:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:19:53]Read from MH i2c: E2 [23:19:53]MH_I2C_Read... [23:19:53]Read from MH i2c: E2 0B 00 [23:19:53]MH_I2C_Read... [23:19:53]Read from MH i2c: E2 0B 00 57 5C 00 03 7B 40 3A E4 A0 EF C0 90 00 5A [23:19:53]RAPDU: 03 7B 40 3A E4 A0 EF C0 90 00 [23:19:53]wFMCommunicate OK [23:19:53]SAM_PROTO_SignData done [23:19:53]FM_MakeSignedData done [23:19:53]CreateOFDProtocolMessage [23:19:53]wFMCommunicate request_size=4 [23:19:53]MH_SAM_APDU [23:19:53]CAPDU: 80 11 00 00 [23:19:53]Write to MH i2c: E2 08 00 58 5C 80 11 00 00 00 00 00 00 2E [23:19:53]Write i2c OK [23:19:53]MH_I2C_Read... [23:19:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:19:53]Read from MH i2c: E2 [23:19:53]MH_I2C_Read... [23:19:53]Read from MH i2c: E2 17 00 [23:19:53]MH_I2C_Read... [23:19:53]Read from MH i2c: E2 17 00 58 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 8A [23:19:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [23:19:53]wFMCommunicate OK [23:19:53]CreateOFDProtocolMessage done [23:19:53]OFDSenderStorePacket 45263 [23:19:53]StoreOFDPacket docnum=45263 [23:19:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 16 03 00 00 C3 77 0E 03 9A 00 5A 03 01 00 03 00 02 03 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 30 30 30 34 31 37 37 30 30 30 30 31 06 04 39 00 D0 A8 D0 BE D0 BA 20 52 69 74 74 65 72 20 53 50 4F 52 54 20 45 4E 20 D0 BC D0 BE D0 BB 20 D0 BB D0 B5 D1 89 D0 B8 D0 BD D0 B0 2C D1 84 D1 83 D0 BD D0 B4 20 31 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 44 61 00 00 00 00 13 04 06 00 44 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 30 30 30 34 31 37 37 30 32 30 30 35 06 04 37 00 D0 A8 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 52 69 74 74 65 72 20 53 50 4F 52 54 20 45 4E 20 D0 BB D0 B5 D1 89 2C D0 BB D0 B5 D1 81 2E D0 BE D1 80 20 31 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 44 61 00 00 00 00 13 04 06 00 44 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 39 39 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 34 30 30 06 04 1C 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A4 D1 80 D1 83 D0 BD D0 B7 D0 B5 20 30 2C 37 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 CF 00 00 00 00 13 04 06 00 08 CF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 0D 00 32 30 30 30 30 32 37 33 34 30 30 32 30 06 04 31 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 B1 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D1 82 D0 B0 D1 8F 20 D1 80 D1 83 D1 87 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C CE 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 16 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 11 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C CE 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 A5 05 E5 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 CF B0 00 00 35 04 06 00 95 31 47 91 78 EF 03 7B 40 3A E4 A0 EF C0 [23:19:53]CheckFolder [23:19:53]dirname=/storage/ofd_packets [23:19:53]CheckFolder done [23:19:53]ProducePacketName [23:19:53]name=ofd_packets/00045263 [23:19:53]NVStorageSaveData ofd_packets/00045263 [23:19:53]File name is /storage/ofd_packets/00045263 [23:19:53]Write 820 bytes [23:19:53]NVStorageSaveData done [23:19:53]OFDSenderStorePacket done [23:19:53]KKMCreateOFDPacket done [23:19:53]NVStorageSaveData kkm_last_timestamp [23:19:53]File name is /storage/kkm_last_timestamp [23:19:53]Write 4 bytes [23:19:53]NVStorageSaveData done [23:19:53]ExternCall_PrintAddStr [23:19:53]wPrintStart [23:19:53]Write to MH i2c: 01 00 00 59 5C B5 [23:19:53]Write i2c OK [23:19:53]MH_I2C_Read... [23:19:53]Read from MH i2c: 01 [23:19:53]MH_I2C_Read... [23:19:53]Read from MH i2c: 01 07 00 [23:19:53]MH_I2C_Read... [23:19:53]Read from MH i2c: 01 07 00 59 5C 00 00 00 00 00 FF 0F CA [23:19:53]RasterBufferAndPrint [23:19:53]line Счет N : (3)184222 [23:19:53]line ИНН: 02508201610067 [23:19:53]line Контрольно-Кассовый Чек [23:19:53]line ПРОДАЖА [23:19:53]line Товар: 4000417700001 [23:19:53]line Шок Ritter SPORT EN мол лещина,фунд 100г [23:19:53]line 1.000 * 249.00 [23:19:53]line = 249.00 [23:19:53]line НДС 12% НСП 1% [23:19:53]line > о реализуемом товаре [23:19:53]line Товар: 4000417702005 [23:19:53]line Шоколад Ritter SPORT EN лещ,лес.ор 100г [23:19:53]line 1.000 * 249.00 [23:19:53]line = 249.00 [23:19:53]line НДС 12% НСП 1% [23:19:53]line > о реализуемом товаре [23:19:53]line Товар: 4870002329999 [23:19:53]line Напиток Lipton IceTea 1л лимон Regular [23:19:53]line 1.000 * 130.00 [23:19:53]line = 130.00 [23:19:53]line НДС 12% НСП 1% [23:19:53]line > о реализуемом товаре [23:19:53]line Товар: 4700003150400 [23:19:53]line Водка Фрунзе 0,75 [23:19:53]line 1.000 * 530.00 [23:19:53]line = 530.00 [23:19:53]line НДС 12% НСП 1% [23:19:53]line > о реализуемом товаре [23:19:53]line Товар: 2000027340020 [23:19:53]line Пакет бумажный витая ручка [23:19:53]line 1.000 * 25.00 [23:19:53]line = 25.00 [23:19:53]line НДС 12% НСП 1% [23:19:53]line > о реализуемом товаре [23:19:53]line ИТОГО: 1183.00 [23:19:53]line НСП 1% : 10.46 [23:19:53]line НДС 12% : 125.61 [23:19:53]line Наличными: 0.00 [23:19:53]line Безнал.: 1183.00 [23:19:53]line Место: АЗС № 25 "Партнер Нефть" [23:19:53]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [23:19:53]line СНО: Общий режим [23:19:53]line Чек 100 03.03.2024 23:20 [23:19:53]line Смена: 331 ФФД: 1.0 [23:19:53]line ЗНМ: 0300000013 [23:19:53]line РНМ: 0000000000090572 [23:19:53]line Версия ККМ: 001 [23:19:53]line Платежная система: Бакай Банк [23:19:53]line ФМ: 0000000000874796 [23:19:53]line ФД: 45263 [23:19:53]line ФПД: 164038886652143 [23:19:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T232005&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45263&fm=164038886652143&tin=02508201610067®Number=0000000000090572&sum=118300 [23:19:54]OFD Sender: Processing packet 45263 [packets to send 17, broken 16] [23:19:54]ProducePacketName [23:19:54]name=ofd_packets/00045263 [23:19:54]OFD Sender: To server: pG, [23:19:54]CommunicateWithHost lk.salyk.kg:30040 [23:19:54]ConnectInit lk.salyk.kg [23:19:54]line 0 [23:19:54]written 0, free lines is 4095 [23:19:54]Connected sock=10 [23:19:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 16 03 00 00 C3 77 0E 03 9A 00 5A 03 01 00 03 00 02 03 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 30 30 30 34 31 37 37 30 30 30 30 31 06 04 39 00 D0 A8 D0 BE D0 BA 20 52 69 74 74 65 72 20 53 50 4F 52 54 20 45 4E 20 D0 BC D0 BE D0 BB 20 D0 BB D0 B5 D1 89 D0 B8 D0 BD D0 B0 2C D1 84 D1 83 D0 BD D0 B4 20 31 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 44 61 00 00 00 00 13 04 06 00 44 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 30 30 30 34 31 37 37 30 32 30 30 35 06 04 37 00 D0 A8 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 52 69 74 74 65 72 20 53 50 4F 52 54 20 45 4E 20 D0 BB D0 B5 D1 89 2C D0 BB D0 B5 D1 81 2E D0 BE D1 80 20 31 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 44 61 00 00 00 00 13 04 06 00 44 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 39 39 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 34 30 30 06 04 1C 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A4 D1 80 D1 83 D0 BD D0 B7 D0 B5 20 30 2C 37 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 CF 00 00 00 00 13 04 06 00 08 CF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 0D 00 32 30 30 30 30 32 37 33 34 30 30 32 30 06 04 31 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 B1 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D1 82 D0 B0 D1 8F 20 D1 80 D1 83 D1 87 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C CE 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 16 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 11 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C CE 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 A5 05 E5 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 CF B0 00 00 35 04 06 00 95 31 47 91 78 EF 03 7B 40 3A E4 A0 EF C0 [23:19:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 6E 83 47 00 5B CA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 CF B0 00 00 F4 03 04 00 69 B1 E4 65 B6 04 01 00 00 5F 2C 10 51 88 4C 10 CE [23:19:54]CommunicateWithHost err = 0 [23:19:54]CheckOFDResponse [23:19:54]1017 (14) - 77093643461234 [23:19:54]1041 (16) - 0000000000874796 [23:19:54]1040 (4) - 45263 [23:19:54]1012 (4) - 03.03.2024 17:20 [23:19:54]1206 (1) - 0 [23:19:54]OFD Sender: Remove packet 45263 [23:19:54]ProducePacketName [23:19:54]name=ofd_packets/00045263 [23:19:54]NVStorageDeleteData [23:19:54]Write to MH i2c: 01 00 00 9E 5C FA [23:19:54]Write i2c OK [23:19:54]MH_I2C_Read... [23:19:54]Read from MH i2c: 01 [23:19:54]MH_I2C_Read... [23:19:54]Read from MH i2c: 01 07 00 [23:19:54]MH_I2C_Read... [23:19:54]Read from MH i2c: 01 07 00 9E 5C 00 00 00 00 00 A5 0B B1 [23:19:54]RasterBufferAndPrint [23:19:54]line [23:19:54]line [23:19:54]line [23:19:54]line [23:19:54]line [23:19:54]written 0, free lines is 2995 [23:19:54]MH_Cut [23:19:54]Write to MH i2c: D1 01 00 A5 5C 01 D3 [23:19:54]Write i2c OK [23:19:54]MH_I2C_Read... [23:19:54]Read from MH i2c: D1 [23:19:54]MH_I2C_Read... [23:19:54]Read from MH i2c: D1 01 00 [23:19:54]MH_I2C_Read... [23:19:54]Read from MH i2c: D1 01 00 A5 5C 00 D2 [23:19:54]Write to MH i2c: 01 00 00 A6 5C 02 [23:19:54]Write i2c OK [23:19:54]MH_I2C_Read... [23:19:54]OFD Sender: No OFD packet to send [23:19:55]*** Cut start [23:19:55]*** Purtial cut [23:19:55]*** Stage 1: CUTSNS_PIN = 1 [23:19:57]Read from MH i2c: 01 [23:19:57]MH_I2C_Read... [23:19:57]*** Stop cut motor [23:19:57]*** Cut end [23:19:57]Read from MH i2c: 01 07 00 [23:19:57]MH_I2C_Read... [23:19:57]Read from MH i2c: 01 07 00 A6 5C 00 00 00 00 00 FF 0F 17 [23:19:57]process_action close_receipt done [23:19:57]requested_data is exist [23:19:57]produce_requested_data [23:19:57]requested_item fm.sn is exist - process it [23:19:57]wFMCommunicate request_size=4 [23:19:57]MH_SAM_APDU [23:19:57]CAPDU: 80 11 00 00 [23:19:57]Write to MH i2c: E2 08 00 A7 5C 80 11 00 00 00 00 00 00 7D [23:19:57]Write i2c OK [23:19:57]MH_I2C_Read... [23:19:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:19:57]Read from MH i2c: E2 [23:19:57]MH_I2C_Read... [23:19:57]Read from MH i2c: E2 17 00 [23:19:57]MH_I2C_Read... [23:19:57]Read from MH i2c: E2 17 00 A7 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 D9 [23:19:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [23:19:57]wFMCommunicate OK [23:19:57]requested_item fd.num is exist - process it [23:19:57]SAM_PROTO_GetFieldsCounters [23:19:57]wFMCommunicate request_size=4 [23:19:57]MH_SAM_APDU [23:19:57]CAPDU: 80 13 00 00 [23:19:57]Write to MH i2c: E2 08 00 A8 5C 80 13 00 00 00 00 00 00 80 [23:19:57]Write i2c OK [23:19:57]MH_I2C_Read... [23:19:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:19:57]Read from MH i2c: E2 [23:19:57]MH_I2C_Read... [23:19:57]Read from MH i2c: E2 62 00 [23:19:57]MH_I2C_Read... [23:19:57]Read from MH i2c: E2 62 00 A8 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 CF B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 9F [23:19:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 CF B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:19:57]wFMCommunicate OK [23:19:57]SAM_PROTO_GetFieldsCounters done [23:19:57]requested_item shift.num is exist - process it [23:19:57]requested_item shift.opened is exist - process it [23:19:57]req_shift_opened [23:19:57]FM_GetShiftState [23:19:57]SAM_PROTO_GetShiftState [23:19:57]wFMCommunicate request_size=4 [23:19:57]MH_SAM_APDU [23:19:57]CAPDU: 80 13 01 00 [23:19:57]Write to MH i2c: E2 08 00 A9 5C 80 13 01 00 00 00 00 00 82 [23:19:57]Write i2c OK [23:19:57]MH_I2C_Read... [23:19:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:19:57]Read from MH i2c: E2 [23:19:57]MH_I2C_Read... [23:19:57]Read from MH i2c: E2 0E 00 [23:19:57]MH_I2C_Read... [23:19:57]Read from MH i2c: E2 0E 00 A9 5C 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 B8 [23:19:57]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [23:19:57]wFMCommunicate OK [23:19:57]SAM_PROTO_GetShiftState done [23:19:57]FM_GetShiftState done [23:19:57]req_shift_opened done [23:19:57]requested_item shift.open_date is exist - process it [23:19:57]req_shift_open_date [23:19:57]req_shift_open_date done [23:19:57]produce_requested_data done [23:19:57]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45263,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [23:19:57]process_action_free close_receipt [23:19:57]json_value_free [23:19:57]json_value_free done [23:19:57]process_json_proto returns [23:19:57]Send response to host [23:19:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45263,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [23:19:57]free response buf [23:19:57]execute_script done [23:19:57]execute_script returns [23:19:57]free content buf [23:19:58]Sock 7.Close socket [23:19:58]Sock 7.Thread stoped [23:19:59]OFD Sender: No OFD packet to send [23:20:04]OFD Sender: No OFD packet to send [23:20:09]OFD Sender: No OFD packet to send [23:20:14]OFD Sender: No OFD packet to send [23:20:19]OFD Sender: No OFD packet to send [23:20:24]OFD Sender: No OFD packet to send [23:20:29]OFD Sender: No OFD packet to send [23:20:34]OFD Sender: No OFD packet to send [23:20:39]OFD Sender: No OFD packet to send [23:20:44]OFD Sender: No OFD packet to send [23:20:49]OFD Sender: No OFD packet to send [23:20:54]OFD Sender: No OFD packet to send [23:20:59]OFD Sender: No OFD packet to send [23:21:04]OFD Sender: No OFD packet to send [23:21:09]OFD Sender: No OFD packet to send [23:21:14]OFD Sender: No OFD packet to send [23:21:19]OFD Sender: No OFD packet to send [23:21:24]OFD Sender: No OFD packet to send [23:21:29]OFD Sender: No OFD packet to send [23:21:34]OFD Sender: No OFD packet to send [23:21:39]OFD Sender: No OFD packet to send [23:21:44]OFD Sender: No OFD packet to send [23:21:49]OFD Sender: No OFD packet to send [23:21:54]OFD Sender: No OFD packet to send [23:21:59]OFD Sender: No OFD packet to send [23:22:04]OFD Sender: No OFD packet to send [23:22:09]OFD Sender: No OFD packet to send [23:22:14]OFD Sender: No OFD packet to send [23:22:19]OFD Sender: No OFD packet to send [23:22:24]OFD Sender: No OFD packet to send [23:22:29]OFD Sender: No OFD packet to send [23:22:34]OFD Sender: No OFD packet to send [23:22:39]OFD Sender: No OFD packet to send [23:22:44]OFD Sender: No OFD packet to send [23:22:49]OFD Sender: No OFD packet to send [23:22:54]OFD Sender: No OFD packet to send [23:22:59]OFD Sender: No OFD packet to send [23:23:04]OFD Sender: No OFD packet to send [23:23:09]OFD Sender: No OFD packet to send [23:23:14]OFD Sender: No OFD packet to send [23:23:20]OFD Sender: No OFD packet to send [23:23:25]OFD Sender: No OFD packet to send [23:23:30]OFD Sender: No OFD packet to send [23:23:35]OFD Sender: No OFD packet to send [23:23:40]OFD Sender: No OFD packet to send [23:23:45]OFD Sender: No OFD packet to send [23:23:50]OFD Sender: No OFD packet to send [23:23:55]OFD Sender: No OFD packet to send [23:24:00]OFD Sender: No OFD packet to send [23:24:05]OFD Sender: No OFD packet to send [23:24:10]OFD Sender: No OFD packet to send [23:24:15]OFD Sender: No OFD packet to send [23:24:20]OFD Sender: No OFD packet to send [23:24:25]OFD Sender: No OFD packet to send [23:24:30]OFD Sender: No OFD packet to send [23:24:35]OFD Sender: No OFD packet to send [23:24:40]OFD Sender: No OFD packet to send [23:24:45]OFD Sender: No OFD packet to send [23:24:50]OFD Sender: No OFD packet to send [23:24:55]OFD Sender: No OFD packet to send [23:25:00]OFD Sender: No OFD packet to send [23:25:05]OFD Sender: No OFD packet to send [23:25:10]OFD Sender: No OFD packet to send [23:25:15]OFD Sender: No OFD packet to send [23:25:20]OFD Sender: No OFD packet to send [23:25:25]OFD Sender: No OFD packet to send [23:25:30]OFD Sender: No OFD packet to send [23:25:35]OFD Sender: No OFD packet to send [23:25:40]OFD Sender: No OFD packet to send [23:25:45]OFD Sender: No OFD packet to send [23:25:50]OFD Sender: No OFD packet to send [23:25:55]OFD Sender: No OFD packet to send [23:26:00]OFD Sender: No OFD packet to send [23:26:05]OFD Sender: No OFD packet to send [23:26:10]OFD Sender: No OFD packet to send [23:26:15]OFD Sender: No OFD packet to send [23:26:20]OFD Sender: No OFD packet to send [23:26:25]OFD Sender: No OFD packet to send [23:26:30]OFD Sender: No OFD packet to send [23:26:35]OFD Sender: No OFD packet to send [23:26:40]OFD Sender: No OFD packet to send [23:26:45]OFD Sender: No OFD packet to send [23:26:50]OFD Sender: No OFD packet to send [23:26:55]OFD Sender: No OFD packet to send [23:27:00]OFD Sender: No OFD packet to send [23:27:05]OFD Sender: No OFD packet to send [23:27:10]OFD Sender: No OFD packet to send [23:27:15]OFD Sender: No OFD packet to send [23:27:20]OFD Sender: No OFD packet to send [23:27:25]OFD Sender: No OFD packet to send [23:27:30]OFD Sender: No OFD packet to send [23:27:35]OFD Sender: No OFD packet to send [23:27:40]OFD Sender: No OFD packet to send [23:27:45]OFD Sender: No OFD packet to send [23:27:50]OFD Sender: No OFD packet to send [23:27:55]OFD Sender: No OFD packet to send [23:28:00]OFD Sender: No OFD packet to send [23:28:05]OFD Sender: No OFD packet to send [23:28:10]OFD Sender: No OFD packet to send [23:28:15]OFD Sender: No OFD packet to send [23:28:20]OFD Sender: No OFD packet to send [23:28:25]OFD Sender: No OFD packet to send [23:28:30]OFD Sender: No OFD packet to send [23:28:35]OFD Sender: No OFD packet to send [23:28:40]OFD Sender: No OFD packet to send [23:28:45]OFD Sender: No OFD packet to send [23:28:50]OFD Sender: No OFD packet to send [23:28:55]OFD Sender: No OFD packet to send [23:29:00]OFD Sender: No OFD packet to send [23:29:05]OFD Sender: No OFD packet to send [23:29:10]OFD Sender: No OFD packet to send [23:29:15]OFD Sender: No OFD packet to send [23:29:20]OFD Sender: No OFD packet to send [23:29:25]OFD Sender: No OFD packet to send [23:29:30]OFD Sender: No OFD packet to send [23:29:35]OFD Sender: No OFD packet to send [23:29:40]OFD Sender: No OFD packet to send [23:29:45]OFD Sender: No OFD packet to send [23:29:50]OFD Sender: No OFD packet to send [23:29:55]OFD Sender: No OFD packet to send [23:30:00]OFD Sender: No OFD packet to send [23:30:05]OFD Sender: No OFD packet to send [23:30:10]OFD Sender: No OFD packet to send [23:30:15]OFD Sender: No OFD packet to send [23:30:20]OFD Sender: No OFD packet to send [23:30:25]OFD Sender: No OFD packet to send [23:30:30]OFD Sender: No OFD packet to send [23:30:35]OFD Sender: No OFD packet to send [23:30:40]OFD Sender: No OFD packet to send [23:30:45]OFD Sender: No OFD packet to send [23:30:50]OFD Sender: No OFD packet to send [23:30:55]OFD Sender: No OFD packet to send [23:31:00]OFD Sender: No OFD packet to send [23:31:05]OFD Sender: No OFD packet to send [23:31:10]OFD Sender: No OFD packet to send [23:31:15]OFD Sender: No OFD packet to send [23:31:20]OFD Sender: No OFD packet to send [23:31:25]OFD Sender: No OFD packet to send [23:31:30]OFD Sender: No OFD packet to send [23:31:35]OFD Sender: No OFD packet to send [23:31:40]OFD Sender: No OFD packet to send [23:31:45]OFD Sender: No OFD packet to send [23:31:50]OFD Sender: No OFD packet to send [23:31:55]OFD Sender: No OFD packet to send [23:32:00]OFD Sender: No OFD packet to send [23:32:05]OFD Sender: No OFD packet to send [23:32:08]accept exits with 9 [23:32:08]New connection [23:32:08]New thread 3067157860 created [23:32:08]Thread 3067014500 joined [23:32:08]Waiting for new connection... [23:32:08] Sock 9.Parse request [23:32:08]Sock 9.Check first char [23:32:08]Sock 9.First char is OK [23:32:08]request: POST /json_proto HTTP/1.0 [23:32:08]Method: POST [23:32:08]URL: /json_proto [23:32:08]Method is POST - this is cgi request [23:32:08]url: /json_proto [23:32:08]query_string will be loaded in cgi processing [23:32:08]execute_cgi json_proto POST (null) [23:32:08]execute_cgi path=json_proto method=POST [23:32:08]POST find Content-Length [23:32:08]Host: 172.17.48.198:8080 [23:32:08]Content-Length: 799 [23:32:08]Content-Type: application/json [23:32:08] [23:32:08]POST finish read [23:32:08]Found Content-Length = 799 [23:32:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184223", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 138.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:32:08]execute_script... [23:32:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184223", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 138.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:32:08]POST & json_proto [23:32:08]process_json_proto [23:32:08]json parsed OK: [23:32:08]protocol is kg_v1.0 [23:32:08]action value=close_receipt [23:32:08]process_action close_receipt [23:32:08]cmd_close_receipt [23:32:08]MH_GetDate [23:32:08]Write to MH i2c: F0 00 00 AA 5C F5 [23:32:08]Write i2c OK [23:32:08]MH_I2C_Read... [23:32:08]Read from MH i2c: F0 [23:32:08]MH_I2C_Read... [23:32:08]Read from MH i2c: F0 09 00 [23:32:08]MH_I2C_Read... [23:32:08]Read from MH i2c: F0 09 00 AA 5C 00 87 08 E5 65 CE C4 D4 65 A2 [23:32:08]GetLastDocTimeStamp 1709508005 [23:32:08]current date 1709508743 [23:32:08]FM_GetShiftState [23:32:08]SAM_PROTO_GetShiftState [23:32:08]wFMCommunicate request_size=4 [23:32:08]MH_SAM_APDU [23:32:08]CAPDU: 80 13 01 00 [23:32:08]Write to MH i2c: E2 08 00 AB 5C 80 13 01 00 00 00 00 00 84 [23:32:08]Write i2c OK [23:32:08]MH_I2C_Read... [23:32:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:32:09]Read from MH i2c: E2 [23:32:09]MH_I2C_Read... [23:32:09]Read from MH i2c: E2 0E 00 [23:32:09]MH_I2C_Read... [23:32:09]Read from MH i2c: E2 0E 00 AB 5C 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 BA [23:32:09]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [23:32:09]wFMCommunicate OK [23:32:09]SAM_PROTO_GetShiftState done [23:32:09]FM_GetShiftState done [23:32:09]opened in 1709425694 [23:32:09]opened+sec_in_day 1709512094 [23:32:09]quantity*price = 13800 [23:32:09]sum+1 = 13801 [23:32:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 138.00 НСП 1% : 1.22 НДС 12% : 14.65 Наличными: 0.00 Безнал.: 138.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 101 03.03.2024 23:32 Смена: 331 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874796 ФД: 45264 ФПД: 183831780344077 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T233223&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45264&fm=183831780344077&tin=02508201610067®Number=0000000000090572&sum=13800 0 [23:32:10]StoreToDocumentArchive [23:32:10]shift 331 fd 45264 [23:32:10]save to /storage/0331/doc_00045264 [23:32:10]save last doc name /storage/0331/doc_00045264 to /storage/kkm_last_doc_name [23:32:10]save OK [23:32:10]Clear old archive folders... [23:32:10]ProcessDocumentItem done err = 0, tmpTLVsize=274 [23:32:10]tlvbuf is 01B5F7C0 [23:32:10]SAM_PROTO_ClearQueue [23:32:10]wFMCommunicate request_size=4 [23:32:10]MH_SAM_APDU [23:32:10]CAPDU: 80 09 00 00 [23:32:10]Write to MH i2c: E2 08 00 B8 5C 80 09 00 00 00 00 00 00 86 [23:32:10]Write i2c OK [23:32:10]MH_I2C_Read... [23:32:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:32:10]Read from MH i2c: E2 [23:32:10]MH_I2C_Read... [23:32:10]Read from MH i2c: E2 03 00 [23:32:10]MH_I2C_Read... [23:32:10]Read from MH i2c: E2 03 00 B8 5C 00 90 00 88 [23:32:10]RAPDU: 90 00 [23:32:10]wFMCommunicate OK [23:32:10]SAM_PROTO_ClearQueue done [23:32:10]KKMCreateOFDPacket [23:32:10]OFDProtocolAddRootSTLVToBuf [23:32:10]FM_MakeSignedData [23:32:10]FM_MakeSignedData [23:32:10]SAM_PROTO_SignData [23:32:10]wFMCommunicate request_size=4 [23:32:10]MH_SAM_APDU [23:32:10]CAPDU: 80 0D 01 02 [23:32:10]Write to MH i2c: E2 08 00 B9 5C 80 0D 01 02 00 00 00 00 8E [23:32:10]Write i2c OK [23:32:10]MH_I2C_Read... [23:32:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:32:10]Read from MH i2c: E2 [23:32:10]MH_I2C_Read... [23:32:10]Read from MH i2c: E2 03 00 [23:32:10]MH_I2C_Read... [23:32:10]Read from MH i2c: E2 03 00 B9 5C 00 90 00 89 [23:32:10]RAPDU: 90 00 [23:32:10]wFMCommunicate OK [23:32:10]wFMCommunicate request_size=255 [23:32:10]MH_SAM_APDU [23:32:10]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 00 00 00 00 00 00 39 04 06 00 E8 35 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 87 08 E5 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 [23:32:10]Write to MH i2c: E2 02 01 BA 5C 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 00 00 00 00 00 00 39 04 06 00 E8 35 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 87 08 E5 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 00 00 53 [23:32:10]Write i2c OK [23:32:10]MH_I2C_Read... [23:32:10]OFD Sender: No OFD packet to send [23:32:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:32:10]Read from MH i2c: E2 [23:32:10]MH_I2C_Read... [23:32:10]Read from MH i2c: E2 03 00 [23:32:10]MH_I2C_Read... [23:32:10]Read from MH i2c: E2 03 00 BA 5C 00 90 00 8A [23:32:10]RAPDU: 90 00 [23:32:10]wFMCommunicate OK [23:32:10]wFMCommunicate request_size=33 [23:32:10]MH_SAM_APDU [23:32:10]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 34 37 39 36 10 04 04 00 D0 B0 00 00 35 04 06 00 A7 31 AB F7 41 0D [23:32:10]Write to MH i2c: E2 24 00 BB 5C 80 0D 02 02 1C 00 30 30 30 30 38 37 34 37 39 36 10 04 04 00 D0 B0 00 00 35 04 06 00 A7 31 AB F7 41 0D 00 00 71 [23:32:10]Write i2c OK [23:32:10]MH_I2C_Read... [23:32:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:32:10]Read from MH i2c: E2 [23:32:10]MH_I2C_Read... [23:32:10]Read from MH i2c: E2 03 00 [23:32:10]MH_I2C_Read... [23:32:10]Read from MH i2c: E2 03 00 BB 5C 00 90 00 8B [23:32:10]RAPDU: 90 00 [23:32:10]wFMCommunicate OK [23:32:10]wFMCommunicate request_size=4 [23:32:10]MH_SAM_APDU [23:32:10]CAPDU: 80 0D 03 02 [23:32:10]Write to MH i2c: E2 08 00 BC 5C 80 0D 03 02 00 00 00 00 93 [23:32:10]Write i2c OK [23:32:10]MH_I2C_Read... [23:32:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:32:10]Read from MH i2c: E2 [23:32:10]MH_I2C_Read... [23:32:10]Read from MH i2c: E2 0B 00 [23:32:10]MH_I2C_Read... [23:32:10]Read from MH i2c: E2 0B 00 BC 5C 00 BA 05 7B 93 F6 48 87 3F 90 00 65 [23:32:10]RAPDU: BA 05 7B 93 F6 48 87 3F 90 00 [23:32:10]wFMCommunicate OK [23:32:10]SAM_PROTO_SignData done [23:32:10]FM_MakeSignedData done [23:32:10]CreateOFDProtocolMessage [23:32:10]wFMCommunicate request_size=4 [23:32:10]MH_SAM_APDU [23:32:10]CAPDU: 80 11 00 00 [23:32:10]Write to MH i2c: E2 08 00 BD 5C 80 11 00 00 00 00 00 00 93 [23:32:10]Write i2c OK [23:32:10]MH_I2C_Read... [23:32:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:32:10]Read from MH i2c: E2 [23:32:10]MH_I2C_Read... [23:32:10]Read from MH i2c: E2 17 00 [23:32:10]MH_I2C_Read... [23:32:10]Read from MH i2c: E2 17 00 BD 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 EF [23:32:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [23:32:10]wFMCommunicate OK [23:32:10]CreateOFDProtocolMessage done [23:32:10]OFDSenderStorePacket 45264 [23:32:10]StoreOFDPacket docnum=45264 [23:32:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 26 01 00 00 7E 89 1E 01 C2 2A 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 00 00 00 00 00 00 39 04 06 00 E8 35 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 87 08 E5 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 D0 B0 00 00 35 04 06 00 A7 31 AB F7 41 0D BA 05 7B 93 F6 48 87 3F [23:32:10]CheckFolder [23:32:10]dirname=/storage/ofd_packets [23:32:10]CheckFolder done [23:32:10]ProducePacketName [23:32:10]name=ofd_packets/00045264 [23:32:10]NVStorageSaveData ofd_packets/00045264 [23:32:10]File name is /storage/ofd_packets/00045264 [23:32:10]Write 324 bytes [23:32:10]NVStorageSaveData done [23:32:10]OFDSenderStorePacket done [23:32:10]KKMCreateOFDPacket done [23:32:10]NVStorageSaveData kkm_last_timestamp [23:32:10]File name is /storage/kkm_last_timestamp [23:32:10]Write 4 bytes [23:32:10]NVStorageSaveData done [23:32:10]ExternCall_PrintAddStr [23:32:10]wPrintStart [23:32:10]Write to MH i2c: 01 00 00 BE 5C 1A [23:32:10]Write i2c OK [23:32:10]MH_I2C_Read... [23:32:10]Read from MH i2c: 01 [23:32:10]MH_I2C_Read... [23:32:10]Read from MH i2c: 01 07 00 [23:32:10]MH_I2C_Read... [23:32:10]Read from MH i2c: 01 07 00 BE 5C 00 00 00 00 00 FF 0F 2F [23:32:10]RasterBufferAndPrint [23:32:10]line Счет N : (3)184223 [23:32:10]line ИНН: 02508201610067 [23:32:10]line Контрольно-Кассовый Чек [23:32:10]line ПРОДАЖА [23:32:10]line Товар: 4640030091645 [23:32:10]line Сигареты ESSE Exchange M [23:32:10]line 1.000 * 138.00 [23:32:10]line = 138.00 [23:32:10]line НДС 12% НСП 1% [23:32:10]line > о реализуемом товаре [23:32:10]line ИТОГО: 138.00 [23:32:10]line НСП 1% : 1.22 [23:32:10]line НДС 12% : 14.65 [23:32:10]line Наличными: 0.00 [23:32:10]line Безнал.: 138.00 [23:32:10]line Место: АЗС № 25 "Партнер Нефть" [23:32:10]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [23:32:10]line СНО: Общий режим [23:32:10]line Чек 101 03.03.2024 23:32 [23:32:10]line Смена: 331 ФФД: 1.0 [23:32:10]line ЗНМ: 0300000013 [23:32:10]line РНМ: 0000000000090572 [23:32:10]line Версия ККМ: 001 [23:32:10]line Платежная система: Бакай Банк [23:32:10]line ФМ: 0000000000874796 [23:32:10]line ФД: 45264 [23:32:10]line ФПД: 183831780344077 [23:32:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T233223&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45264&fm=183831780344077&tin=02508201610067®Number=0000000000090572&sum=13800 [23:32:11]line 0 [23:32:11]OFD Sender: Processing packet 45264 [packets to send 17, broken 16] [23:32:11]ProducePacketName [23:32:11]name=ofd_packets/00045264 [23:32:11]OFD Sender: To server: pG, [23:32:11]CommunicateWithHost lk.salyk.kg:30040 [23:32:11]ConnectInit lk.salyk.kg [23:32:11]written 0, free lines is 4095 [23:32:11]Connected sock=10 [23:32:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 26 01 00 00 7E 89 1E 01 C2 2A 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 00 00 00 00 00 00 39 04 06 00 E8 35 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 87 08 E5 65 0E 04 04 00 4B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 D0 B0 00 00 35 04 06 00 A7 31 AB F7 41 0D BA 05 7B 93 F6 48 87 3F [23:32:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 26 DF 47 00 FE D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 D0 B0 00 00 F4 03 04 00 4A B4 E4 65 B6 04 01 00 00 71 D5 FF 55 B3 86 62 BE [23:32:11]CommunicateWithHost err = 0 [23:32:11]CheckOFDResponse [23:32:11]1017 (14) - 77093643461234 [23:32:11]1041 (16) - 0000000000874796 [23:32:11]1040 (4) - 45264 [23:32:11]1012 (4) - 03.03.2024 17:32 [23:32:11]1206 (1) - 0 [23:32:11]OFD Sender: Remove packet 45264 [23:32:11]ProducePacketName [23:32:11]name=ofd_packets/00045264 [23:32:11]NVStorageDeleteData [23:32:11]Write to MH i2c: 01 00 00 E8 5C 44 [23:32:11]Write i2c OK [23:32:11]MH_I2C_Read... [23:32:11]Read from MH i2c: 01 [23:32:11]MH_I2C_Read... [23:32:11]Read from MH i2c: 01 07 00 [23:32:11]MH_I2C_Read... [23:32:11]Read from MH i2c: 01 07 00 E8 5C 00 00 00 00 00 EF 0C 46 [23:32:11]RasterBufferAndPrint [23:32:11]line [23:32:11]line [23:32:11]line [23:32:11]line [23:32:11]line [23:32:11]written 0, free lines is 3317 [23:32:11]MH_Cut [23:32:11]Write to MH i2c: D1 01 00 EF 5C 01 1D [23:32:11]Write i2c OK [23:32:11]MH_I2C_Read... [23:32:11]Read from MH i2c: D1 [23:32:11]MH_I2C_Read... [23:32:11]Read from MH i2c: D1 01 00 [23:32:11]MH_I2C_Read... [23:32:11]Read from MH i2c: D1 01 00 EF 5C 00 1C [23:32:11]Write to MH i2c: 01 00 00 F0 5C 4C [23:32:11]Write i2c OK [23:32:11]MH_I2C_Read... [23:32:11]OFD Sender: No OFD packet to send [23:32:12]*** Cut start [23:32:12]*** Purtial cut [23:32:12]*** Stage 1: CUTSNS_PIN = 1 [23:32:14]Read from MH i2c: 01 [23:32:14]MH_I2C_Read... [23:32:14]*** Stop cut motor [23:32:14]*** Cut end [23:32:14]Read from MH i2c: 01 07 00 [23:32:14]MH_I2C_Read... [23:32:14]Read from MH i2c: 01 07 00 F0 5C 00 00 00 00 00 FF 0F 61 [23:32:14]process_action close_receipt done [23:32:14]requested_data is exist [23:32:14]produce_requested_data [23:32:14]requested_item fm.sn is exist - process it [23:32:14]wFMCommunicate request_size=4 [23:32:14]MH_SAM_APDU [23:32:14]CAPDU: 80 11 00 00 [23:32:14]Write to MH i2c: E2 08 00 F1 5C 80 11 00 00 00 00 00 00 C7 [23:32:14]Write i2c OK [23:32:14]MH_I2C_Read... [23:32:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:32:14]Read from MH i2c: E2 [23:32:14]MH_I2C_Read... [23:32:14]Read from MH i2c: E2 17 00 [23:32:14]MH_I2C_Read... [23:32:14]Read from MH i2c: E2 17 00 F1 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 23 [23:32:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [23:32:14]wFMCommunicate OK [23:32:14]requested_item fd.num is exist - process it [23:32:14]SAM_PROTO_GetFieldsCounters [23:32:14]wFMCommunicate request_size=4 [23:32:14]MH_SAM_APDU [23:32:14]CAPDU: 80 13 00 00 [23:32:14]Write to MH i2c: E2 08 00 F2 5C 80 13 00 00 00 00 00 00 CA [23:32:14]Write i2c OK [23:32:14]MH_I2C_Read... [23:32:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:32:14]Read from MH i2c: E2 [23:32:14]MH_I2C_Read... [23:32:14]Read from MH i2c: E2 62 00 [23:32:14]MH_I2C_Read... [23:32:14]Read from MH i2c: E2 62 00 F2 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 D0 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 ED [23:32:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 D0 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:32:14]wFMCommunicate OK [23:32:14]SAM_PROTO_GetFieldsCounters done [23:32:14]requested_item shift.num is exist - process it [23:32:14]requested_item shift.opened is exist - process it [23:32:14]req_shift_opened [23:32:14]FM_GetShiftState [23:32:14]SAM_PROTO_GetShiftState [23:32:14]wFMCommunicate request_size=4 [23:32:14]MH_SAM_APDU [23:32:14]CAPDU: 80 13 01 00 [23:32:14]Write to MH i2c: E2 08 00 F3 5C 80 13 01 00 00 00 00 00 CC [23:32:14]Write i2c OK [23:32:14]MH_I2C_Read... [23:32:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:32:14]Read from MH i2c: E2 [23:32:14]MH_I2C_Read... [23:32:14]Read from MH i2c: E2 0E 00 [23:32:14]MH_I2C_Read... [23:32:14]Read from MH i2c: E2 0E 00 F3 5C 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 02 [23:32:14]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [23:32:14]wFMCommunicate OK [23:32:14]SAM_PROTO_GetShiftState done [23:32:14]FM_GetShiftState done [23:32:14]req_shift_opened done [23:32:14]requested_item shift.open_date is exist - process it [23:32:14]req_shift_open_date [23:32:14]req_shift_open_date done [23:32:14]produce_requested_data done [23:32:14]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45264,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [23:32:14]process_action_free close_receipt [23:32:14]json_value_free [23:32:14]json_value_free done [23:32:14]process_json_proto returns [23:32:14]Send response to host [23:32:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45264,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [23:32:14]free response buf [23:32:14]execute_script done [23:32:14]execute_script returns [23:32:14]free content buf [23:32:14]Sock 9.Close socket [23:32:14]Sock 9.Thread stoped [23:32:16]OFD Sender: No OFD packet to send [23:32:21]OFD Sender: No OFD packet to send [23:32:26]OFD Sender: No OFD packet to send [23:32:31]OFD Sender: No OFD packet to send [23:32:36]OFD Sender: No OFD packet to send [23:32:41]OFD Sender: No OFD packet to send [23:32:46]OFD Sender: No OFD packet to send [23:32:51]OFD Sender: No OFD packet to send [23:32:56]OFD Sender: No OFD packet to send [23:33:01]OFD Sender: No OFD packet to send [23:33:06]OFD Sender: No OFD packet to send [23:33:11]OFD Sender: No OFD packet to send [23:33:16]OFD Sender: No OFD packet to send [23:33:21]OFD Sender: No OFD packet to send [23:33:26]OFD Sender: No OFD packet to send [23:33:31]OFD Sender: No OFD packet to send [23:33:36]OFD Sender: No OFD packet to send [23:33:41]OFD Sender: No OFD packet to send [23:33:46]OFD Sender: No OFD packet to send [23:33:51]OFD Sender: No OFD packet to send [23:33:56]OFD Sender: No OFD packet to send [23:34:01]OFD Sender: No OFD packet to send [23:34:06]OFD Sender: No OFD packet to send [23:34:11]OFD Sender: No OFD packet to send [23:34:16]OFD Sender: No OFD packet to send [23:34:21]OFD Sender: No OFD packet to send [23:34:26]OFD Sender: No OFD packet to send [23:34:31]OFD Sender: No OFD packet to send [23:34:36]OFD Sender: No OFD packet to send [23:34:41]OFD Sender: No OFD packet to send [23:34:46]OFD Sender: No OFD packet to send [23:34:51]OFD Sender: No OFD packet to send [23:34:56]OFD Sender: No OFD packet to send [23:35:01]OFD Sender: No OFD packet to send [23:35:06]OFD Sender: No OFD packet to send [23:35:11]OFD Sender: No OFD packet to send [23:35:16]OFD Sender: No OFD packet to send [23:35:21]OFD Sender: No OFD packet to send [23:35:26]OFD Sender: No OFD packet to send [23:35:31]OFD Sender: No OFD packet to send [23:35:36]OFD Sender: No OFD packet to send [23:35:41]OFD Sender: No OFD packet to send [23:35:46]OFD Sender: No OFD packet to send [23:35: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:07]OFD Sender: No OFD packet to send [23:36:12]OFD Sender: No OFD packet to send [23:36:17]OFD Sender: No OFD packet to send [23:36:22]OFD Sender: No OFD packet to send [23:36:27]OFD Sender: No OFD packet to send [23:36:32]OFD Sender: No OFD packet to send [23:36:37]OFD Sender: No OFD packet to send [23:36:42]OFD Sender: No OFD packet to send [23:36:47]OFD Sender: No OFD packet to send [23:36:52]OFD Sender: No OFD packet to send [23:36:57]OFD Sender: No OFD packet to send [23:37:02]OFD Sender: No OFD packet to send [23:37:07]OFD Sender: No OFD packet to send [23:37:12]OFD Sender: No OFD packet to send [23:37:17]OFD Sender: No OFD packet to send [23:37:22]OFD Sender: No OFD packet to send [23:37:27]OFD Sender: No OFD packet to send [23:37:32]OFD Sender: No OFD packet to send [23:37:37]OFD Sender: No OFD packet to send [23:37:42]OFD Sender: No OFD packet to send [23:37:47]OFD Sender: No OFD packet to send [23:37:52]OFD Sender: No OFD packet to send [23:37:57]OFD Sender: No OFD packet to send [23:38:02]OFD Sender: No OFD packet to send [23:38:07]OFD Sender: No OFD packet to send [23:38:12]OFD Sender: No OFD packet to send [23:38:17]OFD Sender: No OFD packet to send [23:38:22]OFD Sender: No OFD packet to send [23:38:27]OFD Sender: No OFD packet to send [23:38:32]OFD Sender: No OFD packet to send [23:38:37]OFD Sender: No OFD packet to send [23:38:42]OFD Sender: No OFD packet to send [23:38:47]OFD Sender: No OFD packet to send [23:38:52]OFD Sender: No OFD packet to send [23:38:57]OFD Sender: No OFD packet to send [23:39:02]OFD Sender: No OFD packet to send [23:39:07]OFD Sender: No OFD packet to send [23:39:12]OFD Sender: No OFD packet to send [23:39:17]OFD Sender: No OFD packet to send [23:39:22]OFD Sender: No OFD packet to send [23:39:27]OFD Sender: No OFD packet to send [23:39:32]OFD Sender: No OFD packet to send [23:39:37]OFD Sender: No OFD packet to send [23:39:42]OFD Sender: No OFD packet to send [23:39:47]OFD Sender: No OFD packet to send [23:39:52]OFD Sender: No OFD packet to send [23:39:57]OFD Sender: No OFD packet to send [23:40:02]OFD Sender: No OFD packet to send [23:40:07]OFD Sender: No OFD packet to send [23:40:12]OFD Sender: No OFD packet to send [23:40:17]OFD Sender: No OFD packet to send [23:40:22]OFD Sender: No OFD packet to send [23:40:27]OFD Sender: No OFD packet to send [23:40:32]OFD Sender: No OFD packet to send [23:40:37]OFD Sender: No OFD packet to send [23:40:42]OFD Sender: No OFD packet to send [23:40:47]OFD Sender: No OFD packet to send [23:40:52]OFD Sender: No OFD packet to send [23:40:57]OFD Sender: No OFD packet to send [23:41:02]OFD Sender: No OFD packet to send [23:41:07]OFD Sender: No OFD packet to send [23:41:12]OFD Sender: No OFD packet to send [23:41:17]OFD Sender: No OFD packet to send [23:41:22]OFD Sender: No OFD packet to send [23:41:27]OFD Sender: No OFD packet to send [23:41:32]OFD Sender: No OFD packet to send [23:41:37]OFD Sender: No OFD packet to send [23:41:42]OFD Sender: No OFD packet to send [23:41:47]OFD Sender: No OFD packet to send [23:41:52]OFD Sender: No OFD packet to send [23:41:57]OFD Sender: No OFD packet to send [23:42:02]OFD Sender: No OFD packet to send [23:42:07]OFD Sender: No OFD packet to send [23:42:12]OFD Sender: No OFD packet to send [23:42:17]OFD Sender: No OFD packet to send [23:42:22]OFD Sender: No OFD packet to send [23:42:27]OFD Sender: No OFD packet to send [23:42:32]OFD Sender: No OFD packet to send [23:42:37]OFD Sender: No OFD packet to send [23:42:42]OFD Sender: No OFD packet to send [23:42:47]OFD Sender: No OFD packet to send [23:42:52]OFD Sender: No OFD packet to send [23:42:57]OFD Sender: No OFD packet to send [23:43:02]OFD Sender: No OFD packet to send [23:43:07]OFD Sender: No OFD packet to send [23:43:12]OFD Sender: No OFD packet to send [23:43:17]OFD Sender: No OFD packet to send [23:43:22]OFD Sender: No OFD packet to send [23:43:27]OFD Sender: No OFD packet to send [23:43:32]OFD Sender: No OFD packet to send [23:43:37]OFD Sender: No OFD packet to send [23:43:42]OFD Sender: No OFD packet to send [23:43:47]OFD Sender: No OFD packet to send [23:43:52]OFD Sender: No OFD packet to send [23:43:57]OFD Sender: No OFD packet to send [23:44:02]OFD Sender: No OFD packet to send [23:44:07]OFD Sender: No OFD packet to send [23:44:12]OFD Sender: No OFD packet to send [23:44:17]OFD Sender: No OFD packet to send [23:44:22]OFD Sender: No OFD packet to send [23:44:27]OFD Sender: No OFD packet to send [23:44:32]OFD Sender: No OFD packet to send [23:44:37]OFD Sender: No OFD packet to send [23:44:42]OFD Sender: No OFD packet to send [23:44:47]OFD Sender: No OFD packet to send [23:44:52]OFD Sender: No OFD packet to send [23:44:57]OFD Sender: No OFD packet to send [23:45:02]OFD Sender: No OFD packet to send [23:45:07]OFD Sender: No OFD packet to send [23:45:12]OFD Sender: No OFD packet to send [23:45:17]OFD Sender: No OFD packet to send [23:45:22]OFD Sender: No OFD packet to send [23:45:27]OFD Sender: No OFD packet to send [23:45:32]OFD Sender: No OFD packet to send [23:45:37]OFD Sender: No OFD packet to send [23:45:42]OFD Sender: No OFD packet to send [23:45:47]OFD Sender: No OFD packet to send [23:45:52]OFD Sender: No OFD packet to send [23:45:57]OFD Sender: No OFD packet to send [23:46:02]OFD Sender: No OFD packet to send [23:46:07]OFD Sender: No OFD packet to send [23:46:12]OFD Sender: No OFD packet to send [23:46:17]OFD Sender: No OFD packet to send [23:46:22]OFD Sender: No OFD packet to send [23:46:27]OFD Sender: No OFD packet to send [23:46:32]OFD Sender: No OFD packet to send [23:46:37]OFD Sender: No OFD packet to send [23:46:42]OFD Sender: No OFD packet to send [23:46:47]OFD Sender: No OFD packet to send [23:46:52]OFD Sender: No OFD packet to send [23:46:57]OFD Sender: No OFD packet to send [23:47:02]OFD Sender: No OFD packet to send [23:47:07]OFD Sender: No OFD packet to send [23:47:12]OFD Sender: No OFD packet to send [23:47:17]OFD Sender: No OFD packet to send [23:47:22]OFD Sender: No OFD packet to send [23:47:27]OFD Sender: No OFD packet to send [23:47:32]OFD Sender: No OFD packet to send [23:47:37]OFD Sender: No OFD packet to send [23:47:42]OFD Sender: No OFD packet to send [23:47:47]OFD Sender: No OFD packet to send [23:47:52]OFD Sender: No OFD packet to send [23:47:57]OFD Sender: No OFD packet to send [23:48:02]OFD Sender: No OFD packet to send [23:48:07]OFD Sender: No OFD packet to send [23:48:12]OFD Sender: No OFD packet to send [23:48:17]OFD Sender: No OFD packet to send [23:48:22]OFD Sender: No OFD packet to send [23:48:27]OFD Sender: No OFD packet to send [23:48:32]OFD Sender: No OFD packet to send [23:48:37]OFD Sender: No OFD packet to send [23:48:42]OFD Sender: No OFD packet to send [23:48:47]OFD Sender: No OFD packet to send [23:48:52]OFD Sender: No OFD packet to send [23:48:57]OFD Sender: No OFD packet to send [23:49:02]OFD Sender: No OFD packet to send [23:49:07]OFD Sender: No OFD packet to send [23:49:12]OFD Sender: No OFD packet to send [23:49:17]OFD Sender: No OFD packet to send [23:49:22]OFD Sender: No OFD packet to send [23:49:27]OFD Sender: No OFD packet to send [23:49:32]OFD Sender: No OFD packet to send [23:49:37]OFD Sender: No OFD packet to send [23:49:42]OFD Sender: No OFD packet to send [23:49:47]OFD Sender: No OFD packet to send [23:49:52]OFD Sender: No OFD packet to send [23:49:57]OFD Sender: No OFD packet to send [23:50:02]OFD Sender: No OFD packet to send [23:50:07]OFD Sender: No OFD packet to send [23:50:12]OFD Sender: No OFD packet to send [23:50:17]OFD Sender: No OFD packet to send [23:50:22]OFD Sender: No OFD packet to send [23:50:27]OFD Sender: No OFD packet to send [23:50:32]OFD Sender: No OFD packet to send [23:50:37]OFD Sender: No OFD packet to send [23:50:42]OFD Sender: No OFD packet to send [23:50:47]OFD Sender: No OFD packet to send [23:50:52]OFD Sender: No OFD packet to send [23:50:57]OFD Sender: No OFD packet to send [23:51:02]OFD Sender: No OFD packet to send [23:51:07]OFD Sender: No OFD packet to send [23:51:12]OFD Sender: No OFD packet to send [23:51:17]OFD Sender: No OFD packet to send [23:51:22]OFD Sender: No OFD packet to send [23:51:27]OFD Sender: No OFD packet to send [23:51:32]OFD Sender: No OFD packet to send [23:51:37]OFD Sender: No OFD packet to send [23:51:42]OFD Sender: No OFD packet to send [23:51:47]OFD Sender: No OFD packet to send [23:51:52]OFD Sender: No OFD packet to send [23:51:57]OFD Sender: No OFD packet to send [23:52:02]OFD Sender: No OFD packet to send [23:52:07]OFD Sender: No OFD packet to send [23:52:12]OFD Sender: No OFD packet to send [23:52:17]OFD Sender: No OFD packet to send [23:52:22]OFD Sender: No OFD packet to send [23:52:27]OFD Sender: No OFD packet to send [23:52:32]OFD Sender: No OFD packet to send [23:52:37]OFD Sender: No OFD packet to send [23:52:42]OFD Sender: No OFD packet to send [23:52:47]OFD Sender: No OFD packet to send [23:52:52]OFD Sender: No OFD packet to send [23:52:57]OFD Sender: No OFD packet to send [23:53:02]OFD Sender: No OFD packet to send [23:53:07]OFD Sender: No OFD packet to send [23:53:12]OFD Sender: No OFD packet to send [23:53:17]OFD Sender: No OFD packet to send [23:53:22]OFD Sender: No OFD packet to send [23:53:27]OFD Sender: No OFD packet to send [23:53:32]OFD Sender: No OFD packet to send [23:53:37]OFD Sender: No OFD packet to send [23:53:42]OFD Sender: No OFD packet to send [23:53:47]OFD Sender: No OFD packet to send [23:53:52]OFD Sender: No OFD packet to send [23:53:57]OFD Sender: No OFD packet to send [23:54:02]OFD Sender: No OFD packet to send [23:54:07]OFD Sender: No OFD packet to send [23:54:12]OFD Sender: No OFD packet to send [23:54:17]OFD Sender: No OFD packet to send [23:54:22]OFD Sender: No OFD packet to send [23:54:27]OFD Sender: No OFD packet to send [23:54:32]OFD Sender: No OFD packet to send [23:54:37]OFD Sender: No OFD packet to send [23:54:42]OFD Sender: No OFD packet to send [23:54:47]OFD Sender: No OFD packet to send [23:54:52]OFD Sender: No OFD packet to send [23:54:57]OFD Sender: No OFD packet to send [23:55:02]OFD Sender: No OFD packet to send [23:55:07]OFD Sender: No OFD packet to send [23:55:12]OFD Sender: No OFD packet to send [23:55:17]OFD Sender: No OFD packet to send [23:55:22]OFD Sender: No OFD packet to send [23:55:27]OFD Sender: No OFD packet to send [23:55:32]OFD Sender: No OFD packet to send [23:55:37]OFD Sender: No OFD packet to send [23:55:42]OFD Sender: No OFD packet to send [23:55:47]OFD Sender: No OFD packet to send [23:55:52]OFD Sender: No OFD packet to send [23:55:57]OFD Sender: No OFD packet to send [23:56:02]OFD Sender: No OFD packet to send [23:56:07]OFD Sender: No OFD packet to send [23:56:12]OFD Sender: No OFD packet to send [23:56:17]OFD Sender: No OFD packet to send [23:56:22]OFD Sender: No OFD packet to send [23:56:27]OFD Sender: No OFD packet to send [23:56:33]OFD Sender: No OFD packet to send [23:56:38]OFD Sender: No OFD packet to send [23:56:43]OFD Sender: No OFD packet to send [23:56:48]OFD Sender: No OFD packet to send [23:56:53]OFD Sender: No OFD packet to send [23:56:58]OFD Sender: No OFD packet to send [23:57:03]OFD Sender: No OFD packet to send [23:57:08]OFD Sender: No OFD packet to send [23:57:13]OFD Sender: No OFD packet to send [23:57:18]OFD Sender: No OFD packet to send [23:57:23]OFD Sender: No OFD packet to send [23:57:28]OFD Sender: No OFD packet to send [23:57:33]OFD Sender: No OFD packet to send [23:57:38]OFD Sender: No OFD packet to send [23:57:43]OFD Sender: No OFD packet to send [23:57:48]OFD Sender: No OFD packet to send [23:57:53]OFD Sender: No OFD packet to send [23:57:58]OFD Sender: No OFD packet to send [23:58:03]OFD Sender: No OFD packet to send [23:58:08]OFD Sender: No OFD packet to send [23:58:13]OFD Sender: No OFD packet to send [23:58:18]OFD Sender: No OFD packet to send [23:58:23]OFD Sender: No OFD packet to send [23:58:28]OFD Sender: No OFD packet to send [23:58:33]OFD Sender: No OFD packet to send [23:58:38]OFD Sender: No OFD packet to send [23:58:43]OFD Sender: No OFD packet to send [23:58:48]OFD Sender: No OFD packet to send [23:58:53]OFD Sender: No OFD packet to send [23:58:58]OFD Sender: No OFD packet to send [23:59:03]OFD Sender: No OFD packet to send [23:59:08]OFD Sender: No OFD packet to send [23:59:13]OFD Sender: No OFD packet to send [23:59:18]OFD Sender: No OFD packet to send [23:59:23]OFD Sender: No OFD packet to send [23:59:28]OFD Sender: No OFD packet to send [23:59:33]OFD Sender: No OFD packet to send [23:59:38]OFD Sender: No OFD packet to send [23:59:43]OFD Sender: No OFD packet to send [23:59:48]OFD Sender: No OFD packet to send [23:59:53]OFD Sender: No OFD packet to send [23:59:58]OFD Sender: No OFD packet to send [00:00:03]OFD Sender: No OFD packet to send [00:00:08]OFD Sender: No OFD packet to send [00:00:13]OFD Sender: No OFD packet to send [00:00:18]OFD Sender: No OFD packet to send [00:00:23]OFD Sender: No OFD packet to send [00:00:28]OFD Sender: No OFD packet to send [00:00:33]OFD Sender: No OFD packet to send [00:00:38]OFD Sender: No OFD packet to send [00:00:43]OFD Sender: No OFD packet to send [00:00:48]OFD Sender: No OFD packet to send [00:00:53]OFD Sender: No OFD packet to send [00:00:58]OFD Sender: No OFD packet to send [00:01:03]OFD Sender: No OFD packet to send [00:01:08]OFD Sender: No OFD packet to send [00:01:13]OFD Sender: No OFD packet to send [00:01:18]OFD Sender: No OFD packet to send [00:01:23]OFD Sender: No OFD packet to send [00:01:28]OFD Sender: No OFD packet to send [00:01:33]OFD Sender: No OFD packet to send [00:01:38]OFD Sender: No OFD packet to send [00:01:43]OFD Sender: No OFD packet to send [00:01:48]OFD Sender: No OFD packet to send [00:01:53]OFD Sender: No OFD packet to send [00:01:58]OFD Sender: No OFD packet to send [00:02:03]OFD Sender: No OFD packet to send [00:02:08]OFD Sender: No OFD packet to send [00:02:13]OFD Sender: No OFD packet to send [00:02:18]OFD Sender: No OFD packet to send [00:02:23]OFD Sender: No OFD packet to send [00:02:28]OFD Sender: No OFD packet to send [00:02:33]OFD Sender: No OFD packet to send [00:02:38]OFD Sender: No OFD packet to send [00:02:43]OFD Sender: No OFD packet to send [00:02:48]OFD Sender: No OFD packet to send [00:02:48]accept exits with 7 [00:02:48]New connection [00:02:48]New thread 3067014500 created [00:02:48]Thread 3067157860 joined [00:02:48]Waiting for new connection... [00:02:48] Sock 7.Parse request [00:02:48]Sock 7.Check first char [00:02:48]Sock 7.First char is OK [00:02:48]request: POST /json_proto HTTP/1.0 [00:02:48]Method: POST [00:02:48]URL: /json_proto [00:02:48]Method is POST - this is cgi request [00:02:48]url: /json_proto [00:02:48]query_string will be loaded in cgi processing [00:02:48]execute_cgi json_proto POST (null) [00:02:48]execute_cgi path=json_proto method=POST [00:02:48]POST find Content-Length [00:02:48]Host: 172.17.48.198:8080 [00:02:48]Content-Length: 215 [00:02:48]Content-Type: application/json [00:02:48] [00:02:48]POST finish read [00:02:48]Found Content-Length = 215 [00:02:48]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:02:48]execute_script... [00:02:48]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:02:48]POST & json_proto [00:02:48]process_json_proto [00:02:48]json parsed OK: [00:02:48]protocol is kg_v1.0 [00:02:48]action value=get_value [00:02:48]process_action get_value [00:02:48]cmd_get_value [00:02:48]process_action get_value done [00:02:48]requested_data is exist [00:02:48]produce_requested_data [00:02:48]requested_item kkm.sn is exist - process it [00:02:48]requested_item kkm.ver is exist - process it [00:02:48]requested_item fm.sn is exist - process it [00:02:48]wFMCommunicate request_size=4 [00:02:48]MH_SAM_APDU [00:02:48]CAPDU: 80 11 00 00 [00:02:48]Write to MH i2c: E2 08 00 F4 5C 80 11 00 00 00 00 00 00 CA [00:02:48]Write i2c OK [00:02:48]MH_I2C_Read... [00:02:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:02:48]Read from MH i2c: E2 [00:02:48]MH_I2C_Read... [00:02:48]Read from MH i2c: E2 17 00 [00:02:48]MH_I2C_Read... [00:02:48]Read from MH i2c: E2 17 00 F4 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 26 [00:02:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [00:02:48]wFMCommunicate OK [00:02:48]requested_item fd.num is exist - process it [00:02:48]SAM_PROTO_GetFieldsCounters [00:02:48]wFMCommunicate request_size=4 [00:02:48]MH_SAM_APDU [00:02:48]CAPDU: 80 13 00 00 [00:02:48]Write to MH i2c: E2 08 00 F5 5C 80 13 00 00 00 00 00 00 CD [00:02:48]Write i2c OK [00:02:48]MH_I2C_Read... [00:02:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:02:49]Read from MH i2c: E2 [00:02:49]MH_I2C_Read... [00:02:49]Read from MH i2c: E2 62 00 [00:02:49]MH_I2C_Read... [00:02:49]Read from MH i2c: E2 62 00 F5 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 D0 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 F0 [00: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 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 D0 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:02:49]wFMCommunicate OK [00:02:49]SAM_PROTO_GetFieldsCounters done [00:02:49]requested_item shift.num is exist - process it [00:02:49]requested_item shift.opened is exist - process it [00:02:49]req_shift_opened [00:02:49]FM_GetShiftState [00:02:49]SAM_PROTO_GetShiftState [00:02:49]wFMCommunicate request_size=4 [00:02:49]MH_SAM_APDU [00:02:49]CAPDU: 80 13 01 00 [00:02:49]Write to MH i2c: E2 08 00 F6 5C 80 13 01 00 00 00 00 00 CF [00:02:49]Write i2c OK [00:02:49]MH_I2C_Read... [00:02:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:02:49]Read from MH i2c: E2 [00:02:49]MH_I2C_Read... [00:02:49]Read from MH i2c: E2 0E 00 [00:02:49]MH_I2C_Read... [00:02:49]Read from MH i2c: E2 0E 00 F6 5C 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 05 [00:02:49]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [00:02:49]wFMCommunicate OK [00:02:49]SAM_PROTO_GetShiftState done [00:02:49]FM_GetShiftState done [00:02:49]req_shift_opened done [00:02:49]requested_item shift.open_date is exist - process it [00:02:49]req_shift_open_date [00:02:49]req_shift_open_date done [00:02:49]produce_requested_data done [00:02:49]produce_requested_data return {"kkm.sn":"0300000013","kkm.ver":"001","fm.sn":"0000000000874796","fd.num":45264,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694} [00:02:49]process_action_free get_value [00:02:49]json_value_free [00:02:49]json_value_free done [00:02:49]process_json_proto returns [00:02:49]Send response to host [00:02:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000013","kkm.ver":"001","fm.sn":"0000000000874796","fd.num":45264,"shift.num":331,"shift.opened":1,"shift.open_date":1709425694}}} [00:02:49]free response buf [00:02:49]execute_script done [00:02:49]execute_script returns [00:02:49]free content buf [00:02:49]Sock 7.Close socket [00:02:49]Sock 7.Thread stoped [00:02:49]accept exits with 9 [00:02:49]New connection [00:02:49]New thread 3067157860 created [00:02:49]Thread 3067014500 joined [00:02:49]Waiting for new connection... [00:02:49] Sock 9.Parse request [00:02:49]Sock 9.Check first char [00:02:49]Sock 9.First char is OK [00:02:49]request: POST /json_proto HTTP/1.0 [00:02:49]Method: POST [00:02:49]URL: /json_proto [00:02:49]Method is POST - this is cgi request [00:02:49]url: /json_proto [00:02:49]query_string will be loaded in cgi processing [00:02:49]execute_cgi json_proto POST (null) [00:02:49]execute_cgi path=json_proto method=POST [00:02:49]POST find Content-Length [00:02:49]Host: 172.17.48.198:8080 [00:02:49]Content-Length: 331 [00:02:49]Content-Type: application/json [00:02:49] [00:02:49]POST finish read [00:02:49]Found Content-Length = 331 [00:02:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:02:49]execute_script... [00:02:49]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:02:49]POST & json_proto [00:02:49]process_json_proto [00:02:49]json parsed OK: [00:02:49]protocol is kg_v1.0 [00:02:49]action value=get_value [00:02:49]process_action get_value [00:02:49]cmd_get_value [00:02:49]process_action get_value done [00:02:49]requested_data is exist [00:02:49]produce_requested_data [00:02:49]requested_item fm.sale.total is exist - process it [00:02:49]SAM_PROTO_GetFMData [00:02:49]wFMCommunicate request_size=4 [00:02:49]MH_SAM_APDU [00:02:49]CAPDU: 80 13 03 00 [00:02:49]Write to MH i2c: E2 08 00 F7 5C 80 13 03 00 00 00 00 00 D2 [00:02:49]Write i2c OK [00:02:49]MH_I2C_Read... [00:02:49]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:02:49]Read from MH i2c: E2 [00:02:49]MH_I2C_Read... [00:02:49]Read from MH i2c: E2 FD 00 [00:02:49]MH_I2C_Read... [00:02:49]Read from MH i2c: E2 FD 00 F7 5C 00 C4 04 85 04 C0 04 6E 04 04 00 36 AE 00 00 69 04 A0 00 6F 04 04 00 43 AB 00 00 B1 04 04 00 34 26 30 4A 70 04 04 00 BB 62 16 37 72 04 04 00 79 C3 19 13 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 70 F3 E0 07 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 54 03 A8 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F3 02 00 00 B1 04 04 00 7E 52 2A 05 70 04 04 00 06 A1 03 05 72 04 03 00 78 B1 26 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 C6 6F 8C EF 03 09 00 90 00 62 [00:02:49]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 36 AE 00 00 69 04 A0 00 6F 04 04 00 43 AB 00 00 B1 04 04 00 34 26 30 4A 70 04 04 00 BB 62 16 37 72 04 04 00 79 C3 19 13 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 70 F3 E0 07 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 54 03 A8 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F3 02 00 00 B1 04 04 00 7E 52 2A 05 70 04 04 00 06 A1 03 05 72 04 03 00 78 B1 26 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 C6 6F 8C EF 03 09 00 90 00 [00:02:49]wFMCommunicate OK [00:02:49]wFMCommunicate request_size=4 [00:02:49]MH_SAM_APDU [00:02:49]CAPDU: 80 17 00 00 [00:02:49]Write to MH i2c: E2 08 00 F8 5C 80 17 00 00 00 00 00 00 D4 [00:02:49]Write i2c OK [00:02:49]MH_I2C_Read... [00:02:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:02:50]Read from MH i2c: E2 [00:02:50]MH_I2C_Read... [00:02:50]Read from MH i2c: E2 FD 00 [00:02:50]MH_I2C_Read... [00:02:50]Read from MH i2c: E2 FD 00 F8 5C 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AE B3 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 F6 [00:02:50]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AE B3 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [00:02:50]wFMCommunicate OK [00:02:50]wFMCommunicate request_size=4 [00:02:50]MH_SAM_APDU [00:02:50]CAPDU: 80 17 00 00 [00:02:50]Write to MH i2c: E2 08 00 F9 5C 80 17 00 00 00 00 00 00 D5 [00:02:50]Write i2c OK [00:02:50]MH_I2C_Read... [00:02:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:02:50]Read from MH i2c: E2 [00:02:50]MH_I2C_Read... [00:02:50]Read from MH i2c: E2 FD 00 [00:02:50]MH_I2C_Read... [00:02:50]Read from MH i2c: E2 FD 00 F9 5C 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 EA [00:02:50]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:02:50]wFMCommunicate OK [00:02:50]wFMCommunicate request_size=4 [00:02:50]MH_SAM_APDU [00:02:50]CAPDU: 80 17 00 00 [00:02:50]Write to MH i2c: E2 08 00 FA 5C 80 17 00 00 00 00 00 00 D6 [00:02:50]Write i2c OK [00:02:50]MH_I2C_Read... [00:02:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:02:50]Read from MH i2c: E2 [00:02:50]MH_I2C_Read... [00:02:50]Read from MH i2c: E2 FD 00 [00:02:50]MH_I2C_Read... [00:02:50]Read from MH i2c: E2 FD 00 FA 5C 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 4E [00:02:50]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:02:50]wFMCommunicate OK [00:02:50]wFMCommunicate request_size=4 [00:02:50]MH_SAM_APDU [00:02:50]CAPDU: 80 17 00 00 [00:02:50]Write to MH i2c: E2 08 00 FB 5C 80 17 00 00 00 00 00 00 D7 [00:02:50]Write i2c OK [00:02:50]MH_I2C_Read... [00:02:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [00:02:50]Read from MH i2c: E2 [00:02:50]MH_I2C_Read... [00:02:50]Read from MH i2c: E2 E1 00 [00:02:50]MH_I2C_Read... [00:02:50]Read from MH i2c: E2 E1 00 FB 5C 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 C5 [00:02:50]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:02:50]wFMCommunicate OK [00:02:50]SAM_PROTO_GetFMData done [00:02:50]requested_item fm.sale_refund.total is exist - process it [00:02:50]requested_item fm.buy.total is exist - process it [00:02:50]requested_item shift.sale.total is exist - process it [00:02:50]SAM_PROTO_GetShiftData [00:02:50]wFMCommunicate request_size=4 [00:02:50]MH_SAM_APDU [00:02:50]CAPDU: 80 13 02 00 [00:02:50]Write to MH i2c: E2 08 00 FC 5C 80 13 02 00 00 00 00 00 D6 [00:02:50]Write i2c OK [00:02:50]MH_I2C_Read... [00:02:51]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:02:51]Read from MH i2c: E2 [00:02:51]MH_I2C_Read... [00:02:51]Read from MH i2c: E2 FD 00 [00:02:51]MH_I2C_Read... [00:02:51]Read from MH i2c: E2 FD 00 FC 5C 00 B8 04 AA 04 B4 04 6E 04 04 00 65 00 00 00 69 04 9B 00 6F 04 04 00 63 00 00 00 B1 04 03 00 28 65 23 70 04 03 00 7C 65 14 72 04 03 00 AC FF 0E 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 38 C2 03 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 1E 50 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 02 00 00 00 B1 04 03 00 B0 AD 01 70 04 03 00 B0 AD 01 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 A9 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 ED [00:02:51]RAPDU: B8 04 AA 04 B4 04 6E 04 04 00 65 00 00 00 69 04 9B 00 6F 04 04 00 63 00 00 00 B1 04 03 00 28 65 23 70 04 03 00 7C 65 14 72 04 03 00 AC FF 0E 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 38 C2 03 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 1E 50 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 02 00 00 00 B1 04 03 00 B0 AD 01 70 04 03 00 B0 AD 01 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 A9 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [00:02:51]wFMCommunicate OK [00:02:51]wFMCommunicate request_size=4 [00:02:51]MH_SAM_APDU [00:02:51]CAPDU: 80 17 00 00 [00:02:51]Write to MH i2c: E2 08 00 FD 5C 80 17 00 00 00 00 00 00 D9 [00:02:51]Write i2c OK [00:02:51]MH_I2C_Read... [00:02:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:02:51]Read from MH i2c: E2 [00:02:51]MH_I2C_Read... [00:02:51]Read from MH i2c: E2 FD 00 [00:02:51]MH_I2C_Read... [00:02:51]Read from MH i2c: E2 FD 00 FD 5C 00 0B 00 F6 03 01 00 01 F7 03 02 00 CE 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 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 DB [00:02:51]RAPDU: 0B 00 F6 03 01 00 01 F7 03 02 00 CE 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 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 [00:02:51]wFMCommunicate OK [00:02:51]wFMCommunicate request_size=4 [00:02:51]MH_SAM_APDU [00:02:51]CAPDU: 80 17 00 00 [00:02:51]Write to MH i2c: E2 08 00 FE 5C 80 17 00 00 00 00 00 00 DA [00:02:51]Write i2c OK [00:02:51]MH_I2C_Read... [00:02:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:02:51]Read from MH i2c: E2 [00:02:51]MH_I2C_Read... [00:02:51]Read from MH i2c: E2 FD 00 [00:02:51]MH_I2C_Read... [00:02:51]Read from MH i2c: E2 FD 00 FE 5C 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 7C [00:02:51]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 [00:02:51]wFMCommunicate OK [00:02:51]wFMCommunicate request_size=4 [00:02:51]MH_SAM_APDU [00:02:51]CAPDU: 80 17 00 00 [00:02:51]Write to MH i2c: E2 08 00 FF 5C 80 17 00 00 00 00 00 00 DB [00:02:51]Write i2c OK [00:02:51]MH_I2C_Read... [00:02:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:02:52]Read from MH i2c: E2 [00:02:52]MH_I2C_Read... [00:02:52]Read from MH i2c: E2 FD 00 [00:02:52]MH_I2C_Read... [00:02:52]Read from MH i2c: E2 FD 00 FF 5C 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 64 [00:02:52]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 [00:02:52]wFMCommunicate OK [00:02:52]wFMCommunicate request_size=4 [00:02:52]MH_SAM_APDU [00:02:52]CAPDU: 80 17 00 00 [00:02:52]Write to MH i2c: E2 08 00 00 5D 80 17 00 00 00 00 00 00 DD [00:02:52]Write i2c OK [00:02:52]MH_I2C_Read... [00:02:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [00:02:52]Read from MH i2c: E2 [00:02:52]MH_I2C_Read... [00:02:52]Read from MH i2c: E2 D5 00 [00:02:52]MH_I2C_Read... [00:02:52]Read from MH i2c: E2 D5 00 00 5D 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 BE [00:02:52]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 [00:02:52]wFMCommunicate OK [00:02:52]SAM_PROTO_GetShiftData done [00:02:52]requested_item shift.sale.total_cash is exist - process it [00:02:52]requested_item shift.sale_refund.total is exist - process it [00:02:52]requested_item shift.sale_refund.total_cash is exist - process it [00:02:52]requested_item shift.buy.total is exist - process it [00:02:52]requested_item shift.buy.total_cash is exist - process it [00:02:52]produce_requested_data done [00:02:52]produce_requested_data return {"fm.sale.total":12446694.92,"fm.sale_refund.total":866597.10,"fm.buy.total":0.00,"shift.sale.total":23196.56,"shift.sale.total_cash":13367.00,"shift.sale_refund.total":1100.00,"shift.sale_refund.total_cash":1100.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:02:52]process_action_free get_value [00:02:52]json_value_free [00:02:52]json_value_free done [00:02:52]process_json_proto returns [00:02:52]Send response to host [00:02:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":12446694.92,"fm.sale_refund.total":866597.10,"fm.buy.total":0.00,"shift.sale.total":23196.56,"shift.sale.total_cash":13367.00,"shift.sale_refund.total":1100.00,"shift.sale_refund.total_cash":1100.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:02:52]free response buf [00:02:52]execute_script done [00:02:52]execute_script returns [00:02:52]free content buf [00:02:52]Sock 9.Close socket [00:02:52]Sock 9.Thread stoped [00:02:53]OFD Sender: No OFD packet to send [00:02:55]accept exits with 7 [00:02:55]New connection [00:02:55]New thread 3067014500 created [00:02:55]Thread 3067157860 joined [00:02:55]Waiting for new connection... [00:02:55] Sock 7.Parse request [00:02:55]Sock 7.Check first char [00:02:55]Sock 7.First char is OK [00:02:55]request: POST /json_proto HTTP/1.0 [00:02:55]Method: POST [00:02:55]URL: /json_proto [00:02:55]Method is POST - this is cgi request [00:02:55]url: /json_proto [00:02:55]query_string will be loaded in cgi processing [00:02:55]execute_cgi json_proto POST (null) [00:02:55]execute_cgi path=json_proto method=POST [00:02:55]POST find Content-Length [00:02:55]Host: 172.17.48.198:8080 [00:02:55]Content-Length: 331 [00:02:55]Content-Type: application/json [00:02:55] [00:02:55]POST finish read [00:02:55]Found Content-Length = 331 [00:02: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:02:55]execute_script... [00:02: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:02:55]POST & json_proto [00:02:55]process_json_proto [00:02:55]json parsed OK: [00:02:55]protocol is kg_v1.0 [00:02:55]action value=get_value [00:02:55]process_action get_value [00:02:55]cmd_get_value [00:02:55]process_action get_value done [00:02:55]requested_data is exist [00:02:55]produce_requested_data [00:02:55]requested_item fm.sale.total is exist - process it [00:02:55]SAM_PROTO_GetFMData [00:02:55]wFMCommunicate request_size=4 [00:02:55]MH_SAM_APDU [00:02:55]CAPDU: 80 13 03 00 [00:02:55]Write to MH i2c: E2 08 00 01 5D 80 13 03 00 00 00 00 00 DD [00:02:55]Write i2c OK [00:02:55]MH_I2C_Read... [00:02:56]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:02:56]Read from MH i2c: E2 [00:02:56]MH_I2C_Read... [00:02:56]Read from MH i2c: E2 FD 00 [00:02:56]MH_I2C_Read... [00:02:56]Read from MH i2c: E2 FD 00 01 5D 00 C4 04 85 04 C0 04 6E 04 04 00 36 AE 00 00 69 04 A0 00 6F 04 04 00 43 AB 00 00 B1 04 04 00 34 26 30 4A 70 04 04 00 BB 62 16 37 72 04 04 00 79 C3 19 13 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 70 F3 E0 07 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 54 03 A8 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F3 02 00 00 B1 04 04 00 7E 52 2A 05 70 04 04 00 06 A1 03 05 72 04 03 00 78 B1 26 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 C6 6F 8C EF 03 09 00 90 00 6D [00:02:56]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 36 AE 00 00 69 04 A0 00 6F 04 04 00 43 AB 00 00 B1 04 04 00 34 26 30 4A 70 04 04 00 BB 62 16 37 72 04 04 00 79 C3 19 13 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 70 F3 E0 07 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 54 03 A8 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F3 02 00 00 B1 04 04 00 7E 52 2A 05 70 04 04 00 06 A1 03 05 72 04 03 00 78 B1 26 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 C6 6F 8C EF 03 09 00 90 00 [00:02:56]wFMCommunicate OK [00:02:56]wFMCommunicate request_size=4 [00:02:56]MH_SAM_APDU [00:02:56]CAPDU: 80 17 00 00 [00:02:56]Write to MH i2c: E2 08 00 02 5D 80 17 00 00 00 00 00 00 DF [00:02:56]Write i2c OK [00:02:56]MH_I2C_Read... [00:02:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:02:56]Read from MH i2c: E2 [00:02:56]MH_I2C_Read... [00:02:56]Read from MH i2c: E2 FD 00 [00:02:56]MH_I2C_Read... [00:02:56]Read from MH i2c: E2 FD 00 02 5D 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AE B3 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 01 [00:02:56]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AE B3 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [00:02:56]wFMCommunicate OK [00:02:56]wFMCommunicate request_size=4 [00:02:56]MH_SAM_APDU [00:02:56]CAPDU: 80 17 00 00 [00:02:56]Write to MH i2c: E2 08 00 03 5D 80 17 00 00 00 00 00 00 E0 [00:02:56]Write i2c OK [00:02:56]MH_I2C_Read... [00:02:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:02:56]Read from MH i2c: E2 [00:02:56]MH_I2C_Read... [00:02:56]Read from MH i2c: E2 FD 00 [00:02:56]MH_I2C_Read... [00:02:56]Read from MH i2c: E2 FD 00 03 5D 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 F5 [00:02:56]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:02:56]wFMCommunicate OK [00:02:56]wFMCommunicate request_size=4 [00:02:56]MH_SAM_APDU [00:02:56]CAPDU: 80 17 00 00 [00:02:56]Write to MH i2c: E2 08 00 04 5D 80 17 00 00 00 00 00 00 E1 [00:02:56]Write i2c OK [00:02:56]MH_I2C_Read... [00:02:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:02:56]Read from MH i2c: E2 [00:02:56]MH_I2C_Read... [00:02:56]Read from MH i2c: E2 FD 00 [00:02:56]MH_I2C_Read... [00:02:57]Read from MH i2c: E2 FD 00 04 5D 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 59 [00:02:57]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:02:57]wFMCommunicate OK [00:02:57]wFMCommunicate request_size=4 [00:02:57]MH_SAM_APDU [00:02:57]CAPDU: 80 17 00 00 [00:02:57]Write to MH i2c: E2 08 00 05 5D 80 17 00 00 00 00 00 00 E2 [00:02:57]Write i2c OK [00:02:57]MH_I2C_Read... [00:02:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [00:02:57]Read from MH i2c: E2 [00:02:57]MH_I2C_Read... [00:02:57]Read from MH i2c: E2 E1 00 [00:02:57]MH_I2C_Read... [00:02:57]Read from MH i2c: E2 E1 00 05 5D 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 D0 [00:02:57]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:02:57]wFMCommunicate OK [00:02:57]SAM_PROTO_GetFMData done [00:02:57]requested_item fm.sale_refund.total is exist - process it [00:02:57]requested_item fm.buy.total is exist - process it [00:02:57]requested_item shift.sale.total is exist - process it [00:02:57]SAM_PROTO_GetShiftData [00:02:57]wFMCommunicate request_size=4 [00:02:57]MH_SAM_APDU [00:02:57]CAPDU: 80 13 02 00 [00:02:57]Write to MH i2c: E2 08 00 06 5D 80 13 02 00 00 00 00 00 E1 [00:02:57]Write i2c OK [00:02:57]MH_I2C_Read... [00:02:57]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:02:57]Read from MH i2c: E2 [00:02:57]MH_I2C_Read... [00:02:57]Read from MH i2c: E2 FD 00 [00:02:57]MH_I2C_Read... [00:02:57]Read from MH i2c: E2 FD 00 06 5D 00 B8 04 AA 04 B4 04 6E 04 04 00 65 00 00 00 69 04 9B 00 6F 04 04 00 63 00 00 00 B1 04 03 00 28 65 23 70 04 03 00 7C 65 14 72 04 03 00 AC FF 0E 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 38 C2 03 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 1E 50 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 02 00 00 00 B1 04 03 00 B0 AD 01 70 04 03 00 B0 AD 01 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 A9 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 F8 [00:02:57]RAPDU: B8 04 AA 04 B4 04 6E 04 04 00 65 00 00 00 69 04 9B 00 6F 04 04 00 63 00 00 00 B1 04 03 00 28 65 23 70 04 03 00 7C 65 14 72 04 03 00 AC FF 0E 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 38 C2 03 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 1E 50 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 02 00 00 00 B1 04 03 00 B0 AD 01 70 04 03 00 B0 AD 01 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 A9 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [00:02:57]wFMCommunicate OK [00:02:57]wFMCommunicate request_size=4 [00:02:57]MH_SAM_APDU [00:02:57]CAPDU: 80 17 00 00 [00:02:57]Write to MH i2c: E2 08 00 07 5D 80 17 00 00 00 00 00 00 E4 [00:02:57]Write i2c OK [00:02:57]MH_I2C_Read... [00:02:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:02:58]Read from MH i2c: E2 [00:02:58]MH_I2C_Read... [00:02:58]Read from MH i2c: E2 FD 00 [00:02:58]MH_I2C_Read... [00:02:58]Read from MH i2c: E2 FD 00 07 5D 00 0B 00 F6 03 01 00 01 F7 03 02 00 CE 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 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 E6 [00:02:58]RAPDU: 0B 00 F6 03 01 00 01 F7 03 02 00 CE 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 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 [00:02:58]wFMCommunicate OK [00:02:58]wFMCommunicate request_size=4 [00:02:58]MH_SAM_APDU [00:02:58]CAPDU: 80 17 00 00 [00:02:58]Write to MH i2c: E2 08 00 08 5D 80 17 00 00 00 00 00 00 E5 [00:02:58]Write i2c OK [00:02:58]MH_I2C_Read... [00:02:58]OFD Sender: No OFD packet to send [00:02:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:02:58]Read from MH i2c: E2 [00:02:58]MH_I2C_Read... [00:02:58]Read from MH i2c: E2 FD 00 [00:02:58]MH_I2C_Read... [00:02:58]Read from MH i2c: E2 FD 00 08 5D 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 87 [00:02:58]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 [00:02:58]wFMCommunicate OK [00:02:58]wFMCommunicate request_size=4 [00:02:58]MH_SAM_APDU [00:02:58]CAPDU: 80 17 00 00 [00:02:58]Write to MH i2c: E2 08 00 09 5D 80 17 00 00 00 00 00 00 E6 [00:02:58]Write i2c OK [00:02:58]MH_I2C_Read... [00:02:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:02:58]Read from MH i2c: E2 [00:02:58]MH_I2C_Read... [00:02:58]Read from MH i2c: E2 FD 00 [00:02:58]MH_I2C_Read... [00:02:58]Read from MH i2c: E2 FD 00 09 5D 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 6F [00:02:59]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 [00:02:59]wFMCommunicate OK [00:02:59]wFMCommunicate request_size=4 [00:02:59]MH_SAM_APDU [00:02:59]CAPDU: 80 17 00 00 [00:02:59]Write to MH i2c: E2 08 00 0A 5D 80 17 00 00 00 00 00 00 E7 [00:02:59]Write i2c OK [00:02:59]MH_I2C_Read... [00:02:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [00:02:59]Read from MH i2c: E2 [00:02:59]MH_I2C_Read... [00:02:59]Read from MH i2c: E2 D5 00 [00:02:59]MH_I2C_Read... [00:02:59]Read from MH i2c: E2 D5 00 0A 5D 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 C8 [00:02:59]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 [00:02:59]wFMCommunicate OK [00:02:59]SAM_PROTO_GetShiftData done [00:02:59]requested_item shift.sale.total_cash is exist - process it [00:02:59]requested_item shift.sale_refund.total is exist - process it [00:02:59]requested_item shift.sale_refund.total_cash is exist - process it [00:02:59]requested_item shift.buy.total is exist - process it [00:02:59]requested_item shift.buy.total_cash is exist - process it [00:02:59]produce_requested_data done [00:02:59]produce_requested_data return {"fm.sale.total":12446694.92,"fm.sale_refund.total":866597.10,"fm.buy.total":0.00,"shift.sale.total":23196.56,"shift.sale.total_cash":13367.00,"shift.sale_refund.total":1100.00,"shift.sale_refund.total_cash":1100.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:02:59]process_action_free get_value [00:02:59]json_value_free [00:02:59]json_value_free done [00:02:59]process_json_proto returns [00:02:59]Send response to host [00:02:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":12446694.92,"fm.sale_refund.total":866597.10,"fm.buy.total":0.00,"shift.sale.total":23196.56,"shift.sale.total_cash":13367.00,"shift.sale_refund.total":1100.00,"shift.sale_refund.total_cash":1100.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:02:59]free response buf [00:02:59]execute_script done [00:02:59]execute_script returns [00:02:59]free content buf [00:02:59]Sock 7.Close socket [00:02:59]Sock 7.Thread stoped [00:02:59]accept exits with 9 [00:02:59]New connection [00:02:59]New thread 3067157860 created [00:02:59]Thread 3067014500 joined [00:02:59]Waiting for new connection... [00:02:59] Sock 9.Parse request [00:02:59]Sock 9.Check first char [00:02:59]Sock 9.First char is OK [00:02:59]request: POST /json_proto HTTP/1.0 [00:02:59]Method: POST [00:02:59]URL: /json_proto [00:02:59]Method is POST - this is cgi request [00:02:59]url: /json_proto [00:02:59]query_string will be loaded in cgi processing [00:02:59]execute_cgi json_proto POST (null) [00:02:59]execute_cgi path=json_proto method=POST [00:02:59]POST find Content-Length [00:02:59]Host: 172.17.48.198:8080 [00:02:59]Content-Length: 274 [00:02:59]Content-Type: application/json [00:02:59] [00:02:59]POST finish read [00:02:59]Found Content-Length = 274 [00:02:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:02:59]execute_script... [00:02:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:02:59]POST & json_proto [00:02:59]process_json_proto [00:02:59]json parsed OK: [00:02:59]protocol is kg_v1.0 [00:02:59]action value=close_shift [00:02:59]process_action close_shift [00:02:59]cmd_close_shift [00:02:59]MH_GetDate [00:02:59]Write to MH i2c: F0 00 00 0B 5D 57 [00:02:59]Write i2c OK [00:02:59]MH_I2C_Read... [00:02:59]Read from MH i2c: F0 [00:02:59]MH_I2C_Read... [00:02:59]Read from MH i2c: F0 09 00 [00:02:59]MH_I2C_Read... [00:02:59]Read from MH i2c: F0 09 00 0B 5D 00 C1 0F E5 65 CE C4 D4 65 45 [00:02:59]GetLastDocTimeStamp 1709508743 [00:02:59]current date 1709510593 [00:02:59]FM_GetShiftState [00:02:59]SAM_PROTO_GetShiftState [00:02:59]wFMCommunicate request_size=4 [00:02:59]MH_SAM_APDU [00:02:59]CAPDU: 80 13 01 00 [00:02:59]Write to MH i2c: E2 08 00 0C 5D 80 13 01 00 00 00 00 00 E6 [00:02:59]Write i2c OK [00:02:59]MH_I2C_Read... [00:02:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:02:59]Read from MH i2c: E2 [00:02:59]MH_I2C_Read... [00:02:59]Read from MH i2c: E2 0E 00 [00:02:59]MH_I2C_Read... [00:02:59]Read from MH i2c: E2 0E 00 0C 5D 00 09 00 01 1E C4 E3 65 00 00 00 00 90 00 1C [00:02:59]RAPDU: 09 00 01 1E C4 E3 65 00 00 00 00 90 00 [00:02:59]wFMCommunicate OK [00:02:59]SAM_PROTO_GetShiftState done [00:02:59]FM_GetShiftState done [00:02:59]KKMCreateCloseShiftDocument [00:02:59]Load OK [00:02:59]Malloc new data [00:02:59]MH_GetDate [00:02:59]Write to MH i2c: F0 00 00 0D 5D 59 [00:02:59]Write i2c OK [00:02:59]MH_I2C_Read... [00:02:59]Read from MH i2c: F0 [00:02:59]MH_I2C_Read... [00:02:59]Read from MH i2c: F0 09 00 [00:02:59]MH_I2C_Read... [00:02:59]Read from MH i2c: F0 09 00 0D 5D 00 C1 0F E5 65 CE C4 D4 65 47 [00:02:59]Malloc new data [00:02:59]Malloc new data [00:02:59]Malloc new data [00:02:59]Malloc new data [00:02:59]KKMCreateCloseShiftDocument OK [00:02:59]KKMSetCloseShiftData OK [00:02:59]ProcessDocumentItem done err = 0, tmpTLVsize=77 [00:02:59]tlvbuf is 01D24040 [00:02:59]KKMLoadAndSignCloseShiftData [00:02:59]SAM_PROTO_ProcessDocument [00:02:59]wFMCommunicate request_size=9 [00:02:59]MH_SAM_APDU [00:02:59]CAPDU: 80 15 01 00 04 05 00 4D 00 [00:02:59]Write to MH i2c: E2 0C 00 0E 5D 80 15 01 00 04 00 05 00 4D 00 00 00 44 [00:02:59]Write i2c OK [00:02:59]MH_I2C_Read... [00:02:59]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:02:59]Read from MH i2c: E2 [00:02:59]MH_I2C_Read... [00:02:59]Read from MH i2c: E2 03 00 [00:02:59]MH_I2C_Read... [00:02:59]Read from MH i2c: E2 03 00 0E 5D 00 90 00 DF [00:02:59]RAPDU: 90 00 [00:02:59]wFMCommunicate OK [00:02:59]wFMCommunicate request_size=23 [00:02:59]MH_SAM_APDU [00:02:59]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:02:59]Write to MH i2c: E2 1A 00 0F 5D 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 E1 [00:02:59]Write i2c OK [00:02:59]MH_I2C_Read... [00:02:59]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:02:59]Read from MH i2c: E2 [00:02:59]MH_I2C_Read... [00:02:59]Read from MH i2c: E2 03 00 [00:02:59]MH_I2C_Read... [00:02:59]Read from MH i2c: E2 03 00 0F 5D 00 90 00 E0 [00:02:59]RAPDU: 90 00 [00:02:59]wFMCommunicate OK [00:02:59]wFMCommunicate request_size=36 [00:02:59]MH_SAM_APDU [00:02:59]CAPDU: 80 15 02 00 1F FD 03 1B 00 D0 A2 D1 83 D1 80 D0 B4 D1 83 D0 BC D0 B1 D0 B5 D0 BA 20 D1 83 2E 20 D0 9A 2E 20 [00:02:59]Write to MH i2c: E2 27 00 10 5D 80 15 02 00 1F 00 FD 03 1B 00 D0 A2 D1 83 D1 80 D0 B4 D1 83 D0 BC D0 B1 D0 B5 D0 BA 20 D1 83 2E 20 D0 9A 2E 20 00 00 CB [00:02:59]Write i2c OK [00:02:59]MH_I2C_Read... [00:02:59]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:02:59]Read from MH i2c: E2 [00:02:59]MH_I2C_Read... [00:02:59]Read from MH i2c: E2 03 00 [00:02:59]MH_I2C_Read... [00:02:59]Read from MH i2c: E2 03 00 10 5D 00 90 00 E1 [00:02:59]RAPDU: 90 00 [00:02:59]wFMCommunicate OK [00:02:59]wFMCommunicate request_size=13 [00:02:59]MH_SAM_APDU [00:02:59]CAPDU: 80 15 02 00 08 F4 03 04 00 C1 0F E5 65 [00:02:59]Write to MH i2c: E2 10 00 11 5D 80 15 02 00 08 00 F4 03 04 00 C1 0F E5 65 00 00 13 [00:02:59]Write i2c OK [00:02:59]MH_I2C_Read... [00:02:59]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:02:59]Read from MH i2c: E2 [00:02:59]MH_I2C_Read... [00:02:59]Read from MH i2c: E2 03 00 [00:02:59]MH_I2C_Read... [00:02:59]Read from MH i2c: E2 03 00 11 5D 00 90 00 E2 [00:02:59]RAPDU: 90 00 [00:02:59]wFMCommunicate OK [00:02:59]wFMCommunicate request_size=25 [00:02:59]MH_SAM_APDU [00:02:59]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 [00:02:59]Write to MH i2c: E2 1C 00 12 5D 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 00 00 4F [00:02:59]Write i2c OK [00:02:59]MH_I2C_Read... [00:03:00]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:03:00]Read from MH i2c: E2 [00:03:00]MH_I2C_Read... [00:03:00]Read from MH i2c: E2 03 00 [00:03:00]MH_I2C_Read... [00:03:00]Read from MH i2c: E2 03 00 12 5D 00 90 00 E3 [00:03:00]RAPDU: 90 00 [00:03:00]wFMCommunicate OK [00:03:00]wFMCommunicate request_size=4 [00:03:00]MH_SAM_APDU [00:03:00]CAPDU: 80 15 03 00 [00:03:00]Write to MH i2c: E2 08 00 13 5D 80 15 03 00 00 00 00 00 F1 [00:03:00]Write i2c OK [00:03:00]MH_I2C_Read... [00:03:00]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [00:03:00]Read from MH i2c: E2 [00:03:00]MH_I2C_Read... [00:03:00]Read from MH i2c: E2 FD 00 [00:03:00]MH_I2C_Read... [00:03:00]Read from MH i2c: E2 FD 00 13 5D 00 FB 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 D1 B0 00 00 0E 04 04 00 4B 01 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 67 00 00 00 AA 04 B4 04 6E 04 04 00 65 00 00 00 69 04 9B 00 6F 04 04 00 63 00 00 00 B1 04 03 00 28 65 23 70 04 03 00 7C 65 14 72 04 03 00 AC FF 0E 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 38 C2 03 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 1E 50 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 02 00 00 00 B1 04 03 00 B0 AD 01 70 90 00 01 [00:03:00]RAPDU: FB 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 D1 B0 00 00 0E 04 04 00 4B 01 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 67 00 00 00 AA 04 B4 04 6E 04 04 00 65 00 00 00 69 04 9B 00 6F 04 04 00 63 00 00 00 B1 04 03 00 28 65 23 70 04 03 00 7C 65 14 72 04 03 00 AC FF 0E 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 38 C2 03 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 1E 50 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 02 00 00 00 B1 04 03 00 B0 AD 01 70 90 00 [00:03:00]wFMCommunicate OK [00:03:00]SAM_PROTO_ProcessDocument answer len = 1275 [00:03:00]SAM_PROTO_ProcessDocument remain to read = 1027 [00:03:00]wFMCommunicate request_size=4 [00:03:00]MH_SAM_APDU [00:03:00]CAPDU: 80 17 00 00 [00:03:00]Write to MH i2c: E2 08 00 14 5D 80 17 00 00 00 00 00 00 F1 [00:03:00]Write i2c OK [00:03:00]MH_I2C_Read... [00:03:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:00]Read from MH i2c: E2 [00:03:00]MH_I2C_Read... [00:03:00]Read from MH i2c: E2 FD 00 [00:03:00]MH_I2C_Read... [00:03:00]Read from MH i2c: E2 FD 00 14 5D 00 04 03 00 B0 AD 01 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 A9 2D 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 CE 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 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 90 00 64 [00:03:00]RAPDU: 04 03 00 B0 AD 01 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 A9 2D 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 CE 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 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 90 00 [00:03:01]wFMCommunicate OK [00:03:01]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:03:01]SAM_PROTO_ProcessDocument remain to read = 777 [00:03:01]wFMCommunicate request_size=4 [00:03:01]MH_SAM_APDU [00:03:01]CAPDU: 80 17 00 00 [00:03:01]Write to MH i2c: E2 08 00 15 5D 80 17 00 00 00 00 00 00 F2 [00:03:01]Write i2c OK [00:03:01]MH_I2C_Read... [00:03:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:01]Read from MH i2c: E2 [00:03:01]MH_I2C_Read... [00:03:01]Read from MH i2c: E2 FD 00 [00:03:01]MH_I2C_Read... [00:03:01]Read from MH i2c: E2 FD 00 15 5D 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 54 [00:03:01]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:03:01]wFMCommunicate OK [00:03:01]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:03:01]SAM_PROTO_ProcessDocument remain to read = 527 [00:03:01]wFMCommunicate request_size=4 [00:03:01]MH_SAM_APDU [00:03:01]CAPDU: 80 17 00 00 [00:03:01]Write to MH i2c: E2 08 00 16 5D 80 17 00 00 00 00 00 00 F3 [00:03:01]Write i2c OK [00:03:01]MH_I2C_Read... [00:03:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:01]Read from MH i2c: E2 [00:03:01]MH_I2C_Read... [00:03:01]Read from MH i2c: E2 FD 00 [00:03:01]MH_I2C_Read... [00:03:01]Read from MH i2c: E2 FD 00 16 5D 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 06 [00:03:01]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:03:01]wFMCommunicate OK [00:03:01]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:03:01]SAM_PROTO_ProcessDocument remain to read = 277 [00:03:01]wFMCommunicate request_size=4 [00:03:01]MH_SAM_APDU [00:03:01]CAPDU: 80 17 00 00 [00:03:01]Write to MH i2c: E2 08 00 17 5D 80 17 00 00 00 00 00 00 F4 [00:03:01]Write i2c OK [00:03:01]MH_I2C_Read... [00:03:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:02]Read from MH i2c: E2 [00:03:02]MH_I2C_Read... [00:03:02]Read from MH i2c: E2 FD 00 [00:03:02]MH_I2C_Read... [00:03:02]Read from MH i2c: E2 FD 00 17 5D 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 33 [00:03:02]RAPDU: 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:03:02]wFMCommunicate OK [00:03:02]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:03:02]SAM_PROTO_ProcessDocument remain to read = 27 [00:03:02]wFMCommunicate request_size=4 [00:03:02]MH_SAM_APDU [00:03:02]CAPDU: 80 17 00 00 [00:03:02]Write to MH i2c: E2 08 00 18 5D 80 17 00 00 00 00 00 00 F5 [00:03:02]Write i2c OK [00:03:02]MH_I2C_Read... [00:03:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 27! [00:03:02]Read from MH i2c: E2 [00:03:02]MH_I2C_Read... [00:03:02]Read from MH i2c: E2 1E 00 [00:03:02]MH_I2C_Read... [00:03:02]Read from MH i2c: E2 1E 00 18 5D 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 F1 DB 77 8D AA 31 90 00 DD [00:03:02]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 F1 DB 77 8D AA 31 90 00 [00:03:02]wFMCommunicate OK [00:03:02]SAM_PROTO_ProcessDocument received (without SW) 27 bytes [00:03:02]SAM_PROTO_ProcessDocument done [00:03:02]1209 (1) - 1.0 - номер версии ФФД [00:03:02]1041 (16) - 0000000000874796 - номер ФМ [00:03:02]1040 (4) - 45265 - номер ФД [00:03:02]1038 (4) - 331 - номер смены [00:03:02]1118 (4) - 101 - количество кассовых чеков за смену [00:03:02]1111 (4) - 103 - общее количество ФД за смену [00:03:02]1194 (1204) - счетчики итогов смены [00:03:02] 1134 (4) - 101 - количество чеков со всеми признаками расчетов [00:03:02] 1129 (155) - счетчики операций «приход» [00:03:02] 1135 (4) - 99 - количество чеков по признаку расчетов [00:03:02] 1201 (3) - 23196.56 - общая итоговая сумма в чеках [00:03:02] 1136 (3) - 13367.00 - итоговая сумма в чеках наличными [00:03:02] 1138 (3) - 9829.56 - итоговая сумма в чеках безналичными [00:03:02] 1024 (122) - суммы налогов [00:03:02] 1006 (9) - суммы НДС [00:03:02] 1010 (1) - 0% - код ставки НДС [00:03:02] 1011 (0) - 0.00 - сумма НДС по ставке [00:03:02] 1006 (12) - суммы НДС [00:03:02] 1010 (1) - 12% - код ставки НДС [00:03:02] 1011 (3) - 2463.28 - сумма НДС по ставке [00:03:02] 1007 (9) - суммы НСП [00:03:02] 1014 (1) - 0% - код ставки НСП [00:03:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:02] 1007 (11) - суммы НСП [00:03:02] 1014 (1) - 1% - код ставки НСП [00:03:02] 1015 (2) - 205.10 - сумма НСП по ставке [00:03:02] 1007 (9) - суммы НСП [00:03:02] 1014 (1) - 2% - код ставки НСП [00:03:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:02] 1007 (9) - суммы НСП [00:03:02] 1014 (1) - 3% - код ставки НСП [00:03:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:02] 1007 (9) - суммы НСП [00:03:02] 1014 (1) - 5% - код ставки НСП [00:03:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:02] 1007 (9) - суммы НСП [00:03:02] 1014 (1) - 0,50% - код ставки НСП [00:03:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:02] 1007 (9) - суммы НСП [00:03:02] 1014 (1) - 1,50% - код ставки НСП [00:03:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:02] 1130 (151) - счетчики операций «возврат прихода» [00:03:02] 1135 (4) - 2 - количество чеков по признаку расчетов [00:03:02] 1201 (3) - 1100.00 - общая итоговая сумма в чеках [00:03:02] 1136 (3) - 1100.00 - итоговая сумма в чеках наличными [00:03:02] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:03:02] 1024 (121) - суммы налогов [00:03:02] 1006 (9) - суммы НДС [00:03:02] 1010 (1) - 0% - код ставки НДС [00:03:02] 1011 (0) - 0.00 - сумма НДС по ставке [00:03:02] 1006 (11) - суммы НДС [00:03:02] 1010 (1) - 12% - код ставки НДС [00:03:02] 1011 (2) - 116.89 - сумма НДС по ставке [00:03:02] 1007 (9) - суммы НСП [00:03:02] 1014 (1) - 0% - код ставки НСП [00:03:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:02] 1007 (11) - суммы НСП [00:03:02] 1014 (1) - 1% - код ставки НСП [00:03:02] 1015 (2) - 9.74 - сумма НСП по ставке [00:03:02] 1007 (9) - суммы НСП [00:03:02] 1014 (1) - 2% - код ставки НСП [00:03:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:02] 1007 (9) - суммы НСП [00:03:02] 1014 (1) - 3% - код ставки НСП [00:03:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:02] 1007 (9) - суммы НСП [00:03:02] 1014 (1) - 5% - код ставки НСП [00:03:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:02] 1007 (9) - суммы НСП [00:03:02] 1014 (1) - 0,50% - код ставки НСП [00:03:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:02] 1007 (9) - суммы НСП [00:03:02] 1014 (1) - 1,50% - код ставки НСП [00:03:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:02] 1131 (141) - счетчики операций «расход» [00:03:02] 1135 (4) - 0 - количество чеков по признаку расчетов [00:03:02] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:03:02] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:03:02] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:03:02] 1024 (117) - суммы налогов [00:03:02] 1006 (9) - суммы НДС [00:03:02] 1010 (1) - 0% - код ставки НДС [00:03:02] 1011 (0) - 0.00 - сумма НДС по ставке [00:03:02] 1006 (9) - суммы НДС [00:03:02] 1010 (1) - 12% - код ставки НДС [00:03:02] 1011 (0) - 0.00 - сумма НДС по ставке [00:03:02] 1007 (9) - суммы НСП [00:03:02] 1014 (1) - 0% - код ставки НСП [00:03:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:02] 1007 (9) - суммы НСП [00:03:02] 1014 (1) - 1% - код ставки НСП [00:03:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:02] 1007 (9) - суммы НСП [00:03:02] 1014 (1) - 2% - код ставки НСП [00:03:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:02] 1007 (9) - суммы НСП [00:03:02] 1014 (1) - 3% - код ставки НСП [00:03:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:02] 1007 (9) - суммы НСП [00:03:02] 1014 (1) - 5% - код ставки НСП [00:03:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:02] 1007 (9) - суммы НСП [00:03:02] 1014 (1) - 0,50% - код ставки НСП [00:03:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:02] 1007 (9) - суммы НСП [00:03:02] 1014 (1) - 1,50% - код ставки НСП [00:03:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:02] 1132 (141) - счетчики операций «возврат расхода» [00:03:02] 1135 (4) - 0 - количество чеков по признаку расчетов [00:03:02] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:03:02] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:03:02] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:03:02] 1024 (117) - суммы налогов [00:03:02] 1006 (9) - суммы НДС [00:03:02] 1010 (1) - 0% - код ставки НДС [00:03:02] 1011 (0) - 0.00 - сумма НДС по ставке [00:03:02] 1006 (9) - суммы НДС [00:03:02] 1010 (1) - 12% - код ставки НДС [00:03:02] 1011 (0) - 0.00 - сумма НДС по ставке [00:03:02] 1007 (9) - суммы НСП [00:03:02] 1014 (1) - 0% - код ставки НСП [00:03:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:02] 1007 (9) - суммы НСП [00:03:02] 1014 (1) - 1% - код ставки НСП [00:03:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:02] 1007 (9) - суммы НСП [00:03:02] 1014 (1) - 2% - код ставки НСП [00:03:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:02] 1007 (9) - суммы НСП [00:03:02] 1014 (1) - 3% - код ставки НСП [00:03:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:02] 1007 (9) - суммы НСП [00:03:02] 1014 (1) - 5% - код ставки НСП [00:03:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:02] 1007 (9) - суммы НСП [00:03:03] 1014 (1) - 0,50% - код ставки НСП [00:03:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:03] 1007 (9) - суммы НСП [00:03:03] 1014 (1) - 1,50% - код ставки НСП [00:03:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:03] 1133 (588) - - счетчики коррекции - не используются [00:03:03]1077 (6) - 265924905904689 - ФПД [00:03:03]SetTLVBufToDocument [00:03:03]Processing tag 1209 (04B9) [00:03:03]Malloc new data [00:03:03]Processing tag 1041 (0411) [00:03:03]Processing tag 1040 (0410) [00:03:03]Malloc new data [00:03:03]Processing tag 1038 (040E) [00:03:03]Malloc new data [00:03:03]Processing tag 1118 (045E) [00:03:03]Malloc new data [00:03:03]Processing tag 1111 (0457) [00:03:03]Malloc new data [00:03:03]Processing tag 1194 (04AA) [00:03:03]Load OK [00:03:03]SetTLVBufToDocument [00:03:03]Processing tag 1134 (046E) [00:03:03]Malloc new data [00:03:03]Processing tag 1129 (0469) [00:03:03]Load OK [00:03:03]SetTLVBufToDocument [00:03:03]Processing tag 1135 (046F) [00:03:03]Malloc new data [00:03:03]Processing tag 1201 (04B1) [00:03:03]Malloc new data [00:03:03]Processing tag 1136 (0470) [00:03:03]Malloc new data [00:03:03]Processing tag 1138 (0472) [00:03:03]Malloc new data [00:03:03]Processing tag 1024 (0400) [00:03:03]Load OK [00:03:03]SetTLVBufToDocument [00:03:03]Processing tag 1006 (03EE) [00:03:03]Load OK [00:03:03]SetTLVBufToDocument [00:03:03]Processing tag 1010 (03F2) [00:03:03]Malloc new data [00:03:03]Processing tag 1011 (03F3) [00:03:03]Malloc new data [00:03:03]SetTLVBufToDocument err=0 [00:03:03]Processing tag 1006 (03EE) [00:03:03]Load OK [00:03:03]SetTLVBufToDocument [00:03:03]Processing tag 1010 (03F2) [00:03:03]Malloc new data [00:03:03]Processing tag 1011 (03F3) [00:03:03]Malloc new data [00:03:03]SetTLVBufToDocument err=0 [00:03:03]Processing tag 1007 (03EF) [00:03:03]Load OK [00:03:03]SetTLVBufToDocument [00:03:03]Processing tag 1014 (03F6) [00:03:03]Malloc new data [00:03:03]Processing tag 1015 (03F7) [00:03:03]Malloc new data [00:03:03]SetTLVBufToDocument err=0 [00:03:03]Processing tag 1007 (03EF) [00:03:03]Load OK [00:03:03]SetTLVBufToDocument [00:03:03]Processing tag 1014 (03F6) [00:03:03]Malloc new data [00:03:03]Processing tag 1015 (03F7) [00:03:03]Malloc new data [00:03:03]SetTLVBufToDocument err=0 [00:03:03]Processing tag 1007 (03EF) [00:03:03]Load OK [00:03:03]SetTLVBufToDocument [00:03:03]Processing tag 1014 (03F6) [00:03:03]Malloc new data [00:03:03]Processing tag 1015 (03F7) [00:03:03]Malloc new data [00:03:03]SetTLVBufToDocument err=0 [00:03:03]Processing tag 1007 (03EF) [00:03:03]Load OK [00:03:03]SetTLVBufToDocument [00:03:03]Processing tag 1014 (03F6) [00:03:03]Malloc new data [00:03:03]Processing tag 1015 (03F7) [00:03:03]Malloc new data [00:03:03]SetTLVBufToDocument err=0 [00:03:03]Processing tag 1007 (03EF) [00:03:03]Load OK [00:03:03]SetTLVBufToDocument [00:03:03]Processing tag 1014 (03F6) [00:03:03]Malloc new data [00:03:03]Processing tag 1015 (03F7) [00:03:03]Malloc new data [00:03:03]SetTLVBufToDocument err=0 [00:03:03]Processing tag 1007 (03EF) [00:03:03]Load OK [00:03:03]SetTLVBufToDocument [00:03:03]Processing tag 1014 (03F6) [00:03:03]Malloc new data [00:03:03]Processing tag 1015 (03F7) [00:03:03]Malloc new data [00:03:03]SetTLVBufToDocument err=0 [00:03:03]Processing tag 1007 (03EF) [00:03:03]Load OK [00:03:03]SetTLVBufToDocument [00:03:03]Processing tag 1014 (03F6) [00:03:03]Malloc new data [00:03:03]Processing tag 1015 (03F7) [00:03:03]Malloc new data [00:03:03]SetTLVBufToDocument err=0 [00:03:03]SetTLVBufToDocument err=0 [00:03:03]SetTLVBufToDocument err=0 [00:03:03]Processing tag 1130 (046A) [00:03:03]Load OK [00:03:03]SetTLVBufToDocument [00:03:03]Processing tag 1135 (046F) [00:03:03]Malloc new data [00:03:03]Processing tag 1201 (04B1) [00:03:03]Malloc new data [00:03:03]Processing tag 1136 (0470) [00:03:03]Malloc new data [00:03:03]Processing tag 1138 (0472) [00:03:03]Malloc new data [00:03:03]Processing tag 1024 (0400) [00:03:03]Load OK [00:03:03]SetTLVBufToDocument [00:03:03]Processing tag 1006 (03EE) [00:03:03]Load OK [00:03:03]SetTLVBufToDocument [00:03:03]Processing tag 1010 (03F2) [00:03:03]Malloc new data [00:03:03]Processing tag 1011 (03F3) [00:03:03]Malloc new data [00:03:03]SetTLVBufToDocument err=0 [00:03:03]Processing tag 1006 (03EE) [00:03:03]Load OK [00:03:03]SetTLVBufToDocument [00:03:03]Processing tag 1010 (03F2) [00:03:03]Malloc new data [00:03:03]Processing tag 1011 (03F3) [00:03:03]Malloc new data [00:03:03]SetTLVBufToDocument err=0 [00:03:03]Processing tag 1007 (03EF) [00:03:03]Load OK [00:03:03]SetTLVBufToDocument [00:03:03]Processing tag 1014 (03F6) [00:03:03]Malloc new data [00:03:03]Processing tag 1015 (03F7) [00:03:03]Malloc new data [00:03:03]SetTLVBufToDocument err=0 [00:03:03]Processing tag 1007 (03EF) [00:03:03]Load OK [00:03:03]SetTLVBufToDocument [00:03:03]Processing tag 1014 (03F6) [00:03:03]Malloc new data [00:03:03]Processing tag 1015 (03F7) [00:03:03]Malloc new data [00:03:03]SetTLVBufToDocument err=0 [00:03:03]Processing tag 1007 (03EF) [00:03:03]Load OK [00:03:03]SetTLVBufToDocument [00:03:03]Processing tag 1014 (03F6) [00:03:03]Malloc new data [00:03:03]Processing tag 1015 (03F7) [00:03:03]Malloc new data [00:03:03]SetTLVBufToDocument err=0 [00:03:03]Processing tag 1007 (03EF) [00:03:03]Load OK [00:03:03]SetTLVBufToDocument [00:03:03]Processing tag 1014 (03F6) [00:03:03]Malloc new data [00:03:03]Processing tag 1015 (03F7) [00:03:03]Malloc new data [00:03:03]SetTLVBufToDocument err=0 [00:03:03]Processing tag 1007 (03EF) [00:03:03]Load OK [00:03:03]SetTLVBufToDocument [00:03:03]Processing tag 1014 (03F6) [00:03:03]Malloc new data [00:03:03]Processing tag 1015 (03F7) [00:03:03]Malloc new data [00:03:03]SetTLVBufToDocument err=0 [00:03:03]Processing tag 1007 (03EF) [00:03:03]Load OK [00:03:03]SetTLVBufToDocument [00:03:03]Processing tag 1014 (03F6) [00:03:03]Malloc new data [00:03:03]Processing tag 1015 (03F7) [00:03:03]Malloc new data [00:03:03]SetTLVBufToDocument err=0 [00:03:03]Processing tag 1007 (03EF) [00:03:03]Load OK [00:03:03]SetTLVBufToDocument [00:03:03]Processing tag 1014 (03F6) [00:03:03]Malloc new data [00:03:03]Processing tag 1015 (03F7) [00:03:03]Malloc new data [00:03:03]SetTLVBufToDocument err=0 [00:03:03]SetTLVBufToDocument err=0 [00:03:03]SetTLVBufToDocument err=0 [00:03:03]Processing tag 1131 (046B) [00:03:03]Load OK [00:03:03]SetTLVBufToDocument [00:03:03]Processing tag 1135 (046F) [00:03:03]Malloc new data [00:03:03]Processing tag 1201 (04B1) [00:03:03]Malloc new data [00:03:03]Processing tag 1136 (0470) [00:03:03]Malloc new data [00:03:03]Processing tag 1138 (0472) [00:03:03]Malloc new data [00:03:03]Processing tag 1024 (0400) [00:03:03]Load OK [00:03:03]SetTLVBufToDocument [00:03:03]Processing tag 1006 (03EE) [00:03:03]Load OK [00:03:03]SetTLVBufToDocument [00:03:03]Processing tag 1010 (03F2) [00:03:03]Malloc new data [00:03:03]Processing tag 1011 (03F3) [00:03:03]Malloc new data [00:03:03]SetTLVBufToDocument err=0 [00:03:03]Processing tag 1006 (03EE) [00:03:03]Load OK [00:03:03]SetTLVBufToDocument [00:03:03]Processing tag 1010 (03F2) [00:03:03]Malloc new data [00:03:03]Processing tag 1011 (03F3) [00:03:03]Malloc new data [00:03:03]SetTLVBufToDocument err=0 [00:03:03]Processing tag 1007 (03EF) [00:03:03]Load OK [00:03:03]SetTLVBufToDocument [00:03:03]Processing tag 1014 (03F6) [00:03:03]Malloc new data [00:03:03]Processing tag 1015 (03F7) [00:03:03]Malloc new data [00:03:03]SetTLVBufToDocument err=0 [00:03:03]Processing tag 1007 (03EF) [00:03:03]Load OK [00:03:03]SetTLVBufToDocument [00:03:03]Processing tag 1014 (03F6) [00:03:03]Malloc new data [00:03:03]Processing tag 1015 (03F7) [00:03:03]Malloc new data [00:03:03]SetTLVBufToDocument err=0 [00:03:03]Processing tag 1007 (03EF) [00:03:03]Load OK [00:03:03]SetTLVBufToDocument [00:03:03]Processing tag 1014 (03F6) [00:03:03]Malloc new data [00:03:03]Processing tag 1015 (03F7) [00:03:03]Malloc new data [00:03:03]SetTLVBufToDocument err=0 [00:03:03]Processing tag 1007 (03EF) [00:03:03]Load OK [00:03:03]SetTLVBufToDocument [00:03:03]Processing tag 1014 (03F6) [00:03:03]Malloc new data [00:03:03]Processing tag 1015 (03F7) [00:03:03]Malloc new data [00:03:03]SetTLVBufToDocument err=0 [00:03:03]Processing tag 1007 (03EF) [00:03:03]Load OK [00:03:03]SetTLVBufToDocument [00:03:03]Processing tag 1014 (03F6) [00:03:03]Malloc new data [00:03:03]Processing tag 1015 (03F7) [00:03:03]Malloc new data [00:03:03]SetTLVBufToDocument err=0 [00:03:03]Processing tag 1007 (03EF) [00:03:03]Load OK [00:03:03]SetTLVBufToDocument [00:03:03]Processing tag 1014 (03F6) [00:03:03]Malloc new data [00:03:03]Processing tag 1015 (03F7) [00:03:03]Malloc new data [00:03:03]SetTLVBufToDocument err=0 [00:03:03]Processing tag 1007 (03EF) [00:03:03]Load OK [00:03:03]SetTLVBufToDocument [00:03:03]Processing tag 1014 (03F6) [00:03:03]Malloc new data [00:03:03]Processing tag 1015 (03F7) [00:03:03]Malloc new data [00:03:03]SetTLVBufToDocument err=0 [00:03:03]SetTLVBufToDocument err=0 [00:03:03]SetTLVBufToDocument err=0 [00:03:03]Processing tag 1132 (046C) [00:03:03]Load OK [00:03:03]SetTLVBufToDocument [00:03:03]Processing tag 1135 (046F) [00:03:03]Malloc new data [00:03:03]Processing tag 1201 (04B1) [00:03:03]Malloc new data [00:03:03]Processing tag 1136 (0470) [00:03:03]Malloc new data [00:03:03]Processing tag 1138 (0472) [00:03:03]Malloc new data [00:03:03]Processing tag 1024 (0400) [00:03:03]Load OK [00:03:03]SetTLVBufToDocument [00:03:03]Processing tag 1006 (03EE) [00:03:03]Load OK [00:03:03]SetTLVBufToDocument [00:03:03]Processing tag 1010 (03F2) [00:03:03]Malloc new data [00:03:03]Processing tag 1011 (03F3) [00:03:03]Malloc new data [00:03:03]SetTLVBufToDocument err=0 [00:03:03]Processing tag 1006 (03EE) [00:03:03]Load OK [00:03:03]SetTLVBufToDocument [00:03:03]Processing tag 1010 (03F2) [00:03:03]Malloc new data [00:03:03]Processing tag 1011 (03F3) [00:03:03]Malloc new data [00:03:03]SetTLVBufToDocument err=0 [00:03:03]Processing tag 1007 (03EF) [00:03:03]Load OK [00:03:03]SetTLVBufToDocument [00:03:03]Processing tag 1014 (03F6) [00:03:03]Malloc new data [00:03:03]Processing tag 1015 (03F7) [00:03:03]Malloc new data [00:03:03]SetTLVBufToDocument err=0 [00:03:03]Processing tag 1007 (03EF) [00:03:03]Load OK [00:03:03]SetTLVBufToDocument [00:03:03]Processing tag 1014 (03F6) [00:03:03]Malloc new data [00:03:03]Processing tag 1015 (03F7) [00:03:03]Malloc new data [00:03:03]SetTLVBufToDocument err=0 [00:03:03]Processing tag 1007 (03EF) [00:03:03]Load OK [00:03:03]SetTLVBufToDocument [00:03:03]Processing tag 1014 (03F6) [00:03:03]Malloc new data [00:03:03]Processing tag 1015 (03F7) [00:03:03]Malloc new data [00:03:03]SetTLVBufToDocument err=0 [00:03:03]Processing tag 1007 (03EF) [00:03:03]Load OK [00:03:03]SetTLVBufToDocument [00:03:03]Processing tag 1014 (03F6) [00:03:03]Malloc new data [00:03:03]Processing tag 1015 (03F7) [00:03:03]Malloc new data [00:03:03]SetTLVBufToDocument err=0 [00:03:03]Processing tag 1007 (03EF) [00:03:03]Load OK [00:03:03]SetTLVBufToDocument [00:03:03]Processing tag 1014 (03F6) [00:03:03]Malloc new data [00:03:03]Processing tag 1015 (03F7) [00:03:03]Malloc new data [00:03:03]SetTLVBufToDocument err=0 [00:03:03]Processing tag 1007 (03EF) [00:03:03]Load OK [00:03:03]SetTLVBufToDocument [00:03:03]Processing tag 1014 (03F6) [00:03:03]Malloc new data [00:03:03]Processing tag 1015 (03F7) [00:03:03]Malloc new data [00:03:03]SetTLVBufToDocument err=0 [00:03:03]Processing tag 1007 (03EF) [00:03:03]Load OK [00:03:03]SetTLVBufToDocument [00:03:03]Processing tag 1014 (03F6) [00:03:03]Malloc new data [00:03:03]Processing tag 1015 (03F7) [00:03:03]Malloc new data [00:03:03]SetTLVBufToDocument err=0 [00:03:03]SetTLVBufToDocument err=0 [00:03:03]SetTLVBufToDocument err=0 [00:03:03]Processing tag 1133 (046D) [00:03:03]Malloc new data [00:03:03]SetTLVBufToDocument err=0 [00:03:03]Processing tag 1077 (0435) [00:03:03]Malloc new data [00:03:03]SetTLVBufToDocument err=0 [00:03:03]Malloc new data [00:03:03]SAM_PROTO_GetFMData [00:03:03]wFMCommunicate request_size=4 [00:03:03]MH_SAM_APDU [00:03:03]CAPDU: 80 13 03 00 [00:03:03]Write to MH i2c: E2 08 00 19 5D 80 13 03 00 00 00 00 00 F5 [00:03:03]OFD Sender: No OFD packet to send [00:03:03]Write i2c OK [00:03:03]MH_I2C_Read... [00:03:04]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:03:04]Read from MH i2c: E2 [00:03:04]MH_I2C_Read... [00:03:04]Read from MH i2c: E2 FD 00 [00:03:04]MH_I2C_Read... [00:03:04]Read from MH i2c: E2 FD 00 19 5D 00 C4 04 85 04 C0 04 6E 04 04 00 36 AE 00 00 69 04 A0 00 6F 04 04 00 43 AB 00 00 B1 04 04 00 34 26 30 4A 70 04 04 00 BB 62 16 37 72 04 04 00 79 C3 19 13 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 70 F3 E0 07 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 54 03 A8 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F3 02 00 00 B1 04 04 00 7E 52 2A 05 70 04 04 00 06 A1 03 05 72 04 03 00 78 B1 26 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 C6 6F 8C EF 03 09 00 90 00 85 [00:03:04]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 36 AE 00 00 69 04 A0 00 6F 04 04 00 43 AB 00 00 B1 04 04 00 34 26 30 4A 70 04 04 00 BB 62 16 37 72 04 04 00 79 C3 19 13 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 70 F3 E0 07 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 54 03 A8 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F3 02 00 00 B1 04 04 00 7E 52 2A 05 70 04 04 00 06 A1 03 05 72 04 03 00 78 B1 26 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 C6 6F 8C EF 03 09 00 90 00 [00:03:04]wFMCommunicate OK [00:03:04]wFMCommunicate request_size=4 [00:03:04]MH_SAM_APDU [00:03:04]CAPDU: 80 17 00 00 [00:03:04]Write to MH i2c: E2 08 00 1A 5D 80 17 00 00 00 00 00 00 F7 [00:03:04]Write i2c OK [00:03:04]MH_I2C_Read... [00:03:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:04]Read from MH i2c: E2 [00:03:04]MH_I2C_Read... [00:03:04]Read from MH i2c: E2 FD 00 [00:03:04]MH_I2C_Read... [00:03:04]Read from MH i2c: E2 FD 00 1A 5D 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AE B3 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 19 [00:03:04]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AE B3 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [00:03:04]wFMCommunicate OK [00:03:04]wFMCommunicate request_size=4 [00:03:04]MH_SAM_APDU [00:03:04]CAPDU: 80 17 00 00 [00:03:04]Write to MH i2c: E2 08 00 1B 5D 80 17 00 00 00 00 00 00 F8 [00:03:04]Write i2c OK [00:03:04]MH_I2C_Read... [00:03:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:05]Read from MH i2c: E2 [00:03:05]MH_I2C_Read... [00:03:05]Read from MH i2c: E2 FD 00 [00:03:05]MH_I2C_Read... [00:03:05]Read from MH i2c: E2 FD 00 1B 5D 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 0D [00:03:05]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:03:05]wFMCommunicate OK [00:03:05]wFMCommunicate request_size=4 [00:03:05]MH_SAM_APDU [00:03:05]CAPDU: 80 17 00 00 [00:03:05]Write to MH i2c: E2 08 00 1C 5D 80 17 00 00 00 00 00 00 F9 [00:03:05]Write i2c OK [00:03:05]MH_I2C_Read... [00:03:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:05]Read from MH i2c: E2 [00:03:05]MH_I2C_Read... [00:03:05]Read from MH i2c: E2 FD 00 [00:03:05]MH_I2C_Read... [00:03:05]Read from MH i2c: E2 FD 00 1C 5D 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 71 [00:03:05]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:03:05]wFMCommunicate OK [00:03:05]wFMCommunicate request_size=4 [00:03:05]MH_SAM_APDU [00:03:05]CAPDU: 80 17 00 00 [00:03:05]Write to MH i2c: E2 08 00 1D 5D 80 17 00 00 00 00 00 00 FA [00:03:05]Write i2c OK [00:03:05]MH_I2C_Read... [00:03:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [00:03:06]Read from MH i2c: E2 [00:03:06]MH_I2C_Read... [00:03:06]Read from MH i2c: E2 E1 00 [00:03:06]MH_I2C_Read... [00:03:06]Read from MH i2c: E2 E1 00 1D 5D 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 E8 [00:03:06]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:03:06]wFMCommunicate OK [00:03:06]SAM_PROTO_GetFMData done [00:03:06]Malloc new data [00:03:06]Malloc new data [00:03:06]Malloc new data [00:03:06]Malloc new data [00:03:06]KKMLoadAndSignCloseShiftData err=0 [00:03:06]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Турдумбек у. К. 04.03.2024 00:03 Смена: 331 РНМ: 0000000000090572 ЗНМ: 0300000013 СНО: Общий режим Чеков за смену: 101 ФД за смену: 103 Всего чеков: 101 ИТОГИ ПРИХОД Чеков: 99 Общий итог: 23196.56 Итого наличными: 13367.00 Итого безнал.: 9829.56 НДС 0% : 0.00 НДС 12% : 2463.28 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 205.10 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 2 Общий итог: 1100.00 Итого наличными: 1100.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 116.89 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 9.74 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 12267.00 НС Приход: 12446694.92 НС Возвр.Прихода: 866597.10 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 45265 ФМ: 0000000000874796 ФПД: 265924905904689 [00:03:06]StoreToDocumentArchive [00:03:06]shift 331 fd 45265 [00:03:06]save to /storage/0331/doc_00045265 [00:03:06]save last doc name /storage/0331/doc_00045265 to /storage/kkm_last_doc_name [00:03:06]save OK [00:03:06]Clear old archive folders... [00:03:06]NVStorageSaveData kkm_registers [00:03:06]File name is /storage/kkm_registers [00:03:06]Write 24 bytes [00:03:06]NVStorageSaveData done [00:03:06]NVStorageSaveData kkm_registers [00:03:06]File name is /storage/kkm_registers [00:03:06]Write 24 bytes [00:03:06]NVStorageSaveData done [00:03:06]ProcessDocumentItem done err = 0, tmpTLVsize=1391 [00:03:06]tlvbuf is 01AEAB60 [00:03:06]SAM_PROTO_ClearQueue [00:03:06]wFMCommunicate request_size=4 [00:03:06]MH_SAM_APDU [00:03:06]CAPDU: 80 09 00 00 [00:03:06]Write to MH i2c: E2 08 00 1E 5D 80 09 00 00 00 00 00 00 ED [00:03:06]Write i2c OK [00:03:06]MH_I2C_Read... [00:03:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:03:06]Read from MH i2c: E2 [00:03:06]MH_I2C_Read... [00:03:06]Read from MH i2c: E2 03 00 [00:03:06]MH_I2C_Read... [00:03:06]Read from MH i2c: E2 03 00 1E 5D 00 90 00 EF [00:03:06]RAPDU: 90 00 [00:03:06]wFMCommunicate OK [00:03:06]SAM_PROTO_ClearQueue done [00:03:06]KKMCreateOFDPacket [00:03:06]OFDProtocolAddRootSTLVToBuf [00:03:06]FM_MakeSignedData [00:03:06]FM_MakeSignedData [00:03:06]SAM_PROTO_SignData [00:03:06]wFMCommunicate request_size=4 [00:03:06]MH_SAM_APDU [00:03:06]CAPDU: 80 0D 01 02 [00:03:06]Write to MH i2c: E2 08 00 1F 5D 80 0D 01 02 00 00 00 00 F5 [00:03:06]Write i2c OK [00:03:06]MH_I2C_Read... [00:03:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:03:06]Read from MH i2c: E2 [00:03:06]MH_I2C_Read... [00:03:06]Read from MH i2c: E2 03 00 [00:03:06]MH_I2C_Read... [00:03:06]Read from MH i2c: E2 03 00 1F 5D 00 90 00 F0 [00:03:06]RAPDU: 90 00 [00:03:06]wFMCommunicate OK [00:03:06]wFMCommunicate request_size=255 [00:03:06]MH_SAM_APDU [00:03:06]CAPDU: 80 0D 02 02 FA 05 00 6F 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 1B 00 D0 A2 D1 83 D1 80 D0 B4 D1 83 D0 BC D0 B1 D0 B5 D0 BA 20 D1 83 2E 20 D0 9A 2E 20 F4 03 04 00 C1 0F E5 65 0E 04 04 00 4B 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 5E 04 04 00 65 00 00 00 57 04 04 00 67 00 00 00 AA 04 DB 04 6E 04 04 00 65 00 00 00 69 04 A2 00 6F 04 04 00 63 00 00 00 B1 04 03 00 28 65 23 70 04 03 00 7C 65 14 72 04 03 00 AC FF 0E 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 38 C2 03 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 [00:03:06]Write to MH i2c: E2 02 01 20 5D 80 0D 02 02 FA 00 05 00 6F 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 1B 00 D0 A2 D1 83 D1 80 D0 B4 D1 83 D0 BC D0 B1 D0 B5 D0 BA 20 D1 83 2E 20 D0 9A 2E 20 F4 03 04 00 C1 0F E5 65 0E 04 04 00 4B 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 5E 04 04 00 65 00 00 00 57 04 04 00 67 00 00 00 AA 04 DB 04 6E 04 04 00 65 00 00 00 69 04 A2 00 6F 04 04 00 63 00 00 00 B1 04 03 00 28 65 23 70 04 03 00 7C 65 14 72 04 03 00 AC FF 0E 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 38 C2 03 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 00 00 48 [00:03:06]Write i2c OK [00:03:06]MH_I2C_Read... [00:03:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:03:07]Read from MH i2c: E2 [00:03:07]MH_I2C_Read... [00:03:07]Read from MH i2c: E2 03 00 [00:03:07]MH_I2C_Read... [00:03:07]Read from MH i2c: E2 03 00 20 5D 00 90 00 F1 [00:03:07]RAPDU: 90 00 [00:03:07]wFMCommunicate OK [00:03:07]wFMCommunicate request_size=255 [00:03:07]MH_SAM_APDU [00:03:07]CAPDU: 80 0D 02 02 FA 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 1E 50 6A 04 9F 00 6F 04 04 00 02 00 00 00 B1 04 03 00 B0 AD 01 70 04 03 00 B0 AD 01 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 A9 2D 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 CE 03 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 [00:03:07]Write to MH i2c: E2 02 01 21 5D 80 0D 02 02 FA 00 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 1E 50 6A 04 9F 00 6F 04 04 00 02 00 00 00 B1 04 03 00 B0 AD 01 70 04 03 00 B0 AD 01 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 A9 2D 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 CE 03 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 00 00 5E [00:03:07]Write i2c OK [00:03:07]MH_I2C_Read... [00:03:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:03:07]Read from MH i2c: E2 [00:03:07]MH_I2C_Read... [00:03:07]Read from MH i2c: E2 03 00 [00:03:07]MH_I2C_Read... [00:03:07]Read from MH i2c: E2 03 00 21 5D 00 90 00 F2 [00:03:07]RAPDU: 90 00 [00:03:07]wFMCommunicate OK [00:03:07]wFMCommunicate request_size=255 [00:03:07]MH_SAM_APDU [00:03:07]CAPDU: 80 0D 02 02 FA 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:03:07]Write to MH i2c: E2 02 01 22 5D 80 0D 02 02 FA 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 00 B7 [00:03:07]Write i2c OK [00:03:07]MH_I2C_Read... [00:03:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:03:08]Read from MH i2c: E2 [00:03:08]MH_I2C_Read... [00:03:08]Read from MH i2c: E2 03 00 [00:03:08]MH_I2C_Read... [00:03:08]Read from MH i2c: E2 03 00 22 5D 00 90 00 F3 [00:03:08]RAPDU: 90 00 [00:03:08]wFMCommunicate OK [00:03:08]wFMCommunicate request_size=255 [00:03:08]MH_SAM_APDU [00:03:08]CAPDU: 80 0D 02 02 FA 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:03:08]Write to MH i2c: E2 02 01 23 5D 80 0D 02 02 FA 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 C0 [00:03:08]Write i2c OK [00:03:08]MH_I2C_Read... [00:03:08]OFD Sender: No OFD packet to send [00:03:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:03:08]Read from MH i2c: E2 [00:03:08]MH_I2C_Read... [00:03:08]Read from MH i2c: E2 03 00 [00:03:08]MH_I2C_Read... [00:03:08]Read from MH i2c: E2 03 00 23 5D 00 90 00 F4 [00:03:08]RAPDU: 90 00 [00:03:08]wFMCommunicate OK [00:03:08]wFMCommunicate request_size=255 [00:03:08]MH_SAM_APDU [00:03:08]CAPDU: 80 0D 02 02 FA 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:03:08]Write to MH i2c: E2 02 01 24 5D 80 0D 02 02 FA 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 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 00 00 88 [00:03:09]Write i2c OK [00:03:09]MH_I2C_Read... [00:03:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:03:09]Read from MH i2c: E2 [00:03:09]MH_I2C_Read... [00:03:09]Read from MH i2c: E2 03 00 [00:03:09]MH_I2C_Read... [00:03:09]Read from MH i2c: E2 03 00 24 5D 00 90 00 F5 [00:03:09]RAPDU: 90 00 [00:03:09]wFMCommunicate OK [00:03:09]wFMCommunicate request_size=150 [00:03:09]MH_SAM_APDU [00:03:09]CAPDU: 80 0D 02 02 91 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 D1 B0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 35 04 06 00 F1 DB 77 8D AA 31 [00:03:09]Write to MH i2c: E2 99 00 25 5D 80 0D 02 02 91 00 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 D1 B0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 35 04 06 00 F1 DB 77 8D AA 31 00 00 77 [00:03:09]Write i2c OK [00:03:09]MH_I2C_Read... [00:03:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:03:09]Read from MH i2c: E2 [00:03:09]MH_I2C_Read... [00:03:09]Read from MH i2c: E2 03 00 [00:03:09]MH_I2C_Read... [00:03:09]Read from MH i2c: E2 03 00 25 5D 00 90 00 F6 [00:03:09]RAPDU: 90 00 [00:03:09]wFMCommunicate OK [00:03:09]wFMCommunicate request_size=4 [00:03:09]MH_SAM_APDU [00:03:09]CAPDU: 80 0D 03 02 [00:03:09]Write to MH i2c: E2 08 00 26 5D 80 0D 03 02 00 00 00 00 FE [00:03:09]Write i2c OK [00:03:09]MH_I2C_Read... [00:03:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:03:09]Read from MH i2c: E2 [00:03:09]MH_I2C_Read... [00:03:09]Read from MH i2c: E2 0B 00 [00:03:09]MH_I2C_Read... [00:03:09]Read from MH i2c: E2 0B 00 26 5D 00 4E B8 7A 79 FD 56 78 68 90 00 2B [00:03:09]RAPDU: 4E B8 7A 79 FD 56 78 68 90 00 [00:03:09]wFMCommunicate OK [00:03:09]SAM_PROTO_SignData done [00:03:09]FM_MakeSignedData done [00:03:09]CreateOFDProtocolMessage [00:03:09]wFMCommunicate request_size=4 [00:03:09]MH_SAM_APDU [00:03:09]CAPDU: 80 11 00 00 [00:03:09]Write to MH i2c: E2 08 00 27 5D 80 11 00 00 00 00 00 00 FE [00:03:09]Write i2c OK [00:03:09]MH_I2C_Read... [00:03:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:03:09]Read from MH i2c: E2 [00:03:09]MH_I2C_Read... [00:03:09]Read from MH i2c: E2 17 00 [00:03:09]MH_I2C_Read... [00:03:09]Read from MH i2c: E2 17 00 27 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 5A [00:03:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [00:03:09]wFMCommunicate OK [00:03:09]CreateOFDProtocolMessage done [00:03:09]OFDSenderStorePacket 45265 [00:03:09]StoreOFDPacket docnum=45265 [00:03:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 83 05 00 00 9B E6 7B 05 99 D3 5A 05 01 00 05 00 6F 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 1B 00 D0 A2 D1 83 D1 80 D0 B4 D1 83 D0 BC D0 B1 D0 B5 D0 BA 20 D1 83 2E 20 D0 9A 2E 20 F4 03 04 00 C1 0F E5 65 0E 04 04 00 4B 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 5E 04 04 00 65 00 00 00 57 04 04 00 67 00 00 00 AA 04 DB 04 6E 04 04 00 65 00 00 00 69 04 A2 00 6F 04 04 00 63 00 00 00 B1 04 03 00 28 65 23 70 04 03 00 7C 65 14 72 04 03 00 AC FF 0E 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 38 C2 03 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 1E 50 6A 04 9F 00 6F 04 04 00 02 00 00 00 B1 04 03 00 B0 AD 01 70 04 03 00 B0 AD 01 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 A9 2D 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 CE 03 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 D1 B0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 35 04 06 00 F1 DB 77 8D AA 31 4E B8 7A 79 FD 56 78 68 [00:03:10]CheckFolder [00:03:10]dirname=/storage/ofd_packets [00:03:10]CheckFolder done [00:03:10]ProducePacketName [00:03:10]name=ofd_packets/00045265 [00:03:10]NVStorageSaveData ofd_packets/00045265 [00:03:10]File name is /storage/ofd_packets/00045265 [00:03:10]Write 1441 bytes [00:03:10]NVStorageSaveData done [00:03:10]OFDSenderStorePacket done [00:03:10]KKMCreateOFDPacket done [00:03:10]NVStorageSaveData kkm_last_timestamp [00:03:10]File name is /storage/kkm_last_timestamp [00:03:10]Write 4 bytes [00:03:10]NVStorageSaveData done [00:03:10]ExternCall_PrintAddStr [00:03:10]wPrintStart [00:03:10]Write to MH i2c: 01 00 00 28 5D 85 [00:03:10]Write i2c OK [00:03:10]MH_I2C_Read... [00:03:10]Read from MH i2c: 01 [00:03:10]MH_I2C_Read... [00:03:10]Read from MH i2c: 01 07 00 [00:03:10]MH_I2C_Read... [00:03:10]Read from MH i2c: 01 07 00 28 5D 00 00 00 00 00 FF 0F 9A [00:03:10]RasterBufferAndPrint [00:03:10]line Отчет о закрытии смены [00:03:10]line ФФД: 1.0 [00:03:10]line ИНН: 02508201610067 [00:03:10]line Кассир: Турдумбек у. К. [00:03:10]line 04.03.2024 00:03 [00:03:10]line Смена: 331 [00:03:10]line РНМ: 0000000000090572 [00:03:10]line ЗНМ: 0300000013 [00:03:10]line СНО: Общий режим [00:03:10]line Чеков за смену: 101 [00:03:10]line ФД за смену: 103 [00:03:10]line Всего чеков: 101 [00:03:10]line ИТОГИ ПРИХОД [00:03:10]line Чеков: 99 [00:03:10]line Общий итог: 23196.56 [00:03:10]line Итого наличными: 13367.00 [00:03:10]line Итого безнал.: 9829.56 [00:03:10]line НДС 0% : 0.00 [00:03:10]line НДС 12% : 2463.28 [00:03:10]line НСП 0% : 0.00 [00:03:10]line НСП 1,50% : 0.00 [00:03:10]line НСП 0,50% : 0.00 [00:03:10]line НСП 5% : 0.00 [00:03:10]line НСП 3% : 0.00 [00:03:10]line НСП 2% : 0.00 [00:03:10]line НСП 1% : 205.10 [00:03:10]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:03:10]line Чеков: 2 [00:03:10]line Общий итог: 1100.00 [00:03:10]line Итого наличными: 1100.00 [00:03:10]line Итого безнал.: 0.00 [00:03:10]line НДС 0% : 0.00 [00:03:10]line НДС 12% : 116.89 [00:03:10]line НСП 0% : 0.00 [00:03:10]line НСП 1,50% : 0.00 [00:03:10]line НСП 0,50% : 0.00 [00:03:10]line НСП 5% : 0.00 [00:03:10]line НСП 3% : 0.00 [00:03:10]line НСП 2% : 0.00 [00:03:10]line НСП 1% : 9.74 [00:03:10]line ИТОГИ РАСХОД [00:03:10]line Чеков: 0 [00:03:10]line Общий итог: 0.00 [00:03:10]line Итого наличными: 0.00 [00:03:10]line Итого безнал.: 0.00 [00:03:10]line НДС 0% : 0.00 [00:03:10]line НДС 12% : 0.00 [00:03:10]line НСП 0% : 0.00 [00:03:10]line НСП 1,50% : 0.00 [00:03:10]line НСП 0,50% : 0.00 [00:03:10]line НСП 5% : 0.00 [00:03:10]line НСП 3% : 0.00 [00:03:10]line НСП 2% : 0.00 [00:03:10]line НСП 1% : 0.00 [00:03:10]line ИТОГИ ВОЗВРАТ РАСХОДА [00:03:10]line Чеков: 0 [00:03:10]line Общий итог: 0.00 [00:03:10]line Итого наличными: 0.00 [00:03:10]line Итого безнал.: 0.00 [00:03:10]line НДС 0% : 0.00 [00:03:10]line НДС 12% : 0.00 [00:03:10]line НСП 0% : 0.00 [00:03:10]line НСП 1,50% : 0.00 [00:03:10]line НСП 0,50% : 0.00 [00:03:10]line НСП 5% : 0.00 [00:03:10]line НСП 3% : 0.00 [00:03:10]line НСП 2% : 0.00 [00:03:10]line НСП 1% : 0.00 [00:03:10]line Сумма внесений: 0.00 [00:03:10]line Сумма выплат: 0.00 [00:03:10]line Нал. в кассе: 12267.00 [00:03:10]line НС Приход: 12446694.92 [00:03:10]line НС Возвр.Прихода: 866597.10 [00:03:10]line НС Расход: 0.00 [00:03:10]line НС Возвр.Расхода: 0.00 [00:03:10]line ФД: 45265 [00:03:10]line ФМ: 0000000000874796 [00:03:10]line ФПД: 265924905904689 [00:03:10]OFD Sender: Processing packet 45265 [packets to send 17, broken 16] [00:03:10]ProducePacketName [00:03:10]name=ofd_packets/00045265 [00:03:10]OFD Sender: To server: pG, [00:03:10]CommunicateWithHost lk.salyk.kg:30040 [00:03:10]ConnectInit lk.salyk.kg [00:03:10]written 0, free lines is 4095 [00:03:10]Connected sock=10 [00:03:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 83 05 00 00 9B E6 7B 05 99 D3 5A 05 01 00 05 00 6F 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 1B 00 D0 A2 D1 83 D1 80 D0 B4 D1 83 D0 BC D0 B1 D0 B5 D0 BA 20 D1 83 2E 20 D0 9A 2E 20 F4 03 04 00 C1 0F E5 65 0E 04 04 00 4B 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 5E 04 04 00 65 00 00 00 57 04 04 00 67 00 00 00 AA 04 DB 04 6E 04 04 00 65 00 00 00 69 04 A2 00 6F 04 04 00 63 00 00 00 B1 04 03 00 28 65 23 70 04 03 00 7C 65 14 72 04 03 00 AC FF 0E 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 38 C2 03 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 1E 50 6A 04 9F 00 6F 04 04 00 02 00 00 00 B1 04 03 00 B0 AD 01 70 04 03 00 B0 AD 01 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 A9 2D 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 CE 03 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 Write to MH i2c: 0A 01 00 00 F6 00 03 78 01 5D 00 04 F7 03 01 00 D5 00 [00:03:11]EF 03 0A 00 F6 03 01 00 03 F7 Write i2c OK [00:03:11]03 MH_I2C_Read... [00:03:11]01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 Read from MH i2c: 03 01 01 [00:03:11]MH_I2C_Read... [00:03:11]Read from MH i2c: 01 07 00 [00:03:11]MH_I2C_Read... [00:03:11]Read from MH i2c: 01 07 00 00 78 00 5D EF 00 03 00 0A 00 00 00 F6 00 03 12 01 0B 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 F9 [00:03:11]RasterBufferAndPrint [00:03:11]line [00:03:11]line [00:03:11]line [00:03:11]line [00:03:11]line [00:03:11]EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 written 0, free lines is 3166 [00:03:11]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 MH_Cut [00:03:11]00 Write to MH i2c: 00 D1 00 01 04 00 75 7F 00 5D EE 01 03 AE 09 [00:03:11]00 F2 Write i2c OK [00:03:11]03 MH_I2C_Read... [00:03:11]01 Read from MH i2c: 00 D1 00 [00:03:11]F3 MH_I2C_Read... [00:03:11]03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 Read from MH i2c: EF D1 03 01 09 00 00 [00:03:11]F6 MH_I2C_Read... [00:03:11]03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 Read from MH i2c: 00 D1 F6 01 03 00 01 7F 00 5D 02 00 F7 AD 03 [00:03:11]00 Write to MH i2c: 00 01 EF 00 03 00 09 80 00 5D F6 DD [00:03:11]03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 Write i2c OK [00:03:11]00 MH_I2C_Read... [00:03:11]EF 03 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 D1 B0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 35 04 06 00 F1 DB 77 8D AA 31 4E B8 7A 79 FD 56 78 68 [00:03:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 EB 72 47 00 57 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 34 37 39 36 10 04 04 00 D1 B0 00 00 F4 03 04 00 8F BB E4 65 B6 04 01 00 00 4B C4 D8 41 99 D5 19 65 [00:03:12]CommunicateWithHost err = 0 [00:03:12]CheckOFDResponse [00:03:12]*** Cut start [00:03:12]1017 (14) - 77093643461234 [00:03:12]*** Purtial cut [00:03:12]1041 (16) - 0000000000874796 [00:03:12]*** Stage 1: CUTSNS_PIN = 1 [00:03:12]1040 (4) - 45265 [00:03:12]1012 (4) - 03.03.2024 18:03 [00:03:12]1206 (1) - 0 [00:03:12]OFD Sender: Remove packet 45265 [00:03:12]ProducePacketName [00:03:12]name=ofd_packets/00045265 [00:03:12]NVStorageDeleteData [00:03:12]OFD Sender: No OFD packet to send [00:03:14]Read from MH i2c: 01 [00:03:14]MH_I2C_Read... [00:03:14]*** Stop cut motor [00:03:14]*** Cut end [00:03:14]Read from MH i2c: 01 07 00 [00:03:14]MH_I2C_Read... [00:03:14]Read from MH i2c: 01 07 00 80 5D 00 00 00 00 00 FF 0F F2 [00:03:14]process_action close_shift done [00:03:14]requested_data is exist [00:03:14]produce_requested_data [00:03:14]requested_item fd.num is exist - process it [00:03:14]SAM_PROTO_GetFieldsCounters [00:03:14]wFMCommunicate request_size=4 [00:03:14]MH_SAM_APDU [00:03:14]CAPDU: 80 13 00 00 [00:03:14]Write to MH i2c: E2 08 00 81 5D 80 13 00 00 00 00 00 00 5A [00:03:14]Write i2c OK [00:03:14]MH_I2C_Read... [00:03:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:03:14]Read from MH i2c: E2 [00:03:14]MH_I2C_Read... [00:03:14]Read from MH i2c: E2 62 00 [00:03:14]MH_I2C_Read... [00:03:14]Read from MH i2c: E2 62 00 81 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 D1 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 7F [00:03:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 D1 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:03:14]wFMCommunicate OK [00:03:14]SAM_PROTO_GetFieldsCounters done [00:03:14]requested_item shift.num is exist - process it [00:03:14]requested_item shift.opened is exist - process it [00:03:14]req_shift_opened [00:03:14]FM_GetShiftState [00:03:14]SAM_PROTO_GetShiftState [00:03:14]wFMCommunicate request_size=4 [00:03:14]MH_SAM_APDU [00:03:14]CAPDU: 80 13 01 00 [00:03:14]Write to MH i2c: E2 08 00 82 5D 80 13 01 00 00 00 00 00 5C [00:03:14]Write i2c OK [00:03:14]MH_I2C_Read... [00:03:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:03:14]Read from MH i2c: E2 [00:03:14]MH_I2C_Read... [00:03:14]Read from MH i2c: E2 0E 00 [00:03:14]MH_I2C_Read... [00:03:14]Read from MH i2c: E2 0E 00 82 5D 00 09 00 00 00 00 00 00 00 00 00 00 90 00 67 [00:03:14]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:03:14]wFMCommunicate OK [00:03:14]SAM_PROTO_GetShiftState done [00:03:14]FM_GetShiftState done [00:03:14]req_shift_opened done [00:03:14]requested_item shift.open_date is exist - process it [00:03:14]req_shift_open_date [00:03:14]FM_GetShiftState [00:03:14]SAM_PROTO_GetShiftState [00:03:14]wFMCommunicate request_size=4 [00:03:14]MH_SAM_APDU [00:03:14]CAPDU: 80 13 01 00 [00:03:14]Write to MH i2c: E2 08 00 83 5D 80 13 01 00 00 00 00 00 5D [00:03:14]Write i2c OK [00:03:14]MH_I2C_Read... [00:03:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:03:14]Read from MH i2c: E2 [00:03:14]MH_I2C_Read... [00:03:14]Read from MH i2c: E2 0E 00 [00:03:14]MH_I2C_Read... [00:03:14]Read from MH i2c: E2 0E 00 83 5D 00 09 00 00 00 00 00 00 00 00 00 00 90 00 68 [00:03:14]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:03:14]wFMCommunicate OK [00:03:14]SAM_PROTO_GetShiftState done [00:03:14]FM_GetShiftState done [00:03:14]req_shift_open_date done [00:03:14]produce_requested_data done [00:03:14]produce_requested_data return {"fd.num":45265,"shift.num":331,"shift.opened":0,"shift.open_date":0} [00:03:14]process_action_free close_shift [00:03:14]json_value_free [00:03:14]json_value_free done [00:03:14]process_json_proto returns [00:03:14]Send response to host [00:03:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":45265,"shift.num":331,"shift.opened":0,"shift.open_date":0}}} [00:03:14]free response buf [00:03:14]execute_script done [00:03:14]execute_script returns [00:03:14]free content buf [00:03:14]Sock 9.Close socket [00:03:14]Sock 9.Thread stoped [00:03:17]OFD Sender: No OFD packet to send [00:03:22]OFD Sender: No OFD packet to send [00:03:27]OFD Sender: No OFD packet to send [00:03:32]OFD Sender: No OFD packet to send [00:03:37]OFD Sender: No OFD packet to send [00:03:42]OFD Sender: No OFD packet to send [00:03:47]OFD Sender: No OFD packet to send [00:03:52]OFD Sender: No OFD packet to send [00:03:57]OFD Sender: No OFD packet to send [00:04:02]OFD Sender: No OFD packet to send [00:04:07]OFD Sender: No OFD packet to send [00:04:12]OFD Sender: No OFD packet to send [00:04:17]OFD Sender: No OFD packet to send [00:04:22]OFD Sender: No OFD packet to send [00:04:27]OFD Sender: No OFD packet to send [00:04:32]OFD Sender: No OFD packet to send [00:04:37]OFD Sender: No OFD packet to send [00:04:42]OFD Sender: No OFD packet to send [00:04:47]OFD Sender: No OFD packet to send [00:04:52]OFD Sender: No OFD packet to send [00:04:57]OFD Sender: No OFD packet to send [00:05:02]OFD Sender: No OFD packet to send [00:05:07]OFD Sender: No OFD packet to send [00:05:12]OFD Sender: No OFD packet to send [00:05:17]OFD Sender: No OFD packet to send [00:05:22]OFD Sender: No OFD packet to send [00:05:27]OFD Sender: No OFD packet to send [00:05:32]OFD Sender: No OFD packet to send [00:05:37]OFD Sender: No OFD packet to send [00:05:42]OFD Sender: No OFD packet to send [00:05:47]OFD Sender: No OFD packet to send [00:05:52]OFD Sender: No OFD packet to send [00:05:57]OFD Sender: No OFD packet to send [00:06:02]OFD Sender: No OFD packet to send [00:06:07]OFD Sender: No OFD packet to send [00:06:12]OFD Sender: No OFD packet to send [00:06:17]OFD Sender: No OFD packet to send [00:06:22]OFD Sender: No OFD packet to send [00:06:27]OFD Sender: No OFD packet to send [00:06:32]OFD Sender: No OFD packet to send [00:06:37]OFD Sender: No OFD packet to send [00:06:42]OFD Sender: No OFD packet to send [00:06:47]OFD Sender: No OFD packet to send [00:06:52]OFD Sender: No OFD packet to send [00:06:57]OFD Sender: No OFD packet to send [00:07:02]OFD Sender: No OFD packet to send [00:07:07]OFD Sender: No OFD packet to send [00:07:12]OFD Sender: No OFD packet to send [00:07:18]OFD Sender: No OFD packet to send [00:07:23]OFD Sender: No OFD packet to send [00:07:28]OFD Sender: No OFD packet to send [00:07:33]OFD Sender: No OFD packet to send [00:07:36]accept exits with 7 [00:07:36]New connection [00:07:36]New thread 3067014500 created [00:07:36]Thread 3067157860 joined [00:07:36]Waiting for new connection... [00:07:36] Sock 7.Parse request [00:07:36]Sock 7.Check first char [00:07:36]Sock 7.First char is OK [00:07:36]request: POST /json_proto HTTP/1.0 [00:07:36]Method: POST [00:07:36]URL: /json_proto [00:07:36]Method is POST - this is cgi request [00:07:36]url: /json_proto [00:07:36]query_string will be loaded in cgi processing [00:07:36]execute_cgi json_proto POST (null) [00:07:36]execute_cgi path=json_proto method=POST [00:07:36]POST find Content-Length [00:07:36]Host: 172.17.48.198:8080 [00:07:36]Content-Length: 215 [00:07:36]Content-Type: application/json [00:07:36] [00:07:36]POST finish read [00:07:36]Found Content-Length = 215 [00:07:36]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:07:36]execute_script... [00:07:36]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:07:36]POST & json_proto [00:07:36]process_json_proto [00:07:36]json parsed OK: [00:07:36]protocol is kg_v1.0 [00:07:36]action value=get_value [00:07:36]process_action get_value [00:07:36]cmd_get_value [00:07:36]process_action get_value done [00:07:36]requested_data is exist [00:07:36]produce_requested_data [00:07:36]requested_item kkm.sn is exist - process it [00:07:36]requested_item kkm.ver is exist - process it [00:07:36]requested_item fm.sn is exist - process it [00:07:36]wFMCommunicate request_size=4 [00:07:36]MH_SAM_APDU [00:07:36]CAPDU: 80 11 00 00 [00:07:36]Write to MH i2c: E2 08 00 84 5D 80 11 00 00 00 00 00 00 5B [00:07:36]Write i2c OK [00:07:36]MH_I2C_Read... [00:07:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:07:36]Read from MH i2c: E2 [00:07:36]MH_I2C_Read... [00:07:36]Read from MH i2c: E2 17 00 [00:07:36]MH_I2C_Read... [00:07:36]Read from MH i2c: E2 17 00 84 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 B7 [00:07:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [00:07:36]wFMCommunicate OK [00:07:36]requested_item fd.num is exist - process it [00:07:36]SAM_PROTO_GetFieldsCounters [00:07:36]wFMCommunicate request_size=4 [00:07:36]MH_SAM_APDU [00:07:36]CAPDU: 80 13 00 00 [00:07:36]Write to MH i2c: E2 08 00 85 5D 80 13 00 00 00 00 00 00 5E [00:07:36]Write i2c OK [00:07:36]MH_I2C_Read... [00:07:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:07:36]Read from MH i2c: E2 [00:07:36]MH_I2C_Read... [00:07:36]Read from MH i2c: E2 62 00 [00:07:36]MH_I2C_Read... [00:07:36]Read from MH i2c: E2 62 00 85 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 D1 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 83 [00:07:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 D1 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:07:36]wFMCommunicate OK [00:07:36]SAM_PROTO_GetFieldsCounters done [00:07:36]requested_item shift.num is exist - process it [00:07:36]requested_item shift.opened is exist - process it [00:07:36]req_shift_opened [00:07:36]FM_GetShiftState [00:07:36]SAM_PROTO_GetShiftState [00:07:36]wFMCommunicate request_size=4 [00:07:36]MH_SAM_APDU [00:07:36]CAPDU: 80 13 01 00 [00:07:36]Write to MH i2c: E2 08 00 86 5D 80 13 01 00 00 00 00 00 60 [00:07:36]Write i2c OK [00:07:36]MH_I2C_Read... [00:07:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:07:36]Read from MH i2c: E2 [00:07:36]MH_I2C_Read... [00:07:36]Read from MH i2c: E2 0E 00 [00:07:36]MH_I2C_Read... [00:07:36]Read from MH i2c: E2 0E 00 86 5D 00 09 00 00 00 00 00 00 00 00 00 00 90 00 6B [00:07:36]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:07:36]wFMCommunicate OK [00:07:36]SAM_PROTO_GetShiftState done [00:07:36]FM_GetShiftState done [00:07:36]req_shift_opened done [00:07:36]requested_item shift.open_date is exist - process it [00:07:36]req_shift_open_date [00:07:36]FM_GetShiftState [00:07:36]SAM_PROTO_GetShiftState [00:07:36]wFMCommunicate request_size=4 [00:07:36]MH_SAM_APDU [00:07:36]CAPDU: 80 13 01 00 [00:07:36]Write to MH i2c: E2 08 00 87 5D 80 13 01 00 00 00 00 00 61 [00:07:36]Write i2c OK [00:07:36]MH_I2C_Read... [00:07:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:07:36]Read from MH i2c: E2 [00:07:36]MH_I2C_Read... [00:07:36]Read from MH i2c: E2 0E 00 [00:07:36]MH_I2C_Read... [00:07:36]Read from MH i2c: E2 0E 00 87 5D 00 09 00 00 00 00 00 00 00 00 00 00 90 00 6C [00:07:36]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:07:36]wFMCommunicate OK [00:07:36]SAM_PROTO_GetShiftState done [00:07:36]FM_GetShiftState done [00:07:36]req_shift_open_date done [00:07:36]produce_requested_data done [00:07:36]produce_requested_data return {"kkm.sn":"0300000013","kkm.ver":"001","fm.sn":"0000000000874796","fd.num":45265,"shift.num":331,"shift.opened":0,"shift.open_date":0} [00:07:36]process_action_free get_value [00:07:36]json_value_free [00:07:36]json_value_free done [00:07:36]process_json_proto returns [00:07:36]Send response to host [00:07:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000013","kkm.ver":"001","fm.sn":"0000000000874796","fd.num":45265,"shift.num":331,"shift.opened":0,"shift.open_date":0}}} [00:07:36]free response buf [00:07:36]execute_script done [00:07:36]execute_script returns [00:07:36]free content buf [00:07:36]Sock 7.Close socket [00:07:36]Sock 7.Thread stoped [00:07:38]OFD Sender: No OFD packet to send [00:07:40]accept exits with 9 [00:07:40]New connection [00:07:40]New thread 3067157860 created [00:07:40]Thread 3067014500 joined [00:07:40]Waiting for new connection... [00:07:40] Sock 9.Parse request [00:07:40]Sock 9.Check first char [00:07:40]Sock 9.First char is OK [00:07:40]request: POST /json_proto HTTP/1.0 [00:07:40]Method: POST [00:07:40]URL: /json_proto [00:07:40]Method is POST - this is cgi request [00:07:40]url: /json_proto [00:07:40]query_string will be loaded in cgi processing [00:07:40]execute_cgi json_proto POST (null) [00:07:40]execute_cgi path=json_proto method=POST [00:07:40]POST find Content-Length [00:07:40]Host: 172.17.48.198:8080 [00:07:40]Content-Length: 331 [00:07:40]Content-Type: application/json [00:07:40] [00:07:40]POST finish read [00:07:40]Found Content-Length = 331 [00:07:40]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:07:40]execute_script... [00:07:40]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:07:40]POST & json_proto [00:07:40]process_json_proto [00:07:40]json parsed OK: [00:07:40]protocol is kg_v1.0 [00:07:40]action value=get_value [00:07:40]process_action get_value [00:07:40]cmd_get_value [00:07:40]process_action get_value done [00:07:40]requested_data is exist [00:07:40]produce_requested_data [00:07:40]requested_item fm.sale.total is exist - process it [00:07:40]SAM_PROTO_GetFMData [00:07:40]wFMCommunicate request_size=4 [00:07:40]MH_SAM_APDU [00:07:40]CAPDU: 80 13 03 00 [00:07:40]Write to MH i2c: E2 08 00 88 5D 80 13 03 00 00 00 00 00 64 [00:07:40]Write i2c OK [00:07:40]MH_I2C_Read... [00:07:40]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:07:40]Read from MH i2c: E2 [00:07:40]MH_I2C_Read... [00:07:40]Read from MH i2c: E2 FD 00 [00:07:40]MH_I2C_Read... [00:07:40]Read from MH i2c: E2 FD 00 88 5D 00 C4 04 85 04 C0 04 6E 04 04 00 36 AE 00 00 69 04 A0 00 6F 04 04 00 43 AB 00 00 B1 04 04 00 34 26 30 4A 70 04 04 00 BB 62 16 37 72 04 04 00 79 C3 19 13 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 70 F3 E0 07 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 54 03 A8 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F3 02 00 00 B1 04 04 00 7E 52 2A 05 70 04 04 00 06 A1 03 05 72 04 03 00 78 B1 26 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 C6 6F 8C EF 03 09 00 90 00 F4 [00:07:40]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 36 AE 00 00 69 04 A0 00 6F 04 04 00 43 AB 00 00 B1 04 04 00 34 26 30 4A 70 04 04 00 BB 62 16 37 72 04 04 00 79 C3 19 13 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 70 F3 E0 07 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 54 03 A8 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F3 02 00 00 B1 04 04 00 7E 52 2A 05 70 04 04 00 06 A1 03 05 72 04 03 00 78 B1 26 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 C6 6F 8C EF 03 09 00 90 00 [00:07:40]wFMCommunicate OK [00:07:40]wFMCommunicate request_size=4 [00:07:40]MH_SAM_APDU [00:07:40]CAPDU: 80 17 00 00 [00:07:40]Write to MH i2c: E2 08 00 89 5D 80 17 00 00 00 00 00 00 66 [00:07:40]Write i2c OK [00:07:40]MH_I2C_Read... [00:07:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:40]Read from MH i2c: E2 [00:07:40]MH_I2C_Read... [00:07:40]Read from MH i2c: E2 FD 00 [00:07:40]MH_I2C_Read... [00:07:40]Read from MH i2c: E2 FD 00 89 5D 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AE B3 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 88 [00:07:40]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AE B3 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [00:07:40]wFMCommunicate OK [00:07:40]wFMCommunicate request_size=4 [00:07:40]MH_SAM_APDU [00:07:40]CAPDU: 80 17 00 00 [00:07:40]Write to MH i2c: E2 08 00 8A 5D 80 17 00 00 00 00 00 00 67 [00:07:40]Write i2c OK [00:07:40]MH_I2C_Read... [00:07:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:41]Read from MH i2c: E2 [00:07:41]MH_I2C_Read... [00:07:41]Read from MH i2c: E2 FD 00 [00:07:41]MH_I2C_Read... [00:07:41]Read from MH i2c: E2 FD 00 8A 5D 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 7C [00:07:41]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:41]wFMCommunicate OK [00:07:41]wFMCommunicate request_size=4 [00:07:41]MH_SAM_APDU [00:07:41]CAPDU: 80 17 00 00 [00:07:41]Write to MH i2c: E2 08 00 8B 5D 80 17 00 00 00 00 00 00 68 [00:07:41]Write i2c OK [00:07:41]MH_I2C_Read... [00:07:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:41]Read from MH i2c: E2 [00:07:41]MH_I2C_Read... [00:07:41]Read from MH i2c: E2 FD 00 [00:07:41]MH_I2C_Read... [00:07:41]Read from MH i2c: E2 FD 00 8B 5D 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E0 [00:07:41]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:41]wFMCommunicate OK [00:07:41]wFMCommunicate request_size=4 [00:07:41]MH_SAM_APDU [00:07:41]CAPDU: 80 17 00 00 [00:07:41]Write to MH i2c: E2 08 00 8C 5D 80 17 00 00 00 00 00 00 69 [00:07:41]Write i2c OK [00:07:41]MH_I2C_Read... [00:07:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [00:07:41]Read from MH i2c: E2 [00:07:41]MH_I2C_Read... [00:07:41]Read from MH i2c: E2 E1 00 [00:07:41]MH_I2C_Read... [00:07:41]Read from MH i2c: E2 E1 00 8C 5D 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 57 [00:07:41]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:07:41]wFMCommunicate OK [00:07:41]SAM_PROTO_GetFMData done [00:07:41]requested_item fm.sale_refund.total is exist - process it [00:07:41]requested_item fm.buy.total is exist - process it [00:07:41]requested_item shift.sale.total is exist - process it [00:07:41]SAM_PROTO_GetShiftData [00:07:41]wFMCommunicate request_size=4 [00:07:41]MH_SAM_APDU [00:07:41]CAPDU: 80 13 02 00 [00:07:41]Write to MH i2c: E2 08 00 8D 5D 80 13 02 00 00 00 00 00 68 [00:07:41]Write i2c OK [00:07:41]MH_I2C_Read... [00:07:41]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:07:42]Read from MH i2c: E2 [00:07:42]MH_I2C_Read... [00:07:42]Read from MH i2c: E2 FD 00 [00:07:42]MH_I2C_Read... [00:07:42]Read from MH i2c: E2 FD 00 8D 5D 00 B8 04 AA 04 B4 04 6E 04 04 00 65 00 00 00 69 04 9B 00 6F 04 04 00 63 00 00 00 B1 04 03 00 28 65 23 70 04 03 00 7C 65 14 72 04 03 00 AC FF 0E 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 38 C2 03 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 1E 50 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 02 00 00 00 B1 04 03 00 B0 AD 01 70 04 03 00 B0 AD 01 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 A9 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 7F [00:07:42]RAPDU: B8 04 AA 04 B4 04 6E 04 04 00 65 00 00 00 69 04 9B 00 6F 04 04 00 63 00 00 00 B1 04 03 00 28 65 23 70 04 03 00 7C 65 14 72 04 03 00 AC FF 0E 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 38 C2 03 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 1E 50 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 02 00 00 00 B1 04 03 00 B0 AD 01 70 04 03 00 B0 AD 01 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 A9 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [00:07:42]wFMCommunicate OK [00:07:42]wFMCommunicate request_size=4 [00:07:42]MH_SAM_APDU [00:07:42]CAPDU: 80 17 00 00 [00:07:42]Write to MH i2c: E2 08 00 8E 5D 80 17 00 00 00 00 00 00 6B [00:07:42]Write i2c OK [00:07:42]MH_I2C_Read... [00:07:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:42]Read from MH i2c: E2 [00:07:42]MH_I2C_Read... [00:07:42]Read from MH i2c: E2 FD 00 [00:07:42]MH_I2C_Read... [00:07:42]Read from MH i2c: E2 FD 00 8E 5D 00 0B 00 F6 03 01 00 01 F7 03 02 00 CE 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 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 6D [00:07:42]RAPDU: 0B 00 F6 03 01 00 01 F7 03 02 00 CE 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 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 [00:07:42]wFMCommunicate OK [00:07:42]wFMCommunicate request_size=4 [00:07:42]MH_SAM_APDU [00:07:42]CAPDU: 80 17 00 00 [00:07:42]Write to MH i2c: E2 08 00 8F 5D 80 17 00 00 00 00 00 00 6C [00:07:42]Write i2c OK [00:07:42]MH_I2C_Read... [00:07:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:42]Read from MH i2c: E2 [00:07:42]MH_I2C_Read... [00:07:42]Read from MH i2c: E2 FD 00 [00:07:42]MH_I2C_Read... [00:07:42]Read from MH i2c: E2 FD 00 8F 5D 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 0E [00:07:42]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 [00:07:42]wFMCommunicate OK [00:07:42]wFMCommunicate request_size=4 [00:07:42]MH_SAM_APDU [00:07:42]CAPDU: 80 17 00 00 [00:07:42]Write to MH i2c: E2 08 00 90 5D 80 17 00 00 00 00 00 00 6D [00:07:42]Write i2c OK [00:07:42]MH_I2C_Read... [00:07:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:42]Read from MH i2c: E2 [00:07:42]MH_I2C_Read... [00:07:42]Read from MH i2c: E2 FD 00 [00:07:42]MH_I2C_Read... [00:07:42]Read from MH i2c: E2 FD 00 90 5D 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 F6 [00:07:42]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 [00:07:42]wFMCommunicate OK [00:07:42]wFMCommunicate request_size=4 [00:07:42]MH_SAM_APDU [00:07:42]CAPDU: 80 17 00 00 [00:07:42]Write to MH i2c: E2 08 00 91 5D 80 17 00 00 00 00 00 00 6E [00:07:42]Write i2c OK [00:07:42]MH_I2C_Read... [00:07:43]OFD Sender: No OFD packet to send [00:07:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [00:07:43]Read from MH i2c: E2 [00:07:43]MH_I2C_Read... [00:07:43]Read from MH i2c: E2 D5 00 [00:07:43]MH_I2C_Read... [00:07:43]Read from MH i2c: E2 D5 00 91 5D 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 4F [00:07:43]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 [00:07:43]wFMCommunicate OK [00:07:43]SAM_PROTO_GetShiftData done [00:07:43]requested_item shift.sale.total_cash is exist - process it [00:07:43]requested_item shift.sale_refund.total is exist - process it [00:07:43]requested_item shift.sale_refund.total_cash is exist - process it [00:07:43]requested_item shift.buy.total is exist - process it [00:07:43]requested_item shift.buy.total_cash is exist - process it [00:07:43]produce_requested_data done [00:07:43]produce_requested_data return {"fm.sale.total":12446694.92,"fm.sale_refund.total":866597.10,"fm.buy.total":0.00,"shift.sale.total":23196.56,"shift.sale.total_cash":13367.00,"shift.sale_refund.total":1100.00,"shift.sale_refund.total_cash":1100.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:07:43]process_action_free get_value [00:07:43]json_value_free [00:07:43]json_value_free done [00:07:43]process_json_proto returns [00:07:43]Send response to host [00:07:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":12446694.92,"fm.sale_refund.total":866597.10,"fm.buy.total":0.00,"shift.sale.total":23196.56,"shift.sale.total_cash":13367.00,"shift.sale_refund.total":1100.00,"shift.sale_refund.total_cash":1100.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:07:43]free response buf [00:07:43]execute_script done [00:07:43]execute_script returns [00:07:43]free content buf [00:07:43]Sock 9.Close socket [00:07:43]Sock 9.Thread stoped [00:07:48]OFD Sender: No OFD packet to send [00:07:53]OFD Sender: No OFD packet to send [00:07:58]OFD Sender: No OFD packet to send [00:08:03]OFD Sender: No OFD packet to send [00:08:08]OFD Sender: No OFD packet to send [00:08:13]OFD Sender: No OFD packet to send [00:08:18]OFD Sender: No OFD packet to send [00:08:23]OFD Sender: No OFD packet to send [00:08:28]OFD Sender: No OFD packet to send [00:08:33]OFD Sender: No OFD packet to send [00:08:38]OFD Sender: No OFD packet to send [00:08:43]OFD Sender: No OFD packet to send [00:08:48]OFD Sender: No OFD packet to send [00:08:53]OFD Sender: No OFD packet to send [00:08:58]OFD Sender: No OFD packet to send [00:09:03]OFD Sender: No OFD packet to send [00:09:08]OFD Sender: No OFD packet to send [00:09:13]OFD Sender: No OFD packet to send [00:09:18]OFD Sender: No OFD packet to send [00:09:23]OFD Sender: No OFD packet to send [00:09:28]OFD Sender: No OFD packet to send [00:09:33]OFD Sender: No OFD packet to send [00:09:38]OFD Sender: No OFD packet to send [00:09:43]OFD Sender: No OFD packet to send [00:09:48]OFD Sender: No OFD packet to send [00:09:53]OFD Sender: No OFD packet to send [00:09:58]OFD Sender: No OFD packet to send [00:10:03]OFD Sender: No OFD packet to send [00:10:08]OFD Sender: No OFD packet to send [00:10:13]OFD Sender: No OFD packet to send [00:10:18]OFD Sender: No OFD packet to send [00:10:23]OFD Sender: No OFD packet to send [00:10:28]OFD Sender: No OFD packet to send [00:10:33]OFD Sender: No OFD packet to send [00:10:38]OFD Sender: No OFD packet to send [00:10:43]OFD Sender: No OFD packet to send [00:10:48]OFD Sender: No OFD packet to send [00:10:53]OFD Sender: No OFD packet to send [00:10:58]OFD Sender: No OFD packet to send [00:11:03]OFD Sender: No OFD packet to send [00:11:08]OFD Sender: No OFD packet to send [00:11:13]OFD Sender: No OFD packet to send [00:11:18]OFD Sender: No OFD packet to send [00:11:23]OFD Sender: No OFD packet to send [00:11:28]OFD Sender: No OFD packet to send [00:11:33]OFD Sender: No OFD packet to send [00:11:38]OFD Sender: No OFD packet to send [00:11:43]OFD Sender: No OFD packet to send [00:11:48]OFD Sender: No OFD packet to send [00:11:53]OFD Sender: No OFD packet to send [00:11:58]OFD Sender: No OFD packet to send [00:12:03]OFD Sender: No OFD packet to send [00:12:08]OFD Sender: No OFD packet to send [00:12:13]OFD Sender: No OFD packet to send [00:12:18]OFD Sender: No OFD packet to send [00:12:23]OFD Sender: No OFD packet to send [00:12:28]OFD Sender: No OFD packet to send [00:12:33]OFD Sender: No OFD packet to send [00:12:38]OFD Sender: No OFD packet to send [00:12:43]OFD Sender: No OFD packet to send [00:12:48]OFD Sender: No OFD packet to send [00:12:53]OFD Sender: No OFD packet to send [00:12:58]OFD Sender: No OFD packet to send [00:13:03]OFD Sender: No OFD packet to send [00:13:08]accept exits with 7 [00:13:08]New connection [00:13:08]New thread 3067014500 created [00:13:08]Thread 3067157860 joined [00:13:08]Waiting for new connection... [00:13:08] Sock 7.Parse request [00:13:08]Sock 7.Check first char [00:13:08]Sock 7.First char is OK [00:13:08]request: POST /json_proto HTTP/1.0 [00:13:08]Method: POST [00:13:08]URL: /json_proto [00:13:08]Method is POST - this is cgi request [00:13:08]url: /json_proto [00:13:08]query_string will be loaded in cgi processing [00:13:08]execute_cgi json_proto POST (null) [00:13:08]execute_cgi path=json_proto method=POST [00:13:08]POST find Content-Length [00:13:08]Host: 172.17.48.198:8080 [00:13:08]Content-Length: 215 [00:13:08]Content-Type: application/json [00:13:08] [00:13:08]POST finish read [00:13:08]Found Content-Length = 215 [00:13:08]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:13:08]execute_script... [00:13:08]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:13:08]POST & json_proto [00:13:08]process_json_proto [00:13:08]json parsed OK: [00:13:08]protocol is kg_v1.0 [00:13:08]action value=get_value [00:13:08]process_action get_value [00:13:08]cmd_get_value [00:13:08]process_action get_value done [00:13:08]requested_data is exist [00:13:08]produce_requested_data [00:13:08]requested_item kkm.sn is exist - process it [00:13:08]requested_item kkm.ver is exist - process it [00:13:08]requested_item fm.sn is exist - process it [00:13:08]wFMCommunicate request_size=4 [00:13:08]MH_SAM_APDU [00:13:08]CAPDU: 80 11 00 00 [00:13:08]Write to MH i2c: E2 08 00 92 5D 80 11 00 00 00 00 00 00 69 [00:13:08]Write i2c OK [00:13:08]MH_I2C_Read... [00:13:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:13:08]Read from MH i2c: E2 [00:13:08]MH_I2C_Read... [00:13:08]Read from MH i2c: E2 17 00 [00:13:08]MH_I2C_Read... [00:13:08]Read from MH i2c: E2 17 00 92 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 C5 [00:13:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [00:13:08]wFMCommunicate OK [00:13:08]requested_item fd.num is exist - process it [00:13:08]SAM_PROTO_GetFieldsCounters [00:13:08]wFMCommunicate request_size=4 [00:13:08]MH_SAM_APDU [00:13:08]CAPDU: 80 13 00 00 [00:13:08]Write to MH i2c: E2 08 00 93 5D 80 13 00 00 00 00 00 00 6C [00:13:08]Write i2c OK [00:13:08]MH_I2C_Read... [00:13:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:13:08]Read from MH i2c: E2 [00:13:08]MH_I2C_Read... [00:13:08]Read from MH i2c: E2 62 00 [00:13:08]MH_I2C_Read... [00:13:08]Read from MH i2c: E2 62 00 93 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 D1 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 91 [00:13:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 D1 B0 00 00 0E 04 04 00 4B 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:13:08]wFMCommunicate OK [00:13:08]SAM_PROTO_GetFieldsCounters done [00:13:08]requested_item shift.num is exist - process it [00:13:08]requested_item shift.opened is exist - process it [00:13:08]req_shift_opened [00:13:08]FM_GetShiftState [00:13:08]SAM_PROTO_GetShiftState [00:13:08]wFMCommunicate request_size=4 [00:13:08]MH_SAM_APDU [00:13:08]CAPDU: 80 13 01 00 [00:13:08]Write to MH i2c: E2 08 00 94 5D 80 13 01 00 00 00 00 00 6E [00:13:08]Write i2c OK [00:13:08]MH_I2C_Read... [00:13:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:13:08]Read from MH i2c: E2 [00:13:08]MH_I2C_Read... [00:13:08]Read from MH i2c: E2 0E 00 [00:13:08]MH_I2C_Read... [00:13:08]Read from MH i2c: E2 0E 00 94 5D 00 09 00 00 00 00 00 00 00 00 00 00 90 00 79 [00:13:08]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:13:08]wFMCommunicate OK [00:13:08]SAM_PROTO_GetShiftState done [00:13:08]FM_GetShiftState done [00:13:08]req_shift_opened done [00:13:08]requested_item shift.open_date is exist - process it [00:13:08]req_shift_open_date [00:13:08]FM_GetShiftState [00:13:08]SAM_PROTO_GetShiftState [00:13:08]wFMCommunicate request_size=4 [00:13:08]MH_SAM_APDU [00:13:08]CAPDU: 80 13 01 00 [00:13:08]Write to MH i2c: E2 08 00 95 5D 80 13 01 00 00 00 00 00 6F [00:13:08]Write i2c OK [00:13:08]MH_I2C_Read... [00:13:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:13:08]Read from MH i2c: E2 [00:13:08]MH_I2C_Read... [00:13:08]Read from MH i2c: E2 0E 00 [00:13:08]MH_I2C_Read... [00:13:08]Read from MH i2c: E2 0E 00 95 5D 00 09 00 00 00 00 00 00 00 00 00 00 90 00 7A [00:13:08]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:13:08]wFMCommunicate OK [00:13:08]SAM_PROTO_GetShiftState done [00:13:08]FM_GetShiftState done [00:13:08]req_shift_open_date done [00:13:08]produce_requested_data done [00:13:08]produce_requested_data return {"kkm.sn":"0300000013","kkm.ver":"001","fm.sn":"0000000000874796","fd.num":45265,"shift.num":331,"shift.opened":0,"shift.open_date":0} [00:13:08]process_action_free get_value [00:13:08]json_value_free [00:13:08]json_value_free done [00:13:08]process_json_proto returns [00:13:08]Send response to host [00:13:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000013","kkm.ver":"001","fm.sn":"0000000000874796","fd.num":45265,"shift.num":331,"shift.opened":0,"shift.open_date":0}}} [00:13:08]free response buf [00:13:08]execute_script done [00:13:08]execute_script returns [00:13:08]free content buf [00:13:08]Sock 7.Close socket [00:13:08]Sock 7.Thread stoped [00:13:08]accept exits with 9 [00:13:08]New connection [00:13:08]New thread 3067157860 created [00:13:08]Thread 3067014500 joined [00:13:08]Waiting for new connection... [00:13:08] Sock 9.Parse request [00:13:08]Sock 9.Check first char [00:13:08]Sock 9.First char is OK [00:13:08]request: POST /json_proto HTTP/1.0 [00:13:08]Method: POST [00:13:08]URL: /json_proto [00:13:08]Method is POST - this is cgi request [00:13:08]url: /json_proto [00:13:08]query_string will be loaded in cgi processing [00:13:08]execute_cgi json_proto POST (null) [00:13:08]execute_cgi path=json_proto method=POST [00:13:08]POST find Content-Length [00:13:08]Host: 172.17.48.198:8080 [00:13:08]Content-Length: 331 [00:13:08]Content-Type: application/json [00:13:08] [00:13:08]POST finish read [00:13:08]Found Content-Length = 331 [00:13:08]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:13:08]execute_script... [00:13:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:13:08]POST & json_proto [00:13:08]process_json_proto [00:13:08]json parsed OK: [00:13:08]protocol is kg_v1.0 [00:13:08]action value=get_value [00:13:08]process_action get_value [00:13:08]cmd_get_value [00:13:08]process_action get_value done [00:13:08]requested_data is exist [00:13:08]produce_requested_data [00:13:08]requested_item fm.sale.total is exist - process it [00:13:08]SAM_PROTO_GetFMData [00:13:08]wFMCommunicate request_size=4 [00:13:08]MH_SAM_APDU [00:13:08]CAPDU: 80 13 03 00 [00:13:08]Write to MH i2c: E2 08 00 96 5D 80 13 03 00 00 00 00 00 72 [00:13:08]OFD Sender: No OFD packet to send [00:13:08]Write i2c OK [00:13:08]MH_I2C_Read... [00:13:09]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:13:09]Read from MH i2c: E2 [00:13:09]MH_I2C_Read... [00:13:09]Read from MH i2c: E2 FD 00 [00:13:09]MH_I2C_Read... [00:13:09]Read from MH i2c: E2 FD 00 96 5D 00 C4 04 85 04 C0 04 6E 04 04 00 36 AE 00 00 69 04 A0 00 6F 04 04 00 43 AB 00 00 B1 04 04 00 34 26 30 4A 70 04 04 00 BB 62 16 37 72 04 04 00 79 C3 19 13 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 70 F3 E0 07 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 54 03 A8 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F3 02 00 00 B1 04 04 00 7E 52 2A 05 70 04 04 00 06 A1 03 05 72 04 03 00 78 B1 26 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 C6 6F 8C EF 03 09 00 90 00 02 [00:13:09]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 36 AE 00 00 69 04 A0 00 6F 04 04 00 43 AB 00 00 B1 04 04 00 34 26 30 4A 70 04 04 00 BB 62 16 37 72 04 04 00 79 C3 19 13 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 70 F3 E0 07 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 54 03 A8 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F3 02 00 00 B1 04 04 00 7E 52 2A 05 70 04 04 00 06 A1 03 05 72 04 03 00 78 B1 26 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 C6 6F 8C EF 03 09 00 90 00 [00:13:09]wFMCommunicate OK [00:13:09]wFMCommunicate request_size=4 [00:13:09]MH_SAM_APDU [00:13:09]CAPDU: 80 17 00 00 [00:13:09]Write to MH i2c: E2 08 00 97 5D 80 17 00 00 00 00 00 00 74 [00:13:09]Write i2c OK [00:13:09]MH_I2C_Read... [00:13:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:13:09]Read from MH i2c: E2 [00:13:09]MH_I2C_Read... [00:13:09]Read from MH i2c: E2 FD 00 [00:13:09]MH_I2C_Read... [00:13:09]Read from MH i2c: E2 FD 00 97 5D 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AE B3 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 96 [00:13:09]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AE B3 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [00:13:09]wFMCommunicate OK [00:13:09]wFMCommunicate request_size=4 [00:13:09]MH_SAM_APDU [00:13:09]CAPDU: 80 17 00 00 [00:13:09]Write to MH i2c: E2 08 00 98 5D 80 17 00 00 00 00 00 00 75 [00:13:09]Write i2c OK [00:13:09]MH_I2C_Read... [00:13:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:13:09]Read from MH i2c: E2 [00:13:09]MH_I2C_Read... [00:13:09]Read from MH i2c: E2 FD 00 [00:13:09]MH_I2C_Read... [00:13:09]Read from MH i2c: E2 FD 00 98 5D 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 8A [00:13:09]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:13:09]wFMCommunicate OK [00:13:09]wFMCommunicate request_size=4 [00:13:09]MH_SAM_APDU [00:13:09]CAPDU: 80 17 00 00 [00:13:09]Write to MH i2c: E2 08 00 99 5D 80 17 00 00 00 00 00 00 76 [00:13:09]Write i2c OK [00:13:09]MH_I2C_Read... [00:13:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:13:09]Read from MH i2c: E2 [00:13:09]MH_I2C_Read... [00:13:09]Read from MH i2c: E2 FD 00 [00:13:09]MH_I2C_Read... [00:13:09]Read from MH i2c: E2 FD 00 99 5D 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 EE [00:13:09]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:13:09]wFMCommunicate OK [00:13:09]wFMCommunicate request_size=4 [00:13:09]MH_SAM_APDU [00:13:09]CAPDU: 80 17 00 00 [00:13:09]Write to MH i2c: E2 08 00 9A 5D 80 17 00 00 00 00 00 00 77 [00:13:09]Write i2c OK [00:13:09]MH_I2C_Read... [00:13:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [00:13:10]Read from MH i2c: E2 [00:13:10]MH_I2C_Read... [00:13:10]Read from MH i2c: E2 E1 00 [00:13:10]MH_I2C_Read... [00:13:10]Read from MH i2c: E2 E1 00 9A 5D 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 65 [00:13:10]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:13:10]wFMCommunicate OK [00:13:10]SAM_PROTO_GetFMData done [00:13:10]requested_item fm.sale_refund.total is exist - process it [00:13:10]requested_item fm.buy.total is exist - process it [00:13:10]requested_item shift.sale.total is exist - process it [00:13:10]SAM_PROTO_GetShiftData [00:13:10]wFMCommunicate request_size=4 [00:13:10]MH_SAM_APDU [00:13:10]CAPDU: 80 13 02 00 [00:13:10]Write to MH i2c: E2 08 00 9B 5D 80 13 02 00 00 00 00 00 76 [00:13:10]Write i2c OK [00:13:10]MH_I2C_Read... [00:13:10]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:13:10]Read from MH i2c: E2 [00:13:10]MH_I2C_Read... [00:13:10]Read from MH i2c: E2 FD 00 [00:13:10]MH_I2C_Read... [00:13:10]Read from MH i2c: E2 FD 00 9B 5D 00 B8 04 AA 04 B4 04 6E 04 04 00 65 00 00 00 69 04 9B 00 6F 04 04 00 63 00 00 00 B1 04 03 00 28 65 23 70 04 03 00 7C 65 14 72 04 03 00 AC FF 0E 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 38 C2 03 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 1E 50 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 02 00 00 00 B1 04 03 00 B0 AD 01 70 04 03 00 B0 AD 01 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 A9 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 8D [00:13:10]RAPDU: B8 04 AA 04 B4 04 6E 04 04 00 65 00 00 00 69 04 9B 00 6F 04 04 00 63 00 00 00 B1 04 03 00 28 65 23 70 04 03 00 7C 65 14 72 04 03 00 AC FF 0E 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 38 C2 03 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 1E 50 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 02 00 00 00 B1 04 03 00 B0 AD 01 70 04 03 00 B0 AD 01 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 A9 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [00:13:10]wFMCommunicate OK [00:13:10]wFMCommunicate request_size=4 [00:13:10]MH_SAM_APDU [00:13:10]CAPDU: 80 17 00 00 [00:13:10]Write to MH i2c: E2 08 00 9C 5D 80 17 00 00 00 00 00 00 79 [00:13:10]Write i2c OK [00:13:10]MH_I2C_Read... [00:13:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:13:10]Read from MH i2c: E2 [00:13:10]MH_I2C_Read... [00:13:10]Read from MH i2c: E2 FD 00 [00:13:10]MH_I2C_Read... [00:13:10]Read from MH i2c: E2 FD 00 9C 5D 00 0B 00 F6 03 01 00 01 F7 03 02 00 CE 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 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 7B [00:13:10]RAPDU: 0B 00 F6 03 01 00 01 F7 03 02 00 CE 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 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 [00:13:10]wFMCommunicate OK [00:13:10]wFMCommunicate request_size=4 [00:13:10]MH_SAM_APDU [00:13:10]CAPDU: 80 17 00 00 [00:13:10]Write to MH i2c: E2 08 00 9D 5D 80 17 00 00 00 00 00 00 7A [00:13:10]Write i2c OK [00:13:10]MH_I2C_Read... [00:13:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:13:11]Read from MH i2c: E2 [00:13:11]MH_I2C_Read... [00:13:11]Read from MH i2c: E2 FD 00 [00:13:11]MH_I2C_Read... [00:13:11]Read from MH i2c: E2 FD 00 9D 5D 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 1C [00:13:11]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 [00:13:11]wFMCommunicate OK [00:13:11]wFMCommunicate request_size=4 [00:13:11]MH_SAM_APDU [00:13:11]CAPDU: 80 17 00 00 [00:13:11]Write to MH i2c: E2 08 00 9E 5D 80 17 00 00 00 00 00 00 7B [00:13:11]Write i2c OK [00:13:11]MH_I2C_Read... [00:13:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:13:11]Read from MH i2c: E2 [00:13:11]MH_I2C_Read... [00:13:11]Read from MH i2c: E2 FD 00 [00:13:11]MH_I2C_Read... [00:13:11]Read from MH i2c: E2 FD 00 9E 5D 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 04 [00:13:11]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 [00:13:11]wFMCommunicate OK [00:13:11]wFMCommunicate request_size=4 [00:13:11]MH_SAM_APDU [00:13:11]CAPDU: 80 17 00 00 [00:13:11]Write to MH i2c: E2 08 00 9F 5D 80 17 00 00 00 00 00 00 7C [00:13:11]Write i2c OK [00:13:11]MH_I2C_Read... [00:13:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [00:13:11]Read from MH i2c: E2 [00:13:11]MH_I2C_Read... [00:13:11]Read from MH i2c: E2 D5 00 [00:13:11]MH_I2C_Read... [00:13:11]Read from MH i2c: E2 D5 00 9F 5D 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 5D [00:13:11]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 [00:13:11]wFMCommunicate OK [00:13:11]SAM_PROTO_GetShiftData done [00:13:11]requested_item shift.sale.total_cash is exist - process it [00:13:11]requested_item shift.sale_refund.total is exist - process it [00:13:11]requested_item shift.sale_refund.total_cash is exist - process it [00:13:11]requested_item shift.buy.total is exist - process it [00:13:11]requested_item shift.buy.total_cash is exist - process it [00:13:11]produce_requested_data done [00:13:11]produce_requested_data return {"fm.sale.total":12446694.92,"fm.sale_refund.total":866597.10,"fm.buy.total":0.00,"shift.sale.total":23196.56,"shift.sale.total_cash":13367.00,"shift.sale_refund.total":1100.00,"shift.sale_refund.total_cash":1100.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:13:11]process_action_free get_value [00:13:11]json_value_free [00:13:11]json_value_free done [00:13:11]process_json_proto returns [00:13:11]Send response to host [00:13:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":12446694.92,"fm.sale_refund.total":866597.10,"fm.buy.total":0.00,"shift.sale.total":23196.56,"shift.sale.total_cash":13367.00,"shift.sale_refund.total":1100.00,"shift.sale_refund.total_cash":1100.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:13:11]free response buf [00:13:11]execute_script done [00:13:11]execute_script returns [00:13:11]free content buf [00:13:11]Sock 9.Close socket [00:13:11]Sock 9.Thread stoped [00:13:12]accept exits with 7 [00:13:12]New connection [00:13:12]New thread 3067014500 created [00:13:12]Thread 3067157860 joined [00:13:12]Waiting for new connection... [00:13:12] Sock 7.Parse request [00:13:12]Sock 7.Check first char [00:13:12]Sock 7.First char is OK [00:13:12]request: POST /json_proto HTTP/1.0 [00:13:12]Method: POST [00:13:12]URL: /json_proto [00:13:12]Method is POST - this is cgi request [00:13:12]url: /json_proto [00:13:12]query_string will be loaded in cgi processing [00:13:12]execute_cgi json_proto POST (null) [00:13:12]execute_cgi path=json_proto method=POST [00:13:12]POST find Content-Length [00:13:12]Host: 172.17.48.198:8080 [00:13:12]Content-Length: 271 [00:13:12]Content-Type: application/json [00:13:12] [00:13:12]POST finish read [00:13:12]Found Content-Length = 271 [00:13:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0410\u0431\u044B\u043B\u0433\u0430\u0437\u0438\u0435\u0432 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:13:12]execute_script... [00:13:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0410\u0431\u044B\u043B\u0433\u0430\u0437\u0438\u0435\u0432 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:13:12]POST & json_proto [00:13:12]process_json_proto [00:13:12]json parsed OK: [00:13:12]protocol is kg_v1.0 [00:13:12]action value=open_shift [00:13:12]process_action open_shift [00:13:12]cmd_open_shift [00:13:12]MH_GetDate [00:13:12]Write to MH i2c: F0 00 00 A0 5D EC [00:13:12]Write i2c OK [00:13:12]MH_I2C_Read... [00:13:12]Read from MH i2c: F0 [00:13:12]MH_I2C_Read... [00:13:12]Read from MH i2c: F0 09 00 [00:13:12]MH_I2C_Read... [00:13:12]Read from MH i2c: F0 09 00 A0 5D 00 26 12 E5 65 CE C4 D4 65 42 [00:13:12]GetLastDocTimeStamp 1709510593 [00:13:12]current date 1709511206 [00:13:12]FM_GetShiftState [00:13:12]SAM_PROTO_GetShiftState [00:13:12]wFMCommunicate request_size=4 [00:13:12]MH_SAM_APDU [00:13:12]CAPDU: 80 13 01 00 [00:13:12]Write to MH i2c: E2 08 00 A1 5D 80 13 01 00 00 00 00 00 7B [00:13:12]Write i2c OK [00:13:12]MH_I2C_Read... [00:13:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:13:12]Read from MH i2c: E2 [00:13:12]MH_I2C_Read... [00:13:12]Read from MH i2c: E2 0E 00 [00:13:12]MH_I2C_Read... [00:13:12]Read from MH i2c: E2 0E 00 A1 5D 00 09 00 00 00 00 00 00 00 00 00 00 90 00 86 [00:13:12]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:13:12]wFMCommunicate OK [00:13:12]SAM_PROTO_GetShiftState done [00:13:12]FM_GetShiftState done [00:13:12]KKMCreateOpenShiftDocument [00:13:12]Load OK [00:13:12]Malloc new data [00:13:12]MH_GetDate [00:13:12]Write to MH i2c: F0 00 00 A2 5D EE [00:13:12]Write i2c OK [00:13:12]MH_I2C_Read... [00:13:12]Read from MH i2c: F0 [00:13:12]MH_I2C_Read... [00:13:12]Read from MH i2c: F0 09 00 [00:13:12]MH_I2C_Read... [00:13:12]Read from MH i2c: F0 09 00 A2 5D 00 26 12 E5 65 CE C4 D4 65 44 [00:13:12]Malloc new data [00:13:12]KKMCreateOpenShiftDocument OK [00:13:12]KKMSetOpenShiftData OK [00:13:12]ProcessDocumentItem done err = 0, tmpTLVsize=200 [00:13:12]tlvbuf is 01B1C330 [00:13:12]KKMLoadAndSignOpenShiftData [00:13:12]SAM_PROTO_ProcessDocument [00:13:12]wFMCommunicate request_size=9 [00:13:12]MH_SAM_APDU [00:13:12]CAPDU: 80 15 01 00 04 02 00 C8 00 [00:13:12]Write to MH i2c: E2 0C 00 A3 5D 80 15 01 00 04 00 02 00 C8 00 00 00 51 [00:13:12]Write i2c OK [00:13:12]MH_I2C_Read... [00:13:12]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:13:12]Read from MH i2c: E2 [00:13:12]MH_I2C_Read... [00:13:12]Read from MH i2c: E2 03 00 [00:13:12]MH_I2C_Read... [00:13:12]Read from MH i2c: E2 03 00 A3 5D 00 90 00 74 [00:13:12]RAPDU: 90 00 [00:13:12]wFMCommunicate OK [00:13:12]wFMCommunicate request_size=23 [00:13:12]MH_SAM_APDU [00:13:12]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:13:12]Write to MH i2c: E2 1A 00 A4 5D 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 76 [00:13:12]Write i2c OK [00:13:12]MH_I2C_Read... [00:13:12]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:13:12]Read from MH i2c: E2 [00:13:12]MH_I2C_Read... [00:13:12]Read from MH i2c: E2 03 00 [00:13:12]MH_I2C_Read... [00:13:12]Read from MH i2c: E2 03 00 A4 5D 00 90 00 75 [00:13:12]RAPDU: 90 00 [00:13:12]wFMCommunicate OK [00:13:12]wFMCommunicate request_size=34 [00:13:12]MH_SAM_APDU [00:13:12]CAPDU: 80 15 02 00 1D FD 03 19 00 D0 90 D0 B1 D1 8B D0 BB D0 B3 D0 B0 D0 B7 D0 B8 D0 B5 D0 B2 20 D0 90 2E 20 [00:13:12]Write to MH i2c: E2 25 00 A5 5D 80 15 02 00 1D 00 FD 03 19 00 D0 90 D0 B1 D1 8B D0 BB D0 B3 D0 B0 D0 B7 D0 B8 D0 B5 D0 B2 20 D0 90 2E 20 00 00 84 [00:13:12]Write i2c OK [00:13:12]MH_I2C_Read... [00:13:12]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:13:12]Read from MH i2c: E2 [00:13:12]MH_I2C_Read... [00:13:12]Read from MH i2c: E2 03 00 [00:13:12]MH_I2C_Read... [00:13:12]Read from MH i2c: E2 03 00 A5 5D 00 90 00 76 [00:13:12]RAPDU: 90 00 [00:13:12]wFMCommunicate OK [00:13:12]wFMCommunicate request_size=85 [00:13:12]MH_SAM_APDU [00:13:12]CAPDU: 80 15 02 00 50 F1 03 4C 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2C 20 D1 83 D0 BB 2E 20 D0 9C D0 B5 D0 B4 D0 B5 D1 80 D0 BE D0 B2 D0 B0 20 34 38 20 D0 90 2C 20 34 32 2E 38 35 31 38 36 38 2C 20 37 34 2E 36 31 34 30 31 38 [00:13:12]Write to MH i2c: E2 58 00 A6 5D 80 15 02 00 50 00 F1 03 4C 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2C 20 D1 83 D0 BB 2E 20 D0 9C D0 B5 D0 B4 D0 B5 D1 80 D0 BE D0 B2 D0 B0 20 34 38 20 D0 90 2C 20 34 32 2E 38 35 31 38 36 38 2C 20 37 34 2E 36 31 34 30 31 38 00 00 22 [00:13:12]Write i2c OK [00:13:12]MH_I2C_Read... [00:13:12]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:13:12]Read from MH i2c: E2 [00:13:12]MH_I2C_Read... [00:13:12]Read from MH i2c: E2 03 00 [00:13:12]MH_I2C_Read... [00:13:12]Read from MH i2c: E2 03 00 A6 5D 00 90 00 77 [00:13:12]RAPDU: 90 00 [00:13:12]wFMCommunicate OK [00:13:12]wFMCommunicate request_size=50 [00:13:12]MH_SAM_APDU [00:13:12]CAPDU: 80 15 02 00 2D A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 32 35 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 [00:13:12]Write to MH i2c: E2 35 00 A7 5D 80 15 02 00 2D 00 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 32 35 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 00 00 FA [00:13:12]Write i2c OK [00:13:12]MH_I2C_Read... [00:13:12]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:13:12]Read from MH i2c: E2 [00:13:12]MH_I2C_Read... [00:13:12]Read from MH i2c: E2 03 00 [00:13:12]MH_I2C_Read... [00:13:12]Read from MH i2c: E2 03 00 A7 5D 00 90 00 78 [00:13:12]RAPDU: 90 00 [00:13:12]wFMCommunicate OK [00:13:12]wFMCommunicate request_size=13 [00:13:12]MH_SAM_APDU [00:13:12]CAPDU: 80 15 02 00 08 F4 03 04 00 26 12 E5 65 [00:13:12]Write to MH i2c: E2 10 00 A8 5D 80 15 02 00 08 00 F4 03 04 00 26 12 E5 65 00 00 12 [00:13:12]Write i2c OK [00:13:12]MH_I2C_Read... [00:13:12]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:13:12]Read from MH i2c: E2 [00:13:12]MH_I2C_Read... [00:13:12]Read from MH i2c: E2 03 00 [00:13:12]MH_I2C_Read... [00:13:12]Read from MH i2c: E2 03 00 A8 5D 00 90 00 79 [00:13:12]RAPDU: 90 00 [00:13:12]wFMCommunicate OK [00:13:12]wFMCommunicate request_size=25 [00:13:12]MH_SAM_APDU [00:13:12]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 [00:13:12]Write to MH i2c: E2 1C 00 A9 5D 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 00 00 E6 [00:13:12]Write i2c OK [00:13:12]MH_I2C_Read... [00:13:12]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:13:12]Read from MH i2c: E2 [00:13:12]MH_I2C_Read... [00:13:12]Read from MH i2c: E2 03 00 [00:13:12]MH_I2C_Read... [00:13:12]Read from MH i2c: E2 03 00 A9 5D 00 90 00 7A [00:13:12]RAPDU: 90 00 [00:13:12]wFMCommunicate OK [00:13:12]wFMCommunicate request_size=4 [00:13:12]MH_SAM_APDU [00:13:12]CAPDU: 80 15 03 00 [00:13:12]Write to MH i2c: E2 08 00 AA 5D 80 15 03 00 00 00 00 00 88 [00:13:12]Write i2c OK [00:13:12]MH_I2C_Read... [00:13:13]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:13:13]Read from MH i2c: E2 [00:13:13]MH_I2C_Read... [00:13:13]Read from MH i2c: E2 38 00 [00:13:13]MH_I2C_Read... [00:13:13]Read from MH i2c: E2 38 00 AA 5D 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 D2 B0 00 00 0E 04 04 00 4C 01 00 00 35 04 06 00 37 E3 F8 7E 3F 8A 90 00 85 [00:13:13]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 D2 B0 00 00 0E 04 04 00 4C 01 00 00 35 04 06 00 37 E3 F8 7E 3F 8A 90 00 [00:13:13]wFMCommunicate OK [00:13:13]SAM_PROTO_ProcessDocument answer len = 51 [00:13:13]SAM_PROTO_ProcessDocument done [00:13:13]SetTLVBufToDocument [00:13:13]Processing tag 1209 (04B9) [00:13:13]Malloc new data [00:13:13]Processing tag 1041 (0411) [00:13:13]Processing tag 1040 (0410) [00:13:13]Malloc new data [00:13:13]Processing tag 1038 (040E) [00:13:13]Malloc new data [00:13:13]Processing tag 1077 (0435) [00:13:13]Malloc new data [00:13:13]SetTLVBufToDocument err=0 [00:13:13]KKMLoadAndSignOpenShiftData store KKM data [00:13:13]KKMLoadAndSignOpenShiftData err=0 [00:13:13]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Абылгазиев А. Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 Место: АЗС № 25 "Партнер Нефть" 04.03.2024 00:13 Смена: 332 РНМ: 0000000000090572 ЗНМ: 0300000013 ФД: 45266 ФМ: 0000000000874796 ФПД: 61452266127242 [00:13:13]StoreToDocumentArchive [00:13:13]shift 332 fd 45266 [00:13:13]Create dir for shift 0332 [00:13:13]save to /storage/0332/doc_00045266 [00:13:13]save last doc name /storage/0332/doc_00045266 to /storage/kkm_last_doc_name [00:13:13]save OK [00:13:13]Clear old archive folders... [00:13:13]Remove dir /storage/0331 [00:13:13]opendir ok [00:13:13]file . [00:13:13]file .. [00:13:13]file doc_00045163 [00:13:13]remove file /storage/0331/doc_00045163 [00:13:13]file doc_00045164 [00:13:13]remove file /storage/0331/doc_00045164 [00:13:13]file doc_00045165 [00:13:13]remove file /storage/0331/doc_00045165 [00:13:13]file doc_00045166 [00:13:13]remove file /storage/0331/doc_00045166 [00:13:13]file doc_00045167 [00:13:13]remove file /storage/0331/doc_00045167 [00:13:13]file doc_00045168 [00:13:13]remove file /storage/0331/doc_00045168 [00:13:13]file doc_00045169 [00:13:13]remove file /storage/0331/doc_00045169 [00:13:13]file doc_00045170 [00:13:13]remove file /storage/0331/doc_00045170 [00:13:13]file doc_00045171 [00:13:13]remove file /storage/0331/doc_00045171 [00:13:13]file doc_00045172 [00:13:13]remove file /storage/0331/doc_00045172 [00:13:13]file doc_00045173 [00:13:13]remove file /storage/0331/doc_00045173 [00:13:13]file doc_00045174 [00:13:13]remove file /storage/0331/doc_00045174 [00:13:13]file doc_00045175 [00:13:13]remove file /storage/0331/doc_00045175 [00:13:13]file doc_00045176 [00:13:13]remove file /storage/0331/doc_00045176 [00:13:13]file doc_00045177 [00:13:13]remove file /storage/0331/doc_00045177 [00:13:13]file doc_00045178 [00:13:13]remove file /storage/0331/doc_00045178 [00:13:13]file doc_00045179 [00:13:13]remove file /storage/0331/doc_00045179 [00:13:13]file doc_00045180 [00:13:13]remove file /storage/0331/doc_00045180 [00:13:13]file doc_00045181 [00:13:13]remove file /storage/0331/doc_00045181 [00:13:13]file doc_00045182 [00:13:13]remove file /storage/0331/doc_00045182 [00:13:13]file doc_00045183 [00:13:13]remove file /storage/0331/doc_00045183 [00:13:13]file doc_00045184 [00:13:13]remove file /storage/0331/doc_00045184 [00:13:13]file doc_00045185 [00:13:13]remove file /storage/0331/doc_00045185 [00:13:13]file doc_00045186 [00:13:13]remove file /storage/0331/doc_00045186 [00:13:13]file doc_00045187 [00:13:13]remove file /storage/0331/doc_00045187 [00:13:13]file doc_00045188 [00:13:13]remove file /storage/0331/doc_00045188 [00:13:13]file doc_00045189 [00:13:13]remove file /storage/0331/doc_00045189 [00:13:13]file doc_00045190 [00:13:13]remove file /storage/0331/doc_00045190 [00:13:13]file doc_00045191 [00:13:13]remove file /storage/0331/doc_00045191 [00:13:13]file doc_00045192 [00:13:13]remove file /storage/0331/doc_00045192 [00:13:13]file doc_00045193 [00:13:13]remove file /storage/0331/doc_00045193 [00:13:13]file doc_00045194 [00:13:13]remove file /storage/0331/doc_00045194 [00:13:13]file doc_00045195 [00:13:13]remove file /storage/0331/doc_00045195 [00:13:13]file doc_00045196 [00:13:13]remove file /storage/0331/doc_00045196 [00:13:13]file doc_00045197 [00:13:13]remove file /storage/0331/doc_00045197 [00:13:13]file doc_00045198 [00:13:13]remove file /storage/0331/doc_00045198 [00:13:13]file doc_00045199 [00:13:13]remove file /storage/0331/doc_00045199 [00:13:13]file doc_00045200 [00:13:13]remove file /storage/0331/doc_00045200 [00:13:13]file doc_00045201 [00:13:13]remove file /storage/0331/doc_00045201 [00:13:13]file doc_00045202 [00:13:13]remove file /storage/0331/doc_00045202 [00:13:13]file doc_00045203 [00:13:13]remove file /storage/0331/doc_00045203 [00:13:13]file doc_00045204 [00:13:13]remove file /storage/0331/doc_00045204 [00:13:13]file doc_00045205 [00:13:13]remove file /storage/0331/doc_00045205 [00:13:13]file doc_00045206 [00:13:13]remove file /storage/0331/doc_00045206 [00:13:13]file doc_00045207 [00:13:13]remove file /storage/0331/doc_00045207 [00:13:13]file doc_00045208 [00:13:13]remove file /storage/0331/doc_00045208 [00:13:13]file doc_00045209 [00:13:13]remove file /storage/0331/doc_00045209 [00:13:13]file doc_00045210 [00:13:13]remove file /storage/0331/doc_00045210 [00:13:13]file doc_00045211 [00:13:13]remove file /storage/0331/doc_00045211 [00:13:13]file doc_00045212 [00:13:13]remove file /storage/0331/doc_00045212 [00:13:13]file doc_00045213 [00:13:13]remove file /storage/0331/doc_00045213 [00:13:13]file doc_00045214 [00:13:13]remove file /storage/0331/doc_00045214 [00:13:13]file doc_00045215 [00:13:13]remove file /storage/0331/doc_00045215 [00:13:13]file doc_00045216 [00:13:13]remove file /storage/0331/doc_00045216 [00:13:13]file doc_00045217 [00:13:13]remove file /storage/0331/doc_00045217 [00:13:13]file doc_00045218 [00:13:13]remove file /storage/0331/doc_00045218 [00:13:13]file doc_00045219 [00:13:13]remove file /storage/0331/doc_00045219 [00:13:13]file doc_00045220 [00:13:13]remove file /storage/0331/doc_00045220 [00:13:13]file doc_00045221 [00:13:13]remove file /storage/0331/doc_00045221 [00:13:13]file doc_00045222 [00:13:13]remove file /storage/0331/doc_00045222 [00:13:13]file doc_00045223 [00:13:13]remove file /storage/0331/doc_00045223 [00:13:13]file doc_00045224 [00:13:13]remove file /storage/0331/doc_00045224 [00:13:13]file doc_00045225 [00:13:13]remove file /storage/0331/doc_00045225 [00:13:13]file doc_00045226 [00:13:13]remove file /storage/0331/doc_00045226 [00:13:13]file doc_00045227 [00:13:13]remove file /storage/0331/doc_00045227 [00:13:13]file doc_00045228 [00:13:13]remove file /storage/0331/doc_00045228 [00:13:13]file doc_00045229 [00:13:13]remove file /storage/0331/doc_00045229 [00:13:13]file doc_00045230 [00:13:13]remove file /storage/0331/doc_00045230 [00:13:13]file doc_00045231 [00:13:13]remove file /storage/0331/doc_00045231 [00:13:13]file doc_00045232 [00:13:13]remove file /storage/0331/doc_00045232 [00:13:13]file doc_00045233 [00:13:13]remove file /storage/0331/doc_00045233 [00:13:13]file doc_00045234 [00:13:13]remove file /storage/0331/doc_00045234 [00:13:13]file doc_00045235 [00:13:13]remove file /storage/0331/doc_00045235 [00:13:13]file doc_00045236 [00:13:13]remove file /storage/0331/doc_00045236 [00:13:13]file doc_00045237 [00:13:13]remove file /storage/0331/doc_00045237 [00:13:13]file doc_00045238 [00:13:13]remove file /storage/0331/doc_00045238 [00:13:13]file doc_00045239 [00:13:13]remove file /storage/0331/doc_00045239 [00:13:13]file doc_00045240 [00:13:13]remove file /storage/0331/doc_00045240 [00:13:13]file doc_00045241 [00:13:13]remove file /storage/0331/doc_00045241 [00:13:13]file doc_00045242 [00:13:13]remove file /storage/0331/doc_00045242 [00:13:13]file doc_00045243 [00:13:13]remove file /storage/0331/doc_00045243 [00:13:13]file doc_00045244 [00:13:13]remove file /storage/0331/doc_00045244 [00:13:13]file doc_00045245 [00:13:13]remove file /storage/0331/doc_00045245 [00:13:13]file doc_00045246 [00:13:13]remove file /storage/0331/doc_00045246 [00:13:13]file doc_00045247 [00:13:13]remove file /storage/0331/doc_00045247 [00:13:13]file doc_00045248 [00:13:13]remove file /storage/0331/doc_00045248 [00:13:13]file doc_00045249 [00:13:13]remove file /storage/0331/doc_00045249 [00:13:13]file doc_00045250 [00:13:13]remove file /storage/0331/doc_00045250 [00:13:13]file doc_00045251 [00:13:13]remove file /storage/0331/doc_00045251 [00:13:13]file doc_00045252 [00:13:13]remove file /storage/0331/doc_00045252 [00:13:13]file doc_00045253 [00:13:13]remove file /storage/0331/doc_00045253 [00:13:13]file doc_00045254 [00:13:13]remove file /storage/0331/doc_00045254 [00:13:13]file doc_00045255 [00:13:13]remove file /storage/0331/doc_00045255 [00:13:13]file doc_00045256 [00:13:13]remove file /storage/0331/doc_00045256 [00:13:13]file doc_00045257 [00:13:13]remove file /storage/0331/doc_00045257 [00:13:13]file doc_00045258 [00:13:13]remove file /storage/0331/doc_00045258 [00:13:13]file doc_00045259 [00:13:13]remove file /storage/0331/doc_00045259 [00:13:13]file doc_00045260 [00:13:13]remove file /storage/0331/doc_00045260 [00:13:13]file doc_00045261 [00:13:13]remove file /storage/0331/doc_00045261 [00:13:13]file doc_00045262 [00:13:13]remove file /storage/0331/doc_00045262 [00:13:13]file doc_00045263 [00:13:13]remove file /storage/0331/doc_00045263 [00:13:13]file doc_00045264 [00:13:13]remove file /storage/0331/doc_00045264 [00:13:13]file doc_00045265 [00:13:13]remove file /storage/0331/doc_00045265 [00:13:13]remove dir /storage/0331 [00:13:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:13:13]tlvbuf is 01B2D790 [00:13:13]SAM_PROTO_ClearQueue [00:13:13]wFMCommunicate request_size=4 [00:13:13]MH_SAM_APDU [00:13:13]CAPDU: 80 09 00 00 [00:13:13]Write to MH i2c: E2 08 00 AB 5D 80 09 00 00 00 00 00 00 7A [00:13:13]Write i2c OK [00:13:13]MH_I2C_Read... [00:13:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:13:13]Read from MH i2c: E2 [00:13:13]MH_I2C_Read... [00:13:13]Read from MH i2c: E2 03 00 [00:13:13]MH_I2C_Read... [00:13:13]Read from MH i2c: E2 03 00 AB 5D 00 90 00 7C [00:13:13]RAPDU: 90 00 [00:13:13]wFMCommunicate OK [00:13:13]SAM_PROTO_ClearQueue done [00:13:13]KKMCreateOFDPacket [00:13:13]OFDProtocolAddRootSTLVToBuf [00:13:13]FM_MakeSignedData [00:13:13]FM_MakeSignedData [00:13:13]SAM_PROTO_SignData [00:13:13]wFMCommunicate request_size=4 [00:13:13]MH_SAM_APDU [00:13:13]CAPDU: 80 0D 01 02 [00:13:13]Write to MH i2c: E2 08 00 AC 5D 80 0D 01 02 00 00 00 00 82 [00:13:13]Write i2c OK [00:13:13]MH_I2C_Read... [00:13:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:13:13]Read from MH i2c: E2 [00:13:13]MH_I2C_Read... [00:13:13]Read from MH i2c: E2 03 00 [00:13:13]MH_I2C_Read... [00:13:13]Read from MH i2c: E2 03 00 AC 5D 00 90 00 7D [00:13:13]RAPDU: 90 00 [00:13:13]wFMCommunicate OK [00:13:13]wFMCommunicate request_size=255 [00:13:13]MH_SAM_APDU [00:13:13]CAPDU: 80 0D 02 02 FA 02 00 FB 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 90 D0 B1 D1 8B D0 BB D0 B3 D0 B0 D0 B7 D0 B8 D0 B5 D0 B2 20 D0 90 2E 20 F1 03 4C 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2C 20 D1 83 D0 BB 2E 20 D0 9C D0 B5 D0 B4 D0 B5 D1 80 D0 BE D0 B2 D0 B0 20 34 38 20 D0 90 2C 20 34 32 2E 38 35 31 38 36 38 2C 20 37 34 2E 36 31 34 30 31 38 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 32 35 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 26 12 E5 65 0E 04 04 00 4C 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 D2 B0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 35 04 06 00 37 [00:13:13]Write to MH i2c: E2 02 01 AD 5D 80 0D 02 02 FA 00 02 00 FB 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 90 D0 B1 D1 8B D0 BB D0 B3 D0 B0 D0 B7 D0 B8 D0 B5 D0 B2 20 D0 90 2E 20 F1 03 4C 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2C 20 D1 83 D0 BB 2E 20 D0 9C D0 B5 D0 B4 D0 B5 D1 80 D0 BE D0 B2 D0 B0 20 34 38 20 D0 90 2C 20 34 32 2E 38 35 31 38 36 38 2C 20 37 34 2E 36 31 34 30 31 OFD Sender: No OFD packet to send [00:13:13]38 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 32 35 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 26 12 E5 65 0E 04 04 00 4C 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 D2 B0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 35 04 06 00 37 00 00 5F [00:13:13]Write i2c OK [00:13:13]MH_I2C_Read... [00:13:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:13:14]Read from MH i2c: E2 [00:13:14]MH_I2C_Read... [00:13:14]Read from MH i2c: E2 03 00 [00:13:14]MH_I2C_Read... [00:13:14]Read from MH i2c: E2 03 00 AD 5D 00 90 00 7E [00:13:14]RAPDU: 90 00 [00:13:14]wFMCommunicate OK [00:13:14]wFMCommunicate request_size=10 [00:13:14]MH_SAM_APDU [00:13:14]CAPDU: 80 0D 02 02 05 E3 F8 7E 3F 8A [00:13:14]Write to MH i2c: E2 0D 00 AE 5D 80 0D 02 02 05 00 E3 F8 7E 3F 8A 00 00 B1 [00:13:14]Write i2c OK [00:13:14]MH_I2C_Read... [00:13:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:13:14]Read from MH i2c: E2 [00:13:14]MH_I2C_Read... [00:13:14]Read from MH i2c: E2 03 00 [00:13:14]MH_I2C_Read... [00:13:14]Read from MH i2c: E2 03 00 AE 5D 00 90 00 7F [00:13:14]RAPDU: 90 00 [00:13:14]wFMCommunicate OK [00:13:14]wFMCommunicate request_size=4 [00:13:14]MH_SAM_APDU [00:13:14]CAPDU: 80 0D 03 02 [00:13:14]Write to MH i2c: E2 08 00 AF 5D 80 0D 03 02 00 00 00 00 87 [00:13:14]Write i2c OK [00:13:14]MH_I2C_Read... [00:13:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:13:14]Read from MH i2c: E2 [00:13:14]MH_I2C_Read... [00:13:14]Read from MH i2c: E2 0B 00 [00:13:14]MH_I2C_Read... [00:13:14]Read from MH i2c: E2 0B 00 AF 5D 00 BC BF 16 59 B6 98 79 6C 90 00 A5 [00:13:14]RAPDU: BC BF 16 59 B6 98 79 6C 90 00 [00:13:14]wFMCommunicate OK [00:13:14]SAM_PROTO_SignData done [00:13:14]FM_MakeSignedData done [00:13:14]CreateOFDProtocolMessage [00:13:14]wFMCommunicate request_size=4 [00:13:14]MH_SAM_APDU [00:13:14]CAPDU: 80 11 00 00 [00:13:14]Write to MH i2c: E2 08 00 B0 5D 80 11 00 00 00 00 00 00 87 [00:13:14]Write i2c OK [00:13:14]MH_I2C_Read... [00:13:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:13:14]Read from MH i2c: E2 [00:13:14]MH_I2C_Read... [00:13:14]Read from MH i2c: E2 17 00 [00:13:14]MH_I2C_Read... [00:13:14]Read from MH i2c: E2 17 00 B0 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 E3 [00:13:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [00:13:14]wFMCommunicate OK [00:13:14]CreateOFDProtocolMessage done [00:13:14]OFDSenderStorePacket 45266 [00:13:14]StoreOFDPacket docnum=45266 [00:13:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0F 01 00 00 D9 4C 07 01 18 93 5A 02 01 00 02 00 FB 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 90 D0 B1 D1 8B D0 BB D0 B3 D0 B0 D0 B7 D0 B8 D0 B5 D0 B2 20 D0 90 2E 20 F1 03 4C 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2C 20 D1 83 D0 BB 2E 20 D0 9C D0 B5 D0 B4 D0 B5 D1 80 D0 BE D0 B2 D0 B0 20 34 38 20 D0 90 2C 20 34 32 2E 38 35 31 38 36 38 2C 20 37 34 2E 36 31 34 30 31 38 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 32 35 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 26 12 E5 65 0E 04 04 00 4C 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 D2 B0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 35 04 06 00 37 E3 F8 7E 3F 8A BC BF 16 59 B6 98 79 6C [00:13:14]CheckFolder [00:13:14]dirname=/storage/ofd_packets [00:13:14]CheckFolder done [00:13:14]ProducePacketName [00:13:14]name=ofd_packets/00045266 [00:13:14]NVStorageSaveData ofd_packets/00045266 [00:13:14]File name is /storage/ofd_packets/00045266 [00:13:14]Write 301 bytes [00:13:14]NVStorageSaveData done [00:13:14]OFDSenderStorePacket done [00:13:14]KKMCreateOFDPacket done [00:13:14]NVStorageSaveData kkm_last_timestamp [00:13:14]File name is /storage/kkm_last_timestamp [00:13:14]Write 4 bytes [00:13:14]NVStorageSaveData done [00:13:14]ExternCall_PrintAddStr [00:13:14]wPrintStart [00:13:14]Write to MH i2c: 01 00 00 B1 5D 0E [00:13:14]Write i2c OK [00:13:14]MH_I2C_Read... [00:13:14]Read from MH i2c: 01 [00:13:14]MH_I2C_Read... [00:13:14]Read from MH i2c: 01 07 00 [00:13:14]MH_I2C_Read... [00:13:14]Read from MH i2c: 01 07 00 B1 5D 00 00 00 00 00 FF 0F 23 [00:13:14]RasterBufferAndPrint [00:13:14]line Отчет об открытии смены [00:13:14]line ФФД: 1.0 [00:13:14]line ИНН: 02508201610067 [00:13:14]line Кассир: Абылгазиев А. [00:13:14]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [00:13:14]line Место: АЗС № 25 "Партнер Нефть" [00:13:14]line 04.03.2024 00:13 [00:13:14]line Смена: 332 [00:13:14]line РНМ: 0000000000090572 [00:13:14]line ЗНМ: 0300000013 [00:13:14]line ФД: 45266 [00:13:14]line ФМ: 0000000000874796 [00:13:14]line ФПД: 61452266127242 [00:13:14]written 0, free lines is 4095 [00:13:14]OFD Sender: Processing packet 45266 [packets to send 17, broken 16] [00:13:14]ProducePacketName [00:13:14]name=ofd_packets/00045266 [00:13:14]OFD Sender: To server: pG, [00:13:14]CommunicateWithHost lk.salyk.kg:30040 [00:13:14]ConnectInit lk.salyk.kg [00:13:14]Connected sock=10 [00:13:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0F 01 00 00 D9 4C 07 01 18 93 5A 02 01 00 02 00 FB 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 90 D0 B1 D1 8B D0 BB D0 B3 D0 B0 D0 B7 D0 B8 D0 B5 D0 B2 20 D0 90 2E 20 F1 03 4C 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2C 20 D1 83 D0 BB 2E 20 D0 9C D0 B5 D0 B4 D0 B5 D1 80 D0 BE D0 B2 D0 B0 20 34 38 20 D0 90 2C 20 34 32 2E 38 35 31 38 36 38 2C 20 37 34 2E 36 31 34 30 31 38 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 32 35 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 26 12 E5 65 0E 04 04 00 4C 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 D2 B0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 35 04 06 00 37 E3 F8 7E 3F 8A BC BF 16 59 B6 98 79 6C [00:13:14]Write to MH i2c: 01 00 00 C3 5D 20 [00:13:14]Write i2c OK [00:13:14]MH_I2C_Read... [00:13:14]Read from MH i2c: 01 [00:13:14]MH_I2C_Read... [00:13:14]Read from MH i2c: 01 07 00 [00:13:14]MH_I2C_Read... [00:13:14]Read from MH i2c: 01 07 00 C3 5D 00 00 00 00 00 A9 0E DE [00:13:14]RasterBufferAndPrint [00:13:14]line [00:13:14]line [00:13:14]line [00:13:14]line [00:13:14]line [00:13:14]written 0, free lines is 3774 [00:13:14]MH_Cut [00:13:14]Write to MH i2c: D1 01 00 CA 5D 01 F9 [00:13:14]Write i2c OK [00:13:14]MH_I2C_Read... [00:13:14]Read from MH i2c: D1 [00:13:14]MH_I2C_Read... [00:13:14]Read from MH i2c: D1 01 00 [00:13:14]MH_I2C_Read... [00:13:14]Read from MH i2c: D1 01 00 CA 5D 00 F8 [00:13:14]Write to MH i2c: 01 00 00 CB 5D 28 [00:13:14]Write i2c OK [00:13:14]MH_I2C_Read... [00:13:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 B9 89 47 00 2C 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 34 37 39 36 10 04 04 00 D2 B0 00 00 F4 03 04 00 EA BD E4 65 B6 04 01 00 00 82 56 2C BB 24 65 02 4A [00:13:14]CommunicateWithHost err = 0 [00:13:14]CheckOFDResponse [00:13:14]1017 (14) - 77093643461234 [00:13:14]1041 (16) - 0000000000874796 [00:13:14]1040 (4) - 45266 [00:13:14]1012 (4) - 03.03.2024 18:14 [00:13:14]1206 (1) - 0 [00:13:14]OFD Sender: Remove packet 45266 [00:13:14]ProducePacketName [00:13:14]name=ofd_packets/00045266 [00:13:14]NVStorageDeleteData [00:13:15]*** Cut start [00:13:15]*** Purtial cut [00:13:15]*** Stage 1: CUTSNS_PIN = 1 [00:13:15]OFD Sender: No OFD packet to send [00:13:17]Read from MH i2c: 01 [00:13:17]MH_I2C_Read... [00:13:17]*** Stop cut motor [00:13:17]*** Cut end [00:13:17]Read from MH i2c: 01 07 00 [00:13:17]MH_I2C_Read... [00:13:17]Read from MH i2c: 01 07 00 CB 5D 00 00 00 00 00 FF 0F 3D [00:13:17]process_action open_shift done [00:13:17]requested_data is exist [00:13:17]produce_requested_data [00:13:17]requested_item fd.num is exist - process it [00:13:17]SAM_PROTO_GetFieldsCounters [00:13:17]wFMCommunicate request_size=4 [00:13:17]MH_SAM_APDU [00:13:17]CAPDU: 80 13 00 00 [00:13:17]Write to MH i2c: E2 08 00 CC 5D 80 13 00 00 00 00 00 00 A5 [00:13:17]Write i2c OK [00:13:17]MH_I2C_Read... [00:13:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:13:17]Read from MH i2c: E2 [00:13:17]MH_I2C_Read... [00:13:17]Read from MH i2c: E2 62 00 [00:13:17]MH_I2C_Read... [00:13:17]Read from MH i2c: E2 62 00 CC 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 D2 B0 00 00 0E 04 04 00 4C 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 9C [00:13:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 D2 B0 00 00 0E 04 04 00 4C 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:13:17]wFMCommunicate OK [00:13:17]SAM_PROTO_GetFieldsCounters done [00:13:17]requested_item shift.num is exist - process it [00:13:17]requested_item shift.opened is exist - process it [00:13:17]req_shift_opened [00:13:17]FM_GetShiftState [00:13:17]SAM_PROTO_GetShiftState [00:13:17]wFMCommunicate request_size=4 [00:13:17]MH_SAM_APDU [00:13:17]CAPDU: 80 13 01 00 [00:13:17]Write to MH i2c: E2 08 00 CD 5D 80 13 01 00 00 00 00 00 A7 [00:13:17]Write i2c OK [00:13:17]MH_I2C_Read... [00:13:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:13:17]Read from MH i2c: E2 [00:13:17]MH_I2C_Read... [00:13:17]Read from MH i2c: E2 0E 00 [00:13:17]MH_I2C_Read... [00:13:17]Read from MH i2c: E2 0E 00 CD 5D 00 09 00 01 26 12 E5 65 00 00 00 00 90 00 35 [00:13:17]RAPDU: 09 00 01 26 12 E5 65 00 00 00 00 90 00 [00:13:17]wFMCommunicate OK [00:13:17]SAM_PROTO_GetShiftState done [00:13:17]FM_GetShiftState done [00:13:17]req_shift_opened done [00:13:17]requested_item shift.open_date is exist - process it [00:13:17]req_shift_open_date [00:13:17]req_shift_open_date done [00:13:17]produce_requested_data done [00:13:17]produce_requested_data return {"fd.num":45266,"shift.num":332,"shift.opened":1,"shift.open_date":1709511206} [00:13:17]process_action_free open_shift [00:13:17]json_value_free [00:13:17]json_value_free done [00:13:17]process_json_proto returns [00:13:17]Send response to host [00:13:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":45266,"shift.num":332,"shift.opened":1,"shift.open_date":1709511206}}} [00:13:17]free response buf [00:13:17]execute_script done [00:13:17]execute_script returns [00:13:17]free content buf [00:13:17]Sock 7.Close socket [00:13:17]Sock 7.Thread stoped [00:13:17]accept exits with 9 [00:13:17]New connection [00:13:17]New thread 3067157860 created [00:13:17]Thread 3067014500 joined [00:13:17]Waiting for new connection... [00:13:17] Sock 9.Parse request [00:13:17]Sock 9.Check first char [00:13:17]Sock 9.First char is OK [00:13:17]request: POST /json_proto HTTP/1.0 [00:13:17]Method: POST [00:13:17]URL: /json_proto [00:13:17]Method is POST - this is cgi request [00:13:17]url: /json_proto [00:13:17]query_string will be loaded in cgi processing [00:13:17]execute_cgi json_proto POST (null) [00:13:17]execute_cgi path=json_proto method=POST [00:13:17]POST find Content-Length [00:13:17]Host: 172.17.48.198:8080 [00:13:17]Content-Length: 331 [00:13:17]Content-Type: application/json [00:13:17] [00:13:17]POST finish read [00:13:17]Found Content-Length = 331 [00:13:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:13:17]execute_script... [00:13:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:13:17]POST & json_proto [00:13:17]process_json_proto [00:13:17]json parsed OK: [00:13:17]protocol is kg_v1.0 [00:13:17]action value=get_value [00:13:17]process_action get_value [00:13:17]cmd_get_value [00:13:17]process_action get_value done [00:13:17]requested_data is exist [00:13:17]produce_requested_data [00:13:17]requested_item fm.sale.total is exist - process it [00:13:17]SAM_PROTO_GetFMData [00:13:17]wFMCommunicate request_size=4 [00:13:17]MH_SAM_APDU [00:13:17]CAPDU: 80 13 03 00 [00:13:17]Write to MH i2c: E2 08 00 CE 5D 80 13 03 00 00 00 00 00 AA [00:13:17]Write i2c OK [00:13:17]MH_I2C_Read... [00:13:17]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:13:17]Read from MH i2c: E2 [00:13:17]MH_I2C_Read... [00:13:17]Read from MH i2c: E2 FD 00 [00:13:17]MH_I2C_Read... [00:13:17]Read from MH i2c: E2 FD 00 CE 5D 00 C4 04 85 04 C0 04 6E 04 04 00 36 AE 00 00 69 04 A0 00 6F 04 04 00 43 AB 00 00 B1 04 04 00 34 26 30 4A 70 04 04 00 BB 62 16 37 72 04 04 00 79 C3 19 13 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 70 F3 E0 07 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 54 03 A8 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F3 02 00 00 B1 04 04 00 7E 52 2A 05 70 04 04 00 06 A1 03 05 72 04 03 00 78 B1 26 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 C6 6F 8C EF 03 09 00 90 00 3A [00:13:17]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 36 AE 00 00 69 04 A0 00 6F 04 04 00 43 AB 00 00 B1 04 04 00 34 26 30 4A 70 04 04 00 BB 62 16 37 72 04 04 00 79 C3 19 13 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 70 F3 E0 07 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 54 03 A8 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F3 02 00 00 B1 04 04 00 7E 52 2A 05 70 04 04 00 06 A1 03 05 72 04 03 00 78 B1 26 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 C6 6F 8C EF 03 09 00 90 00 [00:13:17]wFMCommunicate OK [00:13:17]wFMCommunicate request_size=4 [00:13:17]MH_SAM_APDU [00:13:17]CAPDU: 80 17 00 00 [00:13:17]Write to MH i2c: E2 08 00 CF 5D 80 17 00 00 00 00 00 00 AC [00:13:17]Write i2c OK [00:13:17]MH_I2C_Read... [00:13:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:13:18]Read from MH i2c: E2 [00:13:18]MH_I2C_Read... [00:13:18]Read from MH i2c: E2 FD 00 [00:13:18]MH_I2C_Read... [00:13:18]Read from MH i2c: E2 FD 00 CF 5D 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AE B3 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 CE [00:13:18]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AE B3 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [00:13:18]wFMCommunicate OK [00:13:18]wFMCommunicate request_size=4 [00:13:18]MH_SAM_APDU [00:13:18]CAPDU: 80 17 00 00 [00:13:18]Write to MH i2c: E2 08 00 D0 5D 80 17 00 00 00 00 00 00 AD [00:13:18]Write i2c OK [00:13:18]MH_I2C_Read... [00:13:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:13:18]Read from MH i2c: E2 [00:13:18]MH_I2C_Read... [00:13:18]Read from MH i2c: E2 FD 00 [00:13:18]MH_I2C_Read... [00:13:18]Read from MH i2c: E2 FD 00 D0 5D 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C2 [00:13:18]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:13:18]wFMCommunicate OK [00:13:18]wFMCommunicate request_size=4 [00:13:18]MH_SAM_APDU [00:13:18]CAPDU: 80 17 00 00 [00:13:18]Write to MH i2c: E2 08 00 D1 5D 80 17 00 00 00 00 00 00 AE [00:13:18]Write i2c OK [00:13:18]MH_I2C_Read... [00:13:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:13:19]Read from MH i2c: E2 [00:13:19]MH_I2C_Read... [00:13:19]Read from MH i2c: E2 FD 00 [00:13:19]MH_I2C_Read... [00:13:19]Read from MH i2c: E2 FD 00 D1 5D 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 26 [00:13:19]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:13:19]wFMCommunicate OK [00:13:19]wFMCommunicate request_size=4 [00:13:19]MH_SAM_APDU [00:13:19]CAPDU: 80 17 00 00 [00:13:19]Write to MH i2c: E2 08 00 D2 5D 80 17 00 00 00 00 00 00 AF [00:13:19]Write i2c OK [00:13:19]MH_I2C_Read... [00:13:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [00:13:19]Read from MH i2c: E2 [00:13:19]MH_I2C_Read... [00:13:19]Read from MH i2c: E2 E1 00 [00:13:19]MH_I2C_Read... [00:13:19]Read from MH i2c: E2 E1 00 D2 5D 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 9D [00:13:19]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:13:19]wFMCommunicate OK [00:13:19]SAM_PROTO_GetFMData done [00:13:19]requested_item fm.sale_refund.total is exist - process it [00:13:19]requested_item fm.buy.total is exist - process it [00:13:19]requested_item shift.sale.total is exist - process it [00:13:19]SAM_PROTO_GetShiftData [00:13:19]wFMCommunicate request_size=4 [00:13:19]MH_SAM_APDU [00:13:19]CAPDU: 80 13 02 00 [00:13:19]Write to MH i2c: E2 08 00 D3 5D 80 13 02 00 00 00 00 00 AE [00:13:19]Write i2c OK [00:13:19]MH_I2C_Read... [00:13:20]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:13:20]Read from MH i2c: E2 [00:13:20]MH_I2C_Read... [00:13:20]Read from MH i2c: E2 FD 00 [00:13:20]MH_I2C_Read... [00:13:20]Read from MH i2c: E2 FD 00 D3 5D 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 21 [00:13:20]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:13:20]wFMCommunicate OK [00:13:20]wFMCommunicate request_size=4 [00:13:20]MH_SAM_APDU [00:13:20]CAPDU: 80 17 00 00 [00:13:20]Write to MH i2c: E2 08 00 D4 5D 80 17 00 00 00 00 00 00 B1 [00:13:20]Write i2c OK [00:13:20]MH_I2C_Read... [00:13:20]OFD Sender: No OFD packet to send [00:13:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:13:20]Read from MH i2c: E2 [00:13:20]MH_I2C_Read... [00:13:20]Read from MH i2c: E2 FD 00 [00:13:20]MH_I2C_Read... [00:13:20]Read from MH i2c: E2 FD 00 D4 5D 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 B9 [00:13:20]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:13:20]wFMCommunicate OK [00:13:20]wFMCommunicate request_size=4 [00:13:20]MH_SAM_APDU [00:13:20]CAPDU: 80 17 00 00 [00:13:20]Write to MH i2c: E2 08 00 D5 5D 80 17 00 00 00 00 00 00 B2 [00:13:20]Write i2c OK [00:13:20]MH_I2C_Read... [00:13:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:13:20]Read from MH i2c: E2 [00:13:20]MH_I2C_Read... [00:13:20]Read from MH i2c: E2 FD 00 [00:13:20]MH_I2C_Read... [00:13:20]Read from MH i2c: E2 FD 00 D5 5D 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 84 [00:13:21]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:13:21]wFMCommunicate OK [00:13:21]wFMCommunicate request_size=4 [00:13:21]MH_SAM_APDU [00:13:21]CAPDU: 80 17 00 00 [00:13:21]Write to MH i2c: E2 08 00 D6 5D 80 17 00 00 00 00 00 00 B3 [00:13:21]Write i2c OK [00:13:21]MH_I2C_Read... [00:13:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:13:21]Read from MH i2c: E2 [00:13:21]MH_I2C_Read... [00:13:21]Read from MH i2c: E2 FD 00 [00:13:21]MH_I2C_Read... [00:13:21]Read from MH i2c: E2 FD 00 D6 5D 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 25 [00:13:21]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:13:21]wFMCommunicate OK [00:13:21]wFMCommunicate request_size=4 [00:13:21]MH_SAM_APDU [00:13:21]CAPDU: 80 17 00 00 [00:13:21]Write to MH i2c: E2 08 00 D7 5D 80 17 00 00 00 00 00 00 B4 [00:13:21]Write i2c OK [00:13:21]MH_I2C_Read... [00:13:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:13:21]Read from MH i2c: E2 [00:13:21]MH_I2C_Read... [00:13:21]Read from MH i2c: E2 BD 00 [00:13:21]MH_I2C_Read... [00:13:21]Read from MH i2c: E2 BD 00 D7 5D 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 9A [00:13:21]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:13:22]wFMCommunicate OK [00:13:22]SAM_PROTO_GetShiftData done [00:13:22]requested_item shift.sale.total_cash is exist - process it [00:13:22]requested_item shift.sale_refund.total is exist - process it [00:13:22]requested_item shift.sale_refund.total_cash is exist - process it [00:13:22]requested_item shift.buy.total is exist - process it [00:13:22]requested_item shift.buy.total_cash is exist - process it [00:13:22]produce_requested_data done [00:13:22]produce_requested_data return {"fm.sale.total":12446694.92,"fm.sale_refund.total":866597.10,"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:13:22]process_action_free get_value [00:13:22]json_value_free [00:13:22]json_value_free done [00:13:22]process_json_proto returns [00:13:22]Send response to host [00:13:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":12446694.92,"fm.sale_refund.total":866597.10,"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:13:22]free response buf [00:13:22]execute_script done [00:13:22]execute_script returns [00:13:22]free content buf [00:13:22]Sock 9.Close socket [00:13:22]Sock 9.Thread stoped [00:13:25]OFD Sender: No OFD packet to send [00:13:30]OFD Sender: No OFD packet to send [00:13:35]OFD Sender: No OFD packet to send [00:13:40]OFD Sender: No OFD packet to send [00:13:45]OFD Sender: No OFD packet to send [00:13:50]OFD Sender: No OFD packet to send [00:13:55]OFD Sender: No OFD packet to send [00:14:00]OFD Sender: No OFD packet to send [00:14:05]OFD Sender: No OFD packet to send [00:14:10]OFD Sender: No OFD packet to send [00:14:15]OFD Sender: No OFD packet to send [00:14:20]OFD Sender: No OFD packet to send [00:14:25]OFD Sender: No OFD packet to send [00:14:30]OFD Sender: No OFD packet to send [00:14:35]OFD Sender: No OFD packet to send [00:14:40]OFD Sender: No OFD packet to send [00:14:45]OFD Sender: No OFD packet to send [00:14:50]OFD Sender: No OFD packet to send [00:14:55]OFD Sender: No OFD packet to send [00:15:00]OFD Sender: No OFD packet to send [00:15:05]OFD Sender: No OFD packet to send [00:15:10]OFD Sender: No OFD packet to send [00:15:15]OFD Sender: No OFD packet to send [00:15:20]OFD Sender: No OFD packet to send [00:15:25]OFD Sender: No OFD packet to send [00:15:30]OFD Sender: No OFD packet to send [00:15:35]OFD Sender: No OFD packet to send [00:15:40]OFD Sender: No OFD packet to send [00:15:45]OFD Sender: No OFD packet to send [00:15:50]OFD Sender: No OFD packet to send [00:15:55]OFD Sender: No OFD packet to send [00:16:00]OFD Sender: No OFD packet to send [00:16:05]OFD Sender: No OFD packet to send [00:16:10]OFD Sender: No OFD packet to send [00:16:15]OFD Sender: No OFD packet to send [00:16:20]OFD Sender: No OFD packet to send [00:16:25]OFD Sender: No OFD packet to send [00:16:30]OFD Sender: No OFD packet to send [00:16:35]OFD Sender: No OFD packet to send [00:16:40]OFD Sender: No OFD packet to send [00:16:45]OFD Sender: No OFD packet to send [00:16:50]OFD Sender: No OFD packet to send [00:16:55]OFD Sender: No OFD packet to send [00:17:00]OFD Sender: No OFD packet to send [00:17:05]OFD Sender: No OFD packet to send [00:17:10]OFD Sender: No OFD packet to send [00:17:15]OFD Sender: No OFD packet to send [00:17:20]OFD Sender: No OFD packet to send [00:17:25]OFD Sender: No OFD packet to send [00:17:30]OFD Sender: No OFD packet to send [00:17:35]OFD Sender: No OFD packet to send [00:17:40]OFD Sender: No OFD packet to send [00:17:45]OFD Sender: No OFD packet to send [00:17:50]OFD Sender: No OFD packet to send [00:17:55]OFD Sender: No OFD packet to send [00:18:00]OFD Sender: No OFD packet to send [00:18:05]OFD Sender: No OFD packet to send [00:18:10]OFD Sender: No OFD packet to send [00:18:15]OFD Sender: No OFD packet to send [00:18:20]OFD Sender: No OFD packet to send [00:18:25]OFD Sender: No OFD packet to send [00:18:30]OFD Sender: No OFD packet to send [00:18:35]OFD Sender: No OFD packet to send [00:18:40]OFD Sender: No OFD packet to send [00:18:45]OFD Sender: No OFD packet to send [00:18:50]OFD Sender: No OFD packet to send [00:18:55]OFD Sender: No OFD packet to send [00:19:00]OFD Sender: No OFD packet to send [00:19:05]OFD Sender: No OFD packet to send [00:19:10]OFD Sender: No OFD packet to send [00:19:15]OFD Sender: No OFD packet to send [00:19:20]OFD Sender: No OFD packet to send [00:19:25]OFD Sender: No OFD packet to send [00:19:30]OFD Sender: No OFD packet to send [00:19:34]accept exits with 7 [00:19:34]New connection [00:19:34]New thread 3067014500 created [00:19:34]Thread 3067157860 joined [00:19:34]Waiting for new connection... [00:19:34] Sock 7.Parse request [00:19:34]Sock 7.Check first char [00:19:34]Sock 7.First char is OK [00:19:34]request: POST /json_proto HTTP/1.0 [00:19:34]Method: POST [00:19:34]URL: /json_proto [00:19:34]Method is POST - this is cgi request [00:19:34]url: /json_proto [00:19:34]query_string will be loaded in cgi processing [00:19:34]execute_cgi json_proto POST (null) [00:19:34]execute_cgi path=json_proto method=POST [00:19:34]POST find Content-Length [00:19:34]Host: 172.17.48.198:8080 [00:19:34]Content-Length: 845 [00:19:34]Content-Type: application/json [00:19:34] [00:19:34]POST finish read [00:19:34]Found Content-Length = 845 [00:19:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184224", "tax_sys" : 0, "items" : [ { "code": "4670003190037", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 SIBIRIA ANTIFREEZE \u041E\u0416-40 \u0437\u0435\u043B 1\u043B", "price" : 225.00, "quantity" : 1.000, "sum" : 225.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 225.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:19:34]execute_script... [00:19:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184224", "tax_sys" : 0, "items" : [ { "code": "4670003190037", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 SIBIRIA ANTIFREEZE \u041E\u0416-40 \u0437\u0435\u043B 1\u043B", "price" : 225.00, "quantity" : 1.000, "sum" : 225.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 225.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:19:34]POST & json_proto [00:19:34]process_json_proto [00:19:34]json parsed OK: [00:19:34]protocol is kg_v1.0 [00:19:34]action value=close_receipt [00:19:34]process_action close_receipt [00:19:34]cmd_close_receipt [00:19:34]MH_GetDate [00:19:34]Write to MH i2c: F0 00 00 D8 5D 24 [00:19:34]Write i2c OK [00:19:34]MH_I2C_Read... [00:19:34]Read from MH i2c: F0 [00:19:34]MH_I2C_Read... [00:19:34]Read from MH i2c: F0 09 00 [00:19:34]MH_I2C_Read... [00:19:34]Read from MH i2c: F0 09 00 D8 5D 00 A4 13 E5 65 CE C4 D4 65 F9 [00:19:34]GetLastDocTimeStamp 1709511206 [00:19:34]current date 1709511588 [00:19:34]FM_GetShiftState [00:19:34]SAM_PROTO_GetShiftState [00:19:34]wFMCommunicate request_size=4 [00:19:34]MH_SAM_APDU [00:19:34]CAPDU: 80 13 01 00 [00:19:34]Write to MH i2c: E2 08 00 D9 5D 80 13 01 00 00 00 00 00 B3 [00:19:34]Write i2c OK [00:19:34]MH_I2C_Read... [00:19:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:19:34]Read from MH i2c: E2 [00:19:34]MH_I2C_Read... [00:19:34]Read from MH i2c: E2 0E 00 [00:19:34]MH_I2C_Read... [00:19:34]Read from MH i2c: E2 0E 00 D9 5D 00 09 00 01 26 12 E5 65 00 00 00 00 90 00 41 [00:19:34]RAPDU: 09 00 01 26 12 E5 65 00 00 00 00 90 00 [00:19:34]wFMCommunicate OK [00:19:34]SAM_PROTO_GetShiftState done [00:19:34]FM_GetShiftState done [00:19:34]opened in 1709511206 [00:19:34]opened+sec_in_day 1709597606 [00:19:34]quantity*price = 22500 [00:19:34]sum+1 = 22501 [00:19:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 225.00 НСП 1% : 1.99 НДС 12% : 23.89 Наличными: 0.00 Безнал.: 225.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 1 04.03.2024 00:19 Смена: 332 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874796 ФД: 45267 ФПД: 168349525411247 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240304T001948&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45267&fm=168349525411247&tin=02508201610067®Number=0000000000090572&sum=22500 0 [00:19:35]StoreToDocumentArchive [00:19:35]shift 332 fd 45267 [00:19:35]save to /storage/0332/doc_00045267 [00:19:35]save last doc name /storage/0332/doc_00045267 to /storage/kkm_last_doc_name [00:19:35]save OK [00:19:35]Clear old archive folders... [00:19:35]ProcessDocumentItem done err = 0, tmpTLVsize=296 [00:19:35]tlvbuf is 01CE36C0 [00:19:35]SAM_PROTO_ClearQueue [00:19:35]wFMCommunicate request_size=4 [00:19:35]MH_SAM_APDU [00:19:35]CAPDU: 80 09 00 00 [00:19:35]Write to MH i2c: E2 08 00 E6 5D 80 09 00 00 00 00 00 00 B5 [00:19:35]Write i2c OK [00:19:35]MH_I2C_Read... [00:19:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:19:35]Read from MH i2c: E2 [00:19:35]MH_I2C_Read... [00:19:35]Read from MH i2c: E2 03 00 [00:19:35]MH_I2C_Read... [00:19:35]Read from MH i2c: E2 03 00 E6 5D 00 90 00 B7 [00:19:35]RAPDU: 90 00 [00:19:35]wFMCommunicate OK [00:19:35]SAM_PROTO_ClearQueue done [00:19:35]KKMCreateOFDPacket [00:19:35]OFDProtocolAddRootSTLVToBuf [00:19:35]FM_MakeSignedData [00:19:35]FM_MakeSignedData [00:19:35]SAM_PROTO_SignData [00:19:35]wFMCommunicate request_size=4 [00:19:35]MH_SAM_APDU [00:19:35]CAPDU: 80 0D 01 02 [00:19:35]Write to MH i2c: E2 08 00 E7 5D 80 0D 01 02 00 00 00 00 BD [00:19:35]Write i2c OK [00:19:35]MH_I2C_Read... [00:19:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:19:35]Read from MH i2c: E2 [00:19:35]MH_I2C_Read... [00:19:35]Read from MH i2c: E2 03 00 [00:19:35]MH_I2C_Read... [00:19:35]Read from MH i2c: E2 03 00 E7 5D 00 90 00 B8 [00:19:35]RAPDU: 90 00 [00:19:35]wFMCommunicate OK [00:19:35]wFMCommunicate request_size=255 [00:19:35]MH_SAM_APDU [00:19:35]CAPDU: 80 0D 02 02 FA 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 33 37 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B7 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E4 57 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 A4 13 E5 65 0E 04 04 00 4C 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 [00:19:35]Write to MH i2c: E2 02 01 E8 5D 80 0D 02 02 FA 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 33 37 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B7 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E4 57 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 A4 13 E5 65 0E 04 04 00 4C 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 00 00 94 [00:19:35]Write i2c OK [00:19:35]MH_I2C_Read... [00:19:35]OFD Sender: No OFD packet to send [00:19:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:19:35]Read from MH i2c: E2 [00:19:35]MH_I2C_Read... [00:19:35]Read from MH i2c: E2 03 00 [00:19:35]MH_I2C_Read... [00:19:35]Read from MH i2c: E2 03 00 E8 5D 00 90 00 B9 [00:19:35]RAPDU: 90 00 [00:19:35]wFMCommunicate OK [00:19:35]wFMCommunicate request_size=55 [00:19:35]MH_SAM_APDU [00:19:35]CAPDU: 80 0D 02 02 32 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 D3 B0 00 00 35 04 06 00 99 1C ED A9 05 AF [00:19:35]Write to MH i2c: E2 3A 00 E9 5D 80 0D 02 02 32 00 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 D3 B0 00 00 35 04 06 00 99 1C ED A9 05 AF 00 00 A2 [00:19:35]Write i2c OK [00:19:35]MH_I2C_Read... [00:19:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:19:35]Read from MH i2c: E2 [00:19:35]MH_I2C_Read... [00:19:35]Read from MH i2c: E2 03 00 [00:19:35]MH_I2C_Read... [00:19:35]Read from MH i2c: E2 03 00 E9 5D 00 90 00 BA [00:19:35]RAPDU: 90 00 [00:19:35]wFMCommunicate OK [00:19:35]wFMCommunicate request_size=4 [00:19:35]MH_SAM_APDU [00:19:35]CAPDU: 80 0D 03 02 [00:19:35]Write to MH i2c: E2 08 00 EA 5D 80 0D 03 02 00 00 00 00 C2 [00:19:35]Write i2c OK [00:19:35]MH_I2C_Read... [00:19:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:19:35]Read from MH i2c: E2 [00:19:35]MH_I2C_Read... [00:19:35]Read from MH i2c: E2 0B 00 [00:19:35]MH_I2C_Read... [00:19:35]Read from MH i2c: E2 0B 00 EA 5D 00 EB 59 C7 17 05 1D 13 B0 90 00 CA [00:19:35]RAPDU: EB 59 C7 17 05 1D 13 B0 90 00 [00:19:35]wFMCommunicate OK [00:19:35]SAM_PROTO_SignData done [00:19:35]FM_MakeSignedData done [00:19:35]CreateOFDProtocolMessage [00:19:35]wFMCommunicate request_size=4 [00:19:35]MH_SAM_APDU [00:19:35]CAPDU: 80 11 00 00 [00:19:35]Write to MH i2c: E2 08 00 EB 5D 80 11 00 00 00 00 00 00 C2 [00:19:35]Write i2c OK [00:19:35]MH_I2C_Read... [00:19:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:19:36]Read from MH i2c: E2 [00:19:36]MH_I2C_Read... [00:19:36]Read from MH i2c: E2 17 00 [00:19:36]MH_I2C_Read... [00:19:36]Read from MH i2c: E2 17 00 EB 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 1E [00:19:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [00:19:36]wFMCommunicate OK [00:19:36]CreateOFDProtocolMessage done [00:19:36]OFDSenderStorePacket 45267 [00:19:36]StoreOFDPacket docnum=45267 [00:19:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 3C 01 00 00 52 86 34 01 40 FE 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 33 37 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B7 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E4 57 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 A4 13 E5 65 0E 04 04 00 4C 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 D3 B0 00 00 35 04 06 00 99 1C ED A9 05 AF EB 59 C7 17 05 1D 13 B0 [00:19:36]CheckFolder [00:19:36]dirname=/storage/ofd_packets [00:19:36]CheckFolder done [00:19:36]ProducePacketName [00:19:36]name=ofd_packets/00045267 [00:19:36]NVStorageSaveData ofd_packets/00045267 [00:19:36]File name is /storage/ofd_packets/00045267 [00:19:36]Write 346 bytes [00:19:36]NVStorageSaveData done [00:19:36]OFDSenderStorePacket done [00:19:36]KKMCreateOFDPacket done [00:19:36]NVStorageSaveData kkm_last_timestamp [00:19:36]File name is /storage/kkm_last_timestamp [00:19:36]Write 4 bytes [00:19:36]NVStorageSaveData done [00:19:36]ExternCall_PrintAddStr [00:19:36]wPrintStart [00:19:36]Write to MH i2c: 01 00 00 EC 5D 49 [00:19:36]Write i2c OK [00:19:36]MH_I2C_Read... [00:19:36]Read from MH i2c: 01 [00:19:36]MH_I2C_Read... [00:19:36]Read from MH i2c: 01 07 00 [00:19:36]MH_I2C_Read... [00:19:36]Read from MH i2c: 01 07 00 EC 5D 00 00 00 00 00 FF 0F 5E [00:19:36]RasterBufferAndPrint [00:19:36]line Счет N : (3)184224 [00:19:36]line ИНН: 02508201610067 [00:19:36]line Контрольно-Кассовый Чек [00:19:36]line ПРОДАЖА [00:19:36]line Товар: 4670003190037 [00:19:36]line Антифриз SIBIRIA ANTIFREEZE ОЖ-40 зел 1л [00:19:36]line 1.000 * 225.00 [00:19:36]line = 225.00 [00:19:36]line НДС 12% НСП 1% [00:19:36]line > о реализуемом товаре [00:19:36]line ИТОГО: 225.00 [00:19:36]line НСП 1% : 1.99 [00:19:36]line НДС 12% : 23.89 [00:19:36]line Наличными: 0.00 [00:19:36]line Безнал.: 225.00 [00:19:36]line Место: АЗС № 25 "Партнер Нефть" [00:19:36]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [00:19:36]line СНО: Общий режим [00:19:36]line Чек 1 04.03.2024 00:19 [00:19:36]line Смена: 332 ФФД: 1.0 [00:19:36]line ЗНМ: 0300000013 [00:19:36]line РНМ: 0000000000090572 [00:19:36]line Версия ККМ: 001 [00:19:36]line Платежная система: Бакай Банк [00:19:36]line ФМ: 0000000000874796 [00:19:36]line ФД: 45267 [00:19:36]line ФПД: 168349525411247 [00:19:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240304T001948&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45267&fm=168349525411247&tin=02508201610067®Number=0000000000090572&sum=22500 [00:19:36]line 0 [00:19:36]OFD Sender: Processing packet 45267 [packets to send 17, broken 16] [00:19:36]ProducePacketName [00:19:36]name=ofd_packets/00045267 [00:19:36]OFD Sender: To server: pG, [00:19:36]CommunicateWithHost lk.salyk.kg:30040 [00:19:36]ConnectInit lk.salyk.kg [00:19:36]written 0, free lines is 4095 [00:19:36]Connected sock=10 [00:19:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 3C 01 00 00 52 86 34 01 40 FE 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 33 37 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B7 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E4 57 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 A4 13 E5 65 0E 04 04 00 4C 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 D3 B0 00 00 35 04 06 00 99 1C ED A9 05 AF EB 59 C7 17 05 1D 13 B0 [00:19:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 54 6B 47 00 36 B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 D3 B0 00 00 F4 03 04 00 67 BF E4 65 B6 04 01 00 00 32 72 88 D4 86 AE 93 3B [00:19:36]CommunicateWithHost err = 0 [00:19:36]CheckOFDResponse [00:19:36]1017 (14) - 77093643461234 [00:19:36]1041 (16) - 0000000000874796 [00:19:36]1040 (4) - 45267 [00:19:36]1012 (4) - 03.03.2024 18:20 [00:19:36]1206 (1) - 0 [00:19:36]OFD Sender: Remove packet 45267 [00:19:36]ProducePacketName [00:19:36]name=ofd_packets/00045267 [00:19:36]NVStorageDeleteData [00:19:36]Write to MH i2c: 01 00 00 17 5E 75 [00:19:36]Write i2c OK [00:19:36]MH_I2C_Read... [00:19:36]Read from MH i2c: 01 [00:19:36]MH_I2C_Read... [00:19:36]Read from MH i2c: 01 07 00 [00:19:36]MH_I2C_Read... [00:19:36]Read from MH i2c: 01 07 00 17 5E 00 00 00 00 00 08 0D 91 [00:19:36]RasterBufferAndPrint [00:19:36]line [00:19:36]line [00:19:36]line [00:19:36]line [00:19:36]line [00:19:36]written 0, free lines is 3342 [00:19:36]MH_Cut [00:19:36]Write to MH i2c: D1 01 00 1E 5E 01 4E [00:19:36]Write i2c OK [00:19:36]MH_I2C_Read... [00:19:36]Read from MH i2c: D1 [00:19:36]MH_I2C_Read... [00:19:36]Read from MH i2c: D1 01 00 [00:19:36]MH_I2C_Read... [00:19:36]Read from MH i2c: D1 01 00 1E 5E 00 4D [00:19:36]Write to MH i2c: 01 00 00 1F 5E 7D [00:19:36]Write i2c OK [00:19:36]MH_I2C_Read... [00:19:37]OFD Sender: No OFD packet to send [00:19:37]*** Cut start [00:19:37]*** Purtial cut [00:19:37]*** Stage 1: CUTSNS_PIN = 1 [00:19:39]Read from MH i2c: 01 [00:19:39]MH_I2C_Read... [00:19:39]*** Stop cut motor [00:19:39]*** Cut end [00:19:39]Read from MH i2c: 01 07 00 [00:19:39]MH_I2C_Read... [00:19:39]Read from MH i2c: 01 07 00 1F 5E 00 00 00 00 00 FF 0F 92 [00:19:39]process_action close_receipt done [00:19:39]requested_data is exist [00:19:39]produce_requested_data [00:19:39]requested_item fm.sn is exist - process it [00:19:39]wFMCommunicate request_size=4 [00:19:39]MH_SAM_APDU [00:19:39]CAPDU: 80 11 00 00 [00:19:39]Write to MH i2c: E2 08 00 20 5E 80 11 00 00 00 00 00 00 F8 [00:19:39]Write i2c OK [00:19:39]MH_I2C_Read... [00:19:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:19:39]Read from MH i2c: E2 [00:19:39]MH_I2C_Read... [00:19:39]Read from MH i2c: E2 17 00 [00:19:39]MH_I2C_Read... [00:19:39]Read from MH i2c: E2 17 00 20 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 54 [00:19:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [00:19:39]wFMCommunicate OK [00:19:39]requested_item fd.num is exist - process it [00:19:39]SAM_PROTO_GetFieldsCounters [00:19:39]wFMCommunicate request_size=4 [00:19:39]MH_SAM_APDU [00:19:39]CAPDU: 80 13 00 00 [00:19:39]Write to MH i2c: E2 08 00 21 5E 80 13 00 00 00 00 00 00 FB [00:19:39]Write i2c OK [00:19:39]MH_I2C_Read... [00:19:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:19:39]Read from MH i2c: E2 [00:19:39]MH_I2C_Read... [00:19:39]Read from MH i2c: E2 62 00 [00:19:39]MH_I2C_Read... [00:19:39]Read from MH i2c: E2 62 00 21 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 D3 B0 00 00 0E 04 04 00 4C 01 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 F6 [00:19:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 D3 B0 00 00 0E 04 04 00 4C 01 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:19:39]wFMCommunicate OK [00:19:39]SAM_PROTO_GetFieldsCounters done [00:19:39]requested_item shift.num is exist - process it [00:19:39]requested_item shift.opened is exist - process it [00:19:39]req_shift_opened [00:19:39]FM_GetShiftState [00:19:39]SAM_PROTO_GetShiftState [00:19:39]wFMCommunicate request_size=4 [00:19:39]MH_SAM_APDU [00:19:39]CAPDU: 80 13 01 00 [00:19:39]Write to MH i2c: E2 08 00 22 5E 80 13 01 00 00 00 00 00 FD [00:19:39]Write i2c OK [00:19:39]MH_I2C_Read... [00:19:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:19:39]Read from MH i2c: E2 [00:19:39]MH_I2C_Read... [00:19:39]Read from MH i2c: E2 0E 00 [00:19:39]MH_I2C_Read... [00:19:39]Read from MH i2c: E2 0E 00 22 5E 00 09 00 01 26 12 E5 65 00 00 00 00 90 00 8B [00:19:39]RAPDU: 09 00 01 26 12 E5 65 00 00 00 00 90 00 [00:19:39]wFMCommunicate OK [00:19:39]SAM_PROTO_GetShiftState done [00:19:39]FM_GetShiftState done [00:19:39]req_shift_opened done [00:19:39]requested_item shift.open_date is exist - process it [00:19:39]req_shift_open_date [00:19:39]req_shift_open_date done [00:19:39]produce_requested_data done [00:19:39]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45267,"shift.num":332,"shift.opened":1,"shift.open_date":1709511206} [00:19:39]process_action_free close_receipt [00:19:39]json_value_free [00:19:39]json_value_free done [00:19:39]process_json_proto returns [00:19:39]Send response to host [00:19:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45267,"shift.num":332,"shift.opened":1,"shift.open_date":1709511206}}} [00:19:39]free response buf [00:19:39]execute_script done [00:19:39]execute_script returns [00:19:39]free content buf [00:19:39]Sock 7.Close socket [00:19:39]Sock 7.Thread stoped [00:19:42]OFD Sender: No OFD packet to send [00:19:47]OFD Sender: No OFD packet to send [00:19:52]OFD Sender: No OFD packet to send [00:19:57]OFD Sender: No OFD packet to send [00:20:02]OFD Sender: No OFD packet to send [00:20:07]OFD Sender: No OFD packet to send [00:20:12]OFD Sender: No OFD packet to send [00:20:17]OFD Sender: No OFD packet to send [00:20:22]OFD Sender: No OFD packet to send [00:20:27]OFD Sender: No OFD packet to send [00:20:32]OFD Sender: No OFD packet to send [00:20:37]OFD Sender: No OFD packet to send [00:20:42]OFD Sender: No OFD packet to send [00:20:47]OFD Sender: No OFD packet to send [00:20:52]OFD Sender: No OFD packet to send [00:20:57]OFD Sender: No OFD packet to send [00:21:02]OFD Sender: No OFD packet to send [00:21:07]OFD Sender: No OFD packet to send [00:21:12]OFD Sender: No OFD packet to send [00:21:17]OFD Sender: No OFD packet to send [00:21:22]OFD Sender: No OFD packet to send [00:21:27]OFD Sender: No OFD packet to send [00:21:32]OFD Sender: No OFD packet to send [00:21:37]OFD Sender: No OFD packet to send [00:21:42]OFD Sender: No OFD packet to send [00:21:47]OFD Sender: No OFD packet to send [00:21:52]OFD Sender: No OFD packet to send [00:21:57]OFD Sender: No OFD packet to send [00:22:02]OFD Sender: No OFD packet to send [00:22:07]OFD Sender: No OFD packet to send [00:22:12]OFD Sender: No OFD packet to send [00:22:17]OFD Sender: No OFD packet to send [00:22:22]OFD Sender: No OFD packet to send [00:22:27]OFD Sender: No OFD packet to send [00:22:32]OFD Sender: No OFD packet to send [00:22:37]OFD Sender: No OFD packet to send [00:22:42]OFD Sender: No OFD packet to send [00:22:47]OFD Sender: No OFD packet to send [00:22:52]OFD Sender: No OFD packet to send [00:22:57]OFD Sender: No OFD packet to send [00:23:02]OFD Sender: No OFD packet to send [00:23:07]OFD Sender: No OFD packet to send [00:23:12]OFD Sender: No OFD packet to send [00:23:17]OFD Sender: No OFD packet to send [00:23:22]OFD Sender: No OFD packet to send [00:23:27]OFD Sender: No OFD packet to send [00:23:32]OFD Sender: No OFD packet to send [00:23:37]OFD Sender: No OFD packet to send [00:23:42]OFD Sender: No OFD packet to send [00:23:47]OFD Sender: No OFD packet to send [00:23:52]OFD Sender: No OFD packet to send [00:23:57]OFD Sender: No OFD packet to send [00:24:02]OFD Sender: No OFD packet to send [00:24:07]OFD Sender: No OFD packet to send [00:24:12]OFD Sender: No OFD packet to send [00:24:17]OFD Sender: No OFD packet to send [00:24:22]OFD Sender: No OFD packet to send [00:24:27]OFD Sender: No OFD packet to send [00:24:32]OFD Sender: No OFD packet to send [00:24:37]OFD Sender: No OFD packet to send [00:24:42]OFD Sender: No OFD packet to send [00:24:47]OFD Sender: No OFD packet to send [00:24:52]OFD Sender: No OFD packet to send [00:24:57]OFD Sender: No OFD packet to send [00:25:02]OFD Sender: No OFD packet to send [00:25:07]OFD Sender: No OFD packet to send [00:25:12]OFD Sender: No OFD packet to send [00:25:17]OFD Sender: No OFD packet to send [00:25:22]OFD Sender: No OFD packet to send [00:25:27]OFD Sender: No OFD packet to send [00:25:32]OFD Sender: No OFD packet to send [00:25:37]OFD Sender: No OFD packet to send [00:25:42]OFD Sender: No OFD packet to send [00:25:47]OFD Sender: No OFD packet to send [00:25:52]OFD Sender: No OFD packet to send [00:25:57]OFD Sender: No OFD packet to send [00:26:02]OFD Sender: No OFD packet to send [00:26:07]OFD Sender: No OFD packet to send [00:26:12]OFD Sender: No OFD packet to send [00:26:17]OFD Sender: No OFD packet to send [00:26:22]OFD Sender: No OFD packet to send [00:26:27]OFD Sender: No OFD packet to send [00:26:32]OFD Sender: No OFD packet to send [00:26:37]OFD Sender: No OFD packet to send [00:26:42]OFD Sender: No OFD packet to send [00:26:47]OFD Sender: No OFD packet to send [00:26:52]OFD Sender: No OFD packet to send [00:26:57]OFD Sender: No OFD packet to send [00:27:02]OFD Sender: No OFD packet to send [00:27:07]OFD Sender: No OFD packet to send [00:27:12]OFD Sender: No OFD packet to send [00:27:17]OFD Sender: No OFD packet to send [00:27:22]OFD Sender: No OFD packet to send [00:27:27]OFD Sender: No OFD packet to send [00:27:32]OFD Sender: No OFD packet to send [00:27:37]OFD Sender: No OFD packet to send [00:27:42]OFD Sender: No OFD packet to send [00:27:47]OFD Sender: No OFD packet to send [00:27:52]OFD Sender: No OFD packet to send [00:27:57]OFD Sender: No OFD packet to send [00:28:02]OFD Sender: No OFD packet to send [00:28:07]OFD Sender: No OFD packet to send [00:28:12]OFD Sender: No OFD packet to send [00:28:17]OFD Sender: No OFD packet to send [00:28:22]OFD Sender: No OFD packet to send [00:28:27]OFD Sender: No OFD packet to send [00:28:32]OFD Sender: No OFD packet to send [00:28:37]OFD Sender: No OFD packet to send [00:28:42]OFD Sender: No OFD packet to send [00:28:47]OFD Sender: No OFD packet to send [00:28:52]OFD Sender: No OFD packet to send [00:28:57]OFD Sender: No OFD packet to send [00:29:02]OFD Sender: No OFD packet to send [00:29:07]OFD Sender: No OFD packet to send [00:29:12]OFD Sender: No OFD packet to send [00:29:17]OFD Sender: No OFD packet to send [00:29:22]OFD Sender: No OFD packet to send [00:29:27]OFD Sender: No OFD packet to send [00:29:32]OFD Sender: No OFD packet to send [00:29:37]OFD Sender: No OFD packet to send [00:29:42]OFD Sender: No OFD packet to send [00:29:47]OFD Sender: No OFD packet to send [00:29:52]OFD Sender: No OFD packet to send [00:29:57]OFD Sender: No OFD packet to send [00:30:02]OFD Sender: No OFD packet to send [00:30:07]OFD Sender: No OFD packet to send [00:30:12]OFD Sender: No OFD packet to send [00:30:17]OFD Sender: No OFD packet to send [00:30:22]OFD Sender: No OFD packet to send [00:30:27]OFD Sender: No OFD packet to send [00:30:32]OFD Sender: No OFD packet to send [00:30:37]OFD Sender: No OFD packet to send [00:30:42]OFD Sender: No OFD packet to send [00:30:47]OFD Sender: No OFD packet to send [00:30:52]OFD Sender: No OFD packet to send [00:30:57]OFD Sender: No OFD packet to send [00:31:02]OFD Sender: No OFD packet to send [00:31:07]OFD Sender: No OFD packet to send [00:31:12]OFD Sender: No OFD packet to send [00:31:17]OFD Sender: No OFD packet to send [00:31:22]OFD Sender: No OFD packet to send [00:31:27]OFD Sender: No OFD packet to send [00:31:32]OFD Sender: No OFD packet to send [00:31:37]OFD Sender: No OFD packet to send [00:31:42]OFD Sender: No OFD packet to send [00:31:47]OFD Sender: No OFD packet to send [00:31:52]OFD Sender: No OFD packet to send [00:31:57]OFD Sender: No OFD packet to send [00:32:02]OFD Sender: No OFD packet to send [00:32:07]OFD Sender: No OFD packet to send [00:32:12]OFD Sender: No OFD packet to send [00:32:17]OFD Sender: No OFD packet to send [00:32:22]OFD Sender: No OFD packet to send [00:32:27]OFD Sender: No OFD packet to send [00:32:32]OFD Sender: No OFD packet to send [00:32:37]OFD Sender: No OFD packet to send [00:32:42]OFD Sender: No OFD packet to send [00:32:47]OFD Sender: No OFD packet to send [00:32:52]OFD Sender: No OFD packet to send [00:32:57]OFD Sender: No OFD packet to send [00:33:02]OFD Sender: No OFD packet to send [00:33:07]OFD Sender: No OFD packet to send [00:33:12]OFD Sender: No OFD packet to send [00:33:17]OFD Sender: No OFD packet to send [00:33:22]OFD Sender: No OFD packet to send [00:33:27]OFD Sender: No OFD packet to send [00:33:32]OFD Sender: No OFD packet to send [00:33:37]OFD Sender: No OFD packet to send [00:33:42]OFD Sender: No OFD packet to send [00:33:47]OFD Sender: No OFD packet to send [00:33:49]accept exits with 9 [00:33:49]New connection [00:33:49]New thread 3067157860 created [00:33:49]Thread 3067014500 joined [00:33:49]Waiting for new connection... [00:33:49] Sock 9.Parse request [00:33:49]Sock 9.Check first char [00:33:49]Sock 9.First char is OK [00:33:49]request: POST /json_proto HTTP/1.0 [00:33:49]Method: POST [00:33:49]URL: /json_proto [00:33:49]Method is POST - this is cgi request [00:33:49]url: /json_proto [00:33:49]query_string will be loaded in cgi processing [00:33:49]execute_cgi json_proto POST (null) [00:33:49]execute_cgi path=json_proto method=POST [00:33:49]POST find Content-Length [00:33:49]Host: 172.17.48.198:8080 [00:33:49]Content-Length: 651 [00:33:49]Content-Type: application/json [00:33:49] [00:33:49]POST finish read [00:33:49]Found Content-Length = 651 [00:33:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184225", "tax_sys" : 0, "items" : [ { "code": "4870216765088", "name": "\u041D\u0430\u0433\u0440.\u0422\u0430\u0431.\u041F\u0430\u043B\u043E\u0447. HEETS Purple Wave", "price" : 141.00, "quantity" : 1.000, "sum" : 141.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 141.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:33:49]execute_script... [00:33:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184225", "tax_sys" : 0, "items" : [ { "code": "4870216765088", "name": "\u041D\u0430\u0433\u0440.\u0422\u0430\u0431.\u041F\u0430\u043B\u043E\u0447. HEETS Purple Wave", "price" : 141.00, "quantity" : 1.000, "sum" : 141.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 141.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:33:49]POST & json_proto [00:33:49]process_json_proto [00:33:49]json parsed OK: [00:33:49]protocol is kg_v1.0 [00:33:49]action value=close_receipt [00:33:49]process_action close_receipt [00:33:49]cmd_close_receipt [00:33:49]MH_GetDate [00:33:49]Write to MH i2c: F0 00 00 23 5E 70 [00:33:49]Write i2c OK [00:33:49]MH_I2C_Read... [00:33:49]Read from MH i2c: F0 [00:33:49]MH_I2C_Read... [00:33:49]Read from MH i2c: F0 09 00 [00:33:49]MH_I2C_Read... [00:33:49]Read from MH i2c: F0 09 00 23 5E 00 FC 16 E5 65 CE C4 D4 65 A0 [00:33:49]GetLastDocTimeStamp 1709511588 [00:33:49]current date 1709512444 [00:33:49]FM_GetShiftState [00:33:49]SAM_PROTO_GetShiftState [00:33:49]wFMCommunicate request_size=4 [00:33:49]MH_SAM_APDU [00:33:49]CAPDU: 80 13 01 00 [00:33:49]Write to MH i2c: E2 08 00 24 5E 80 13 01 00 00 00 00 00 FF [00:33:49]Write i2c OK [00:33:49]MH_I2C_Read... [00:33:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:33:49]Read from MH i2c: E2 [00:33:49]MH_I2C_Read... [00:33:49]Read from MH i2c: E2 0E 00 [00:33:49]MH_I2C_Read... [00:33:49]Read from MH i2c: E2 0E 00 24 5E 00 09 00 01 26 12 E5 65 00 00 00 00 90 00 8D [00:33:49]RAPDU: 09 00 01 26 12 E5 65 00 00 00 00 90 00 [00:33:49]wFMCommunicate OK [00:33:49]SAM_PROTO_GetShiftState done [00:33:49]FM_GetShiftState done [00:33:49]opened in 1709511206 [00:33:49]opened+sec_in_day 1709597606 [00:33:49]quantity*price = 14100 [00:33:49]sum+1 = 14101 [00:33:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 141.00 НСП 1% : 1.25 НДС 12% : 14.97 Наличными: 141.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 2 04.03.2024 00:34 Смена: 332 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 ФМ: 0000000000874796 ФД: 45268 ФПД: 135398885400951 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240304T003404&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45268&fm=135398885400951&tin=02508201610067®Number=0000000000090572&sum=14100 0 [00:33:50]StoreToDocumentArchive [00:33:50]shift 332 fd 45268 [00:33:50]save to /storage/0332/doc_00045268 [00:33:50]save last doc name /storage/0332/doc_00045268 to /storage/kkm_last_doc_name [00:33:50]save OK [00:33:50]Clear old archive folders... [00:33:50]ProcessDocumentItem done err = 0, tmpTLVsize=287 [00:33:50]tlvbuf is 01CD30B0 [00:33:50]SAM_PROTO_ClearQueue [00:33:50]wFMCommunicate request_size=4 [00:33:50]MH_SAM_APDU [00:33:50]CAPDU: 80 09 00 00 [00:33:50]Write to MH i2c: E2 08 00 31 5E 80 09 00 00 00 00 00 00 01 [00:33:50]Write i2c OK [00:33:50]MH_I2C_Read... [00:33:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:33:50]Read from MH i2c: E2 [00:33:50]MH_I2C_Read... [00:33:50]Read from MH i2c: E2 03 00 [00:33:50]MH_I2C_Read... [00:33:50]Read from MH i2c: E2 03 00 31 5E 00 90 00 03 [00:33:50]RAPDU: 90 00 [00:33:50]wFMCommunicate OK [00:33:50]SAM_PROTO_ClearQueue done [00:33:50]KKMCreateOFDPacket [00:33:50]OFDProtocolAddRootSTLVToBuf [00:33:50]FM_MakeSignedData [00:33:50]FM_MakeSignedData [00:33:50]SAM_PROTO_SignData [00:33:50]wFMCommunicate request_size=4 [00:33:50]MH_SAM_APDU [00:33:50]CAPDU: 80 0D 01 02 [00:33:50]Write to MH i2c: E2 08 00 32 5E 80 0D 01 02 00 00 00 00 09 [00:33:50]Write i2c OK [00:33:50]MH_I2C_Read... [00:33:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:33:50]Read from MH i2c: E2 [00:33:50]MH_I2C_Read... [00:33:50]Read from MH i2c: E2 03 00 [00:33:50]MH_I2C_Read... [00:33:50]Read from MH i2c: E2 03 00 32 5E 00 90 00 04 [00:33:50]RAPDU: 90 00 [00:33:50]wFMCommunicate OK [00:33:50]wFMCommunicate request_size=255 [00:33:50]MH_SAM_APDU [00:33:50]CAPDU: 80 0D 02 02 FA 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 35 30 38 38 06 04 2D 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 50 75 72 70 6C 65 20 57 61 76 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 05 00 00 00 00 07 04 06 00 14 37 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 FC 16 E5 65 0E 04 04 00 4C 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 [00:33:50]Write to MH i2c: E2 02 01 33 5E 80 0D 02 02 FA 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 35 30 38 38 06 04 2D 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 50 75 72 70 6C 65 20 57 61 76 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 05 00 00 00 00 07 04 06 00 14 37 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 FC 16 E5 65 0E 04 04 00 4C 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 00 00 A3 [00:33:51]Write i2c OK [00:33:51]MH_I2C_Read... [00:33:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:33:51]Read from MH i2c: E2 [00:33:51]MH_I2C_Read... [00:33:51]Read from MH i2c: E2 03 00 [00:33:51]MH_I2C_Read... [00:33:51]Read from MH i2c: E2 03 00 33 5E 00 90 00 05 [00:33:51]RAPDU: 90 00 [00:33:51]wFMCommunicate OK [00:33:51]wFMCommunicate request_size=46 [00:33:51]MH_SAM_APDU [00:33:51]CAPDU: 80 0D 02 02 29 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 D4 B0 00 00 35 04 06 00 7B 25 02 77 A1 77 [00:33:51]Write to MH i2c: E2 31 00 34 5E 80 0D 02 02 29 00 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 D4 B0 00 00 35 04 06 00 7B 25 02 77 A1 77 00 00 56 [00:33:51]Write i2c OK [00:33:51]MH_I2C_Read... [00:33:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:33:51]Read from MH i2c: E2 [00:33:51]MH_I2C_Read... [00:33:51]Read from MH i2c: E2 03 00 [00:33:51]MH_I2C_Read... [00:33:51]Read from MH i2c: E2 03 00 34 5E 00 90 00 06 [00:33:51]RAPDU: 90 00 [00:33:51]wFMCommunicate OK [00:33:51]wFMCommunicate request_size=4 [00:33:51]MH_SAM_APDU [00:33:51]CAPDU: 80 0D 03 02 [00:33:51]Write to MH i2c: E2 08 00 35 5E 80 0D 03 02 00 00 00 00 0E [00:33:51]Write i2c OK [00:33:51]MH_I2C_Read... [00:33:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:33:51]Read from MH i2c: E2 [00:33:51]MH_I2C_Read... [00:33:51]Read from MH i2c: E2 0B 00 [00:33:51]MH_I2C_Read... [00:33:51]Read from MH i2c: E2 0B 00 35 5E 00 31 37 F0 E7 1E E3 E3 2F 90 00 61 [00:33:51]RAPDU: 31 37 F0 E7 1E E3 E3 2F 90 00 [00:33:51]wFMCommunicate OK [00:33:51]SAM_PROTO_SignData done [00:33:51]FM_MakeSignedData done [00:33:51]CreateOFDProtocolMessage [00:33:51]wFMCommunicate request_size=4 [00:33:51]MH_SAM_APDU [00:33:51]CAPDU: 80 11 00 00 [00:33:51]Write to MH i2c: E2 08 00 36 5E 80 11 00 00 00 00 00 00 0E [00:33:51]Write i2c OK [00:33:51]MH_I2C_Read... [00:33:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:33:51]Read from MH i2c: E2 [00:33:51]MH_I2C_Read... [00:33:51]Read from MH i2c: E2 17 00 [00:33:51]MH_I2C_Read... [00:33:51]Read from MH i2c: E2 17 00 36 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 6A [00:33:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [00:33:51]wFMCommunicate OK [00:33:51]CreateOFDProtocolMessage done [00:33:51]OFDSenderStorePacket 45268 [00:33:51]StoreOFDPacket docnum=45268 [00:33:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 33 01 00 00 EC D5 2B 01 5A EF 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 35 30 38 38 06 04 2D 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 50 75 72 70 6C 65 20 57 61 76 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 05 00 00 00 00 07 04 06 00 14 37 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 FC 16 E5 65 0E 04 04 00 4C 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 D4 B0 00 00 35 04 06 00 7B 25 02 77 A1 77 31 37 F0 E7 1E E3 E3 2F [00:33:51]CheckFolder [00:33:51]dirname=/storage/ofd_packets [00:33:51]CheckFolder done [00:33:51]ProducePacketName [00:33:51]name=ofd_packets/00045268 [00:33:51]NVStorageSaveData ofd_packets/00045268 [00:33:51]File name is /storage/ofd_packets/00045268 [00:33:51]Write 337 bytes [00:33:51]NVStorageSaveData done [00:33:51]OFDSenderStorePacket done [00:33:51]KKMCreateOFDPacket done [00:33:51]NVStorageSaveData kkm_last_timestamp [00:33:51]File name is /storage/kkm_last_timestamp [00:33:51]Write 4 bytes [00:33:51]NVStorageSaveData done [00:33:51]ExternCall_PrintAddStr [00:33:51]wPrintStart [00:33:51]Write to MH i2c: 01 00 00 37 5E 95 [00:33:51]Write i2c OK [00:33:51]MH_I2C_Read... [00:33:51]Read from MH i2c: 01 [00:33:51]MH_I2C_Read... [00:33:51]Read from MH i2c: 01 07 00 [00:33:51]MH_I2C_Read... [00:33:51]Read from MH i2c: 01 07 00 37 5E 00 00 00 00 00 FF 0F AA [00:33:51]RasterBufferAndPrint [00:33:51]line Счет N : (3)184225 [00:33:51]line ИНН: 02508201610067 [00:33:51]line Контрольно-Кассовый Чек [00:33:51]line ПРОДАЖА [00:33:51]line Товар: 4870216765088 [00:33:51]line Нагр.Таб.Палоч. HEETS Purple Wave [00:33:51]line 1.000 * 141.00 [00:33:51]line = 141.00 [00:33:51]line НДС 12% НСП 1% [00:33:51]line > о реализуемом товаре [00:33:51]line ИТОГО: 141.00 [00:33:51]line НСП 1% : 1.25 [00:33:51]line НДС 12% : 14.97 [00:33:51]line Наличными: 141.00 [00:33:51]line Безнал.: 0.00 [00:33:51]line Место: АЗС № 25 "Партнер Нефть" [00:33:51]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [00:33:51]line СНО: Общий режим [00:33:51]line Чек 2 04.03.2024 00:34 [00:33:51]line Смена: 332 ФФД: 1.0 [00:33:51]line ЗНМ: 0300000013 [00:33:51]line РНМ: 0000000000090572 [00:33:51]line Версия ККМ: 001 [00:33:51]line ФМ: 0000000000874796 [00:33:51]line ФД: 45268 [00:33:51]line ФПД: 135398885400951 [00:33:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240304T003404&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45268&fm=135398885400951&tin=02508201610067®Number=0000000000090572&sum=14100 [00:33:51]line 0 [00:33:51]OFD Sender: Processing packet 45268 [packets to send 17, broken 16] [00:33:51]ProducePacketName [00:33:51]name=ofd_packets/00045268 [00:33:51]OFD Sender: To server: pG, [00:33:51]CommunicateWithHost lk.salyk.kg:30040 [00:33:51]ConnectInit lk.salyk.kg [00:33:51]written 0, free lines is 4095 [00:33:51]Connected sock=10 [00:33:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 33 01 00 00 EC D5 2B 01 5A EF 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 35 30 38 38 06 04 2D 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 50 75 72 70 6C 65 20 57 61 76 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 05 00 00 00 00 07 04 06 00 14 37 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 FC 16 E5 65 0E 04 04 00 4C 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 D4 B0 00 00 35 04 06 00 7B 25 02 77 A1 77 31 37 F0 E7 1E E3 E3 2F [00:33:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 4B DD 47 00 50 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 34 37 39 36 10 04 04 00 D4 B0 00 00 F4 03 04 00 BF C2 E4 65 B6 04 01 00 00 32 12 7B 22 5A 6D 71 F7 [00:33:52]CommunicateWithHost err = 0 [00:33:52]CheckOFDResponse [00:33:52]1017 (14) - 77093643461234 [00:33:52]1041 (16) - 0000000000874796 [00:33:52]1040 (4) - 45268 [00:33:52]1012 (4) - 03.03.2024 18:34 [00:33:52]1206 (1) - 0 [00:33:52]OFD Sender: Remove packet 45268 [00:33:52]ProducePacketName [00:33:52]name=ofd_packets/00045268 [00:33:52]NVStorageDeleteData [00:33:52]Write to MH i2c: 01 00 00 60 5E BE [00:33:52]Write i2c OK [00:33:52]MH_I2C_Read... [00:33:52]Read from MH i2c: 01 [00:33:52]MH_I2C_Read... [00:33:52]Read from MH i2c: 01 07 00 [00:33:52]MH_I2C_Read... [00:33:52]Read from MH i2c: 01 07 00 60 5E 00 00 00 00 00 0A 0D DC [00:33:52]RasterBufferAndPrint [00:33:52]line [00:33:52]line [00:33:52]line [00:33:52]line [00:33:52]line [00:33:52]written 0, free lines is 3344 [00:33:52]MH_Cut [00:33:52]Write to MH i2c: D1 01 00 67 5E 01 97 [00:33:52]Write i2c OK [00:33:52]MH_I2C_Read... [00:33:52]Read from MH i2c: D1 [00:33:52]MH_I2C_Read... [00:33:52]Read from MH i2c: D1 01 00 [00:33:52]MH_I2C_Read... [00:33:52]Read from MH i2c: D1 01 00 67 5E 00 96 [00:33:52]Write to MH i2c: 01 00 00 68 5E C6 [00:33:52]Write i2c OK [00:33:52]MH_I2C_Read... [00:33:52]OFD Sender: No OFD packet to send [00:33:52]*** Cut start [00:33:52]*** Purtial cut [00:33:52]*** Stage 1: CUTSNS_PIN = 1 [00:33:54]Read from MH i2c: 01 [00:33:54]MH_I2C_Read... [00:33:54]*** Stop cut motor [00:33:54]*** Cut end [00:33:54]Read from MH i2c: 01 07 00 [00:33:54]MH_I2C_Read... [00:33:54]Read from MH i2c: 01 07 00 68 5E 00 00 00 00 00 FF 0F DB [00:33:54]process_action close_receipt done [00:33:54]requested_data is exist [00:33:54]produce_requested_data [00:33:54]requested_item fm.sn is exist - process it [00:33:54]wFMCommunicate request_size=4 [00:33:54]MH_SAM_APDU [00:33:54]CAPDU: 80 11 00 00 [00:33:54]Write to MH i2c: E2 08 00 69 5E 80 11 00 00 00 00 00 00 41 [00:33:54]Write i2c OK [00:33:54]MH_I2C_Read... [00:33:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:33:54]Read from MH i2c: E2 [00:33:54]MH_I2C_Read... [00:33:54]Read from MH i2c: E2 17 00 [00:33:54]MH_I2C_Read... [00:33:54]Read from MH i2c: E2 17 00 69 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 9D [00:33:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [00:33:54]wFMCommunicate OK [00:33:54]requested_item fd.num is exist - process it [00:33:54]SAM_PROTO_GetFieldsCounters [00:33:54]wFMCommunicate request_size=4 [00:33:54]MH_SAM_APDU [00:33:54]CAPDU: 80 13 00 00 [00:33:54]Write to MH i2c: E2 08 00 6A 5E 80 13 00 00 00 00 00 00 44 [00:33:54]Write i2c OK [00:33:54]MH_I2C_Read... [00:33:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:33:55]Read from MH i2c: E2 [00:33:55]MH_I2C_Read... [00:33:55]Read from MH i2c: E2 62 00 [00:33:55]MH_I2C_Read... [00:33:55]Read from MH i2c: E2 62 00 6A 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 D4 B0 00 00 0E 04 04 00 4C 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 43 [00:33:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 D4 B0 00 00 0E 04 04 00 4C 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:33:55]wFMCommunicate OK [00:33:55]SAM_PROTO_GetFieldsCounters done [00:33:55]requested_item shift.num is exist - process it [00:33:55]requested_item shift.opened is exist - process it [00:33:55]req_shift_opened [00:33:55]FM_GetShiftState [00:33:55]SAM_PROTO_GetShiftState [00:33:55]wFMCommunicate request_size=4 [00:33:55]MH_SAM_APDU [00:33:55]CAPDU: 80 13 01 00 [00:33:55]Write to MH i2c: E2 08 00 6B 5E 80 13 01 00 00 00 00 00 46 [00:33:55]Write i2c OK [00:33:55]MH_I2C_Read... [00:33:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:33:55]Read from MH i2c: E2 [00:33:55]MH_I2C_Read... [00:33:55]Read from MH i2c: E2 0E 00 [00:33:55]MH_I2C_Read... [00:33:55]Read from MH i2c: E2 0E 00 6B 5E 00 09 00 01 26 12 E5 65 00 00 00 00 90 00 D4 [00:33:55]RAPDU: 09 00 01 26 12 E5 65 00 00 00 00 90 00 [00:33:55]wFMCommunicate OK [00:33:55]SAM_PROTO_GetShiftState done [00:33:55]FM_GetShiftState done [00:33:55]req_shift_opened done [00:33:55]requested_item shift.open_date is exist - process it [00:33:55]req_shift_open_date [00:33:55]req_shift_open_date done [00:33:55]produce_requested_data done [00:33:55]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45268,"shift.num":332,"shift.opened":1,"shift.open_date":1709511206} [00:33:55]process_action_free close_receipt [00:33:55]json_value_free [00:33:55]json_value_free done [00:33:55]process_json_proto returns [00:33:55]Send response to host [00:33:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45268,"shift.num":332,"shift.opened":1,"shift.open_date":1709511206}}} [00:33:55]free response buf [00:33:55]execute_script done [00:33:55]execute_script returns [00:33:55]free content buf [00:33:55]Sock 9.Close socket [00:33:55]Sock 9.Thread stoped [00:33:57]OFD Sender: No OFD packet to send [00:34:02]OFD Sender: No OFD packet to send [00:34:07]OFD Sender: No OFD packet to send [00:34:12]OFD Sender: No OFD packet to send [00:34:17]OFD Sender: No OFD packet to send [00:34:22]OFD Sender: No OFD packet to send [00:34:27]OFD Sender: No OFD packet to send [00:34:32]OFD Sender: No OFD packet to send [00:34:37]OFD Sender: No OFD packet to send [00:34:42]OFD Sender: No OFD packet to send [00:34:47]OFD Sender: No OFD packet to send [00:34:52]OFD Sender: No OFD packet to send [00:34:57]OFD Sender: No OFD packet to send [00:35:02]OFD Sender: No OFD packet to send [00:35:07]OFD Sender: No OFD packet to send [00:35:12]OFD Sender: No OFD packet to send [00:35:17]OFD Sender: No OFD packet to send [00:35:22]OFD Sender: No OFD packet to send [00:35:27]OFD Sender: No OFD packet to send [00:35:32]OFD Sender: No OFD packet to send [00:35:37]OFD Sender: No OFD packet to send [00:35:42]OFD Sender: No OFD packet to send [00:35:47]OFD Sender: No OFD packet to send [00:35:52]OFD Sender: No OFD packet to send [00:35:57]OFD Sender: No OFD packet to send [00:36:02]OFD Sender: No OFD packet to send [00:36:07]OFD Sender: No OFD packet to send [00:36:12]OFD Sender: No OFD packet to send [00:36:17]OFD Sender: No OFD packet to send [00:36:22]OFD Sender: No OFD packet to send [00:36:27]OFD Sender: No OFD packet to send [00:36:32]OFD Sender: No OFD packet to send [00:36:37]OFD Sender: No OFD packet to send [00:36:42]OFD Sender: No OFD packet to send [00:36:47]OFD Sender: No OFD packet to send [00:36:52]OFD Sender: No OFD packet to send [00:36:57]OFD Sender: No OFD packet to send [00:37:02]OFD Sender: No OFD packet to send [00:37:07]OFD Sender: No OFD packet to send [00:37:12]OFD Sender: No OFD packet to send [00:37:17]OFD Sender: No OFD packet to send [00:37:22]OFD Sender: No OFD packet to send [00:37:27]OFD Sender: No OFD packet to send [00:37:32]OFD Sender: No OFD packet to send [00:37:37]OFD Sender: No OFD packet to send [00:37:42]OFD Sender: No OFD packet to send [00:37:47]OFD Sender: No OFD packet to send [00:37:52]OFD Sender: No OFD packet to send [00:37:56]accept exits with 7 [00:37:56]New connection [00:37:56]New thread 3067014500 created [00:37:56]Thread 3067157860 joined [00:37:56]Waiting for new connection... [00:37:56] Sock 7.Parse request [00:37:56]Sock 7.Check first char [00:37:56]Sock 7.First char is OK [00:37:56]request: POST /json_proto HTTP/1.0 [00:37:56]Method: POST [00:37:56]URL: /json_proto [00:37:56]Method is POST - this is cgi request [00:37:56]url: /json_proto [00:37:56]query_string will be loaded in cgi processing [00:37:56]execute_cgi json_proto POST (null) [00:37:56]execute_cgi path=json_proto method=POST [00:37:56]POST find Content-Length [00:37:56]Host: 172.17.48.198:8080 [00:37:56]Content-Length: 215 [00:37:56]Content-Type: application/json [00:37:56] [00:37:56]POST finish read [00:37:56]Found Content-Length = 215 [00:37:56]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:56]execute_script... [00:37:56]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:56]POST & json_proto [00:37:56]process_json_proto [00:37:56]json parsed OK: [00:37:56]protocol is kg_v1.0 [00:37:56]action value=get_value [00:37:56]process_action get_value [00:37:56]cmd_get_value [00:37:56]process_action get_value done [00:37:56]requested_data is exist [00:37:56]produce_requested_data [00:37:56]requested_item kkm.sn is exist - process it [00:37:56]requested_item kkm.ver is exist - process it [00:37:56]requested_item fm.sn is exist - process it [00:37:56]wFMCommunicate request_size=4 [00:37:56]MH_SAM_APDU [00:37:56]CAPDU: 80 11 00 00 [00:37:56]Write to MH i2c: E2 08 00 6C 5E 80 11 00 00 00 00 00 00 44 [00:37:56]Write i2c OK [00:37:56]MH_I2C_Read... [00:37:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:37:56]Read from MH i2c: E2 [00:37:56]MH_I2C_Read... [00:37:56]Read from MH i2c: E2 17 00 [00:37:56]MH_I2C_Read... [00:37:56]Read from MH i2c: E2 17 00 6C 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 A0 [00:37:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [00:37:56]wFMCommunicate OK [00:37:56]requested_item fd.num is exist - process it [00:37:56]SAM_PROTO_GetFieldsCounters [00:37:56]wFMCommunicate request_size=4 [00:37:56]MH_SAM_APDU [00:37:56]CAPDU: 80 13 00 00 [00:37:56]Write to MH i2c: E2 08 00 6D 5E 80 13 00 00 00 00 00 00 47 [00:37:56]Write i2c OK [00:37:56]MH_I2C_Read... [00:37:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:37:56]Read from MH i2c: E2 [00:37:56]MH_I2C_Read... [00:37:56]Read from MH i2c: E2 62 00 [00:37:56]MH_I2C_Read... [00:37:56]Read from MH i2c: E2 62 00 6D 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 D4 B0 00 00 0E 04 04 00 4C 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 46 [00:37:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 D4 B0 00 00 0E 04 04 00 4C 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:37:56]wFMCommunicate OK [00:37:56]SAM_PROTO_GetFieldsCounters done [00:37:56]requested_item shift.num is exist - process it [00:37:56]requested_item shift.opened is exist - process it [00:37:56]req_shift_opened [00:37:56]FM_GetShiftState [00:37:56]SAM_PROTO_GetShiftState [00:37:56]wFMCommunicate request_size=4 [00:37:56]MH_SAM_APDU [00:37:56]CAPDU: 80 13 01 00 [00:37:56]Write to MH i2c: E2 08 00 6E 5E 80 13 01 00 00 00 00 00 49 [00:37:56]Write i2c OK [00:37:56]MH_I2C_Read... [00:37:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:37:56]Read from MH i2c: E2 [00:37:56]MH_I2C_Read... [00:37:56]Read from MH i2c: E2 0E 00 [00:37:56]MH_I2C_Read... [00:37:56]Read from MH i2c: E2 0E 00 6E 5E 00 09 00 01 26 12 E5 65 00 00 00 00 90 00 D7 [00:37:56]RAPDU: 09 00 01 26 12 E5 65 00 00 00 00 90 00 [00:37:56]wFMCommunicate OK [00:37:56]SAM_PROTO_GetShiftState done [00:37:56]FM_GetShiftState done [00:37:56]req_shift_opened done [00:37:56]requested_item shift.open_date is exist - process it [00:37:56]req_shift_open_date [00:37:56]req_shift_open_date done [00:37:56]produce_requested_data done [00:37:56]produce_requested_data return {"kkm.sn":"0300000013","kkm.ver":"001","fm.sn":"0000000000874796","fd.num":45268,"shift.num":332,"shift.opened":1,"shift.open_date":1709511206} [00:37:56]process_action_free get_value [00:37:56]json_value_free [00:37:56]json_value_free done [00:37:56]process_json_proto returns [00:37:56]Send response to host [00:37:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000013","kkm.ver":"001","fm.sn":"0000000000874796","fd.num":45268,"shift.num":332,"shift.opened":1,"shift.open_date":1709511206}}} [00:37:56]free response buf [00:37:56]execute_script done [00:37:56]execute_script returns [00:37:56]free content buf [00:37:56]Sock 7.Close socket [00:37:56]Sock 7.Thread stoped [00:37:57]OFD Sender: No OFD packet to send [00:37:59]accept exits with 9 [00:37:59]New connection [00:37:59]New thread 3067157860 created [00:37:59]Thread 3067014500 joined [00:37:59]Waiting for new connection... [00:37:59] Sock 9.Parse request [00:37:59]Sock 9.Check first char [00:37:59]Sock 9.First char is OK [00:37:59]request: POST /json_proto HTTP/1.0 [00:37:59]Method: POST [00:37:59]URL: /json_proto [00:37:59]Method is POST - this is cgi request [00:37:59]url: /json_proto [00:37:59]query_string will be loaded in cgi processing [00:37:59]execute_cgi json_proto POST (null) [00:37:59]execute_cgi path=json_proto method=POST [00:37:59]POST find Content-Length [00:37:59]Host: 172.17.48.198:8080 [00:37:59]Content-Length: 331 [00:37:59]Content-Type: application/json [00:37:59] [00:37:59]POST finish read [00:37:59]Found Content-Length = 331 [00:37:59]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:59]execute_script... [00:37:59]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:59]POST & json_proto [00:37:59]process_json_proto [00:37:59]json parsed OK: [00:37:59]protocol is kg_v1.0 [00:37:59]action value=get_value [00:37:59]process_action get_value [00:37:59]cmd_get_value [00:37:59]process_action get_value done [00:37:59]requested_data is exist [00:37:59]produce_requested_data [00:37:59]requested_item fm.sale.total is exist - process it [00:37:59]SAM_PROTO_GetFMData [00:37:59]wFMCommunicate request_size=4 [00:37:59]MH_SAM_APDU [00:37:59]CAPDU: 80 13 03 00 [00:37:59]Write to MH i2c: E2 08 00 6F 5E 80 13 03 00 00 00 00 00 4C [00:37:59]Write i2c OK [00:37:59]MH_I2C_Read... [00:38:00]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:38:00]Read from MH i2c: E2 [00:38:00]MH_I2C_Read... [00:38:00]Read from MH i2c: E2 FD 00 [00:38:00]MH_I2C_Read... [00:38:00]Read from MH i2c: E2 FD 00 6F 5E 00 C4 04 85 04 C0 04 6E 04 04 00 38 AE 00 00 69 04 A0 00 6F 04 04 00 45 AB 00 00 B1 04 04 00 2C B5 30 4A 70 04 04 00 CF 99 16 37 72 04 04 00 5D 1B 1A 13 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 9E 02 E1 07 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 98 04 A8 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F3 02 00 00 B1 04 04 00 7E 52 2A 05 70 04 04 00 06 A1 03 05 72 04 03 00 78 B1 26 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 C6 6F 8C EF 03 09 00 90 00 72 [00:38:00]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 38 AE 00 00 69 04 A0 00 6F 04 04 00 45 AB 00 00 B1 04 04 00 2C B5 30 4A 70 04 04 00 CF 99 16 37 72 04 04 00 5D 1B 1A 13 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 9E 02 E1 07 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 98 04 A8 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F3 02 00 00 B1 04 04 00 7E 52 2A 05 70 04 04 00 06 A1 03 05 72 04 03 00 78 B1 26 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 C6 6F 8C EF 03 09 00 90 00 [00:38:00]wFMCommunicate OK [00:38:00]wFMCommunicate request_size=4 [00:38:00]MH_SAM_APDU [00:38:00]CAPDU: 80 17 00 00 [00:38:00]Write to MH i2c: E2 08 00 70 5E 80 17 00 00 00 00 00 00 4E [00:38:00]Write i2c OK [00:38:00]MH_I2C_Read... [00:38:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:38:00]Read from MH i2c: E2 [00:38:00]MH_I2C_Read... [00:38:00]Read from MH i2c: E2 FD 00 [00:38:00]MH_I2C_Read... [00:38:00]Read from MH i2c: E2 FD 00 70 5E 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AE B3 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 70 [00:38:00]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AE B3 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [00:38:00]wFMCommunicate OK [00:38:00]wFMCommunicate request_size=4 [00:38:00]MH_SAM_APDU [00:38:00]CAPDU: 80 17 00 00 [00:38:00]Write to MH i2c: E2 08 00 71 5E 80 17 00 00 00 00 00 00 4F [00:38:00]Write i2c OK [00:38:00]MH_I2C_Read... [00:38:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:38:00]Read from MH i2c: E2 [00:38:00]MH_I2C_Read... [00:38:00]Read from MH i2c: E2 FD 00 [00:38:00]MH_I2C_Read... [00:38:00]Read from MH i2c: E2 FD 00 71 5E 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 64 [00:38:00]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:38:00]wFMCommunicate OK [00:38:00]wFMCommunicate request_size=4 [00:38:00]MH_SAM_APDU [00:38:00]CAPDU: 80 17 00 00 [00:38:00]Write to MH i2c: E2 08 00 72 5E 80 17 00 00 00 00 00 00 50 [00:38:00]Write i2c OK [00:38:00]MH_I2C_Read... [00:38:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:38:00]Read from MH i2c: E2 [00:38:00]MH_I2C_Read... [00:38:00]Read from MH i2c: E2 FD 00 [00:38:00]MH_I2C_Read... [00:38:00]Read from MH i2c: E2 FD 00 72 5E 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C8 [00:38:00]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:38:00]wFMCommunicate OK [00:38:00]wFMCommunicate request_size=4 [00:38:00]MH_SAM_APDU [00:38:00]CAPDU: 80 17 00 00 [00:38:00]Write to MH i2c: E2 08 00 73 5E 80 17 00 00 00 00 00 00 51 [00:38:00]Write i2c OK [00:38:00]MH_I2C_Read... [00:38:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [00:38:01]Read from MH i2c: E2 [00:38:01]MH_I2C_Read... [00:38:01]Read from MH i2c: E2 E1 00 [00:38:01]MH_I2C_Read... [00:38:01]Read from MH i2c: E2 E1 00 73 5E 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 3F [00:38:01]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:38:01]wFMCommunicate OK [00:38:01]SAM_PROTO_GetFMData done [00:38:01]requested_item fm.sale_refund.total is exist - process it [00:38:01]requested_item fm.buy.total is exist - process it [00:38:01]requested_item shift.sale.total is exist - process it [00:38:01]SAM_PROTO_GetShiftData [00:38:01]wFMCommunicate request_size=4 [00:38:01]MH_SAM_APDU [00:38:01]CAPDU: 80 13 02 00 [00:38:01]Write to MH i2c: E2 08 00 74 5E 80 13 02 00 00 00 00 00 50 [00:38:01]Write i2c OK [00:38:01]MH_I2C_Read... [00:38:01]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:38:01]Read from MH i2c: E2 [00:38:01]MH_I2C_Read... [00:38:01]Read from MH i2c: E2 FD 00 [00:38:01]MH_I2C_Read... [00:38:01]Read from MH i2c: E2 FD 00 74 5E 00 AA 04 AA 04 A6 04 6E 04 04 00 02 00 00 00 69 04 97 00 6F 04 04 00 02 00 00 00 B1 04 02 00 F8 8E 70 04 02 00 14 37 72 04 02 00 E4 57 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 2E 0F 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 44 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 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 90 00 83 [00:38:01]RAPDU: AA 04 AA 04 A6 04 6E 04 04 00 02 00 00 00 69 04 97 00 6F 04 04 00 02 00 00 00 B1 04 02 00 F8 8E 70 04 02 00 14 37 72 04 02 00 E4 57 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 2E 0F 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 44 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 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 90 00 [00:38:01]wFMCommunicate OK [00:38:01]wFMCommunicate request_size=4 [00:38:01]MH_SAM_APDU [00:38:01]CAPDU: 80 17 00 00 [00:38:01]Write to MH i2c: E2 08 00 75 5E 80 17 00 00 00 00 00 00 53 [00:38:01]Write i2c OK [00:38:01]MH_I2C_Read... [00:38:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:38:01]Read from MH i2c: E2 [00:38:01]MH_I2C_Read... [00:38:01]Read from MH i2c: E2 FD 00 [00:38:01]MH_I2C_Read... [00:38:01]Read from MH i2c: E2 FD 00 75 5E 00 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 90 00 79 [00:38:01]RAPDU: 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 90 00 [00:38:01]wFMCommunicate OK [00:38:01]wFMCommunicate request_size=4 [00:38:01]MH_SAM_APDU [00:38:01]CAPDU: 80 17 00 00 [00:38:01]Write to MH i2c: E2 08 00 76 5E 80 17 00 00 00 00 00 00 54 [00:38:01]Write i2c OK [00:38:01]MH_I2C_Read... [00:38:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:38:02]Read from MH i2c: E2 [00:38:02]MH_I2C_Read... [00:38:02]Read from MH i2c: E2 FD 00 [00:38:02]MH_I2C_Read... [00:38:02]Read from MH i2c: E2 FD 00 76 5E 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 90 00 07 [00:38:02]RAPDU: EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 90 00 [00:38:02]wFMCommunicate OK [00:38:02]wFMCommunicate request_size=4 [00:38:02]MH_SAM_APDU [00:38:02]CAPDU: 80 17 00 00 [00:38:02]Write to MH i2c: E2 08 00 77 5E 80 17 00 00 00 00 00 00 55 [00:38:02]Write i2c OK [00:38:02]MH_I2C_Read... [00:38:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:38:02]Read from MH i2c: E2 [00:38:02]MH_I2C_Read... [00:38:02]Read from MH i2c: E2 FD 00 [00:38:02]MH_I2C_Read... [00:38:02]Read from MH i2c: E2 FD 00 77 5E 00 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 90 00 C7 [00:38:02]RAPDU: 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 90 00 [00:38:02]wFMCommunicate OK [00:38:02]wFMCommunicate request_size=4 [00:38:02]MH_SAM_APDU [00:38:02]CAPDU: 80 17 00 00 [00:38:02]Write to MH i2c: E2 08 00 78 5E 80 17 00 00 00 00 00 00 56 [00:38:02]Write i2c OK [00:38:02]MH_I2C_Read... [00:38:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 196! [00:38:02]Read from MH i2c: E2 [00:38:02]MH_I2C_Read... [00:38:02]Read from MH i2c: E2 C7 00 [00:38:02]MH_I2C_Read... [00:38:02]Read from MH i2c: E2 C7 00 78 5E 00 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 49 [00:38:02]RAPDU: 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:38:02]wFMCommunicate OK [00:38:02]SAM_PROTO_GetShiftData done [00:38:02]requested_item shift.sale.total_cash is exist - process it [00:38:02]requested_item shift.sale_refund.total is exist - process it [00:38:02]requested_item shift.sale_refund.total_cash is exist - process it [00:38:02]requested_item shift.buy.total is exist - process it [00:38:02]requested_item shift.buy.total_cash is exist - process it [00:38:02]produce_requested_data done [00:38:02]produce_requested_data return {"fm.sale.total":12447060.92,"fm.sale_refund.total":866597.10,"fm.buy.total":0.00,"shift.sale.total":366.00,"shift.sale.total_cash":141.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:38:02]process_action_free get_value [00:38:02]json_value_free [00:38:02]json_value_free done [00:38:02]process_json_proto returns [00:38:02]Send response to host [00:38:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":12447060.92,"fm.sale_refund.total":866597.10,"fm.buy.total":0.00,"shift.sale.total":366.00,"shift.sale.total_cash":141.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:38:02]free response buf [00:38:02]execute_script done [00:38:02]execute_script returns [00:38:02]free content buf [00:38:02]Sock 9.Close socket [00:38:02]Sock 9.Thread stoped [00:38:02]OFD Sender: No OFD packet to send [00:38:07]OFD Sender: No OFD packet to send [00:38:12]OFD Sender: No OFD packet to send [00:38:17]OFD Sender: No OFD packet to send [00:38:22]OFD Sender: No OFD packet to send [00:38:27]OFD Sender: No OFD packet to send [00:38:32]OFD Sender: No OFD packet to send [00:38:37]OFD Sender: No OFD packet to send [00:38:42]OFD Sender: No OFD packet to send [00:38:47]OFD Sender: No OFD packet to send [00:38:52]OFD Sender: No OFD packet to send [00:38:57]OFD Sender: No OFD packet to send [00:39:02]OFD Sender: No OFD packet to send [00:39:07]OFD Sender: No OFD packet to send [00:39:12]OFD Sender: No OFD packet to send [00:39:17]OFD Sender: No OFD packet to send [00:39:22]OFD Sender: No OFD packet to send [00:39:27]OFD Sender: No OFD packet to send [00:39:32]OFD Sender: No OFD packet to send [00:39:37]OFD Sender: No OFD packet to send [00:39:42]OFD Sender: No OFD packet to send [00:39:47]OFD Sender: No OFD packet to send [00:39:52]OFD Sender: No OFD packet to send [00:39:57]OFD Sender: No OFD packet to send [00:40:02]OFD Sender: No OFD packet to send [00:40:07]OFD Sender: No OFD packet to send [00:40:12]OFD Sender: No OFD packet to send [00:40:17]OFD Sender: No OFD packet to send [00:40:22]OFD Sender: No OFD packet to send [00:40:27]OFD Sender: No OFD packet to send [00:40:32]OFD Sender: No OFD packet to send [00:40:37]OFD Sender: No OFD packet to send [00:40:42]OFD Sender: No OFD packet to send [00:40:47]OFD Sender: No OFD packet to send [00:40:52]OFD Sender: No OFD packet to send [00:40:57]OFD Sender: No OFD packet to send [00:41:02]OFD Sender: No OFD packet to send [00:41:07]OFD Sender: No OFD packet to send [00:41:12]OFD Sender: No OFD packet to send [00:41:17]OFD Sender: No OFD packet to send [00:41:22]OFD Sender: No OFD packet to send [00:41:27]OFD Sender: No OFD packet to send [00:41:32]OFD Sender: No OFD packet to send [00:41:38]OFD Sender: No OFD packet to send [00:41:43]OFD Sender: No OFD packet to send [00:41:48]OFD Sender: No OFD packet to send [00:41:53]OFD Sender: No OFD packet to send [00:41:58]OFD Sender: No OFD packet to send [00:42:03]OFD Sender: No OFD packet to send [00:42:08]OFD Sender: No OFD packet to send [00:42:13]OFD Sender: No OFD packet to send [00:42:18]OFD Sender: No OFD packet to send [00:42:23]OFD Sender: No OFD packet to send [00:42:28]OFD Sender: No OFD packet to send [00:42:33]OFD Sender: No OFD packet to send [00:42:38]OFD Sender: No OFD packet to send [00:42:43]OFD Sender: No OFD packet to send [00:42:48]OFD Sender: No OFD packet to send [00:42:53]OFD Sender: No OFD packet to send [00:42:58]OFD Sender: No OFD packet to send [00:43:03]OFD Sender: No OFD packet to send [00:43:08]OFD Sender: No OFD packet to send [00:43:13]OFD Sender: No OFD packet to send [00:43:18]OFD Sender: No OFD packet to send [00:43:23]OFD Sender: No OFD packet to send [00:43:28]OFD Sender: No OFD packet to send [00:43:33]OFD Sender: No OFD packet to send [00:43:38]OFD Sender: No OFD packet to send [00:43:43]OFD Sender: No OFD packet to send [00:43:48]OFD Sender: No OFD packet to send [00:43:53]OFD Sender: No OFD packet to send [00:43:58]OFD Sender: No OFD packet to send [00:44:03]OFD Sender: No OFD packet to send [00:44:08]OFD Sender: No OFD packet to send [00:44:13]OFD Sender: No OFD packet to send [00:44:18]OFD Sender: No OFD packet to send [00:44:23]OFD Sender: No OFD packet to send [00:44:28]OFD Sender: No OFD packet to send [00:44:33]OFD Sender: No OFD packet to send [00:44:38]OFD Sender: No OFD packet to send [00:44:43]OFD Sender: No OFD packet to send [00:44:48]OFD Sender: No OFD packet to send [00:44:53]OFD Sender: No OFD packet to send [00:44:58]OFD Sender: No OFD packet to send [00:45:03]OFD Sender: No OFD packet to send [00:45:04]accept exits with 10 [00:45:04]New connection [00:45:04]New thread 3067014500 created [00:45:04]Thread 3067157860 joined [00:45:04]Waiting for new connection... [00:45:04] Sock 10.Parse request [00:45:04]Sock 10.Check first char [00:45:04]Sock 10.First char is OK [00:45:04]request: POST /json_proto HTTP/1.0 [00:45:04]Method: POST [00:45:04]URL: /json_proto [00:45:04]Method is POST - this is cgi request [00:45:04]url: /json_proto [00:45:04]query_string will be loaded in cgi processing [00:45:04]execute_cgi json_proto POST (null) [00:45:04]execute_cgi path=json_proto method=POST [00:45:04]POST find Content-Length [00:45:04]Host: 172.17.48.198:8080 [00:45:04]Content-Length: 846 [00:45:04]Content-Type: application/json [00:45:04] [00:45:04]POST finish read [00:45:04]Found Content-Length = 846 [00:45:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184226", "tax_sys" : 0, "items" : [ { "code": "4650243871842", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F 0,275 \u043B \u041C\u0410\u041D\u0413\u041E \u041A\u041E\u041A\u041E\u0421", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:45:04]execute_script... [00: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 : (3)184226", "tax_sys" : 0, "items" : [ { "code": "4650243871842", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F 0,275 \u043B \u041C\u0410\u041D\u0413\u041E \u041A\u041E\u041A\u041E\u0421", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:45:04]POST & json_proto [00:45:04]process_json_proto [00:45:04]json parsed OK: [00:45:04]protocol is kg_v1.0 [00:45:04]action value=close_receipt [00:45:04]process_action close_receipt [00:45:04]cmd_close_receipt [00:45:04]MH_GetDate [00:45:04]Write to MH i2c: F0 00 00 79 5E C6 [00:45:04]Write i2c OK [00:45:04]MH_I2C_Read... [00:45:04]Read from MH i2c: F0 [00:45:04]MH_I2C_Read... [00:45:04]Read from MH i2c: F0 09 00 [00:45:04]MH_I2C_Read... [00:45:04]Read from MH i2c: F0 09 00 79 5E 00 9F 19 E5 65 CE C4 D4 65 9C [00:45:04]GetLastDocTimeStamp 1709512444 [00:45:04]current date 1709513119 [00:45:04]FM_GetShiftState [00:45:04]SAM_PROTO_GetShiftState [00:45:04]wFMCommunicate request_size=4 [00:45:04]MH_SAM_APDU [00:45:04]CAPDU: 80 13 01 00 [00:45:04]Write to MH i2c: E2 08 00 7A 5E 80 13 01 00 00 00 00 00 55 [00:45:04]Write i2c OK [00:45:04]MH_I2C_Read... [00:45:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:45:04]Read from MH i2c: E2 [00:45:04]MH_I2C_Read... [00:45:04]Read from MH i2c: E2 0E 00 [00:45:04]MH_I2C_Read... [00:45:04]Read from MH i2c: E2 0E 00 7A 5E 00 09 00 01 26 12 E5 65 00 00 00 00 90 00 E3 [00:45:04]RAPDU: 09 00 01 26 12 E5 65 00 00 00 00 90 00 [00:45:04]wFMCommunicate OK [00:45:04]SAM_PROTO_GetShiftState done [00:45:04]FM_GetShiftState done [00:45:04]opened in 1709511206 [00:45:04]opened+sec_in_day 1709597606 [00:45:04]quantity*price = 7500 [00:45:04]sum+1 = 7501 [00:45:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 75.00 НСП 1% : 0.66 НДС 12% : 7.96 Наличными: 0.00 Безнал.: 75.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 3 04.03.2024 00:45 Смена: 332 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874796 ФД: 45269 ФПД: 35724011251524 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240304T004519&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45269&fm=35724011251524&tin=02508201610067®Number=0000000000090572&sum=7500 0 [00:45:06]StoreToDocumentArchive [00:45:06]shift 332 fd 45269 [00:45:06]save to /storage/0332/doc_00045269 [00:45:06]save last doc name /storage/0332/doc_00045269 to /storage/kkm_last_doc_name [00:45:06]save OK [00:45:06]Clear old archive folders... [00:45:06]ProcessDocumentItem done err = 0, tmpTLVsize=292 [00:45:06]tlvbuf is 01AF9FE0 [00:45:06]SAM_PROTO_ClearQueue [00:45:06]wFMCommunicate request_size=4 [00:45:06]MH_SAM_APDU [00:45:06]CAPDU: 80 09 00 00 [00:45:06]Write to MH i2c: E2 08 00 87 5E 80 09 00 00 00 00 00 00 57 [00:45:06]Write i2c OK [00:45:06]MH_I2C_Read... [00:45:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:45:06]Read from MH i2c: E2 [00:45:06]MH_I2C_Read... [00:45:06]Read from MH i2c: E2 03 00 [00:45:06]MH_I2C_Read... [00:45:06]Read from MH i2c: E2 03 00 87 5E 00 90 00 59 [00:45:06]RAPDU: 90 00 [00:45:06]wFMCommunicate OK [00:45:06]SAM_PROTO_ClearQueue done [00:45:06]KKMCreateOFDPacket [00:45:06]OFDProtocolAddRootSTLVToBuf [00:45:06]FM_MakeSignedData [00:45:06]FM_MakeSignedData [00:45:06]SAM_PROTO_SignData [00:45:06]wFMCommunicate request_size=4 [00:45:06]MH_SAM_APDU [00:45:06]CAPDU: 80 0D 01 02 [00:45:06]Write to MH i2c: E2 08 00 88 5E 80 0D 01 02 00 00 00 00 5F [00:45:06]Write i2c OK [00:45:06]MH_I2C_Read... [00:45:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:45:06]Read from MH i2c: E2 [00:45:06]MH_I2C_Read... [00:45:06]Read from MH i2c: E2 03 00 [00:45:06]MH_I2C_Read... [00:45:06]Read from MH i2c: E2 03 00 88 5E 00 90 00 5A [00:45:06]RAPDU: 90 00 [00:45:06]wFMCommunicate OK [00:45:06]wFMCommunicate request_size=255 [00:45:06]MH_SAM_APDU [00:45:06]CAPDU: 80 0D 02 02 FA 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 34 32 06 04 32 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 30 2C 32 37 35 20 D0 BB 20 D0 9C D0 90 D0 9D D0 93 D0 9E 20 D0 9A D0 9E D0 9A D0 9E D0 A1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 1D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 9F 19 E5 65 0E 04 04 00 4C 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 [00:45:06]Write to MH i2c: E2 02 01 89 5E 80 0D 02 02 FA 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 34 32 06 04 32 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 30 2C 32 37 35 20 D0 BB 20 D0 9C D0 90 D0 9D D0 93 D0 9E 20 D0 9A D0 9E D0 9A D0 9E D0 A1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 1D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 9F 19 E5 65 0E 04 04 00 4C 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 00 00 EB [00:45:06]Write i2c OK [00:45:06]MH_I2C_Read... [00:45:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:45:06]Read from MH i2c: E2 [00:45:06]MH_I2C_Read... [00:45:06]Read from MH i2c: E2 03 00 [00:45:06]MH_I2C_Read... [00:45:06]Read from MH i2c: E2 03 00 89 5E 00 90 00 5B [00:45:06]RAPDU: 90 00 [00:45:06]wFMCommunicate OK [00:45:06]wFMCommunicate request_size=51 [00:45:06]MH_SAM_APDU [00:45:06]CAPDU: 80 0D 02 02 2E 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 D5 B0 00 00 35 04 06 00 20 7D A5 00 27 44 [00:45:06]Write to MH i2c: E2 36 00 8A 5E 80 0D 02 02 2E 00 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 D5 B0 00 00 35 04 06 00 20 7D A5 00 27 44 00 00 2C [00:45:06]Write i2c OK [00:45:06]MH_I2C_Read... [00:45:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:45:06]Read from MH i2c: E2 [00:45:06]MH_I2C_Read... [00:45:06]Read from MH i2c: E2 03 00 [00:45:06]MH_I2C_Read... [00:45:06]Read from MH i2c: E2 03 00 8A 5E 00 90 00 5C [00:45:06]RAPDU: 90 00 [00:45:06]wFMCommunicate OK [00:45:06]wFMCommunicate request_size=4 [00:45:06]MH_SAM_APDU [00:45:06]CAPDU: 80 0D 03 02 [00:45:06]Write to MH i2c: E2 08 00 8B 5E 80 0D 03 02 00 00 00 00 64 [00:45:06]Write i2c OK [00:45:06]MH_I2C_Read... [00:45:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:45:06]Read from MH i2c: E2 [00:45:06]MH_I2C_Read... [00:45:06]Read from MH i2c: E2 0B 00 [00:45:06]MH_I2C_Read... [00:45:06]Read from MH i2c: E2 0B 00 8B 5E 00 7C CA EB CB E8 F3 7E E2 90 00 9C [00:45:06]RAPDU: 7C CA EB CB E8 F3 7E E2 90 00 [00:45:06]wFMCommunicate OK [00:45:06]SAM_PROTO_SignData done [00:45:06]FM_MakeSignedData done [00:45:06]CreateOFDProtocolMessage [00:45:06]wFMCommunicate request_size=4 [00:45:06]MH_SAM_APDU [00:45:06]CAPDU: 80 11 00 00 [00:45:06]Write to MH i2c: E2 08 00 8C 5E 80 11 00 00 00 00 00 00 64 [00:45:06]Write i2c OK [00:45:06]MH_I2C_Read... [00:45:06]Read from MH i2c: E2 [00:45:06]MH_I2C_Read... [00:45:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:45:06]Read from MH i2c: E2 17 00 [00:45:06]MH_I2C_Read... [00:45:06]Read from MH i2c: E2 17 00 8C 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 C0 [00:45:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [00:45:06]wFMCommunicate OK [00:45:06]CreateOFDProtocolMessage done [00:45:06]OFDSenderStorePacket 45269 [00:45:06]StoreOFDPacket docnum=45269 [00:45:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 38 01 00 00 20 0F 30 01 2C A8 5A 03 01 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 34 32 06 04 32 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 30 2C 32 37 35 20 D0 BB 20 D0 9C D0 90 D0 9D D0 93 D0 9E 20 D0 9A D0 9E D0 9A D0 9E D0 A1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 1D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 9F 19 E5 65 0E 04 04 00 4C 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 D5 B0 00 00 35 04 06 00 20 7D A5 00 27 44 7C CA EB CB E8 F3 7E E2 [00:45:06]CheckFolder [00:45:06]dirname=/storage/ofd_packets [00:45:06]CheckFolder done [00:45:06]ProducePacketName [00:45:06]name=ofd_packets/00045269 [00:45:06]NVStorageSaveData ofd_packets/00045269 [00:45:06]File name is /storage/ofd_packets/00045269 [00:45:06]Write 342 bytes [00:45:06]NVStorageSaveData done [00:45:06]OFDSenderStorePacket done [00:45:06]KKMCreateOFDPacket done [00:45:06]NVStorageSaveData kkm_last_timestamp [00:45:06]File name is /storage/kkm_last_timestamp [00:45:06]Write 4 bytes [00:45:06]NVStorageSaveData done [00:45:06]ExternCall_PrintAddStr [00:45:06]wPrintStart [00:45:06]Write to MH i2c: 01 00 00 8D 5E EB [00:45:06]Write i2c OK [00:45:06]MH_I2C_Read... [00:45:06]Read from MH i2c: 01 [00:45:06]MH_I2C_Read... [00:45:06]Read from MH i2c: 01 07 00 [00:45:06]MH_I2C_Read... [00:45:06]Read from MH i2c: 01 07 00 8D 5E 00 00 00 00 00 FF 0F 00 [00:45:06]RasterBufferAndPrint [00:45:06]line Счет N : (3)184226 [00:45:06]line ИНН: 02508201610067 [00:45:06]line Контрольно-Кассовый Чек [00:45:06]line ПРОДАЖА [00:45:06]line Товар: 4650243871842 [00:45:06]line Gorilla эн нап 0,275 л МАНГО КОКОС [00:45:06]line 1.000 * 75.00 [00:45:06]line = 75.00 [00:45:06]line НДС 12% НСП 1% [00:45:06]line > о реализуемом товаре [00:45:06]line ИТОГО: 75.00 [00:45:06]line НСП 1% : 0.66 [00:45:06]line НДС 12% : 7.96 [00:45:06]line Наличными: 0.00 [00:45:06]line Безнал.: 75.00 [00:45:06]line Место: АЗС № 25 "Партнер Нефть" [00:45:06]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [00:45:06]line СНО: Общий режим [00:45:06]line Чек 3 04.03.2024 00:45 [00:45:06]line Смена: 332 ФФД: 1.0 [00:45:06]line ЗНМ: 0300000013 [00:45:06]line РНМ: 0000000000090572 [00:45:06]line Версия ККМ: 001 [00:45:06]line Платежная система: Бакай Банк [00:45:06]line ФМ: 0000000000874796 [00:45:06]line ФД: 45269 [00:45:06]line ФПД: 35724011251524 [00:45:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240304T004519&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45269&fm=35724011251524&tin=02508201610067®Number=0000000000090572&sum=7500 [00:45:06]line 0 [00:45:06]written 0, free lines is 4095 [00:45:06]OFD Sender: Processing packet 45269 [packets to send 17, broken 16] [00:45:06]ProducePacketName [00:45:06]name=ofd_packets/00045269 [00:45:06]OFD Sender: To server: pG, [00:45:06]CommunicateWithHost lk.salyk.kg:30040 [00:45:06]ConnectInit lk.salyk.kg [00:45:06]Connected sock=9 [00: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 34 37 39 36 38 01 00 00 20 0F 30 01 2C A8 5A 03 01 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 34 32 06 04 32 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 30 2C 32 37 35 20 D0 BB 20 D0 9C D0 90 D0 9D D0 93 D0 9E 20 D0 9A D0 9E D0 9A D0 9E D0 A1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 1D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 9F 19 E5 65 0E 04 04 00 4C 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 D5 B0 00 00 35 04 06 00 20 7D A5 00 27 44 7C CA EB CB E8 F3 7E E2 [00:45:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 87 9C 47 00 3F E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 D5 B0 00 00 F4 03 04 00 62 C5 E4 65 B6 04 01 00 00 F6 61 54 60 9C E5 47 23 [00:45:07]CommunicateWithHost err = 0 [00:45:07]CheckOFDResponse [00:45:07]1017 (14) - 77093643461234 [00:45:07]1041 (16) - 0000000000874796 [00:45:07]1040 (4) - 45269 [00:45:07]1012 (4) - 03.03.2024 18:45 [00:45:07]1206 (1) - 0 [00:45:07]OFD Sender: Remove packet 45269 [00:45:07]ProducePacketName [00:45:07]name=ofd_packets/00045269 [00:45:07]NVStorageDeleteData [00:45:07]Write to MH i2c: 01 00 00 B8 5E 16 [00:45:07]Write i2c OK [00:45:07]MH_I2C_Read... [00:45:07]Read from MH i2c: 01 [00:45:07]MH_I2C_Read... [00:45:07]Read from MH i2c: 01 07 00 [00:45:07]MH_I2C_Read... [00:45:07]Read from MH i2c: 01 07 00 B8 5E 00 00 00 00 00 F1 0C 1A [00:45:07]RasterBufferAndPrint [00:45:07]line [00:45:07]line [00:45:07]line [00:45:07]line [00:45:07]line [00:45:07]written 0, free lines is 3320 [00:45:07]MH_Cut [00:45:07]Write to MH i2c: D1 01 00 BF 5E 01 EF [00:45:07]Write i2c OK [00:45:07]MH_I2C_Read... [00:45:07]Read from MH i2c: D1 [00:45:07]MH_I2C_Read... [00:45:07]Read from MH i2c: D1 01 00 [00:45:07]MH_I2C_Read... [00:45:07]Read from MH i2c: D1 01 00 BF 5E 00 EE [00:45:07]Write to MH i2c: 01 00 00 C0 5E 1E [00:45:07]Write i2c OK [00:45:07]MH_I2C_Read... [00:45:07]OFD Sender: No OFD packet to send [00:45:07]*** Cut start [00:45:07]*** Purtial cut [00:45:07]*** Stage 1: CUTSNS_PIN = 1 [00:45:09]Read from MH i2c: 01 [00:45:09]MH_I2C_Read... [00:45:09]*** Stop cut motor [00:45:09]*** Cut end [00:45:09]Read from MH i2c: 01 07 00 [00:45:09]MH_I2C_Read... [00:45:09]Read from MH i2c: 01 07 00 C0 5E 00 00 00 00 00 FF 0F 33 [00:45:09]process_action close_receipt done [00:45:09]requested_data is exist [00:45:09]produce_requested_data [00:45:09]requested_item fm.sn is exist - process it [00:45:09]wFMCommunicate request_size=4 [00:45:09]MH_SAM_APDU [00:45:09]CAPDU: 80 11 00 00 [00:45:09]Write to MH i2c: E2 08 00 C1 5E 80 11 00 00 00 00 00 00 99 [00:45:09]Write i2c OK [00:45:09]MH_I2C_Read... [00:45:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:45:09]Read from MH i2c: E2 [00:45:09]MH_I2C_Read... [00:45:09]Read from MH i2c: E2 17 00 [00:45:09]MH_I2C_Read... [00:45:09]Read from MH i2c: E2 17 00 C1 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 F5 [00:45:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [00:45:09]wFMCommunicate OK [00:45:09]requested_item fd.num is exist - process it [00:45:09]SAM_PROTO_GetFieldsCounters [00:45:09]wFMCommunicate request_size=4 [00:45:09]MH_SAM_APDU [00:45:09]CAPDU: 80 13 00 00 [00:45:09]Write to MH i2c: E2 08 00 C2 5E 80 13 00 00 00 00 00 00 9C [00:45:09]Write i2c OK [00:45:09]MH_I2C_Read... [00:45:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:45:10]Read from MH i2c: E2 [00:45:10]MH_I2C_Read... [00:45:10]Read from MH i2c: E2 62 00 [00:45:10]MH_I2C_Read... [00:45:10]Read from MH i2c: E2 62 00 C2 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 D5 B0 00 00 0E 04 04 00 4C 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 9F [00:45:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 D5 B0 00 00 0E 04 04 00 4C 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:45:10]wFMCommunicate OK [00:45:10]SAM_PROTO_GetFieldsCounters done [00:45:10]requested_item shift.num is exist - process it [00:45:10]requested_item shift.opened is exist - process it [00:45:10]req_shift_opened [00:45:10]FM_GetShiftState [00:45:10]SAM_PROTO_GetShiftState [00:45:10]wFMCommunicate request_size=4 [00:45:10]MH_SAM_APDU [00:45:10]CAPDU: 80 13 01 00 [00:45:10]Write to MH i2c: E2 08 00 C3 5E 80 13 01 00 00 00 00 00 9E [00:45:10]Write i2c OK [00:45:10]MH_I2C_Read... [00:45:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:45:10]Read from MH i2c: E2 [00:45:10]MH_I2C_Read... [00:45:10]Read from MH i2c: E2 0E 00 [00:45:10]MH_I2C_Read... [00:45:10]Read from MH i2c: E2 0E 00 C3 5E 00 09 00 01 26 12 E5 65 00 00 00 00 90 00 2C [00:45:10]RAPDU: 09 00 01 26 12 E5 65 00 00 00 00 90 00 [00:45:10]wFMCommunicate OK [00:45:10]SAM_PROTO_GetShiftState done [00:45:10]FM_GetShiftState done [00:45:10]req_shift_opened done [00:45:10]requested_item shift.open_date is exist - process it [00:45:10]req_shift_open_date [00:45:10]req_shift_open_date done [00:45:10]produce_requested_data done [00:45:10]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45269,"shift.num":332,"shift.opened":1,"shift.open_date":1709511206} [00:45:10]process_action_free close_receipt [00:45:10]json_value_free [00:45:10]json_value_free done [00:45:10]process_json_proto returns [00:45:10]Send response to host [00:45:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45269,"shift.num":332,"shift.opened":1,"shift.open_date":1709511206}}} [00:45:10]free response buf [00:45:10]execute_script done [00:45:10]execute_script returns [00:45:10]free content buf [00:45:10]Sock 10.Close socket [00:45:10]Sock 10.Thread stoped [00:45:12]OFD Sender: No OFD packet to send [00:45:17]OFD Sender: No OFD packet to send [00:45:22]OFD Sender: No OFD packet to send [00:45:27]OFD Sender: No OFD packet to send [00:45:32]OFD Sender: No OFD packet to send [00:45:37]OFD Sender: No OFD packet to send [00:45:42]OFD Sender: No OFD packet to send [00:45:47]OFD Sender: No OFD packet to send [00:45:52]OFD Sender: No OFD packet to send [00:45:57]OFD Sender: No OFD packet to send [00:46:02]OFD Sender: No OFD packet to send [00:46:07]OFD Sender: No OFD packet to send [00:46:12]OFD Sender: No OFD packet to send [00:46:17]OFD Sender: No OFD packet to send [00:46:22]OFD Sender: No OFD packet to send [00:46:27]OFD Sender: No OFD packet to send [00:46:32]OFD Sender: No OFD packet to send [00:46:37]OFD Sender: No OFD packet to send [00:46:42]OFD Sender: No OFD packet to send [00:46:47]OFD Sender: No OFD packet to send [00:46:52]OFD Sender: No OFD packet to send [00:46:57]OFD Sender: No OFD packet to send [00:47:02]OFD Sender: No OFD packet to send [00:47:07]OFD Sender: No OFD packet to send [00:47:12]OFD Sender: No OFD packet to send [00:47:17]OFD Sender: No OFD packet to send [00:47:22]OFD Sender: No OFD packet to send [00:47:27]OFD Sender: No OFD packet to send [00:47:32]OFD Sender: No OFD packet to send [00:47:37]OFD Sender: No OFD packet to send [00:47:42]OFD Sender: No OFD packet to send [00:47:47]OFD Sender: No OFD packet to send [00:47:52]OFD Sender: No OFD packet to send [00:47:57]OFD Sender: No OFD packet to send [00:48:02]OFD Sender: No OFD packet to send [00:48:07]OFD Sender: No OFD packet to send [00:48:12]OFD Sender: No OFD packet to send [00:48:17]OFD Sender: No OFD packet to send [00:48:22]OFD Sender: No OFD packet to send [00:48:27]OFD Sender: No OFD packet to send [00:48:32]OFD Sender: No OFD packet to send [00:48:37]OFD Sender: No OFD packet to send [00:48:42]OFD Sender: No OFD packet to send [00:48:47]OFD Sender: No OFD packet to send [00:48:52]OFD Sender: No OFD packet to send [00:48:57]OFD Sender: No OFD packet to send [00:49:02]OFD Sender: No OFD packet to send [00:49:07]OFD Sender: No OFD packet to send [00:49:12]OFD Sender: No OFD packet to send [00:49:17]OFD Sender: No OFD packet to send [00:49:22]OFD Sender: No OFD packet to send [00:49:27]OFD Sender: No OFD packet to send [00:49:32]OFD Sender: No OFD packet to send [00:49:37]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:58]OFD Sender: No OFD packet to send [00:55:03]OFD Sender: No OFD packet to send [00:55:08]OFD Sender: No OFD packet to send [00:55:13]OFD Sender: No OFD packet to send [00:55:18]OFD Sender: No OFD packet to send [00:55:23]OFD Sender: No OFD packet to send [00:55:28]OFD Sender: No OFD packet to send [00:55:33]OFD Sender: No OFD packet to send [00:55:38]OFD Sender: No OFD packet to send [00:55:43]OFD Sender: No OFD packet to send [00:55:48]OFD Sender: No OFD packet to send [00:55:53]OFD Sender: No OFD packet to send [00:55:58]OFD Sender: No OFD packet to send [00:56:03]OFD Sender: No OFD packet to send [00:56:08]OFD Sender: No OFD packet to send [00:56:13]OFD Sender: No OFD packet to send [00:56:18]OFD Sender: No OFD packet to send [00:56:23]OFD Sender: No OFD packet to send [00:56:28]OFD Sender: No OFD packet to send [00:56:33]OFD Sender: No OFD packet to send [00:56:38]OFD Sender: No OFD packet to send [00:56:43]OFD Sender: No OFD packet to send [00:56:48]OFD Sender: No OFD packet to send [00:56:53]OFD Sender: No OFD packet to send [00:56:58]OFD Sender: No OFD packet to send [00:57:03]OFD Sender: No OFD packet to send [00:57:08]OFD Sender: No OFD packet to send [00:57:13]OFD Sender: No OFD packet to send [00:57:18]OFD Sender: No OFD packet to send [00:57:23]OFD Sender: No OFD packet to send [00:57:28]OFD Sender: No OFD packet to send [00:57:33]OFD Sender: No OFD packet to send [00:57:38]OFD Sender: No OFD packet to send [00:57:43]OFD Sender: No OFD packet to send [00:57:48]OFD Sender: No OFD packet to send [00:57:53]OFD Sender: No OFD packet to send [00:57:58]OFD Sender: No OFD packet to send [00:58:03]OFD Sender: No OFD packet to send [00:58:08]OFD Sender: No OFD packet to send [00:58:13]OFD Sender: No OFD packet to send [00:58:18]OFD Sender: No OFD packet to send [00:58:23]OFD Sender: No OFD packet to send [00:58:28]OFD Sender: No OFD packet to send [00:58:33]OFD Sender: No OFD packet to send [00:58:38]OFD Sender: No OFD packet to send [00:58:43]OFD Sender: No OFD packet to send [00:58:48]OFD Sender: No OFD packet to send [00:58:53]OFD Sender: No OFD packet to send [00:58:58]OFD Sender: No OFD packet to send [00:59:03]OFD Sender: No OFD packet to send [00:59:08]OFD Sender: No OFD packet to send [00:59:13]OFD Sender: No OFD packet to send [00:59:18]OFD Sender: No OFD packet to send [00:59:23]OFD Sender: No OFD packet to send [00:59:28]OFD Sender: No OFD packet to send [00:59:33]OFD Sender: No OFD packet to send [00:59:38]OFD Sender: No OFD packet to send [00:59:43]OFD Sender: No OFD packet to send [00:59:48]OFD Sender: No OFD packet to send [00:59:53]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:18]OFD Sender: No OFD packet to send [01:10:23]OFD Sender: No OFD packet to send [01:10:28]OFD Sender: No OFD packet to send [01:10:33]OFD Sender: No OFD packet to send [01:10:38]OFD Sender: No OFD packet to send [01:10:43]OFD Sender: No OFD packet to send [01:10:48]OFD Sender: No OFD packet to send [01:10:53]OFD Sender: No OFD packet to send [01:10:58]OFD Sender: No OFD packet to send [01:11:03]OFD Sender: No OFD packet to send [01:11:08]OFD Sender: No OFD packet to send [01:11:13]OFD Sender: No OFD packet to send [01:11:18]OFD Sender: No OFD packet to send [01:11:23]OFD Sender: No OFD packet to send [01:11:28]OFD Sender: No OFD packet to send [01:11:33]OFD Sender: No OFD packet to send [01:11:38]OFD Sender: No OFD packet to send [01:11:43]OFD Sender: No OFD packet to send [01:11:48]OFD Sender: No OFD packet to send [01:11:53]OFD Sender: No OFD packet to send [01:11:58]OFD Sender: No OFD packet to send [01:12:03]OFD Sender: No OFD packet to send [01:12:08]OFD Sender: No OFD packet to send [01:12:13]OFD Sender: No OFD packet to send [01:12:18]OFD Sender: No OFD packet to send [01:12:23]OFD Sender: No OFD packet to send [01:12:28]OFD Sender: No OFD packet to send [01:12:33]OFD Sender: No OFD packet to send [01:12:38]OFD Sender: No OFD packet to send [01:12:43]OFD Sender: No OFD packet to send [01:12:48]OFD Sender: No OFD packet to send [01:12:53]OFD Sender: No OFD packet to send [01:12:58]OFD Sender: No OFD packet to send [01:13:03]OFD Sender: No OFD packet to send [01:13:08]OFD Sender: No OFD packet to send [01:13:13]OFD Sender: No OFD packet to send [01:13:18]OFD Sender: No OFD packet to send [01:13:23]OFD Sender: No OFD packet to send [01:13:28]OFD Sender: No OFD packet to send [01:13:33]OFD Sender: No OFD packet to send [01:13:38]OFD Sender: No OFD packet to send [01:13:43]OFD Sender: No OFD packet to send [01:13:48]OFD Sender: No OFD packet to send [01:13:53]OFD Sender: No OFD packet to send [01:13:58]OFD Sender: No OFD packet to send [01:14:03]OFD Sender: No OFD packet to send [01:14:08]OFD Sender: No OFD packet to send [01:14:13]OFD Sender: No OFD packet to send [01:14:18]OFD Sender: No OFD packet to send [01:14:23]OFD Sender: No OFD packet to send [01:14:28]OFD Sender: No OFD packet to send [01:14:33]OFD Sender: No OFD packet to send [01:14:38]OFD Sender: No OFD packet to send [01:14:43]OFD Sender: No OFD packet to send [01:14:48]OFD Sender: No OFD packet to send [01:14:53]OFD Sender: No OFD packet to send [01:14:58]OFD Sender: No OFD packet to send [01:15:03]OFD Sender: No OFD packet to send [01:15:08]OFD Sender: No OFD packet to send [01:15:13]OFD Sender: No OFD packet to send [01:15:18]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:34]OFD Sender: No OFD packet to send [01:20:39]OFD Sender: No OFD packet to send [01:20:44]OFD Sender: No OFD packet to send [01:20:49]OFD Sender: No OFD packet to send [01:20:54]OFD Sender: No OFD packet to send [01:20:59]OFD Sender: No OFD packet to send [01:21:04]OFD Sender: No OFD packet to send [01:21:09]OFD Sender: No OFD packet to send [01:21:14]OFD Sender: No OFD packet to send [01:21:19]OFD Sender: No OFD packet to send [01:21:24]OFD Sender: No OFD packet to send [01:21:29]OFD Sender: No OFD packet to send [01:21:34]OFD Sender: No OFD packet to send [01:21:39]OFD Sender: No OFD packet to send [01:21:44]OFD Sender: No OFD packet to send [01:21:49]OFD Sender: No OFD packet to send [01:21:54]OFD Sender: No OFD packet to send [01:21:59]OFD Sender: No OFD packet to send [01:22:04]OFD Sender: No OFD packet to send [01:22:09]OFD Sender: No OFD packet to send [01:22:14]OFD Sender: No OFD packet to send [01:22:19]OFD Sender: No OFD packet to send [01:22:24]OFD Sender: No OFD packet to send [01:22:29]OFD Sender: No OFD packet to send [01:22:34]OFD Sender: No OFD packet to send [01:22:39]OFD Sender: No OFD packet to send [01:22:44]OFD Sender: No OFD packet to send [01:22:49]OFD Sender: No OFD packet to send [01:22:54]OFD Sender: No OFD packet to send [01:22:59]OFD Sender: No OFD packet to send [01:23:04]OFD Sender: No OFD packet to send [01:23:09]OFD Sender: No OFD packet to send [01:23:14]OFD Sender: No OFD packet to send [01:23:19]OFD Sender: No OFD packet to send [01:23:24]OFD Sender: No OFD packet to send [01:23:29]OFD Sender: No OFD packet to send [01:23:34]OFD Sender: No OFD packet to send [01:23:39]OFD Sender: No OFD packet to send [01:23:44]OFD Sender: No OFD packet to send [01:23:49]OFD Sender: No OFD packet to send [01:23:54]OFD Sender: No OFD packet to send [01:23:59]OFD Sender: No OFD packet to send [01:24:04]OFD Sender: No OFD packet to send [01:24:09]OFD Sender: No OFD packet to send [01:24:14]OFD Sender: No OFD packet to send [01:24:19]OFD Sender: No OFD packet to send [01:24:24]OFD Sender: No OFD packet to send [01:24:29]OFD Sender: No OFD packet to send [01:24:34]OFD Sender: No OFD packet to send [01:24:39]OFD Sender: No OFD packet to send [01:24:44]OFD Sender: No OFD packet to send [01:24:49]OFD Sender: No OFD packet to send [01:24:54]OFD Sender: No OFD packet to send [01:24:59]OFD Sender: No OFD packet to send [01:25:04]OFD Sender: No OFD packet to send [01:25:09]OFD Sender: No OFD packet to send [01:25:14]OFD Sender: No OFD packet to send [01:25:19]OFD Sender: No OFD packet to send [01:25:24]OFD Sender: No OFD packet to send [01:25:29]OFD Sender: No OFD packet to send [01:25:34]OFD Sender: No OFD packet to send [01:25:39]OFD Sender: No OFD packet to send [01:25:44]OFD Sender: No OFD packet to send [01:25:49]OFD Sender: No OFD packet to send [01:25:54]OFD Sender: No OFD packet to send [01:25:59]OFD Sender: No OFD packet to send [01:26:04]OFD Sender: No OFD packet to send [01:26:09]OFD Sender: No OFD packet to send [01:26:14]OFD Sender: No OFD packet to send [01:26:19]OFD Sender: No OFD packet to send [01:26:24]OFD Sender: No OFD packet to send [01:26:29]OFD Sender: No OFD packet to send [01:26:34]OFD Sender: No OFD packet to send [01:26:39]OFD Sender: No OFD packet to send [01:26:44]OFD Sender: No OFD packet to send [01:26:49]OFD Sender: No OFD packet to send [01:26:54]OFD Sender: No OFD packet to send [01:26:59]OFD Sender: No OFD packet to send [01:27:04]OFD Sender: No OFD packet to send [01:27:09]OFD Sender: No OFD packet to send [01:27:14]OFD Sender: No OFD packet to send [01:27:19]OFD Sender: No OFD packet to send [01:27:24]OFD Sender: No OFD packet to send [01:27:29]OFD Sender: No OFD packet to send [01:27:34]OFD Sender: No OFD packet to send [01:27:39]OFD Sender: No OFD packet to send [01:27:44]OFD Sender: No OFD packet to send [01:27:49]OFD Sender: No OFD packet to send [01:27:54]OFD Sender: No OFD packet to send [01:27:59]OFD Sender: No OFD packet to send [01:28:04]OFD Sender: No OFD packet to send [01:28:09]OFD Sender: No OFD packet to send [01:28:14]OFD Sender: No OFD packet to send [01:28:19]OFD Sender: No OFD packet to send [01:28:24]OFD Sender: No OFD packet to send [01:28:29]OFD Sender: No OFD packet to send [01:28:34]OFD Sender: No OFD packet to send [01:28:39]OFD Sender: No OFD packet to send [01:28:44]OFD Sender: No OFD packet to send [01:28:49]OFD Sender: No OFD packet to send [01:28:54]OFD Sender: No OFD packet to send [01:28:59]OFD Sender: No OFD packet to send [01:29:04]OFD Sender: No OFD packet to send [01:29:09]OFD Sender: No OFD packet to send [01:29:14]OFD Sender: No OFD packet to send [01:29:19]OFD Sender: No OFD packet to send [01:29:24]OFD Sender: No OFD packet to send [01:29:29]OFD Sender: No OFD packet to send [01:29:34]OFD Sender: No OFD packet to send [01:29:39]OFD Sender: No OFD packet to send [01:29:44]OFD Sender: No OFD packet to send [01:29:49]OFD Sender: No OFD packet to send [01:29:54]OFD Sender: No OFD packet to send [01:29:59]OFD Sender: No OFD packet to send [01:30:04]OFD Sender: No OFD packet to send [01:30:09]OFD Sender: No OFD packet to send [01:30:14]OFD Sender: No OFD packet to send [01:30:19]OFD Sender: No OFD packet to send [01:30:24]OFD Sender: No OFD packet to send [01:30:29]OFD Sender: No OFD packet to send [01:30:34]OFD Sender: No OFD packet to send [01:30:39]OFD Sender: No OFD packet to send [01:30:44]OFD Sender: No OFD packet to send [01:30:49]OFD Sender: No OFD packet to send [01:30:54]OFD Sender: No OFD packet to send [01:30:59]OFD Sender: No OFD packet to send [01:31:04]OFD Sender: No OFD packet to send [01:31:09]OFD Sender: No OFD packet to send [01:31:14]OFD Sender: No OFD packet to send [01:31:19]OFD Sender: No OFD packet to send [01:31:24]OFD Sender: No OFD packet to send [01:31:29]OFD Sender: No OFD packet to send [01:31:34]OFD Sender: No OFD packet to send [01:31:39]OFD Sender: No OFD packet to send [01:31:44]OFD Sender: No OFD packet to send [01:31:49]OFD Sender: No OFD packet to send [01:31:54]OFD Sender: No OFD packet to send [01:31:59]OFD Sender: No OFD packet to send [01:32:04]OFD Sender: No OFD packet to send [01:32:09]OFD Sender: No OFD packet to send [01:32:14]OFD Sender: No OFD packet to send [01:32:19]OFD Sender: No OFD packet to send [01:32:24]OFD Sender: No OFD packet to send [01:32:29]OFD Sender: No OFD packet to send [01:32:34]OFD Sender: No OFD packet to send [01:32:39]OFD Sender: No OFD packet to send [01:32:44]OFD Sender: No OFD packet to send [01:32:49]OFD Sender: No OFD packet to send [01:32:54]OFD Sender: No OFD packet to send [01:32:59]OFD Sender: No OFD packet to send [01:33:04]OFD Sender: No OFD packet to send [01:33:09]OFD Sender: No OFD packet to send [01:33:14]OFD Sender: No OFD packet to send [01:33:19]OFD Sender: No OFD packet to send [01:33:24]OFD Sender: No OFD packet to send [01:33:29]OFD Sender: No OFD packet to send [01:33:34]OFD Sender: No OFD packet to send [01:33:39]OFD Sender: No OFD packet to send [01:33:44]OFD Sender: No OFD packet to send [01:33:49]OFD Sender: No OFD packet to send [01:33:54]OFD Sender: No OFD packet to send [01:33:59]OFD Sender: No OFD packet to send [01:34:04]OFD Sender: No OFD packet to send [01:34:09]OFD Sender: No OFD packet to send [01:34:14]OFD Sender: No OFD packet to send [01:34:19]OFD Sender: No OFD packet to send [01:34:24]OFD Sender: No OFD packet to send [01:34:29]OFD Sender: No OFD packet to send [01:34:34]OFD Sender: No OFD packet to send [01:34:39]OFD Sender: No OFD packet to send [01:34:44]OFD Sender: No OFD packet to send [01:34:49]OFD Sender: No OFD packet to send [01:34:54]OFD Sender: No OFD packet to send [01:34:59]OFD Sender: No OFD packet to send [01:35:04]OFD Sender: No OFD packet to send [01:35:09]OFD Sender: No OFD packet to send [01:35:14]OFD Sender: No OFD packet to send [01:35:19]OFD Sender: No OFD packet to send [01:35:24]OFD Sender: No OFD packet to send [01:35:29]OFD Sender: No OFD packet to send [01:35:34]OFD Sender: No OFD packet to send [01:35:39]OFD Sender: No OFD packet to send [01:35:44]OFD Sender: No OFD packet to send [01:35:50]OFD Sender: No OFD packet to send [01:35:55]OFD Sender: No OFD packet to send [01:36:00]OFD Sender: No OFD packet to send [01:36:05]OFD Sender: No OFD packet to send [01:36:10]OFD Sender: No OFD packet to send [01:36:15]OFD Sender: No OFD packet to send [01:36:20]OFD Sender: No OFD packet to send [01:36:25]OFD Sender: No OFD packet to send [01:36:30]OFD Sender: No OFD packet to send [01:36:35]OFD Sender: No OFD packet to send [01:36:40]OFD Sender: No OFD packet to send [01:36:45]OFD Sender: No OFD packet to send [01:36:50]OFD Sender: No OFD packet to send [01:36:55]OFD Sender: No OFD packet to send [01:37:00]OFD Sender: No OFD packet to send [01:37:05]OFD Sender: No OFD packet to send [01:37:10]OFD Sender: No OFD packet to send [01:37:15]OFD Sender: No OFD packet to send [01:37:20]OFD Sender: No OFD packet to send [01:37:25]OFD Sender: No OFD packet to send [01:37:30]OFD Sender: No OFD packet to send [01:37:35]OFD Sender: No OFD packet to send [01:37:40]OFD Sender: No OFD packet to send [01:37:45]OFD Sender: No OFD packet to send [01:37:50]OFD Sender: No OFD packet to send [01:37:55]OFD Sender: No OFD packet to send [01:38:00]OFD Sender: No OFD packet to send [01:38:05]OFD Sender: No OFD packet to send [01:38:10]OFD Sender: No OFD packet to send [01:38:15]OFD Sender: No OFD packet to send [01:38:20]OFD Sender: No OFD packet to send [01:38:25]OFD Sender: No OFD packet to send [01:38:30]OFD Sender: No OFD packet to send [01:38:35]OFD Sender: No OFD packet to send [01:38:40]OFD Sender: No OFD packet to send [01:38:45]OFD Sender: No OFD packet to send [01:38:50]OFD Sender: No OFD packet to send [01:38:55]OFD Sender: No OFD packet to send [01:39:00]OFD Sender: No OFD packet to send [01:39:05]OFD Sender: No OFD packet to send [01:39:10]OFD Sender: No OFD packet to send [01:39:15]OFD Sender: No OFD packet to send [01:39:20]OFD Sender: No OFD packet to send [01:39:25]OFD Sender: No OFD packet to send [01:39:30]OFD Sender: No OFD packet to send [01:39:35]OFD Sender: No OFD packet to send [01:39:40]OFD Sender: No OFD packet to send [01:39:45]OFD Sender: No OFD packet to send [01:39:50]OFD Sender: No OFD packet to send [01:39:55]OFD Sender: No OFD packet to send [01:40:00]OFD Sender: No OFD packet to send [01:40:05]OFD Sender: No OFD packet to send [01:40:10]OFD Sender: No OFD packet to send [01:40:15]OFD Sender: No OFD packet to send [01:40:20]OFD Sender: No OFD packet to send [01:40:25]OFD Sender: No OFD packet to send [01:40:30]OFD Sender: No OFD packet to send [01:40:35]OFD Sender: No OFD packet to send [01:40:40]OFD Sender: No OFD packet to send [01:40:45]OFD Sender: No OFD packet to send [01:40:50]OFD Sender: No OFD packet to send [01:40:55]OFD Sender: No OFD packet to send [01:41:00]OFD Sender: No OFD packet to send [01:41:05]OFD Sender: No OFD packet to send [01:41:10]OFD Sender: No OFD packet to send [01:41:15]OFD Sender: No OFD packet to send [01:41:20]OFD Sender: No OFD packet to send [01:41:25]OFD Sender: No OFD packet to send [01:41:30]OFD Sender: No OFD packet to send [01:41:35]OFD Sender: No OFD packet to send [01:41:40]OFD Sender: No OFD packet to send [01:41:45]OFD Sender: No OFD packet to send [01:41:50]OFD Sender: No OFD packet to send [01:41:55]OFD Sender: No OFD packet to send [01:42:00]OFD Sender: No OFD packet to send [01:42:05]OFD Sender: No OFD packet to send [01:42:10]OFD Sender: No OFD packet to send [01:42:15]OFD Sender: No OFD packet to send [01:42:20]OFD Sender: No OFD packet to send [01:42:25]OFD Sender: No OFD packet to send [01:42:30]OFD Sender: No OFD packet to send [01:42:35]OFD Sender: No OFD packet to send [01:42:40]OFD Sender: No OFD packet to send [01:42:45]OFD Sender: No OFD packet to send [01:42:50]OFD Sender: No OFD packet to send [01:42:55]OFD Sender: No OFD packet to send [01:43:00]OFD Sender: No OFD packet to send [01:43:05]OFD Sender: No OFD packet to send [01:43:10]OFD Sender: No OFD packet to send [01:43:15]OFD Sender: No OFD packet to send [01:43:20]OFD Sender: No OFD packet to send [01:43:25]OFD Sender: No OFD packet to send [01:43:30]OFD Sender: No OFD packet to send [01:43:35]OFD Sender: No OFD packet to send [01:43:40]OFD Sender: No OFD packet to send [01:43:45]OFD Sender: No OFD packet to send [01:43:50]OFD Sender: No OFD packet to send [01:43:55]OFD Sender: No OFD packet to send [01:44:00]OFD Sender: No OFD packet to send [01:44:05]OFD Sender: No OFD packet to send [01:44:10]OFD Sender: No OFD packet to send [01:44:15]OFD Sender: No OFD packet to send [01:44:20]OFD Sender: No OFD packet to send [01:44:25]OFD Sender: No OFD packet to send [01:44:30]OFD Sender: No OFD packet to send [01:44:35]OFD Sender: No OFD packet to send [01:44:40]OFD Sender: No OFD packet to send [01:44:45]OFD Sender: No OFD packet to send [01:44:50]OFD Sender: No OFD packet to send [01:44:55]OFD Sender: No OFD packet to send [01:45:00]OFD Sender: No OFD packet to send [01:45:05]OFD Sender: No OFD packet to send [01:45:10]OFD Sender: No OFD packet to send [01:45:15]OFD Sender: No OFD packet to send [01:45:20]OFD Sender: No OFD packet to send [01:45:25]OFD Sender: No OFD packet to send [01:45:29]accept exits with 7 [01:45:29]New connection [01:45:29]New thread 3067157860 created [01:45:29]Thread 3067014500 joined [01:45:29]Waiting for new connection... [01:45:29] Sock 7.Parse request [01:45:29]Sock 7.Check first char [01:45:29]Sock 7.First char is OK [01:45:29]request: POST /json_proto HTTP/1.0 [01:45:29]Method: POST [01:45:29]URL: /json_proto [01:45:29]Method is POST - this is cgi request [01:45:29]url: /json_proto [01:45:29]query_string will be loaded in cgi processing [01:45:29]execute_cgi json_proto POST (null) [01:45:29]execute_cgi path=json_proto method=POST [01:45:29]POST find Content-Length [01:45:29]Host: 172.17.48.198:8080 [01:45:29]Content-Length: 934 [01:45:29]Content-Type: application/json [01:45:29] [01:45:29]POST finish read [01:45:29]Found Content-Length = 934 [01:45:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184227", "tax_sys" : 0, "items" : [ { "code": "4700000480364", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u044D\u043A\u0437\u043E\u0442\u0438\u043A 0.45 \u0436/\u0431", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 225.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:45:29]execute_script... [01:45:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184227", "tax_sys" : 0, "items" : [ { "code": "4700000480364", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u044D\u043A\u0437\u043E\u0442\u0438\u043A 0.45 \u0436/\u0431", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 225.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:45:29]POST & json_proto [01:45:29]process_json_proto [01:45:29]json parsed OK: [01:45:29]protocol is kg_v1.0 [01:45:29]action value=close_receipt [01:45:29]process_action close_receipt [01:45:29]cmd_close_receipt [01:45:29]MH_GetDate [01:45:29]Write to MH i2c: F0 00 00 C4 5E 11 [01:45:29]Write i2c OK [01:45:29]MH_I2C_Read... [01:45:29]Read from MH i2c: F0 [01:45:29]MH_I2C_Read... [01:45:29]Read from MH i2c: F0 09 00 [01:45:29]MH_I2C_Read... [01:45:29]Read from MH i2c: F0 09 00 C4 5E 00 C7 27 E5 65 CE C4 D4 65 1D [01:45:29]GetLastDocTimeStamp 1709513119 [01:45:29]current date 1709516743 [01:45:29]FM_GetShiftState [01:45:29]SAM_PROTO_GetShiftState [01:45:29]wFMCommunicate request_size=4 [01:45:29]MH_SAM_APDU [01:45:29]CAPDU: 80 13 01 00 [01:45:29]Write to MH i2c: E2 08 00 C5 5E 80 13 01 00 00 00 00 00 A0 [01:45:29]Write i2c OK [01:45:29]MH_I2C_Read... [01:45:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:45:29]Read from MH i2c: E2 [01:45:29]MH_I2C_Read... [01:45:29]Read from MH i2c: E2 0E 00 [01:45:29]MH_I2C_Read... [01:45:29]Read from MH i2c: E2 0E 00 C5 5E 00 09 00 01 26 12 E5 65 00 00 00 00 90 00 2E [01:45:29]RAPDU: 09 00 01 26 12 E5 65 00 00 00 00 90 00 [01:45:29]wFMCommunicate OK [01:45:29]SAM_PROTO_GetShiftState done [01:45:29]FM_GetShiftState done [01:45:29]opened in 1709511206 [01:45:29]opened+sec_in_day 1709597606 [01:45:29]quantity*price = 9000 [01:45:29]sum+1 = 9001 [01:45:29]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48747059 Сигареты Winston Legend Blue 1.000 * 135.00 = 135.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 225.00 НСП 1% : 1.99 НДС 12% : 23.90 Наличными: 225.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 4 04.03.2024 01:45 Смена: 332 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 ФМ: 0000000000874796 ФД: 45270 ФПД: 131250201835924 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240304T014543&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45270&fm=131250201835924&tin=02508201610067®Number=0000000000090572&sum=22500 0 [01:45:30]StoreToDocumentArchive [01:45:30]shift 332 fd 45270 [01:45:30]save to /storage/0332/doc_00045270 [01:45:30]save last doc name /storage/0332/doc_00045270 to /storage/kkm_last_doc_name [01:45:30]save OK [01:45:30]Clear old archive folders... [01:45:30]ProcessDocumentItem done err = 0, tmpTLVsize=402 [01:45:30]tlvbuf is 01CF1E10 [01:45:30]SAM_PROTO_ClearQueue [01:45:30]wFMCommunicate request_size=4 [01:45:30]MH_SAM_APDU [01:45:30]CAPDU: 80 09 00 00 [01:45:30]Write to MH i2c: E2 08 00 D2 5E 80 09 00 00 00 00 00 00 A2 [01:45:30]Write i2c OK [01:45:30]MH_I2C_Read... [01:45:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:45:30]Read from MH i2c: E2 [01:45:30]MH_I2C_Read... [01:45:30]Read from MH i2c: E2 03 00 [01:45:30]MH_I2C_Read... [01:45:30]Read from MH i2c: E2 03 00 D2 5E 00 90 00 A4 [01:45:30]RAPDU: 90 00 [01:45:30]wFMCommunicate OK [01:45:30]SAM_PROTO_ClearQueue done [01:45:30]KKMCreateOFDPacket [01:45:30]OFDProtocolAddRootSTLVToBuf [01:45:30]FM_MakeSignedData [01:45:30]FM_MakeSignedData [01:45:30]SAM_PROTO_SignData [01:45:30]wFMCommunicate request_size=4 [01:45:30]MH_SAM_APDU [01:45:30]CAPDU: 80 0D 01 02 [01:45:30]Write to MH i2c: E2 08 00 D3 5E 80 0D 01 02 00 00 00 00 AA [01:45:30]Write i2c OK [01:45:30]MH_I2C_Read... [01:45:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:45:30]Read from MH i2c: E2 [01:45:30]MH_I2C_Read... [01:45:30]Read from MH i2c: E2 03 00 [01:45:30]MH_I2C_Read... [01:45:30]Read from MH i2c: E2 03 00 D3 5E 00 90 00 A5 [01:45:30]RAPDU: 90 00 [01:45:30]wFMCommunicate OK [01:45:30]wFMCommunicate request_size=255 [01:45:30]MH_SAM_APDU [01:45:30]CAPDU: 80 0D 02 02 FA 03 00 92 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 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 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 [01:45:30]Write to MH i2c: E2 02 01 D4 5E 80 0D 02 02 FA 00 03 00 92 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 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 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 00 9D [01:45:30]Write i2c OK [01:45:30]MH_I2C_Read... [01:45:30]OFD Sender: No OFD packet to send [01:45:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:45:30]Read from MH i2c: E2 [01:45:30]MH_I2C_Read... [01:45:30]Read from MH i2c: E2 03 00 [01:45:30]MH_I2C_Read... [01:45:30]Read from MH i2c: E2 03 00 D4 5E 00 90 00 A6 [01:45:30]RAPDU: 90 00 [01:45:30]wFMCommunicate OK [01:45:30]wFMCommunicate request_size=161 [01:45:30]MH_SAM_APDU [01:45:30]CAPDU: 80 0D 02 02 9C 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 C7 27 E5 65 0E 04 04 00 4C 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 D6 B0 00 00 35 04 06 00 77 5F 11 A8 39 94 [01:45:30]Write to MH i2c: E2 A4 00 D5 5E 80 0D 02 02 9C 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 C7 27 E5 65 0E 04 04 00 4C 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 D6 B0 00 00 35 04 06 00 77 5F 11 A8 39 94 00 00 F5 [01:45:30]Write i2c OK [01:45:30]MH_I2C_Read... [01:45:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:45:30]Read from MH i2c: E2 [01:45:30]MH_I2C_Read... [01:45:30]Read from MH i2c: E2 03 00 [01:45:30]MH_I2C_Read... [01:45:30]Read from MH i2c: E2 03 00 D5 5E 00 90 00 A7 [01:45:30]RAPDU: 90 00 [01:45:30]wFMCommunicate OK [01:45:30]wFMCommunicate request_size=4 [01:45:30]MH_SAM_APDU [01:45:30]CAPDU: 80 0D 03 02 [01:45:30]Write to MH i2c: E2 08 00 D6 5E 80 0D 03 02 00 00 00 00 AF [01:45:30]Write i2c OK [01:45:30]MH_I2C_Read... [01:45:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:45:30]Read from MH i2c: E2 [01:45:30]MH_I2C_Read... [01:45:30]Read from MH i2c: E2 0B 00 [01:45:30]MH_I2C_Read... [01:45:30]Read from MH i2c: E2 0B 00 D6 5E 00 8C 6F 3D 6E 7F 06 28 52 90 00 55 [01:45:30]RAPDU: 8C 6F 3D 6E 7F 06 28 52 90 00 [01:45:30]wFMCommunicate OK [01:45:30]SAM_PROTO_SignData done [01:45:30]FM_MakeSignedData done [01:45:30]CreateOFDProtocolMessage [01:45:30]wFMCommunicate request_size=4 [01:45:30]MH_SAM_APDU [01:45:30]CAPDU: 80 11 00 00 [01:45:30]Write to MH i2c: E2 08 00 D7 5E 80 11 00 00 00 00 00 00 AF [01:45:30]Write i2c OK [01:45:30]MH_I2C_Read... [01:45:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:45:30]Read from MH i2c: E2 [01:45:30]MH_I2C_Read... [01:45:30]Read from MH i2c: E2 17 00 [01:45:30]MH_I2C_Read... [01:45:30]Read from MH i2c: E2 17 00 D7 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 0B [01:45:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [01:45:30]wFMCommunicate OK [01:45:30]CreateOFDProtocolMessage done [01:45:30]OFDSenderStorePacket 45270 [01:45:30]StoreOFDPacket docnum=45270 [01:45:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 A6 01 00 00 88 BE 9E 01 6C 76 5A 03 01 00 03 00 92 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 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 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 C7 27 E5 65 0E 04 04 00 4C 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 D6 B0 00 00 35 04 06 00 77 5F 11 A8 39 94 8C 6F 3D 6E 7F 06 28 52 [01:45:30]CheckFolder [01:45:30]dirname=/storage/ofd_packets [01:45:30]CheckFolder done [01:45:30]ProducePacketName [01:45:30]name=ofd_packets/00045270 [01:45:30]NVStorageSaveData ofd_packets/00045270 [01:45:30]File name is /storage/ofd_packets/00045270 [01:45:30]Write 452 bytes [01:45:30]NVStorageSaveData done [01:45:30]OFDSenderStorePacket done [01:45:30]KKMCreateOFDPacket done [01:45:30]NVStorageSaveData kkm_last_timestamp [01:45:30]File name is /storage/kkm_last_timestamp [01:45:30]Write 4 bytes [01:45:30]NVStorageSaveData done [01:45:30]ExternCall_PrintAddStr [01:45:30]wPrintStart [01:45:30]Write to MH i2c: 01 00 00 D8 5E 36 [01:45:30]Write i2c OK [01:45:30]MH_I2C_Read... [01:45:30]Read from MH i2c: 01 [01:45:30]MH_I2C_Read... [01:45:30]Read from MH i2c: 01 07 00 [01:45:30]MH_I2C_Read... [01:45:30]Read from MH i2c: 01 07 00 D8 5E 00 00 00 00 00 FF 0F 4B [01:45:30]RasterBufferAndPrint [01:45:31]line Счет N : (3)184227 [01:45:31]line ИНН: 02508201610067 [01:45:31]line Контрольно-Кассовый Чек [01:45:31]line ПРОДАЖА [01:45:31]line Товар: 4700000480364 [01:45:31]line Напиток энерг Nitro экзотик 0.45 ж/б [01:45:31]line 1.000 * 90.00 [01:45:31]line = 90.00 [01:45:31]line НДС 12% НСП 1% [01:45:31]line > о реализуемом товаре [01:45:31]line Товар: 48747059 [01:45:31]line Сигареты Winston Legend Blue [01:45:31]line 1.000 * 135.00 [01:45:31]line = 135.00 [01:45:31]line НДС 12% НСП 1% [01:45:31]line > о реализуемом товаре [01:45:31]line ИТОГО: 225.00 [01:45:31]line НСП 1% : 1.99 [01:45:31]line НДС 12% : 23.90 [01:45:31]line Наличными: 225.00 [01:45:31]line Безнал.: 0.00 [01:45:31]line Место: АЗС № 25 "Партнер Нефть" [01:45:31]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [01:45:31]line СНО: Общий режим [01:45:31]line Чек 4 04.03.2024 01:45 [01:45:31]line Смена: 332 ФФД: 1.0 [01:45:31]line ЗНМ: 0300000013 [01:45:31]line РНМ: 0000000000090572 [01:45:31]line Версия ККМ: 001 [01:45:31]line ФМ: 0000000000874796 [01:45:31]line ФД: 45270 [01:45:31]line ФПД: 131250201835924 [01:45:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240304T014543&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45270&fm=131250201835924&tin=02508201610067®Number=0000000000090572&sum=22500 [01:45:31]OFD Sender: Processing packet 45270 [packets to send 17, broken 16] [01:45:31]ProducePacketName [01:45:31]name=ofd_packets/00045270 [01:45:31]OFD Sender: To server: pG, [01:45:31]CommunicateWithHost lk.salyk.kg:30040 [01:45:31]ConnectInit lk.salyk.kg [01:45:31]line 0 [01:45:31]written 0, free lines is 4095 [01:45:31]Connected sock=10 [01:45:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 A6 01 00 00 88 BE 9E 01 6C 76 5A 03 01 00 03 00 92 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 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 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 C7 27 E5 65 0E 04 04 00 4C 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 D6 B0 00 00 35 04 06 00 77 5F 11 A8 39 94 8C 6F 3D 6E 7F 06 28 52 [01:45:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 7C 5D 47 00 05 DA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 D6 B0 00 00 F4 03 04 00 8B D3 E4 65 B6 04 01 00 00 09 0B 20 84 E9 02 99 D2 [01:45:31]CommunicateWithHost err = 0 [01:45:31]CheckOFDResponse [01:45:31]1017 (14) - 77093643461234 [01:45:31]1041 (16) - 0000000000874796 [01:45:31]1040 (4) - 45270 [01:45:31]1012 (4) - 03.03.2024 19:46 [01:45:31]1206 (1) - 0 [01:45:31]OFD Sender: Remove packet 45270 [01:45:31]ProducePacketName [01:45:31]name=ofd_packets/00045270 [01:45:31]NVStorageDeleteData [01:45:31]Write to MH i2c: 01 00 00 08 5F 67 [01:45:31]Write i2c OK [01:45:31]MH_I2C_Read... [01:45:31]Read from MH i2c: 01 [01:45:31]MH_I2C_Read... [01:45:31]Read from MH i2c: 01 07 00 [01:45:31]MH_I2C_Read... [01:45:31]Read from MH i2c: 01 07 00 08 5F 00 00 00 00 00 8B 0C 05 [01:45:31]RasterBufferAndPrint [01:45:31]line [01:45:31]line [01:45:31]line [01:45:31]line [01:45:31]line [01:45:31]written 0, free lines is 3219 [01:45:31]MH_Cut [01:45:31]Write to MH i2c: D1 01 00 0F 5F 01 40 [01:45:31]Write i2c OK [01:45:31]MH_I2C_Read... [01:45:31]Read from MH i2c: D1 [01:45:31]MH_I2C_Read... [01:45:31]Read from MH i2c: D1 01 00 [01:45:31]MH_I2C_Read... [01:45:31]Read from MH i2c: D1 01 00 0F 5F 00 3F [01:45:31]Write to MH i2c: 01 00 00 10 5F 6F [01:45:31]Write i2c OK [01:45:31]MH_I2C_Read... [01:45:32]OFD Sender: No OFD packet to send [01:45:32]*** Cut start [01:45:32]*** Purtial cut [01:45:32]*** Stage 1: CUTSNS_PIN = 1 [01:45:34]Read from MH i2c: 01 [01:45:34]MH_I2C_Read... [01:45:34]*** Stop cut motor [01:45:34]*** Cut end [01:45:34]Read from MH i2c: 01 07 00 [01:45:34]MH_I2C_Read... [01:45:34]Read from MH i2c: 01 07 00 10 5F 00 00 00 00 00 FF 0F 84 [01:45:34]process_action close_receipt done [01:45:34]requested_data is exist [01:45:34]produce_requested_data [01:45:34]requested_item fm.sn is exist - process it [01:45:34]wFMCommunicate request_size=4 [01:45:34]MH_SAM_APDU [01:45:34]CAPDU: 80 11 00 00 [01:45:34]Write to MH i2c: E2 08 00 11 5F 80 11 00 00 00 00 00 00 EA [01:45:34]Write i2c OK [01:45:34]MH_I2C_Read... [01:45:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:45:34]Read from MH i2c: E2 [01:45:34]MH_I2C_Read... [01:45:34]Read from MH i2c: E2 17 00 [01:45:34]MH_I2C_Read... [01:45:34]Read from MH i2c: E2 17 00 11 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 46 [01:45:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [01:45:34]wFMCommunicate OK [01:45:34]requested_item fd.num is exist - process it [01:45:34]SAM_PROTO_GetFieldsCounters [01:45:34]wFMCommunicate request_size=4 [01:45:34]MH_SAM_APDU [01:45:34]CAPDU: 80 13 00 00 [01:45:34]Write to MH i2c: E2 08 00 12 5F 80 13 00 00 00 00 00 00 ED [01:45:34]Write i2c OK [01:45:34]MH_I2C_Read... [01:45:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:45:34]Read from MH i2c: E2 [01:45:34]MH_I2C_Read... [01:45:34]Read from MH i2c: E2 62 00 [01:45:34]MH_I2C_Read... [01:45:34]Read from MH i2c: E2 62 00 12 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 D6 B0 00 00 0E 04 04 00 4C 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 F4 [01:45:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 D6 B0 00 00 0E 04 04 00 4C 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:45:34]wFMCommunicate OK [01:45:34]SAM_PROTO_GetFieldsCounters done [01:45:34]requested_item shift.num is exist - process it [01:45:34]requested_item shift.opened is exist - process it [01:45:34]req_shift_opened [01:45:34]FM_GetShiftState [01:45:34]SAM_PROTO_GetShiftState [01:45:34]wFMCommunicate request_size=4 [01:45:34]MH_SAM_APDU [01:45:34]CAPDU: 80 13 01 00 [01:45:34]Write to MH i2c: E2 08 00 13 5F 80 13 01 00 00 00 00 00 EF [01:45:34]Write i2c OK [01:45:34]MH_I2C_Read... [01:45:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:45:34]Read from MH i2c: E2 [01:45:34]MH_I2C_Read... [01:45:34]Read from MH i2c: E2 0E 00 [01:45:34]MH_I2C_Read... [01:45:34]Read from MH i2c: E2 0E 00 13 5F 00 09 00 01 26 12 E5 65 00 00 00 00 90 00 7D [01:45:34]RAPDU: 09 00 01 26 12 E5 65 00 00 00 00 90 00 [01:45:34]wFMCommunicate OK [01:45:34]SAM_PROTO_GetShiftState done [01:45:34]FM_GetShiftState done [01:45:34]req_shift_opened done [01:45:34]requested_item shift.open_date is exist - process it [01:45:34]req_shift_open_date [01:45:34]req_shift_open_date done [01:45:34]produce_requested_data done [01:45:34]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45270,"shift.num":332,"shift.opened":1,"shift.open_date":1709511206} [01:45:34]process_action_free close_receipt [01:45:34]json_value_free [01:45:34]json_value_free done [01:45:34]process_json_proto returns [01:45:34]Send response to host [01:45:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45270,"shift.num":332,"shift.opened":1,"shift.open_date":1709511206}}} [01:45:34]free response buf [01:45:34]execute_script done [01:45:34]execute_script returns [01:45:34]free content buf [01:45:34]Sock 7.Close socket [01:45:34]Sock 7.Thread stoped [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:38]accept exits with 9 [01:48:38]New connection [01:48:38]New thread 3067014500 created [01:48:38]Thread 3067157860 joined [01:48:38]Waiting for new connection... [01:48:38] Sock 9.Parse request [01:48:38]Sock 9.Check first char [01:48:38]Sock 9.First char is OK [01:48:38]request: POST /json_proto HTTP/1.0 [01:48:38]Method: POST [01:48:38]URL: /json_proto [01:48:38]Method is POST - this is cgi request [01:48:38]url: /json_proto [01:48:38]query_string will be loaded in cgi processing [01:48:38]execute_cgi json_proto POST (null) [01:48:38]execute_cgi path=json_proto method=POST [01:48:38]POST find Content-Length [01:48:38]Host: 172.17.48.198:8080 [01:48:38]Content-Length: 622 [01:48:38]Content-Type: application/json [01:48:38] [01:48:38]POST finish read [01:48:38]Found Content-Length = 622 [01:48:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184228", "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" ] } } [01:48:38]execute_script... [01:48: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)184228", "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" ] } } [01:48:38]POST & json_proto [01:48:38]process_json_proto [01:48:38]json parsed OK: [01:48:38]protocol is kg_v1.0 [01:48:38]action value=close_receipt [01:48:38]process_action close_receipt [01:48:38]cmd_close_receipt [01:48:38]MH_GetDate [01:48:38]Write to MH i2c: F0 00 00 14 5F 62 [01:48:38]Write i2c OK [01:48:38]MH_I2C_Read... [01:48:38]Read from MH i2c: F0 [01:48:38]MH_I2C_Read... [01:48:38]Read from MH i2c: F0 09 00 [01:48:38]MH_I2C_Read... [01:48:38]Read from MH i2c: F0 09 00 14 5F 00 85 28 E5 65 CE C4 D4 65 2D [01:48:38]GetLastDocTimeStamp 1709516743 [01:48:38]current date 1709516933 [01:48:38]FM_GetShiftState [01:48:38]SAM_PROTO_GetShiftState [01:48:38]wFMCommunicate request_size=4 [01:48:38]MH_SAM_APDU [01:48:38]CAPDU: 80 13 01 00 [01:48:38]Write to MH i2c: E2 08 00 15 5F 80 13 01 00 00 00 00 00 F1 [01:48:38]Write i2c OK [01:48:38]MH_I2C_Read... [01:48:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:48:38]Read from MH i2c: E2 [01:48:38]MH_I2C_Read... [01:48:38]Read from MH i2c: E2 0E 00 [01:48:38]MH_I2C_Read... [01:48:38]Read from MH i2c: E2 0E 00 15 5F 00 09 00 01 26 12 E5 65 00 00 00 00 90 00 7F [01:48:38]RAPDU: 09 00 01 26 12 E5 65 00 00 00 00 90 00 [01:48:38]wFMCommunicate OK [01:48:38]SAM_PROTO_GetShiftState done [01:48:38]FM_GetShiftState done [01:48:38]opened in 1709511206 [01:48:38]opened+sec_in_day 1709597606 [01:48:38]quantity*price = 13800 [01:48:38]sum+1 = 13801 [01:48:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 138.00 НСП 1% : 1.22 НДС 12% : 14.65 Наличными: 138.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 5 04.03.2024 01:48 Смена: 332 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 ФМ: 0000000000874796 ФД: 45271 ФПД: 151758650456016 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240304T014853&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45271&fm=151758650456016&tin=02508201610067®Number=0000000000090572&sum=13800 0 [01:48:40]StoreToDocumentArchive [01:48:40]shift 332 fd 45271 [01:48:40]save to /storage/0332/doc_00045271 [01:48:40]save last doc name /storage/0332/doc_00045271 to /storage/kkm_last_doc_name [01:48:40]save OK [01:48:40]Clear old archive folders... [01:48:40]ProcessDocumentItem done err = 0, tmpTLVsize=274 [01:48:40]tlvbuf is 01CDFB40 [01:48:40]SAM_PROTO_ClearQueue [01:48:40]wFMCommunicate request_size=4 [01:48:40]MH_SAM_APDU [01:48:40]CAPDU: 80 09 00 00 [01:48:40]Write to MH i2c: E2 08 00 22 5F 80 09 00 00 00 00 00 00 F3 [01:48:40]Write i2c OK [01:48:40]MH_I2C_Read... [01:48:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:48:40]Read from MH i2c: E2 [01:48:40]MH_I2C_Read... [01:48:40]Read from MH i2c: E2 03 00 [01:48:40]MH_I2C_Read... [01:48:40]Read from MH i2c: E2 03 00 22 5F 00 90 00 F5 [01:48:40]RAPDU: 90 00 [01:48:40]wFMCommunicate OK [01:48:40]SAM_PROTO_ClearQueue done [01:48:40]KKMCreateOFDPacket [01:48:40]OFDProtocolAddRootSTLVToBuf [01:48:40]FM_MakeSignedData [01:48:40]FM_MakeSignedData [01:48:40]SAM_PROTO_SignData [01:48:40]wFMCommunicate request_size=4 [01:48:40]MH_SAM_APDU [01:48:40]CAPDU: 80 0D 01 02 [01:48:40]Write to MH i2c: E2 08 00 23 5F 80 0D 01 02 00 00 00 00 FB [01:48:40]Write i2c OK [01:48:40]MH_I2C_Read... [01:48:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:48:40]Read from MH i2c: E2 [01:48:40]MH_I2C_Read... [01:48:40]Read from MH i2c: E2 03 00 [01:48:40]MH_I2C_Read... [01:48:40]Read from MH i2c: E2 03 00 23 5F 00 90 00 F6 [01:48:40]RAPDU: 90 00 [01:48:40]wFMCommunicate OK [01:48:40]wFMCommunicate request_size=255 [01:48:40]MH_SAM_APDU [01:48:40]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 05 00 00 00 F4 03 04 00 85 28 E5 65 0E 04 04 00 4C 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 [01:48:40]Write to MH i2c: E2 02 01 24 5F 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 05 00 00 00 F4 03 04 00 85 28 E5 65 0E 04 04 00 4C 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 00 00 7F [01:48:40]Write i2c OK [01:48:40]MH_I2C_Read... [01:48:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:48:40]Read from MH i2c: E2 [01:48:40]MH_I2C_Read... [01:48:40]Read from MH i2c: E2 03 00 [01:48:40]MH_I2C_Read... [01:48:40]Read from MH i2c: E2 03 00 24 5F 00 90 00 F7 [01:48:40]RAPDU: 90 00 [01:48:40]wFMCommunicate OK [01:48:40]wFMCommunicate request_size=33 [01:48:40]MH_SAM_APDU [01:48:40]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 34 37 39 36 10 04 04 00 D7 B0 00 00 35 04 06 00 8A 06 10 73 B7 D0 [01:48:40]Write to MH i2c: E2 24 00 25 5F 80 0D 02 02 1C 00 30 30 30 30 38 37 34 37 39 36 10 04 04 00 D7 B0 00 00 35 04 06 00 8A 06 10 73 B7 D0 00 00 B7 [01:48:40]Write i2c OK [01:48:40]MH_I2C_Read... [01:48:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:48:40]Read from MH i2c: E2 [01:48:40]MH_I2C_Read... [01:48:40]Read from MH i2c: E2 03 00 [01:48:40]MH_I2C_Read... [01:48:40]Read from MH i2c: E2 03 00 25 5F 00 90 00 F8 [01:48:40]RAPDU: 90 00 [01:48:40]wFMCommunicate OK [01:48:40]wFMCommunicate request_size=4 [01:48:40]MH_SAM_APDU [01:48:40]CAPDU: 80 0D 03 02 [01:48:40]Write to MH i2c: E2 08 00 26 5F 80 0D 03 02 00 00 00 00 00 [01:48:40]Write i2c OK [01:48:40]MH_I2C_Read... [01:48:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:48:40]Read from MH i2c: E2 [01:48:40]MH_I2C_Read... [01:48:40]Read from MH i2c: E2 0B 00 [01:48:40]MH_I2C_Read... [01:48:40]Read from MH i2c: E2 0B 00 26 5F 00 CB 51 7C 7A 31 7B 96 92 90 00 E7 [01:48:40]RAPDU: CB 51 7C 7A 31 7B 96 92 90 00 [01:48:40]wFMCommunicate OK [01:48:40]SAM_PROTO_SignData done [01:48:40]FM_MakeSignedData done [01:48:40]CreateOFDProtocolMessage [01:48:40]wFMCommunicate request_size=4 [01:48:40]MH_SAM_APDU [01:48:40]CAPDU: 80 11 00 00 [01:48:40]Write to MH i2c: E2 08 00 27 5F 80 11 00 00 00 00 00 00 00 [01:48:40]Write i2c OK [01:48:40]MH_I2C_Read... [01:48:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:48:40]Read from MH i2c: E2 [01:48:40]MH_I2C_Read... [01:48:40]Read from MH i2c: E2 17 00 [01:48:40]MH_I2C_Read... [01:48:40]Read from MH i2c: E2 17 00 27 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 5C [01:48:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [01:48:40]wFMCommunicate OK [01:48:40]CreateOFDProtocolMessage done [01:48:40]OFDSenderStorePacket 45271 [01:48:40]StoreOFDPacket docnum=45271 [01:48:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 26 01 00 00 61 30 1E 01 66 4E 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 05 00 00 00 F4 03 04 00 85 28 E5 65 0E 04 04 00 4C 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 D7 B0 00 00 35 04 06 00 8A 06 10 73 B7 D0 CB 51 7C 7A 31 7B 96 92 [01:48:40]CheckFolder [01:48:40]dirname=/storage/ofd_packets [01:48:40]CheckFolder done [01:48:40]ProducePacketName [01:48:40]name=ofd_packets/00045271 [01:48:40]NVStorageSaveData ofd_packets/00045271 [01:48:40]File name is /storage/ofd_packets/00045271 [01:48:40]Write 324 bytes [01:48:40]NVStorageSaveData done [01:48:40]OFDSenderStorePacket done [01:48:40]KKMCreateOFDPacket done [01:48:40]NVStorageSaveData kkm_last_timestamp [01:48:40]File name is /storage/kkm_last_timestamp [01:48:40]Write 4 bytes [01:48:40]NVStorageSaveData done [01:48:40]ExternCall_PrintAddStr [01:48:40]wPrintStart [01:48:40]Write to MH i2c: 01 00 00 28 5F 87 [01:48:40]Write i2c OK [01:48:40]MH_I2C_Read... [01:48:40]Read from MH i2c: 01 [01:48:40]MH_I2C_Read... [01:48:40]Read from MH i2c: 01 07 00 [01:48:40]MH_I2C_Read... [01:48:40]Read from MH i2c: 01 07 00 28 5F 00 00 00 00 00 FF 0F 9C [01:48:40]RasterBufferAndPrint [01:48:40]line Счет N : (3)184228 [01:48:40]line ИНН: 02508201610067 [01:48:40]line Контрольно-Кассовый Чек [01:48:40]line ПРОДАЖА [01:48:40]line Товар: 4640030091645 [01:48:40]line Сигареты ESSE Exchange M [01:48:40]line 1.000 * 138.00 [01:48:40]line = 138.00 [01:48:40]line НДС 12% НСП 1% [01:48:40]line > о реализуемом товаре [01:48:40]line ИТОГО: 138.00 [01:48:40]line НСП 1% : 1.22 [01:48:40]line НДС 12% : 14.65 [01:48:40]line Наличными: 138.00 [01:48:40]line Безнал.: 0.00 [01:48:40]line Место: АЗС № 25 "Партнер Нефть" [01:48:40]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [01:48:40]line СНО: Общий режим [01:48:40]line Чек 5 04.03.2024 01:48 [01:48:40]line Смена: 332 ФФД: 1.0 [01:48:40]line ЗНМ: 0300000013 [01:48:40]line РНМ: 0000000000090572 [01:48:40]line Версия ККМ: 001 [01:48:40]line ФМ: 0000000000874796 [01:48:40]line ФД: 45271 [01:48:40]line ФПД: 151758650456016 [01:48:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240304T014853&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45271&fm=151758650456016&tin=02508201610067®Number=0000000000090572&sum=13800 [01:48:40]line 0 [01:48:40]OFD Sender: Processing packet 45271 [packets to send 17, broken 16] [01:48:40]ProducePacketName [01:48:40]name=ofd_packets/00045271 [01:48:40]OFD Sender: To server: pG, [01:48:40]CommunicateWithHost lk.salyk.kg:30040 [01:48:40]ConnectInit lk.salyk.kg [01:48:40]written 0, free lines is 4095 [01:48:41]Connected sock=10 [01:48:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 26 01 00 00 61 30 1E 01 66 4E 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 05 00 00 00 F4 03 04 00 85 28 E5 65 0E 04 04 00 4C 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 D7 B0 00 00 35 04 06 00 8A 06 10 73 B7 D0 CB 51 7C 7A 31 7B 96 92 [01:48:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 1D 65 47 00 E3 C5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 D7 B0 00 00 F4 03 04 00 48 D4 E4 65 B6 04 01 00 00 E9 49 A9 C3 DD 79 65 7A [01:48:41]CommunicateWithHost err = 0 [01:48:41]CheckOFDResponse [01:48:41]1017 (14) - 77093643461234 [01:48:41]1041 (16) - 0000000000874796 [01:48:41]1040 (4) - 45271 [01:48:41]1012 (4) - 03.03.2024 19:49 [01:48:41]1206 (1) - 0 [01:48:41]OFD Sender: Remove packet 45271 [01:48:41]ProducePacketName [01:48:41]name=ofd_packets/00045271 [01:48:41]NVStorageDeleteData [01:48:41]Write to MH i2c: 01 00 00 50 5F AF [01:48:41]Write i2c OK [01:48:41]MH_I2C_Read... [01:48:41]Read from MH i2c: 01 [01:48:41]MH_I2C_Read... [01:48:41]Read from MH i2c: 01 07 00 [01:48:41]MH_I2C_Read... [01:48:41]Read from MH i2c: 01 07 00 50 5F 00 00 00 00 00 1B 0D DE [01:48:41]RasterBufferAndPrint [01:48:41]line [01:48:41]line [01:48:41]line [01:48:41]line [01:48:41]line [01:48:41]written 0, free lines is 3361 [01:48:41]MH_Cut [01:48:41]Write to MH i2c: D1 01 00 57 5F 01 88 [01:48:41]Write i2c OK [01:48:41]MH_I2C_Read... [01:48:41]Read from MH i2c: D1 [01:48:41]MH_I2C_Read... [01:48:41]Read from MH i2c: D1 01 00 [01:48:41]MH_I2C_Read... [01:48:41]Read from MH i2c: D1 01 00 57 5F 00 87 [01:48:41]Write to MH i2c: 01 00 00 58 5F B7 [01:48:41]Write i2c OK [01:48:41]MH_I2C_Read... [01:48:41]OFD Sender: No OFD packet to send [01:48:42]*** Cut start [01:48:42]*** Purtial cut [01:48:42]*** Stage 1: CUTSNS_PIN = 1 [01:48:44]Read from MH i2c: 01 [01:48:44]MH_I2C_Read... [01:48:44]*** Stop cut motor [01:48:44]*** Cut end [01:48:44]Read from MH i2c: 01 07 00 [01:48:44]MH_I2C_Read... [01:48:44]Read from MH i2c: 01 07 00 58 5F 00 00 00 00 00 FF 0F CC [01:48:44]process_action close_receipt done [01:48:44]requested_data is exist [01:48:44]produce_requested_data [01:48:44]requested_item fm.sn is exist - process it [01:48:44]wFMCommunicate request_size=4 [01:48:44]MH_SAM_APDU [01:48:44]CAPDU: 80 11 00 00 [01:48:44]Write to MH i2c: E2 08 00 59 5F 80 11 00 00 00 00 00 00 32 [01:48:44]Write i2c OK [01:48:44]MH_I2C_Read... [01:48:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:48:44]Read from MH i2c: E2 [01:48:44]MH_I2C_Read... [01:48:44]Read from MH i2c: E2 17 00 [01:48:44]MH_I2C_Read... [01:48:44]Read from MH i2c: E2 17 00 59 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 8E [01:48:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [01:48:44]wFMCommunicate OK [01:48:44]requested_item fd.num is exist - process it [01:48:44]SAM_PROTO_GetFieldsCounters [01:48:44]wFMCommunicate request_size=4 [01:48:44]MH_SAM_APDU [01:48:44]CAPDU: 80 13 00 00 [01:48:44]Write to MH i2c: E2 08 00 5A 5F 80 13 00 00 00 00 00 00 35 [01:48:44]Write i2c OK [01:48:44]MH_I2C_Read... [01:48:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:48:44]Read from MH i2c: E2 [01:48:44]MH_I2C_Read... [01:48:44]Read from MH i2c: E2 62 00 [01:48:44]MH_I2C_Read... [01:48:44]Read from MH i2c: E2 62 00 5A 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 D7 B0 00 00 0E 04 04 00 4C 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 40 [01:48:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 D7 B0 00 00 0E 04 04 00 4C 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:48:44]wFMCommunicate OK [01:48:44]SAM_PROTO_GetFieldsCounters done [01:48:44]requested_item shift.num is exist - process it [01:48:44]requested_item shift.opened is exist - process it [01:48:44]req_shift_opened [01:48:44]FM_GetShiftState [01:48:44]SAM_PROTO_GetShiftState [01:48:44]wFMCommunicate request_size=4 [01:48:44]MH_SAM_APDU [01:48:44]CAPDU: 80 13 01 00 [01:48:44]Write to MH i2c: E2 08 00 5B 5F 80 13 01 00 00 00 00 00 37 [01:48:44]Write i2c OK [01:48:44]MH_I2C_Read... [01:48:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:48:44]Read from MH i2c: E2 [01:48:44]MH_I2C_Read... [01:48:44]Read from MH i2c: E2 0E 00 [01:48:44]MH_I2C_Read... [01:48:44]Read from MH i2c: E2 0E 00 5B 5F 00 09 00 01 26 12 E5 65 00 00 00 00 90 00 C5 [01:48:44]RAPDU: 09 00 01 26 12 E5 65 00 00 00 00 90 00 [01:48:44]wFMCommunicate OK [01:48:44]SAM_PROTO_GetShiftState done [01:48:44]FM_GetShiftState done [01:48:44]req_shift_opened done [01:48:44]requested_item shift.open_date is exist - process it [01:48:44]req_shift_open_date [01:48:44]req_shift_open_date done [01:48:44]produce_requested_data done [01:48:44]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45271,"shift.num":332,"shift.opened":1,"shift.open_date":1709511206} [01:48:44]process_action_free close_receipt [01:48:44]json_value_free [01:48:44]json_value_free done [01:48:44]process_json_proto returns [01:48:44]Send response to host [01:48:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45271,"shift.num":332,"shift.opened":1,"shift.open_date":1709511206}}} [01:48:44]free response buf [01:48:44]execute_script done [01:48:44]execute_script returns [01:48:44]free content buf [01:48:44]Sock 9.Close socket [01:48:44]Sock 9.Thread stoped [01:48:46]OFD Sender: No OFD packet to send [01:48:51]OFD Sender: No OFD packet to send [01:48:56]OFD Sender: No OFD packet to send [01:49:01]OFD Sender: No OFD packet to send [01:49:06]OFD Sender: No OFD packet to send [01:49:11]OFD Sender: No OFD packet to send [01:49:16]OFD Sender: No OFD packet to send [01:49:21]OFD Sender: No OFD packet to send [01:49:26]OFD Sender: No OFD packet to send [01:49:31]OFD Sender: No OFD packet to send [01:49:36]OFD Sender: No OFD packet to send [01:49:41]OFD Sender: No OFD packet to send [01:49:46]OFD Sender: No OFD packet to send [01:49:51]OFD Sender: No OFD packet to send [01:49:56]OFD Sender: No OFD packet to send [01:50:01]OFD Sender: No OFD packet to send [01:50:06]OFD Sender: No OFD packet to send [01:50:11]OFD Sender: No OFD packet to send [01:50:16]OFD Sender: No OFD packet to send [01:50:21]OFD Sender: No OFD packet to send [01:50:26]OFD Sender: No OFD packet to send [01:50:31]OFD Sender: No OFD packet to send [01:50:36]OFD Sender: No OFD packet to send [01:50:41]OFD Sender: No OFD packet to send [01:50:46]OFD Sender: No OFD packet to send [01:50:51]OFD Sender: No OFD packet to send [01:50:56]OFD Sender: No OFD packet to send [01:51:01]OFD Sender: No OFD packet to send [01:51:06]OFD Sender: No OFD packet to send [01:51:11]OFD Sender: No OFD packet to send [01:51:16]OFD Sender: No OFD packet to send [01:51:21]OFD Sender: No OFD packet to send [01:51:26]OFD Sender: No OFD packet to send [01:51:31]OFD Sender: No OFD packet to send [01:51:36]OFD Sender: No OFD packet to send [01:51:41]OFD Sender: No OFD packet to send [01:51:46]OFD Sender: No OFD packet to send [01:51:51]OFD Sender: No OFD packet to send [01:51:56]OFD Sender: No OFD packet to send [01:52:01]OFD Sender: No OFD packet to send [01:52:06]OFD Sender: No OFD packet to send [01:52:11]OFD Sender: No OFD packet to send [01:52:16]OFD Sender: No OFD packet to send [01:52:21]OFD Sender: No OFD packet to send [01:52:26]OFD Sender: No OFD packet to send [01:52:31]OFD Sender: No OFD packet to send [01:52:36]OFD Sender: No OFD packet to send [01:52:41]OFD Sender: No OFD packet to send [01:52:46]OFD Sender: No OFD packet to send [01:52:51]OFD Sender: No OFD packet to send [01:52:56]OFD Sender: No OFD packet to send [01:53:01]OFD Sender: No OFD packet to send [01:53:06]OFD Sender: No OFD packet to send [01:53:11]OFD Sender: No OFD packet to send [01:53:16]OFD Sender: No OFD packet to send [01:53:21]OFD Sender: No OFD packet to send [01:53:26]OFD Sender: No OFD packet to send [01:53:31]OFD Sender: No OFD packet to send [01:53:36]OFD Sender: No OFD packet to send [01:53:41]OFD Sender: No OFD packet to send [01:53:46]OFD Sender: No OFD packet to send [01:53:51]OFD Sender: No OFD packet to send [01:53:56]OFD Sender: No OFD packet to send [01:54:01]OFD Sender: No OFD packet to send [01:54:06]OFD Sender: No OFD packet to send [01:54:11]OFD Sender: No OFD packet to send [01:54:16]OFD Sender: No OFD packet to send [01:54:21]OFD Sender: No OFD packet to send [01:54:27]OFD Sender: No OFD packet to send [01:54:32]OFD Sender: No OFD packet to send [01:54:37]OFD Sender: No OFD packet to send [01:54:42]OFD Sender: No OFD packet to send [01:54:47]OFD Sender: No OFD packet to send [01:54:52]OFD Sender: No OFD packet to send [01:54:57]OFD Sender: No OFD packet to send [01:55:02]OFD Sender: No OFD packet to send [01:55:07]OFD Sender: No OFD packet to send [01:55:12]OFD Sender: No OFD packet to send [01:55:17]OFD Sender: No OFD packet to send [01:55:22]OFD Sender: No OFD packet to send [01:55:27]OFD Sender: No OFD packet to send [01:55:32]OFD Sender: No OFD packet to send [01:55:37]OFD Sender: No OFD packet to send [01:55:42]OFD Sender: No OFD packet to send [01:55:47]OFD Sender: No OFD packet to send [01:55:52]OFD Sender: No OFD packet to send [01:55:57]OFD Sender: No OFD packet to send [01:56:02]OFD Sender: No OFD packet to send [01:56:07]OFD Sender: No OFD packet to send [01:56:12]OFD Sender: No OFD packet to send [01:56:17]OFD Sender: No OFD packet to send [01:56:22]OFD Sender: No OFD packet to send [01:56:27]OFD Sender: No OFD packet to send [01:56:32]OFD Sender: No OFD packet to send [01:56:37]OFD Sender: No OFD packet to send [01:56:42]OFD Sender: No OFD packet to send [01:56:47]OFD Sender: No OFD packet to send [01:56:52]OFD Sender: No OFD packet to send [01:56:57]OFD Sender: No OFD packet to send [01:57:02]OFD Sender: No OFD packet to send [01:57:07]OFD Sender: No OFD packet to send [01:57:12]OFD Sender: No OFD packet to send [01:57:17]OFD Sender: No OFD packet to send [01:57:22]OFD Sender: No OFD packet to send [01:57:27]OFD Sender: No OFD packet to send [01:57:32]OFD Sender: No OFD packet to send [01:57:37]OFD Sender: No OFD packet to send [01:57:42]OFD Sender: No OFD packet to send [01:57:47]OFD Sender: No OFD packet to send [01:57:52]OFD Sender: No OFD packet to send [01:57:57]OFD Sender: No OFD packet to send [01:58:02]OFD Sender: No OFD packet to send [01:58:07]OFD Sender: No OFD packet to send [01:58:12]OFD Sender: No OFD packet to send [01:58:17]OFD Sender: No OFD packet to send [01:58:22]OFD Sender: No OFD packet to send [01:58:27]OFD Sender: No OFD packet to send [01:58:32]OFD Sender: No OFD packet to send [01:58:37]OFD Sender: No OFD packet to send [01:58:42]OFD Sender: No OFD packet to send [01:58:47]OFD Sender: No OFD packet to send [01:58:52]OFD Sender: No OFD packet to send [01:58:57]OFD Sender: No OFD packet to send [01:59:02]OFD Sender: No OFD packet to send [01:59:07]OFD Sender: No OFD packet to send [01:59:12]OFD Sender: No OFD packet to send [01:59:17]OFD Sender: No OFD packet to send [01:59:22]OFD Sender: No OFD packet to send [01:59:27]OFD Sender: No OFD packet to send [01:59:32]OFD Sender: No OFD packet to send [01:59:37]OFD Sender: No OFD packet to send [01:59:42]OFD Sender: No OFD packet to send [01:59:47]OFD Sender: No OFD packet to send [01:59:52]OFD Sender: No OFD packet to send [01:59:57]OFD Sender: No OFD packet to send [02:00:02]OFD Sender: No OFD packet to send [02:00:07]OFD Sender: No OFD packet to send [02:00:12]OFD Sender: No OFD packet to send [02:00:17]OFD Sender: No OFD packet to send [02:00:22]OFD Sender: No OFD packet to send [02:00:27]OFD Sender: No OFD packet to send [02:00:32]OFD Sender: No OFD packet to send [02:00:37]OFD Sender: No OFD packet to send [02:00:42]OFD Sender: No OFD packet to send [02:00:47]OFD Sender: No OFD packet to send [02:00:52]OFD Sender: No OFD packet to send [02:00:57]OFD Sender: No OFD packet to send [02:01:02]OFD Sender: No OFD packet to send [02:01:07]OFD Sender: No OFD packet to send [02:01:12]OFD Sender: No OFD packet to send [02:01:17]OFD Sender: No OFD packet to send [02:01:22]OFD Sender: No OFD packet to send [02:01:27]OFD Sender: No OFD packet to send [02:01:32]OFD Sender: No OFD packet to send [02:01:37]OFD Sender: No OFD packet to send [02:01:42]OFD Sender: No OFD packet to send [02:01:47]OFD Sender: No OFD packet to send [02:01:52]OFD Sender: No OFD packet to send [02:01:57]OFD Sender: No OFD packet to send [02:02:02]OFD Sender: No OFD packet to send [02:02:07]OFD Sender: No OFD packet to send [02:02:12]OFD Sender: No OFD packet to send [02:02:17]OFD Sender: No OFD packet to send [02:02:22]OFD Sender: No OFD packet to send [02:02:27]OFD Sender: No OFD packet to send [02:02:32]OFD Sender: No OFD packet to send [02:02:37]OFD Sender: No OFD packet to send [02:02:42]OFD Sender: No OFD packet to send [02:02:47]OFD Sender: No OFD packet to send [02:02:52]OFD Sender: No OFD packet to send [02:02:57]OFD Sender: No OFD packet to send [02:03:02]OFD Sender: No OFD packet to send [02:03:07]OFD Sender: No OFD packet to send [02:03:12]OFD Sender: No OFD packet to send [02:03:17]OFD Sender: No OFD packet to send [02:03:22]OFD Sender: No OFD packet to send [02:03:27]OFD Sender: No OFD packet to send [02:03:32]OFD Sender: No OFD packet to send [02:03:37]OFD Sender: No OFD packet to send [02:03:42]OFD Sender: No OFD packet to send [02:03:47]OFD Sender: No OFD packet to send [02:03:52]OFD Sender: No OFD packet to send [02:03:57]OFD Sender: No OFD packet to send [02:04:02]OFD Sender: No OFD packet to send [02:04:07]OFD Sender: No OFD packet to send [02:04:12]OFD Sender: No OFD packet to send [02:04:17]OFD Sender: No OFD packet to send [02:04:22]OFD Sender: No OFD packet to send [02:04:27]OFD Sender: No OFD packet to send [02:04:32]OFD Sender: No OFD packet to send [02:04:37]OFD Sender: No OFD packet to send [02:04:42]OFD Sender: No OFD packet to send [02:04:47]OFD Sender: No OFD packet to send [02:04:52]OFD Sender: No OFD packet to send [02:04:57]OFD Sender: No OFD packet to send [02:05:02]OFD Sender: No OFD packet to send [02:05:07]OFD Sender: No OFD packet to send [02:05:12]OFD Sender: No OFD packet to send [02:05:17]OFD Sender: No OFD packet to send [02:05:22]OFD Sender: No OFD packet to send [02:05:27]OFD Sender: No OFD packet to send [02:05:32]OFD Sender: No OFD packet to send [02:05:37]OFD Sender: No OFD packet to send [02:05:42]OFD Sender: No OFD packet to send [02:05:47]OFD Sender: No OFD packet to send [02:05:52]OFD Sender: No OFD packet to send [02:05:57]OFD Sender: No OFD packet to send [02:06:02]OFD Sender: No OFD packet to send [02:06:07]OFD Sender: No OFD packet to send [02:06:12]OFD Sender: No OFD packet to send [02:06:17]OFD Sender: No OFD packet to send [02:06:22]OFD Sender: No OFD packet to send [02:06:27]OFD Sender: No OFD packet to send [02:06:32]OFD Sender: No OFD packet to send [02:06:37]OFD Sender: No OFD packet to send [02:06:42]OFD Sender: No OFD packet to send [02:06:47]OFD Sender: No OFD packet to send [02:06:52]OFD Sender: No OFD packet to send [02:06:57]OFD Sender: No OFD packet to send [02:07:02]OFD Sender: No OFD packet to send [02:07:07]OFD Sender: No OFD packet to send [02:07:12]OFD Sender: No OFD packet to send [02:07:17]OFD Sender: No OFD packet to send [02:07:22]OFD Sender: No OFD packet to send [02:07:27]OFD Sender: No OFD packet to send [02:07:32]OFD Sender: No OFD packet to send [02:07:37]OFD Sender: No OFD packet to send [02:07:42]OFD Sender: No OFD packet to send [02:07:47]OFD Sender: No OFD packet to send [02:07:52]OFD Sender: No OFD packet to send [02:07:57]OFD Sender: No OFD packet to send [02:08:02]OFD Sender: No OFD packet to send [02:08:07]OFD Sender: No OFD packet to send [02:08:12]OFD Sender: No OFD packet to send [02:08:17]OFD Sender: No OFD packet to send [02:08:22]OFD Sender: No OFD packet to send [02:08:27]OFD Sender: No OFD packet to send [02:08:32]OFD Sender: No OFD packet to send [02:08:37]OFD Sender: No OFD packet to send [02:08:42]OFD Sender: No OFD packet to send [02:08:47]OFD Sender: No OFD packet to send [02:08:52]OFD Sender: No OFD packet to send [02:08:57]OFD Sender: No OFD packet to send [02:09:02]OFD Sender: No OFD packet to send [02:09:07]OFD Sender: No OFD packet to send [02:09:12]OFD Sender: No OFD packet to send [02:09:17]OFD Sender: No OFD packet to send [02:09:22]OFD Sender: No OFD packet to send [02:09:27]OFD Sender: No OFD packet to send [02:09:32]OFD Sender: No OFD packet to send [02:09:37]OFD Sender: No OFD packet to send [02:09:42]OFD Sender: No OFD packet to send [02:09:47]OFD Sender: No OFD packet to send [02:09:52]OFD Sender: No OFD packet to send [02:09:57]OFD Sender: No OFD packet to send [02:10:02]OFD Sender: No OFD packet to send [02:10:07]OFD Sender: No OFD packet to send [02:10:12]OFD Sender: No OFD packet to send [02:10:17]OFD Sender: No OFD packet to send [02:10:22]OFD Sender: No OFD packet to send [02:10:27]OFD Sender: No OFD packet to send [02:10:32]OFD Sender: No OFD packet to send [02:10:37]OFD Sender: No OFD packet to send [02:10:42]OFD Sender: No OFD packet to send [02:10:47]OFD Sender: No OFD packet to send [02:10:52]OFD Sender: No OFD packet to send [02:10:57]OFD Sender: No OFD packet to send [02:11:02]OFD Sender: No OFD packet to send [02:11:07]OFD Sender: No OFD packet to send [02:11:12]OFD Sender: No OFD packet to send [02:11:17]OFD Sender: No OFD packet to send [02:11:22]OFD Sender: No OFD packet to send [02:11:27]OFD Sender: No OFD packet to send [02:11:32]OFD Sender: No OFD packet to send [02:11:37]OFD Sender: No OFD packet to send [02:11:42]OFD Sender: No OFD packet to send [02:11:47]OFD Sender: No OFD packet to send [02:11:52]OFD Sender: No OFD packet to send [02:11:57]OFD Sender: No OFD packet to send [02:12:02]OFD Sender: No OFD packet to send [02:12:07]OFD Sender: No OFD packet to send [02:12:12]OFD Sender: No OFD packet to send [02:12:17]OFD Sender: No OFD packet to send [02:12:22]OFD Sender: No OFD packet to send [02:12:27]OFD Sender: No OFD packet to send [02:12:32]OFD Sender: No OFD packet to send [02:12:37]OFD Sender: No OFD packet to send [02:12:42]OFD Sender: No OFD packet to send [02:12:47]OFD Sender: No OFD packet to send [02:12:52]OFD Sender: No OFD packet to send [02:12:57]OFD Sender: No OFD packet to send [02:13:02]OFD Sender: No OFD packet to send [02:13:07]OFD Sender: No OFD packet to send [02:13:12]OFD Sender: No OFD packet to send [02:13:17]OFD Sender: No OFD packet to send [02:13:22]OFD Sender: No OFD packet to send [02:13:27]OFD Sender: No OFD packet to send [02:13:32]OFD Sender: No OFD packet to send [02:13:37]OFD Sender: No OFD packet to send [02:13:42]OFD Sender: No OFD packet to send [02:13:47]OFD Sender: No OFD packet to send [02:13:52]OFD Sender: No OFD packet to send [02:13:57]OFD Sender: No OFD packet to send [02:14:02]OFD Sender: No OFD packet to send [02:14:07]OFD Sender: No OFD packet to send [02:14:12]OFD Sender: No OFD packet to send [02:14:17]OFD Sender: No OFD packet to send [02:14:22]OFD Sender: No OFD packet to send [02:14:27]OFD Sender: No OFD packet to send [02:14:32]OFD Sender: No OFD packet to send [02:14:37]OFD Sender: No OFD packet to send [02:14:42]OFD Sender: No OFD packet to send [02:14:47]OFD Sender: No OFD packet to send [02:14:52]OFD Sender: No OFD packet to send [02:14:58]OFD Sender: No OFD packet to send [02:15:03]OFD Sender: No OFD packet to send [02:15:08]OFD Sender: No OFD packet to send [02:15:13]OFD Sender: No OFD packet to send [02:15:18]OFD Sender: No OFD packet to send [02:15:23]OFD Sender: No OFD packet to send [02:15:28]OFD Sender: No OFD packet to send [02:15:33]OFD Sender: No OFD packet to send [02:15:38]OFD Sender: No OFD packet to send [02:15:43]OFD Sender: No OFD packet to send [02:15:48]OFD Sender: No OFD packet to send [02:15:53]OFD Sender: No OFD packet to send [02:15:58]OFD Sender: No OFD packet to send [02:16:03]OFD Sender: No OFD packet to send [02:16:08]OFD Sender: No OFD packet to send [02:16:13]OFD Sender: No OFD packet to send [02:16:18]OFD Sender: No OFD packet to send [02:16:23]OFD Sender: No OFD packet to send [02:16:28]OFD Sender: No OFD packet to send [02:16:33]OFD Sender: No OFD packet to send [02:16:38]OFD Sender: No OFD packet to send [02:16:43]OFD Sender: No OFD packet to send [02:16:48]OFD Sender: No OFD packet to send [02:16:53]OFD Sender: No OFD packet to send [02:16:58]OFD Sender: No OFD packet to send [02:17:03]OFD Sender: No OFD packet to send [02:17:08]OFD Sender: No OFD packet to send [02:17:13]OFD Sender: No OFD packet to send [02:17:18]OFD Sender: No OFD packet to send [02:17:23]OFD Sender: No OFD packet to send [02:17:28]OFD Sender: No OFD packet to send [02:17:33]OFD Sender: No OFD packet to send [02:17:38]OFD Sender: No OFD packet to send [02:17:43]OFD Sender: No OFD packet to send [02:17:48]OFD Sender: No OFD packet to send [02:17:53]OFD Sender: No OFD packet to send [02:17:58]OFD Sender: No OFD packet to send [02:18:03]OFD Sender: No OFD packet to send [02:18:08]OFD Sender: No OFD packet to send [02:18:13]OFD Sender: No OFD packet to send [02:18:18]OFD Sender: No OFD packet to send [02:18:23]OFD Sender: No OFD packet to send [02:18:28]OFD Sender: No OFD packet to send [02:18:33]OFD Sender: No OFD packet to send [02:18:38]OFD Sender: No OFD packet to send [02:18:43]OFD Sender: No OFD packet to send [02:18:48]OFD Sender: No OFD packet to send [02:18:53]OFD Sender: No OFD packet to send [02:18:58]OFD Sender: No OFD packet to send [02:19:03]OFD Sender: No OFD packet to send [02:19:08]OFD Sender: No OFD packet to send [02:19:13]OFD Sender: No OFD packet to send [02:19:18]OFD Sender: No OFD packet to send [02:19:23]OFD Sender: No OFD packet to send [02:19:28]OFD Sender: No OFD packet to send [02:19:33]OFD Sender: No OFD packet to send [02:19:38]OFD Sender: No OFD packet to send [02:19:43]OFD Sender: No OFD packet to send [02:19:48]OFD Sender: No OFD packet to send [02:19:53]OFD Sender: No OFD packet to send [02:19:58]OFD Sender: No OFD packet to send [02:20:03]OFD Sender: No OFD packet to send [02:20:08]OFD Sender: No OFD packet to send [02:20:13]OFD Sender: No OFD packet to send [02:20:18]OFD Sender: No OFD packet to send [02:20:23]OFD Sender: No OFD packet to send [02:20:28]OFD Sender: No OFD packet to send [02:20:33]OFD Sender: No OFD packet to send [02:20:38]OFD Sender: No OFD packet to send [02:20:43]OFD Sender: No OFD packet to send [02:20:48]OFD Sender: No OFD packet to send [02:20:53]OFD Sender: No OFD packet to send [02:20:58]OFD Sender: No OFD packet to send [02:21:03]OFD Sender: No OFD packet to send [02:21:08]OFD Sender: No OFD packet to send [02:21:13]OFD Sender: No OFD packet to send [02:21:18]OFD Sender: No OFD packet to send [02:21:23]OFD Sender: No OFD packet to send [02:21:28]OFD Sender: No OFD packet to send [02:21:33]OFD Sender: No OFD packet to send [02:21:38]OFD Sender: No OFD packet to send [02:21:43]OFD Sender: No OFD packet to send [02:21:48]OFD Sender: No OFD packet to send [02:21:53]OFD Sender: No OFD packet to send [02:21:58]OFD Sender: No OFD packet to send [02:22:03]OFD Sender: No OFD packet to send [02:22:08]OFD Sender: No OFD packet to send [02:22:13]OFD Sender: No OFD packet to send [02:22:18]OFD Sender: No OFD packet to send [02:22:23]OFD Sender: No OFD packet to send [02:22:28]OFD Sender: No OFD packet to send [02:22:33]OFD Sender: No OFD packet to send [02:22:38]OFD Sender: No OFD packet to send [02:22:43]OFD Sender: No OFD packet to send [02:22:48]OFD Sender: No OFD packet to send [02:22:53]OFD Sender: No OFD packet to send [02:22:58]OFD Sender: No OFD packet to send [02:23:03]OFD Sender: No OFD packet to send [02:23:08]OFD Sender: No OFD packet to send [02:23:13]OFD Sender: No OFD packet to send [02:23:18]OFD Sender: No OFD packet to send [02:23:23]OFD Sender: No OFD packet to send [02:23:28]OFD Sender: No OFD packet to send [02:23:33]OFD Sender: No OFD packet to send [02:23:38]OFD Sender: No OFD packet to send [02:23:43]OFD Sender: No OFD packet to send [02:23:48]OFD Sender: No OFD packet to send [02:23:53]OFD Sender: No OFD packet to send [02:23:58]OFD Sender: No OFD packet to send [02:24:03]OFD Sender: No OFD packet to send [02:24:08]OFD Sender: No OFD packet to send [02:24:13]OFD Sender: No OFD packet to send [02:24:18]OFD Sender: No OFD packet to send [02:24:23]OFD Sender: No OFD packet to send [02:24:28]OFD Sender: No OFD packet to send [02:24:33]OFD Sender: No OFD packet to send [02:24:38]OFD Sender: No OFD packet to send [02:24:43]OFD Sender: No OFD packet to send [02:24:48]OFD Sender: No OFD packet to send [02:24:53]OFD Sender: No OFD packet to send [02:24:58]OFD Sender: No OFD packet to send [02:25:03]OFD Sender: No OFD packet to send [02:25:08]OFD Sender: No OFD packet to send [02:25:13]OFD Sender: No OFD packet to send [02:25:18]OFD Sender: No OFD packet to send [02:25:23]OFD Sender: No OFD packet to send [02:25:28]OFD Sender: No OFD packet to send [02:25:33]OFD Sender: No OFD packet to send [02:25:38]OFD Sender: No OFD packet to send [02:25:43]OFD Sender: No OFD packet to send [02:25:48]OFD Sender: No OFD packet to send [02:25:53]OFD Sender: No OFD packet to send [02:25:58]OFD Sender: No OFD packet to send [02:26:03]OFD Sender: No OFD packet to send [02:26:08]OFD Sender: No OFD packet to send [02:26:13]OFD Sender: No OFD packet to send [02:26:18]OFD Sender: No OFD packet to send [02:26:23]OFD Sender: No OFD packet to send [02:26:28]OFD Sender: No OFD packet to send [02:26:33]OFD Sender: No OFD packet to send [02:26:38]OFD Sender: No OFD packet to send [02:26:43]OFD Sender: No OFD packet to send [02:26:48]OFD Sender: No OFD packet to send [02:26:53]OFD Sender: No OFD packet to send [02:26:58]OFD Sender: No OFD packet to send [02:27:03]OFD Sender: No OFD packet to send [02:27:08]OFD Sender: No OFD packet to send [02:27:13]OFD Sender: No OFD packet to send [02:27:18]OFD Sender: No OFD packet to send [02:27:23]OFD Sender: No OFD packet to send [02:27:28]OFD Sender: No OFD packet to send [02:27:33]OFD Sender: No OFD packet to send [02:27:38]OFD Sender: No OFD packet to send [02:27:43]OFD Sender: No OFD packet to send [02:27:48]OFD Sender: No OFD packet to send [02:27:53]OFD Sender: No OFD packet to send [02:27:58]OFD Sender: No OFD packet to send [02:28:03]OFD Sender: No OFD packet to send [02:28:08]OFD Sender: No OFD packet to send [02:28:13]OFD Sender: No OFD packet to send [02:28:18]OFD Sender: No OFD packet to send [02:28:23]OFD Sender: No OFD packet to send [02:28:28]OFD Sender: No OFD packet to send [02:28:33]OFD Sender: No OFD packet to send [02:28:38]OFD Sender: No OFD packet to send [02:28:43]OFD Sender: No OFD packet to send [02:28:48]OFD Sender: No OFD packet to send [02:28:53]OFD Sender: No OFD packet to send [02:28:58]OFD Sender: No OFD packet to send [02:29:03]OFD Sender: No OFD packet to send [02:29:08]OFD Sender: No OFD packet to send [02:29:13]OFD Sender: No OFD packet to send [02:29:18]OFD Sender: No OFD packet to send [02:29:23]OFD Sender: No OFD packet to send [02:29:28]OFD Sender: No OFD packet to send [02:29:33]OFD Sender: No OFD packet to send [02:29:38]OFD Sender: No OFD packet to send [02:29:43]OFD Sender: No OFD packet to send [02:29:48]OFD Sender: No OFD packet to send [02:29:53]OFD Sender: No OFD packet to send [02:29:58]OFD Sender: No OFD packet to send [02:30:03]OFD Sender: No OFD packet to send [02:30:08]OFD Sender: No OFD packet to send [02:30:13]OFD Sender: No OFD packet to send [02:30:18]OFD Sender: No OFD packet to send [02:30:23]OFD Sender: No OFD packet to send [02:30:28]OFD Sender: No OFD packet to send [02:30:33]OFD Sender: No OFD packet to send [02:30:38]OFD Sender: No OFD packet to send [02:30:43]OFD Sender: No OFD packet to send [02:30:48]OFD Sender: No OFD packet to send [02:30:53]OFD Sender: No OFD packet to send [02:30:58]OFD Sender: No OFD packet to send [02:31:03]OFD Sender: No OFD packet to send [02:31:08]OFD Sender: No OFD packet to send [02:31:13]OFD Sender: No OFD packet to send [02:31:18]OFD Sender: No OFD packet to send [02:31:23]OFD Sender: No OFD packet to send [02:31:28]OFD Sender: No OFD packet to send [02:31:33]OFD Sender: No OFD packet to send [02:31:38]OFD Sender: No OFD packet to send [02:31:43]OFD Sender: No OFD packet to send [02:31:48]OFD Sender: No OFD packet to send [02:31:53]OFD Sender: No OFD packet to send [02:31:58]OFD Sender: No OFD packet to send [02:32:03]OFD Sender: No OFD packet to send [02:32:08]OFD Sender: No OFD packet to send [02:32:13]OFD Sender: No OFD packet to send [02:32:18]OFD Sender: No OFD packet to send [02:32:23]OFD Sender: No OFD packet to send [02:32:28]OFD Sender: No OFD packet to send [02:32:33]OFD Sender: No OFD packet to send [02:32:38]OFD Sender: No OFD packet to send [02:32:43]OFD Sender: No OFD packet to send [02:32:48]OFD Sender: No OFD packet to send [02:32:53]OFD Sender: No OFD packet to send [02:32:58]OFD Sender: No OFD packet to send [02:33:03]OFD Sender: No OFD packet to send [02:33:08]OFD Sender: No OFD packet to send [02:33:13]OFD Sender: No OFD packet to send [02:33:18]OFD Sender: No OFD packet to send [02:33:23]OFD Sender: No OFD packet to send [02:33:28]OFD Sender: No OFD packet to send [02:33:33]OFD Sender: No OFD packet to send [02:33:38]OFD Sender: No OFD packet to send [02:33:43]OFD Sender: No OFD packet to send [02:33:48]OFD Sender: No OFD packet to send [02:33:53]OFD Sender: No OFD packet to send [02:33:58]OFD Sender: No OFD packet to send [02:34:03]OFD Sender: No OFD packet to send [02:34:08]OFD Sender: No OFD packet to send [02:34:13]OFD Sender: No OFD packet to send [02:34:18]OFD Sender: No OFD packet to send [02:34:23]OFD Sender: No OFD packet to send [02:34:28]OFD Sender: No OFD packet to send [02:34:33]OFD Sender: No OFD packet to send [02:34:38]OFD Sender: No OFD packet to send [02:34:43]OFD Sender: No OFD packet to send [02:34:48]OFD Sender: No OFD packet to send [02:34:53]OFD Sender: No OFD packet to send [02:34:58]OFD Sender: No OFD packet to send [02:35:03]OFD Sender: No OFD packet to send [02:35:08]OFD Sender: No OFD packet to send [02:35:13]OFD Sender: No OFD packet to send [02:35:18]OFD Sender: No OFD packet to send [02:35:23]OFD Sender: No OFD packet to send [02:35:28]OFD Sender: No OFD packet to send [02:35:34]OFD Sender: No OFD packet to send [02:35:39]OFD Sender: No OFD packet to send [02:35:44]OFD Sender: No OFD packet to send [02:35:49]OFD Sender: No OFD packet to send [02:35:54]OFD Sender: No OFD packet to send [02:35:59]OFD Sender: No OFD packet to send [02:36:04]OFD Sender: No OFD packet to send [02:36:09]OFD Sender: No OFD packet to send [02:36:14]OFD Sender: No OFD packet to send [02:36:19]OFD Sender: No OFD packet to send [02:36:24]OFD Sender: No OFD packet to send [02:36:29]OFD Sender: No OFD packet to send [02:36:34]OFD Sender: No OFD packet to send [02:36:39]OFD Sender: No OFD packet to send [02:36:44]OFD Sender: No OFD packet to send [02:36:49]OFD Sender: No OFD packet to send [02:36:54]OFD Sender: No OFD packet to send [02:36:59]OFD Sender: No OFD packet to send [02:37:04]OFD Sender: No OFD packet to send [02:37:09]OFD Sender: No OFD packet to send [02:37:14]OFD Sender: No OFD packet to send [02:37:19]OFD Sender: No OFD packet to send [02:37:24]OFD Sender: No OFD packet to send [02:37:29]OFD Sender: No OFD packet to send [02:37:34]OFD Sender: No OFD packet to send [02:37:39]OFD Sender: No OFD packet to send [02:37:44]OFD Sender: No OFD packet to send [02:37:49]OFD Sender: No OFD packet to send [02:37:54]OFD Sender: No OFD packet to send [02:37:59]OFD Sender: No OFD packet to send [02:38:04]OFD Sender: No OFD packet to send [02:38:09]OFD Sender: No OFD packet to send [02:38:14]OFD Sender: No OFD packet to send [02:38:19]OFD Sender: No OFD packet to send [02:38:24]OFD Sender: No OFD packet to send [02:38:29]OFD Sender: No OFD packet to send [02:38:34]OFD Sender: No OFD packet to send [02:38:39]OFD Sender: No OFD packet to send [02:38:44]OFD Sender: No OFD packet to send [02:38:49]OFD Sender: No OFD packet to send [02:38:54]OFD Sender: No OFD packet to send [02:38:59]OFD Sender: No OFD packet to send [02:39:04]OFD Sender: No OFD packet to send [02:39:09]OFD Sender: No OFD packet to send [02:39:14]OFD Sender: No OFD packet to send [02:39:19]OFD Sender: No OFD packet to send [02:39:24]OFD Sender: No OFD packet to send [02:39:29]OFD Sender: No OFD packet to send [02:39:34]OFD Sender: No OFD packet to send [02:39:39]OFD Sender: No OFD packet to send [02:39:44]OFD Sender: No OFD packet to send [02:39:49]OFD Sender: No OFD packet to send [02:39:54]OFD Sender: No OFD packet to send [02:39:59]OFD Sender: No OFD packet to send [02:40:04]OFD Sender: No OFD packet to send [02:40:09]OFD Sender: No OFD packet to send [02:40:14]OFD Sender: No OFD packet to send [02:40:19]OFD Sender: No OFD packet to send [02:40:24]OFD Sender: No OFD packet to send [02:40:29]OFD Sender: No OFD packet to send [02:40:34]OFD Sender: No OFD packet to send [02:40:39]OFD Sender: No OFD packet to send [02:40:44]OFD Sender: No OFD packet to send [02:40:49]OFD Sender: No OFD packet to send [02:40:54]OFD Sender: No OFD packet to send [02:40:59]OFD Sender: No OFD packet to send [02:41:04]OFD Sender: No OFD packet to send [02:41:09]OFD Sender: No OFD packet to send [02:41:14]OFD Sender: No OFD packet to send [02:41:19]OFD Sender: No OFD packet to send [02:41:24]OFD Sender: No OFD packet to send [02:41:29]OFD Sender: No OFD packet to send [02:41:34]OFD Sender: No OFD packet to send [02:41:39]OFD Sender: No OFD packet to send [02:41:44]OFD Sender: No OFD packet to send [02:41:49]OFD Sender: No OFD packet to send [02:41:54]OFD Sender: No OFD packet to send [02:41:59]OFD Sender: No OFD packet to send [02:42:04]OFD Sender: No OFD packet to send [02:42:09]OFD Sender: No OFD packet to send [02:42:14]OFD Sender: No OFD packet to send [02:42:19]OFD Sender: No OFD packet to send [02:42:24]OFD Sender: No OFD packet to send [02:42:29]OFD Sender: No OFD packet to send [02:42:34]OFD Sender: No OFD packet to send [02:42:39]OFD Sender: No OFD packet to send [02:42:44]OFD Sender: No OFD packet to send [02:42:46]accept exits with 7 [02:42:46]New connection [02:42:46]New thread 3067157860 created [02:42:46]Thread 3067014500 joined [02:42:46]Waiting for new connection... [02:42:46] Sock 7.Parse request [02:42:46]Sock 7.Check first char [02:42:46]Sock 7.First char is OK [02:42:46]request: POST /json_proto HTTP/1.0 [02:42:46]Method: POST [02:42:46]URL: /json_proto [02:42:46]Method is POST - this is cgi request [02:42:46]url: /json_proto [02:42:46]query_string will be loaded in cgi processing [02:42:46]execute_cgi json_proto POST (null) [02:42:46]execute_cgi path=json_proto method=POST [02:42:46]POST find Content-Length [02:42:46]Host: 172.17.48.198:8080 [02:42:46]Content-Length: 622 [02:42:46]Content-Type: application/json [02:42:46] [02:42:46]POST finish read [02:42:46]Found Content-Length = 622 [02:42:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184229", "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" ] } } [02:42:46]execute_script... [02:42:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184229", "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" ] } } [02:42:46]POST & json_proto [02:42:46]process_json_proto [02:42:46]json parsed OK: [02:42:46]protocol is kg_v1.0 [02:42:46]action value=close_receipt [02:42:46]process_action close_receipt [02:42:46]cmd_close_receipt [02:42:46]MH_GetDate [02:42:46]Write to MH i2c: F0 00 00 5C 5F AA [02:42:46]Write i2c OK [02:42:46]MH_I2C_Read... [02:42:46]Read from MH i2c: F0 [02:42:46]MH_I2C_Read... [02:42:46]Read from MH i2c: F0 09 00 [02:42:46]MH_I2C_Read... [02:42:46]Read from MH i2c: F0 09 00 5C 5F 00 35 35 E5 65 CE C4 D4 65 32 [02:42:46]GetLastDocTimeStamp 1709516933 [02:42:46]current date 1709520181 [02:42:46]FM_GetShiftState [02:42:46]SAM_PROTO_GetShiftState [02:42:46]wFMCommunicate request_size=4 [02:42:46]MH_SAM_APDU [02:42:46]CAPDU: 80 13 01 00 [02:42:46]Write to MH i2c: E2 08 00 5D 5F 80 13 01 00 00 00 00 00 39 [02:42:46]Write i2c OK [02:42:46]MH_I2C_Read... [02:42:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:42:46]Read from MH i2c: E2 [02:42:46]MH_I2C_Read... [02:42:46]Read from MH i2c: E2 0E 00 [02:42:46]MH_I2C_Read... [02:42:46]Read from MH i2c: E2 0E 00 5D 5F 00 09 00 01 26 12 E5 65 00 00 00 00 90 00 C7 [02:42:46]RAPDU: 09 00 01 26 12 E5 65 00 00 00 00 90 00 [02:42:46]wFMCommunicate OK [02:42:46]SAM_PROTO_GetShiftState done [02:42:46]FM_GetShiftState done [02:42:46]opened in 1709511206 [02:42:46]opened+sec_in_day 1709597606 [02:42:46]quantity*price = 13800 [02:42:46]sum+1 = 13801 [02:42:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 138.00 НСП 1% : 1.22 НДС 12% : 14.65 Наличными: 138.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 6 04.03.2024 02:43 Смена: 332 ФФД: 1.0 ЗНМ: 0300000013 РНМ: 0000000000090572 Версия ККМ: 001 ФМ: 0000000000874796 ФД: 45272 ФПД: 198697108500746 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240304T024301&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45272&fm=198697108500746&tin=02508201610067®Number=0000000000090572&sum=13800 0 [02:42:47]StoreToDocumentArchive [02:42:47]shift 332 fd 45272 [02:42:47]save to /storage/0332/doc_00045272 [02:42:47]save last doc name /storage/0332/doc_00045272 to /storage/kkm_last_doc_name [02:42:47]save OK [02:42:47]Clear old archive folders... [02:42:47]ProcessDocumentItem done err = 0, tmpTLVsize=274 [02:42:47]tlvbuf is 01CDF950 [02:42:47]SAM_PROTO_ClearQueue [02:42:47]wFMCommunicate request_size=4 [02:42:47]MH_SAM_APDU [02:42:47]CAPDU: 80 09 00 00 [02:42:47]Write to MH i2c: E2 08 00 6A 5F 80 09 00 00 00 00 00 00 3B [02:42:47]Write i2c OK [02:42:47]MH_I2C_Read... [02:42:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:42:47]Read from MH i2c: E2 [02:42:47]MH_I2C_Read... [02:42:47]Read from MH i2c: E2 03 00 [02:42:47]MH_I2C_Read... [02:42:47]Read from MH i2c: E2 03 00 6A 5F 00 90 00 3D [02:42:47]RAPDU: 90 00 [02:42:47]wFMCommunicate OK [02:42:47]SAM_PROTO_ClearQueue done [02:42:47]KKMCreateOFDPacket [02:42:47]OFDProtocolAddRootSTLVToBuf [02:42:47]FM_MakeSignedData [02:42:47]FM_MakeSignedData [02:42:47]SAM_PROTO_SignData [02:42:47]wFMCommunicate request_size=4 [02:42:47]MH_SAM_APDU [02:42:47]CAPDU: 80 0D 01 02 [02:42:47]Write to MH i2c: E2 08 00 6B 5F 80 0D 01 02 00 00 00 00 43 [02:42:47]Write i2c OK [02:42:47]MH_I2C_Read... [02:42:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:42:47]Read from MH i2c: E2 [02:42:47]MH_I2C_Read... [02:42:47]Read from MH i2c: E2 03 00 [02:42:47]MH_I2C_Read... [02:42:47]Read from MH i2c: E2 03 00 6B 5F 00 90 00 3E [02:42:47]RAPDU: 90 00 [02:42:47]wFMCommunicate OK [02:42:47]wFMCommunicate request_size=255 [02:42:47]MH_SAM_APDU [02:42:47]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 06 00 00 00 F4 03 04 00 35 35 E5 65 0E 04 04 00 4C 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 [02:42:47]Write to MH i2c: E2 02 01 6C 5F 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 06 00 00 00 F4 03 04 00 35 35 E5 65 0E 04 04 00 4C 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 00 00 85 [02:42:47]Write i2c OK [02:42:47]MH_I2C_Read... [02:42:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:42:48]Read from MH i2c: E2 [02:42:48]MH_I2C_Read... [02:42:48]Read from MH i2c: E2 03 00 [02:42:48]MH_I2C_Read... [02:42:48]Read from MH i2c: E2 03 00 6C 5F 00 90 00 3F [02:42:48]RAPDU: 90 00 [02:42:48]wFMCommunicate OK [02:42:48]wFMCommunicate request_size=33 [02:42:48]MH_SAM_APDU [02:42:48]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 34 37 39 36 10 04 04 00 D8 B0 00 00 35 04 06 00 B4 B6 C6 91 F1 0A [02:42:48]Write to MH i2c: E2 24 00 6D 5F 80 0D 02 02 1C 00 30 30 30 30 38 37 34 37 39 36 10 04 04 00 D8 B0 00 00 35 04 06 00 B4 B6 C6 91 F1 0A 00 00 22 [02:42:48]Write i2c OK [02:42:48]MH_I2C_Read... [02:42:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:42:48]Read from MH i2c: E2 [02:42:48]MH_I2C_Read... [02:42:48]Read from MH i2c: E2 03 00 [02:42:48]MH_I2C_Read... [02:42:48]Read from MH i2c: E2 03 00 6D 5F 00 90 00 40 [02:42:48]RAPDU: 90 00 [02:42:48]wFMCommunicate OK [02:42:48]wFMCommunicate request_size=4 [02:42:48]MH_SAM_APDU [02:42:48]CAPDU: 80 0D 03 02 [02:42:48]Write to MH i2c: E2 08 00 6E 5F 80 0D 03 02 00 00 00 00 48 [02:42:48]Write i2c OK [02:42:48]MH_I2C_Read... [02:42:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:42:48]Read from MH i2c: E2 [02:42:48]MH_I2C_Read... [02:42:48]Read from MH i2c: E2 0B 00 [02:42:48]MH_I2C_Read... [02:42:48]Read from MH i2c: E2 0B 00 6E 5F 00 65 D4 45 E6 47 C0 9F 16 90 00 69 [02:42:48]RAPDU: 65 D4 45 E6 47 C0 9F 16 90 00 [02:42:48]wFMCommunicate OK [02:42:48]SAM_PROTO_SignData done [02:42:48]FM_MakeSignedData done [02:42:48]CreateOFDProtocolMessage [02:42:48]wFMCommunicate request_size=4 [02:42:48]MH_SAM_APDU [02:42:48]CAPDU: 80 11 00 00 [02:42:48]Write to MH i2c: E2 08 00 6F 5F 80 11 00 00 00 00 00 00 48 [02:42:48]Write i2c OK [02:42:48]MH_I2C_Read... [02:42:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:42:48]Read from MH i2c: E2 [02:42:48]MH_I2C_Read... [02:42:48]Read from MH i2c: E2 17 00 [02:42:48]MH_I2C_Read... [02:42:48]Read from MH i2c: E2 17 00 6F 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 A4 [02:42:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [02:42:48]wFMCommunicate OK [02:42:48]CreateOFDProtocolMessage done [02:42:48]OFDSenderStorePacket 45272 [02:42:48]StoreOFDPacket docnum=45272 [02:42:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 26 01 00 00 A3 80 1E 01 E9 E1 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 06 00 00 00 F4 03 04 00 35 35 E5 65 0E 04 04 00 4C 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 D8 B0 00 00 35 04 06 00 B4 B6 C6 91 F1 0A 65 D4 45 E6 47 C0 9F 16 [02:42:48]CheckFolder [02:42:48]dirname=/storage/ofd_packets [02:42:48]CheckFolder done [02:42:48]ProducePacketName [02:42:48]name=ofd_packets/00045272 [02:42:48]NVStorageSaveData ofd_packets/00045272 [02:42:48]File name is /storage/ofd_packets/00045272 [02:42:48]Write 324 bytes [02:42:48]NVStorageSaveData done [02:42:48]OFDSenderStorePacket done [02:42:48]KKMCreateOFDPacket done [02:42:48]NVStorageSaveData kkm_last_timestamp [02:42:48]File name is /storage/kkm_last_timestamp [02:42:48]Write 4 bytes [02:42:48]NVStorageSaveData done [02:42:48]ExternCall_PrintAddStr [02:42:48]wPrintStart [02:42:48]Write to MH i2c: 01 00 00 70 5F CF [02:42:48]Write i2c OK [02:42:48]MH_I2C_Read... [02:42:48]Read from MH i2c: 01 [02:42:48]MH_I2C_Read... [02:42:48]Read from MH i2c: 01 07 00 [02:42:48]MH_I2C_Read... [02:42:48]Read from MH i2c: 01 07 00 70 5F 00 00 00 00 00 FF 0F E4 [02:42:48]RasterBufferAndPrint [02:42:48]line Счет N : (3)184229 [02:42:48]line ИНН: 02508201610067 [02:42:48]line Контрольно-Кассовый Чек [02:42:48]line ПРОДАЖА [02:42:48]line Товар: 4640030091645 [02:42:48]line Сигареты ESSE Exchange M [02:42:48]line 1.000 * 138.00 [02:42:48]line = 138.00 [02:42:48]line НДС 12% НСП 1% [02:42:48]line > о реализуемом товаре [02:42:48]line ИТОГО: 138.00 [02:42:48]line НСП 1% : 1.22 [02:42:48]line НДС 12% : 14.65 [02:42:48]line Наличными: 138.00 [02:42:48]line Безнал.: 0.00 [02:42:48]line Место: АЗС № 25 "Партнер Нефть" [02:42:48]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [02:42:48]line СНО: Общий режим [02:42:48]line Чек 6 04.03.2024 02:43 [02:42:48]line Смена: 332 ФФД: 1.0 [02:42:48]line ЗНМ: 0300000013 [02:42:48]line РНМ: 0000000000090572 [02:42:48]line Версия ККМ: 001 [02:42:48]line ФМ: 0000000000874796 [02:42:48]line ФД: 45272 [02:42:48]line ФПД: 198697108500746 [02:42:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240304T024301&type=1&operation_type=1&fn_number=0000000000874796&fd_number=45272&fm=198697108500746&tin=02508201610067®Number=0000000000090572&sum=13800 [02:42:48]line 0 [02:42:48]OFD Sender: Processing packet 45272 [packets to send 17, broken 16] [02:42:48]ProducePacketName [02:42:48]name=ofd_packets/00045272 [02:42:48]OFD Sender: To server: pG, [02:42:48]CommunicateWithHost lk.salyk.kg:30040 [02:42:48]ConnectInit lk.salyk.kg [02:42:48]written 0, free lines is 4095 [02:42:48]Connected sock=10 [02:42:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 26 01 00 00 A3 80 1E 01 E9 E1 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 06 00 00 00 F4 03 04 00 35 35 E5 65 0E 04 04 00 4C 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 D8 B0 00 00 35 04 06 00 B4 B6 C6 91 F1 0A 65 D4 45 E6 47 C0 9F 16 [02:42:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 4F 00 00 00 B5 D0 47 00 2D B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 10 04 04 00 D8 B0 00 00 F4 03 04 00 F8 E0 E4 65 B6 04 01 00 00 79 8C BF 9E 1B 20 02 A4 [02:42:48]CommunicateWithHost err = 0 [02:42:48]CheckOFDResponse [02:42:48]1017 (14) - 77093643461234 [02:42:48]1041 (16) - 0000000000874796 [02:42:48]1040 (4) - 45272 [02:42:48]1012 (4) - 03.03.2024 20:43 [02:42:48]1206 (1) - 0 [02:42:48]OFD Sender: Remove packet 45272 [02:42:48]ProducePacketName [02:42:48]name=ofd_packets/00045272 [02:42:48]NVStorageDeleteData [02:42:49]Write to MH i2c: 01 00 00 98 5F F7 [02:42:49]Write i2c OK [02:42:49]MH_I2C_Read... [02:42:49]Read from MH i2c: 01 [02:42:49]MH_I2C_Read... [02:42:49]Read from MH i2c: 01 07 00 [02:42:49]MH_I2C_Read... [02:42:49]Read from MH i2c: 01 07 00 98 5F 00 00 00 00 00 12 0D 1D [02:42:49]RasterBufferAndPrint [02:42:49]line [02:42:49]line [02:42:49]line [02:42:49]line [02:42:49]line [02:42:49]written 0, free lines is 3352 [02:42:49]MH_Cut [02:42:49]Write to MH i2c: D1 01 00 9F 5F 01 D0 [02:42:49]Write i2c OK [02:42:49]MH_I2C_Read... [02:42:49]Read from MH i2c: D1 [02:42:49]MH_I2C_Read... [02:42:49]Read from MH i2c: D1 01 00 [02:42:49]MH_I2C_Read... [02:42:49]Read from MH i2c: D1 01 00 9F 5F 00 CF [02:42:49]Write to MH i2c: 01 00 00 A0 5F FF [02:42:49]Write i2c OK [02:42:49]MH_I2C_Read... [02:42:49]OFD Sender: No OFD packet to send [02:42:49]*** Cut start [02:42:49]*** Purtial cut [02:42:49]*** Stage 1: CUTSNS_PIN = 1 [02:42:51]Read from MH i2c: 01 [02:42:51]MH_I2C_Read... [02:42:51]*** Stop cut motor [02:42:51]*** Cut end [02:42:51]Read from MH i2c: 01 07 00 [02:42:51]MH_I2C_Read... [02:42:51]Read from MH i2c: 01 07 00 A0 5F 00 00 00 00 00 FF 0F 14 [02:42:51]process_action close_receipt done [02:42:51]requested_data is exist [02:42:51]produce_requested_data [02:42:51]requested_item fm.sn is exist - process it [02:42:51]wFMCommunicate request_size=4 [02:42:51]MH_SAM_APDU [02:42:51]CAPDU: 80 11 00 00 [02:42:51]Write to MH i2c: E2 08 00 A1 5F 80 11 00 00 00 00 00 00 7A [02:42:51]Write i2c OK [02:42:51]MH_I2C_Read... [02:42:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:42:51]Read from MH i2c: E2 [02:42:51]MH_I2C_Read... [02:42:51]Read from MH i2c: E2 17 00 [02:42:51]MH_I2C_Read... [02:42:51]Read from MH i2c: E2 17 00 A1 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 D6 [02:42:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 90 00 [02:42:51]wFMCommunicate OK [02:42:51]requested_item fd.num is exist - process it [02:42:51]SAM_PROTO_GetFieldsCounters [02:42:51]wFMCommunicate request_size=4 [02:42:51]MH_SAM_APDU [02:42:51]CAPDU: 80 13 00 00 [02:42:51]Write to MH i2c: E2 08 00 A2 5F 80 13 00 00 00 00 00 00 7D [02:42:51]Write i2c OK [02:42:51]MH_I2C_Read... [02:42:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:42:51]Read from MH i2c: E2 [02:42:51]MH_I2C_Read... [02:42:51]Read from MH i2c: E2 62 00 [02:42:51]MH_I2C_Read... [02:42:51]Read from MH i2c: E2 62 00 A2 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 D8 B0 00 00 0E 04 04 00 4C 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 8C [02:42:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 32 10 04 04 00 D8 B0 00 00 0E 04 04 00 4C 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:42:51]wFMCommunicate OK [02:42:51]SAM_PROTO_GetFieldsCounters done [02:42:51]requested_item shift.num is exist - process it [02:42:51]requested_item shift.opened is exist - process it [02:42:51]req_shift_opened [02:42:51]FM_GetShiftState [02:42:51]SAM_PROTO_GetShiftState [02:42:51]wFMCommunicate request_size=4 [02:42:51]MH_SAM_APDU [02:42:51]CAPDU: 80 13 01 00 [02:42:51]Write to MH i2c: E2 08 00 A3 5F 80 13 01 00 00 00 00 00 7F [02:42:51]Write i2c OK [02:42:51]MH_I2C_Read... [02:42:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:42:52]Read from MH i2c: E2 [02:42:52]MH_I2C_Read... [02:42:52]Read from MH i2c: E2 0E 00 [02:42:52]MH_I2C_Read... [02:42:52]Read from MH i2c: E2 0E 00 A3 5F 00 09 00 01 26 12 E5 65 00 00 00 00 90 00 0D [02:42:52]RAPDU: 09 00 01 26 12 E5 65 00 00 00 00 90 00 [02:42:52]wFMCommunicate OK [02:42:52]SAM_PROTO_GetShiftState done [02:42:52]FM_GetShiftState done [02:42:52]req_shift_opened done [02:42:52]requested_item shift.open_date is exist - process it [02:42:52]req_shift_open_date [02:42:52]req_shift_open_date done [02:42:52]produce_requested_data done [02:42:52]produce_requested_data return {"fm.sn":"0000000000874796","fd.num":45272,"shift.num":332,"shift.opened":1,"shift.open_date":1709511206} [02:42:52]process_action_free close_receipt [02:42:52]json_value_free [02:42:52]json_value_free done [02:42:52]process_json_proto returns [02:42:52]Send response to host [02:42:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874796","fd.num":45272,"shift.num":332,"shift.opened":1,"shift.open_date":1709511206}}} [02:42:52]free response buf [02:42:52]execute_script done [02:42:52]execute_script returns [02:42:52]free content buf [02:42:52]Sock 7.Close socket [02:42:52]Sock 7.Thread stoped [02:42:54]OFD Sender: No OFD packet to send [02:42:59]OFD Sender: No OFD packet to send [02:43:04]OFD Sender: No OFD packet to send [02:43:09]OFD Sender: No OFD packet to send [02:43:14]OFD Sender: No OFD packet to send [02:43:19]OFD Sender: No OFD packet to send [02:43:24]OFD Sender: No OFD packet to send [02:43:29]OFD Sender: No OFD packet to send [02:43:34]OFD Sender: No OFD packet to send [02:43:39]OFD Sender: No OFD packet to send [02:43:44]OFD Sender: No OFD packet to send [02:43:49]OFD Sender: No OFD packet to send [02:43:54]OFD Sender: No OFD packet to send [02:43:59]OFD Sender: No OFD packet to send [02:44:04]OFD Sender: No OFD packet to send [02:44:09]OFD Sender: No OFD packet to send [02:44:14]OFD Sender: No OFD packet to send [02:44:19]OFD Sender: No OFD packet to send [02:44:24]OFD Sender: No OFD packet to send [02:44:29]OFD Sender: No OFD packet to send [02:44:34]OFD Sender: No OFD packet to send [02:44:39]OFD Sender: No OFD packet to send [02:44:44]OFD Sender: No OFD packet to send [02:44:49]OFD Sender: No OFD packet to send [02:44:54]OFD Sender: No OFD packet to send [02:44:59]OFD Sender: No OFD packet to send [02:45:04]OFD Sender: No OFD packet to send [02:45:09]OFD Sender: No OFD packet to send [02:45:14]OFD Sender: No OFD packet to send [02:45:19]OFD Sender: No OFD packet to send [02:45:24]OFD Sender: No OFD packet to send [02:45:29]OFD Sender: No OFD packet to send [02:45:34]OFD Sender: No OFD packet to send [02:45:39]OFD Sender: No OFD packet to send [02:45:44]OFD Sender: No OFD packet to send [02:45:49]OFD Sender: No OFD packet to send [02:45:54]OFD Sender: No OFD packet to send [02:45:59]OFD Sender: No OFD packet to send [02:46:04]OFD Sender: No OFD packet to send [02:46:09]OFD Sender: No OFD packet to send [02:46:14]OFD Sender: No OFD packet to send [02:46:19]OFD Sender: No OFD packet to send [02:46:24]OFD Sender: No OFD packet to send [02:46:29]OFD Sender: No OFD packet to send [02:46:34]OFD Sender: No OFD packet to send [02:46:39]OFD Sender: No OFD packet to send [02:46:44]OFD Sender: No OFD packet to send [02:46:49]OFD Sender: No OFD packet to send [02:46:54]OFD Sender: No OFD packet to send [02:46:59]OFD Sender: No OFD packet to send [02:47:04]OFD Sender: No OFD packet to send [02:47:09]OFD Sender: No OFD packet to send [02:47:14]OFD Sender: No OFD packet to send [02:47:19]OFD Sender: No OFD packet to send [02:47:24]OFD Sender: No OFD packet to send [02:47:29]OFD Sender: No OFD packet to send [02:47:34]OFD Sender: No OFD packet to send [02:47:39]OFD Sender: No OFD packet to send [02:47:44]OFD Sender: No OFD packet to send [02:47:49]OFD Sender: No OFD packet to send [02:47:54]OFD Sender: No OFD packet to send [02:47:59]OFD Sender: No OFD packet to send [02:48:04]OFD Sender: No OFD packet to send [02:48:09]OFD Sender: No OFD packet to send [02:48:14]OFD Sender: No OFD packet to send [02:48:19]OFD Sender: No OFD packet to send [02:48:24]OFD Sender: No OFD packet to send [02:48:29]OFD Sender: No OFD packet to send [02:48:34]OFD Sender: No OFD packet to send [02:48:39]OFD Sender: No OFD packet to send [02:48:44]OFD Sender: No OFD packet to send [02:48:49]OFD Sender: No OFD packet to send [02:48:54]OFD Sender: No OFD packet to send [02:48:59]OFD Sender: No OFD packet to send [02:49:04]OFD Sender: No OFD packet to send [02:49:09]OFD Sender: No OFD packet to send [02:49:14]OFD Sender: No OFD packet to send [02:49:19]OFD Sender: No OFD packet to send [02:49:24]OFD Sender: No OFD packet to send [02:49:29]OFD Sender: No OFD packet to send [02:49:34]OFD Sender: No OFD packet to send [02:49:39]OFD Sender: No OFD packet to send [02:49:44]OFD Sender: No OFD packet to send [02:49:49]OFD Sender: No OFD packet to send [02:49:54]OFD Sender: No OFD packet to send [02:49:59]OFD Sender: No OFD packet to send [02:50:04]OFD Sender: No OFD packet to send [02:50:09]OFD Sender: No OFD packet to send [02:50:14]OFD Sender: No OFD packet to send [02:50:19]OFD Sender: No OFD packet to send [02:50:24]OFD Sender: No OFD packet to send [02:50:29]OFD Sender: No OFD packet to send [02:50:34]OFD Sender: No OFD packet to send [02:50:39]OFD Sender: No OFD packet to send [02:50:44]OFD Sender: No OFD packet to send [02:50:49]OFD Sender: No OFD packet to send [02:50:54]OFD Sender: No OFD packet to send [02:50:59]OFD Sender: No OFD packet to send [02:51:04]OFD Sender: No OFD packet to send [02:51:09]OFD Sender: No OFD packet to send [02:51:14]OFD Sender: No OFD packet to send [02:51:19]OFD Sender: No OFD packet to send [02:51:24]OFD Sender: No OFD packet to send [02:51:29]OFD Sender: No OFD packet to send [02:51:34]OFD Sender: No OFD packet to send [02:51:39]OFD Sender: No OFD packet to send [02:51:44]OFD Sender: No OFD packet to send [02:51:49]OFD Sender: No OFD packet to send [02:51:54]OFD Sender: No OFD packet to send [02:51:59]OFD Sender: No OFD packet to send [02:52:04]OFD Sender: No OFD packet to send [02:52:09]OFD Sender: No OFD packet to send [02:52:14]OFD Sender: No OFD packet to send [02:52:19]OFD Sender: No OFD packet to send [02:52:24]OFD Sender: No OFD packet to send [02:52:29]OFD Sender: No OFD packet to send [02:52:34]OFD Sender: No OFD packet to send [02:52:39]OFD Sender: No OFD packet to send [02:52:44]OFD Sender: No OFD packet to send [02:52:49]OFD Sender: No OFD packet to send [02:52:54]OFD Sender: No OFD packet to send [02:52:59]OFD Sender: No OFD packet to send [02:53:04]OFD Sender: No OFD packet to send [02:53:09]OFD Sender: No OFD packet to send [02:53:14]OFD Sender: No OFD packet to send [02:53:19]OFD Sender: No OFD packet to send [02:53:24]OFD Sender: No OFD packet to send [02:53:29]OFD Sender: No OFD packet to send [02:53:34]OFD Sender: No OFD packet to send [02:53:39]OFD Sender: No OFD packet to send [02:53:44]OFD Sender: No OFD packet to send [02:53:49]OFD Sender: No OFD packet to send [02:53:54]OFD Sender: No OFD packet to send [02:53:59]OFD Sender: No OFD packet to send [02:54:04]OFD Sender: No OFD packet to send [02:54:09]OFD Sender: No OFD packet to send [02:54:14]OFD Sender: No OFD packet to send [02:54:19]OFD Sender: No OFD packet to send [02:54:24]OFD Sender: No OFD packet to send [02:54:29]OFD Sender: No OFD packet to send [02:54:35]OFD Sender: No OFD packet to send [02:54:40]OFD Sender: No OFD packet to send [02:54:45]OFD Sender: No OFD packet to send [02:54:50]OFD Sender: No OFD packet to send [02:54:55]OFD Sender: No OFD packet to send [02:55:00]OFD Sender: No OFD packet to send [02:55:05]OFD Sender: No OFD packet to send [02:55:10]OFD Sender: No OFD packet to send [02:55:15]OFD Sender: No OFD packet to send [02:55:20]OFD Sender: No OFD packet to send [02:55:25]OFD Sender: No OFD packet to send [02:55:30]OFD Sender: No OFD packet to send [02:55:35]OFD Sender: No OFD packet to send [02:55:40]OFD Sender: No OFD packet to send [02:55:45]OFD Sender: No OFD packet to send [02:55:50]OFD Sender: No OFD packet to send [02:55:55]OFD Sender: No OFD packet to send [02:56:00]OFD Sender: No OFD packet to send [02:56:05]OFD Sender: No OFD packet to send [02:56:10]OFD Sender: No OFD packet to send [02:56:15]OFD Sender: No OFD packet to send [02:56:20]OFD Sender: No OFD packet to send [02:56:25]OFD Sender: No OFD packet to send [02:56:30]OFD Sender: No OFD packet to send [02:56:35]OFD Sender: No OFD packet to send [02:56:40]OFD Sender: No OFD packet to send [02:56:45]OFD Sender: No OFD packet to send [02:56:50]OFD Sender: No OFD packet to send [02:56:55]OFD Sender: No OFD packet to send [02:57:00]OFD Sender: No OFD packet to send [02:57:05]OFD Sender: No OFD packet to send [02:57:10]OFD Sender: No OFD packet to send [02:57:15]OFD Sender: No OFD packet to send [02:57:20]OFD Sender: No OFD packet to send [02:57:25]OFD Sender: No OFD packet to send [02:57:30]OFD Sender: No OFD packet to send [02:57:35]OFD Sender: No OFD packet to send [02:57:40]OFD Sender: No OFD packet to send [02:57:45]OFD Sender: No OFD packet to send [02:57:50]OFD Sender: No OFD packet to send [02:57:55]OFD Sender: No OFD packet to send [02:58:00]OFD Sender: No OFD packet to send [02:58:05]OFD Sender: No OFD packet to send [02:58:10]OFD Sender: No OFD packet to send [02:58:15]OFD Sender: No OFD packet to send [02:58:20]OFD Sender: No OFD packet to send [02:58:25]OFD Sender: No OFD packet to send [02:58:30]OFD Sender: No OFD packet to send [02:58:35]OFD Sender: No OFD packet to send [02:58:40]OFD Sender: No OFD packet to send [02:58:45]OFD Sender: No OFD packet to send [02:58:50]OFD Sender: No OFD packet to send [02:58:55]OFD Sender: No OFD packet to send [02:59:00]OFD Sender: No OFD packet to send [02:59:05]OFD Sender: No OFD packet to send [02:59:10]OFD Sender: No OFD packet to send